@dxos/react-ui-form 0.8.4-main.d05673bc65 → 0.8.4-main.d9fc60f731
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/LICENSE +102 -5
- package/dist/lib/browser/index.mjs +2008 -840
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +83 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +2008 -840
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +85 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +2 -2
- package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +64 -61
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.d.ts +71 -17
- package/dist/types/src/components/Form/Form.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.stories.d.ts +148 -86
- package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField.d.ts +24 -8
- package/dist/types/src/components/Form/FormField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormFieldComponent.d.ts +26 -13
- package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormFieldSet.d.ts +11 -9
- package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormTooltipsContext.d.ts +19 -0
- package/dist/types/src/components/Form/FormTooltipsContext.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/FormLayout.d.ts +50 -0
- package/dist/types/src/components/Form/Layout/FormLayout.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/FormLayout.stories.d.ts +119 -0
- package/dist/types/src/components/Form/Layout/FormLayout.stories.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/FormLayout.stories.test.d.ts +2 -0
- package/dist/types/src/components/Form/Layout/FormLayout.stories.test.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/FormLayout.test.d.ts +2 -0
- package/dist/types/src/components/Form/Layout/FormLayout.test.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/annotation.d.ts +30 -0
- package/dist/types/src/components/Form/Layout/annotation.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/index.d.ts +4 -0
- package/dist/types/src/components/Form/Layout/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/parser.d.ts +31 -0
- package/dist/types/src/components/Form/Layout/parser.d.ts.map +1 -0
- package/dist/types/src/components/Form/Layout/parser.test.d.ts +2 -0
- package/dist/types/src/components/Form/Layout/parser.test.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/ArrayField.d.ts +4 -4
- package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/DateField.d.ts +4 -0
- package/dist/types/src/components/Form/fields/DateField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/GeoPointField.d.ts +1 -1
- package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/InlineRefField.d.ts +13 -0
- package/dist/types/src/components/Form/fields/InlineRefField.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/MarkdownField.d.ts +8 -1
- package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts +85 -0
- package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts.map +1 -0
- package/dist/types/src/components/Form/fields/NumberField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/RefField.d.ts +12 -6
- package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/SelectField.d.ts +4 -1
- package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/SelectOptionField.d.ts +1 -1
- package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +64 -61
- package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/TextField.d.ts +1 -1
- package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/TupleField.d.ts +1 -1
- package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -1
- package/dist/types/src/components/Form/fields/index.d.ts +2 -0
- package/dist/types/src/components/Form/fields/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/index.d.ts +3 -0
- package/dist/types/src/components/Form/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/meta-tags.d.ts +30 -0
- package/dist/types/src/components/Form/meta-tags.d.ts.map +1 -0
- package/dist/types/src/components/Form/meta-tags.test.d.ts +2 -0
- package/dist/types/src/components/Form/meta-tags.test.d.ts.map +1 -0
- package/dist/types/src/components/ObjectForm/ObjectForm.d.ts +8 -0
- package/dist/types/src/components/ObjectForm/ObjectForm.d.ts.map +1 -0
- package/dist/types/src/components/ObjectForm/index.d.ts +2 -0
- package/dist/types/src/components/ObjectForm/index.d.ts.map +1 -0
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +28 -6
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +64 -61
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
- package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts +9 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts.map +1 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts +128 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts.map +1 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts +2 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts.map +1 -0
- package/dist/types/src/components/ObjectProperties/index.d.ts +2 -0
- package/dist/types/src/components/ObjectProperties/index.d.ts.map +1 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.d.ts +9 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.d.ts.map +1 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.stories.d.ts +87 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.stories.d.ts.map +1 -0
- package/dist/types/src/components/ObjectTree/index.d.ts +2 -0
- package/dist/types/src/components/ObjectTree/index.d.ts.map +1 -0
- package/dist/types/src/components/Settings/Settings.d.ts +28 -33
- package/dist/types/src/components/Settings/Settings.d.ts.map +1 -1
- package/dist/types/src/components/Settings/Settings.stories.d.ts +65 -61
- package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -1
- package/dist/types/src/components/Settings/SettingsFieldSet.d.ts +43 -0
- package/dist/types/src/components/Settings/SettingsFieldSet.d.ts.map +1 -0
- package/dist/types/src/components/Settings/SettingsItem.d.ts +16 -0
- package/dist/types/src/components/Settings/SettingsItem.d.ts.map +1 -0
- package/dist/types/src/components/Settings/SettingsSelectField.d.ts +18 -0
- package/dist/types/src/components/Settings/SettingsSelectField.d.ts.map +1 -0
- package/dist/types/src/components/Settings/index.d.ts +2 -0
- package/dist/types/src/components/Settings/index.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +9 -11
- package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +68 -66
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +3 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +13 -4
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -1
- package/dist/types/src/hooks/useKeyHandler.d.ts +2 -1
- package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +64 -61
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/util/field-type.d.ts +19 -0
- package/dist/types/src/util/field-type.d.ts.map +1 -0
- package/dist/types/src/util/field.d.ts.map +1 -1
- package/dist/types/src/util/formatting.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -0
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/properties.d.ts +18 -1
- package/dist/types/src/util/properties.d.ts.map +1 -1
- package/dist/types/src/util/properties.test.d.ts +2 -0
- package/dist/types/src/util/properties.test.d.ts.map +1 -0
- package/dist/types/src/util/refs.d.ts +1 -0
- package/dist/types/src/util/refs.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +48 -41
- package/src/components/FieldEditor/FieldEditor.stories.tsx +4 -4
- package/src/components/FieldEditor/FieldEditor.test.tsx +4 -2
- package/src/components/FieldEditor/FieldEditor.tsx +23 -17
- package/src/components/Form/AUDIT.md +17 -0
- package/src/components/Form/Form.stories.tsx +46 -65
- package/src/components/Form/Form.tsx +176 -60
- package/src/components/Form/FormField.tsx +107 -38
- package/src/components/Form/FormFieldComponent.tsx +77 -20
- package/src/components/Form/FormFieldSet.tsx +128 -78
- package/src/components/Form/FormTooltipsContext.ts +25 -0
- package/src/components/Form/Layout/FormLayout.stories.test.tsx +51 -0
- package/src/components/Form/Layout/FormLayout.stories.tsx +422 -0
- package/src/components/Form/Layout/FormLayout.test.ts +59 -0
- package/src/components/Form/Layout/FormLayout.tsx +251 -0
- package/src/components/Form/Layout/annotation.ts +38 -0
- package/src/components/Form/Layout/index.ts +7 -0
- package/src/components/Form/Layout/parser.test.ts +120 -0
- package/src/components/Form/Layout/parser.ts +167 -0
- package/src/components/Form/fields/ArrayField.tsx +64 -35
- package/src/components/Form/fields/DateField.tsx +101 -0
- package/src/components/Form/fields/GeoPointField.tsx +12 -8
- package/src/components/Form/fields/InlineRefField.tsx +146 -0
- package/src/components/Form/fields/MarkdownField.stories.tsx +206 -0
- package/src/components/Form/fields/MarkdownField.tsx +135 -45
- package/src/components/Form/fields/RefField.tsx +83 -42
- package/src/components/Form/fields/SelectField.tsx +17 -5
- package/src/components/Form/fields/SelectOptionField.stories.tsx +8 -6
- package/src/components/Form/fields/SelectOptionField.tsx +14 -13
- package/src/components/Form/fields/TextAreaField.tsx +1 -1
- package/src/components/Form/fields/TextField.tsx +2 -2
- package/src/components/Form/fields/TupleField.tsx +3 -2
- package/src/components/Form/fields/index.ts +2 -0
- package/src/components/Form/index.ts +3 -0
- package/src/components/Form/meta-tags.test.ts +47 -0
- package/src/components/Form/meta-tags.ts +33 -0
- package/src/components/ObjectForm/ObjectForm.tsx +109 -0
- package/src/components/ObjectForm/index.ts +5 -0
- package/src/components/ObjectPicker/ObjectPicker.stories.tsx +13 -11
- package/src/components/ObjectPicker/ObjectPicker.tsx +93 -66
- package/src/components/ObjectProperties/ObjectProperties.stories.tsx +350 -0
- package/src/components/ObjectProperties/ObjectProperties.test.tsx +111 -0
- package/src/components/ObjectProperties/ObjectProperties.tsx +144 -0
- package/src/components/ObjectProperties/index.ts +5 -0
- package/src/components/ObjectTree/ObjectTree.stories.tsx +134 -0
- package/src/components/ObjectTree/ObjectTree.tsx +190 -0
- package/src/components/ObjectTree/index.ts +5 -0
- package/src/components/Settings/AUDIT.md +51 -0
- package/src/components/Settings/Settings.stories.tsx +69 -21
- package/src/components/Settings/Settings.tsx +32 -181
- package/src/components/Settings/SettingsFieldSet.tsx +257 -0
- package/src/components/Settings/SettingsItem.tsx +58 -0
- package/src/components/Settings/SettingsSelectField.tsx +59 -0
- package/src/components/Settings/index.ts +2 -0
- package/src/components/ViewEditor/ViewEditor.stories.tsx +45 -51
- package/src/components/ViewEditor/ViewEditor.test.tsx +11 -9
- package/src/components/ViewEditor/ViewEditor.tsx +45 -55
- package/src/components/index.ts +3 -0
- package/src/components/testing.tsx +19 -11
- package/src/hooks/useKeyHandler.tsx +7 -7
- package/src/index.ts +0 -4
- package/src/translations.ts +67 -63
- package/src/util/field-type.ts +60 -0
- package/src/util/index.ts +1 -0
- package/src/util/properties.test.ts +121 -0
- package/src/util/properties.ts +47 -4
- package/src/util/refs.ts +7 -3
- package/src/vite-env.d.ts +10 -0
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
import React, { type PropsWithChildren } from 'react';
|
|
3
|
+
import { Type } from '@dxos/echo';
|
|
3
4
|
import { type AnyProperties } from '@dxos/echo/internal';
|
|
4
|
-
import { type
|
|
5
|
+
import { type ColumnRootProps, type IconButtonProps, type ThemedClassName } from '@dxos/react-ui';
|
|
5
6
|
import { type FormHandler, type FormHandlerProps, type FormUpdateMeta } from '../../hooks';
|
|
6
7
|
import { type FormFieldLabelProps, type FormFieldStateProps } from './FormFieldComponent';
|
|
7
8
|
import { type FormFieldSetProps as NaturalFormFieldSetProps } from './FormFieldSet';
|
|
8
|
-
|
|
9
|
-
export
|
|
9
|
+
import { type FormLayoutProps as NaturalFormLayoutProps } from './Layout/FormLayout';
|
|
10
|
+
export type ExcludeId<S extends Schema.Schema.AnyNoContext | Type.AnyEntity> = Omit<S extends Type.AnyEntity ? Type.InstanceType<S> : S extends Schema.Schema.AnyNoContext ? Schema.Schema.Type<S> : never, 'id'>;
|
|
11
|
+
export declare const omitId: <S extends Schema.Schema.AnyNoContext | Type.AnyEntity>(schemaOrType: S) => Schema.Schema<ExcludeId<S>, ExcludeId<S>>;
|
|
12
|
+
/**
|
|
13
|
+
* Drop fields annotated with `FormInputAnnotation.set(false)` from a schema so
|
|
14
|
+
* the form's validator doesn't trip on required-but-hidden fields. Used by
|
|
15
|
+
* the picker's inline create form, where a `FactoryAnnotation` typically
|
|
16
|
+
* supplies the hidden values (e.g. a backing-object Ref) outside the form.
|
|
17
|
+
*/
|
|
18
|
+
export declare const omitHiddenFormFields: <S extends Schema.Schema.AnyNoContext>(schema: S) => S;
|
|
10
19
|
type FormContextValue<T extends AnyProperties = any> = {
|
|
11
20
|
/**
|
|
12
21
|
* Form handler.
|
|
13
22
|
*/
|
|
14
23
|
form: FormHandler<T>;
|
|
15
24
|
/**
|
|
16
|
-
* Show
|
|
25
|
+
* Show field tooltips (currently: JSON path on each label). Defaults to
|
|
26
|
+
* `true`; pass `false` to suppress.
|
|
17
27
|
*/
|
|
18
|
-
|
|
28
|
+
tooltips?: boolean;
|
|
19
29
|
/**
|
|
20
30
|
* Testing.
|
|
21
31
|
*/
|
|
22
32
|
testId?: string;
|
|
23
|
-
} & Pick<NaturalFormFieldSetProps<T>, 'readonly' | 'layout' | 'fieldMap' | 'fieldProvider' | 'projection'>;
|
|
33
|
+
} & Pick<NaturalFormFieldSetProps<T>, 'readonly' | 'layout' | 'fieldMap' | 'fieldProvider' | 'projection' | 'createTypename' | 'createFieldMap' | 'db'>;
|
|
24
34
|
declare const useFormContext: (consumerName: string) => FormContextValue<any>;
|
|
25
35
|
/**
|
|
26
36
|
* Get the current form values.
|
|
@@ -43,30 +53,70 @@ type FormRootProps<T extends AnyProperties = AnyProperties> = PropsWithChildren<
|
|
|
43
53
|
*/
|
|
44
54
|
onCancel?: () => void;
|
|
45
55
|
} & Omit<FormContextValue<T>, 'form'> & Pick<FormHandlerProps<T>, 'schema' | 'autoSave' | 'values' | 'defaultValues' | 'onValidate' | 'onValuesChanged'> & Omit<NaturalFormFieldSetProps<T>, 'schema' | 'path'>>;
|
|
46
|
-
|
|
56
|
+
declare function FormRoot<T extends AnyProperties = AnyProperties>({ children, schema, values, onSave, onCancel, ...props }: FormRootProps<T>): React.JSX.Element;
|
|
57
|
+
declare namespace FormRoot {
|
|
58
|
+
var displayName: string;
|
|
59
|
+
}
|
|
60
|
+
type FormViewportProps = {
|
|
61
|
+
scroll?: boolean;
|
|
62
|
+
gutter?: ColumnRootProps['gutter'];
|
|
63
|
+
};
|
|
47
64
|
type FormContentProps = ThemedClassName<PropsWithChildren<{}>>;
|
|
48
65
|
type FormFieldSetProps = ThemedClassName<NaturalFormFieldSetProps<any>>;
|
|
66
|
+
declare function FormFieldSet(props: FormFieldSetProps): React.JSX.Element;
|
|
67
|
+
declare namespace FormFieldSet {
|
|
68
|
+
var displayName: string;
|
|
69
|
+
}
|
|
70
|
+
type FormLayoutProps = Omit<NaturalFormLayoutProps, 'schema'> & {
|
|
71
|
+
schema?: NaturalFormLayoutProps['schema'];
|
|
72
|
+
};
|
|
73
|
+
declare function FormLayout({ schema, ...props }: FormLayoutProps): React.JSX.Element | null;
|
|
74
|
+
declare namespace FormLayout {
|
|
75
|
+
var displayName: string;
|
|
76
|
+
}
|
|
49
77
|
type FormActionsProps = ThemedClassName<{}>;
|
|
78
|
+
declare function FormActions({ classNames }: FormActionsProps): React.JSX.Element | null;
|
|
79
|
+
declare namespace FormActions {
|
|
80
|
+
var displayName: string;
|
|
81
|
+
}
|
|
82
|
+
type FormSectionProps = ThemedClassName<{
|
|
83
|
+
label?: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
}>;
|
|
50
86
|
type FormSubmitProps = ThemedClassName<Partial<Pick<IconButtonProps, 'icon' | 'label' | 'disabled'>>>;
|
|
87
|
+
declare function FormSubmit({ classNames, label, icon, disabled }: FormSubmitProps): React.JSX.Element | null;
|
|
88
|
+
declare namespace FormSubmit {
|
|
89
|
+
var displayName: string;
|
|
90
|
+
}
|
|
91
|
+
type FormErrorProps = ThemedClassName<PropsWithChildren>;
|
|
92
|
+
declare function FormError({ children, classNames }: FormErrorProps): React.JSX.Element | null;
|
|
93
|
+
declare namespace FormError {
|
|
94
|
+
var displayName: string;
|
|
95
|
+
}
|
|
51
96
|
export declare const Form: {
|
|
52
97
|
Root: {
|
|
53
98
|
<T extends AnyProperties = AnyProperties>({ children, schema, values, onSave, onCancel, ...props }: FormRootProps<T>): React.JSX.Element;
|
|
54
99
|
displayName: string;
|
|
55
100
|
};
|
|
56
|
-
Viewport: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
101
|
+
Viewport: React.ForwardRefExoticComponent<Omit<FormViewportProps, "className"> & {
|
|
102
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
103
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
Content: React.ForwardRefExoticComponent<Omit<FormContentProps, "className"> & {
|
|
105
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
106
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
+
Section: React.ForwardRefExoticComponent<Omit<FormSectionProps, "className"> & {
|
|
108
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
109
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
64
110
|
FieldSet: {
|
|
65
111
|
(props: FormFieldSetProps): React.JSX.Element;
|
|
66
112
|
displayName: string;
|
|
67
113
|
};
|
|
114
|
+
Layout: {
|
|
115
|
+
({ schema, ...props }: FormLayoutProps): React.JSX.Element | null;
|
|
116
|
+
displayName: string;
|
|
117
|
+
};
|
|
68
118
|
Label: {
|
|
69
|
-
({ label, error, readonly, asChild }: FormFieldLabelProps): React.JSX.Element;
|
|
119
|
+
({ label, error, readonly, asChild, path }: FormFieldLabelProps): React.JSX.Element;
|
|
70
120
|
displayName: string;
|
|
71
121
|
};
|
|
72
122
|
Actions: {
|
|
@@ -77,7 +127,11 @@ export declare const Form: {
|
|
|
77
127
|
({ classNames, label, icon, disabled }: FormSubmitProps): React.JSX.Element | null;
|
|
78
128
|
displayName: string;
|
|
79
129
|
};
|
|
130
|
+
Error: {
|
|
131
|
+
({ children, classNames }: FormErrorProps): React.JSX.Element | null;
|
|
132
|
+
displayName: string;
|
|
133
|
+
};
|
|
80
134
|
};
|
|
81
135
|
export { useFormContext, useFormValues, useFormFieldState };
|
|
82
|
-
export type { FormRootProps, FormViewportProps, FormContentProps, FormFieldSetProps, FormFieldLabelProps, FormActionsProps, FormSubmitProps, };
|
|
136
|
+
export type { FormRootProps, FormViewportProps, FormContentProps, FormSectionProps, FormFieldSetProps, FormLayoutProps, FormFieldLabelProps, FormActionsProps, FormSubmitProps, };
|
|
83
137
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAElF,OAAO,EAAgC,IAAI,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,eAAe,EAGpB,KAAK,eAAe,EAGrB,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAGpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAkB,KAAK,mBAAmB,EAAE,KAA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IAmL5C,MAAM;+BAnKkC,eAAe;;;IAoKvD,KAAK;;;;IACL,OAAO;yBAjJ4B,gBAAgB;;;IAkJnD,MAAM;gDAnEmD,eAAe;;;IAoExE,KAAK;mCA7BsC,cAAc;;;CA8B1D,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,iBAAiB,EAAE,CAAC;AAE5D,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import * as Schema from 'effect/Schema';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { Type } from '@dxos/echo';
|
|
4
|
+
import { Obj, Type } from '@dxos/echo';
|
|
5
5
|
import { type AnyProperties } from '@dxos/echo/internal';
|
|
6
6
|
import { type ExcludeId, type FormRootProps } from './Form';
|
|
7
7
|
declare const Organization: Type.Obj<{
|
|
8
8
|
readonly name: string;
|
|
9
9
|
}, Schema.Struct.Fields>;
|
|
10
|
-
export
|
|
11
|
-
}
|
|
10
|
+
export type Organization = Type.InstanceType<typeof Organization>;
|
|
12
11
|
declare const Person: Type.Obj<{
|
|
13
12
|
readonly name: string;
|
|
13
|
+
readonly ignore?: string | undefined;
|
|
14
|
+
readonly active?: boolean | undefined;
|
|
14
15
|
readonly address?: {
|
|
15
|
-
readonly state: string;
|
|
16
16
|
readonly street: string;
|
|
17
17
|
readonly city: string;
|
|
18
|
+
readonly state: string;
|
|
18
19
|
readonly zip: number;
|
|
19
20
|
} | undefined;
|
|
20
|
-
readonly
|
|
21
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
22
|
-
readonly tags?: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
23
|
-
readonly hue?: string | undefined;
|
|
24
|
-
readonly label: string;
|
|
25
|
-
}>[] | undefined;
|
|
26
|
-
readonly ignore?: string | undefined;
|
|
27
|
-
readonly active?: boolean | undefined;
|
|
28
|
-
readonly employer?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
21
|
+
readonly employer?: import("@dxos/echo/internal").Ref<{
|
|
29
22
|
readonly name: string;
|
|
30
|
-
}> | undefined;
|
|
23
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
24
|
+
readonly tags?: readonly import("@dxos/echo/internal").Ref<{
|
|
25
|
+
readonly label: string;
|
|
26
|
+
readonly hue?: string | undefined;
|
|
27
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[] | undefined;
|
|
28
|
+
readonly status?: "active" | "inactive" | undefined;
|
|
31
29
|
readonly notes?: string | undefined;
|
|
30
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
31
|
+
readonly birthday?: string | undefined;
|
|
32
|
+
readonly meetingAt?: string | undefined;
|
|
33
|
+
readonly reminderAt?: string | undefined;
|
|
32
34
|
readonly tasks?: readonly string[] | undefined;
|
|
33
35
|
readonly locations?: readonly (readonly [number, number, (number | undefined)?])[] | undefined;
|
|
34
36
|
readonly identities?: readonly {
|
|
@@ -36,11 +38,9 @@ declare const Person: Type.Obj<{
|
|
|
36
38
|
readonly value: string;
|
|
37
39
|
}[] | undefined;
|
|
38
40
|
}, Schema.Struct.Fields>;
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
debug?: boolean;
|
|
43
|
-
schema: Schema.Schema<T>;
|
|
41
|
+
export type Person = Type.InstanceType<typeof Person>;
|
|
42
|
+
type DefaultStoryProps<T extends AnyProperties> = {
|
|
43
|
+
schema?: Schema.Schema<T>;
|
|
44
44
|
} & FormRootProps<T>;
|
|
45
45
|
declare const meta: {
|
|
46
46
|
title: string;
|
|
@@ -48,83 +48,145 @@ declare const meta: {
|
|
|
48
48
|
<T extends AnyProperties = AnyProperties>({ children, schema, values, onSave, onCancel, ...props }: FormRootProps<T>): React.JSX.Element;
|
|
49
49
|
displayName: string;
|
|
50
50
|
};
|
|
51
|
-
render: <T extends AnyProperties = AnyProperties>({
|
|
51
|
+
render: <T extends AnyProperties = AnyProperties>({ schema, values: valuesProp, ...props }: DefaultStoryProps<T>) => React.JSX.Element;
|
|
52
52
|
decorators: import("@storybook/react").Decorator[];
|
|
53
53
|
parameters: {
|
|
54
54
|
layout: string;
|
|
55
55
|
translations: [{
|
|
56
56
|
readonly 'en-US': {
|
|
57
57
|
readonly "@dxos/react-ui-form": {
|
|
58
|
-
readonly 'fields
|
|
59
|
-
readonly 'hidden
|
|
60
|
-
readonly 'empty
|
|
61
|
-
readonly '
|
|
62
|
-
readonly 'field
|
|
63
|
-
readonly 'field
|
|
64
|
-
readonly 'field
|
|
65
|
-
readonly '
|
|
66
|
-
readonly 'add
|
|
67
|
-
readonly '
|
|
68
|
-
readonly '
|
|
69
|
-
readonly 'boolean
|
|
70
|
-
readonly '
|
|
71
|
-
readonly '
|
|
72
|
-
readonly '
|
|
73
|
-
readonly '
|
|
74
|
-
readonly '
|
|
75
|
-
readonly 'ref
|
|
76
|
-
readonly 'ref
|
|
77
|
-
readonly '
|
|
78
|
-
readonly '
|
|
79
|
-
readonly '
|
|
80
|
-
readonly '
|
|
81
|
-
readonly '
|
|
82
|
-
readonly '
|
|
83
|
-
readonly '
|
|
84
|
-
readonly '
|
|
85
|
-
readonly 'format
|
|
86
|
-
readonly 'format
|
|
87
|
-
readonly 'format
|
|
88
|
-
readonly 'format
|
|
89
|
-
readonly 'format
|
|
90
|
-
readonly 'format
|
|
91
|
-
readonly 'format
|
|
92
|
-
readonly 'format
|
|
93
|
-
readonly 'format
|
|
94
|
-
readonly 'format
|
|
95
|
-
readonly 'format
|
|
96
|
-
readonly 'format
|
|
97
|
-
readonly 'format
|
|
98
|
-
readonly 'format
|
|
99
|
-
readonly 'format
|
|
100
|
-
readonly 'format
|
|
101
|
-
readonly 'format
|
|
102
|
-
readonly 'format
|
|
103
|
-
readonly 'format
|
|
104
|
-
readonly 'format
|
|
105
|
-
readonly 'format
|
|
106
|
-
readonly 'format
|
|
107
|
-
readonly 'format
|
|
108
|
-
readonly 'format
|
|
109
|
-
readonly 'format
|
|
110
|
-
readonly '
|
|
111
|
-
readonly '
|
|
112
|
-
readonly '
|
|
113
|
-
readonly '
|
|
114
|
-
readonly '
|
|
115
|
-
readonly 'select
|
|
116
|
-
readonly 'select
|
|
117
|
-
readonly '
|
|
118
|
-
readonly '
|
|
58
|
+
readonly 'fields.label': 'Fields';
|
|
59
|
+
readonly 'hidden-fields.label': 'Hidden Fields';
|
|
60
|
+
readonly 'empty-readonly-ref-field.label': '(none)';
|
|
61
|
+
readonly 'field-property.label': 'Property';
|
|
62
|
+
readonly 'field-property.placeholder': 'Property name';
|
|
63
|
+
readonly 'field-format.label': 'Type';
|
|
64
|
+
readonly 'field-path.label': 'Field path';
|
|
65
|
+
readonly 'remove-item.button': 'Delete item';
|
|
66
|
+
readonly 'add-item.button': 'Add item';
|
|
67
|
+
readonly 'add-property-button.label': 'Add property';
|
|
68
|
+
readonly 'boolean-input-true.value': 'Yes';
|
|
69
|
+
readonly 'boolean-input-false.value': 'No';
|
|
70
|
+
readonly 'show-field.label': 'Show field';
|
|
71
|
+
readonly 'hide-field.label': 'Hide field';
|
|
72
|
+
readonly 'delete-field.label': 'Delete field';
|
|
73
|
+
readonly 'create-option.label': 'Create';
|
|
74
|
+
readonly 'add-tag.label': 'Add tag';
|
|
75
|
+
readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
|
|
76
|
+
readonly 'ref-field.placeholder': 'Select\u2026';
|
|
77
|
+
readonly 'ref-field.placeholder_one': 'Select\u2026';
|
|
78
|
+
readonly 'ref-field.placeholder_other': 'Select items\u2026';
|
|
79
|
+
readonly 'example.placeholder': 'Example';
|
|
80
|
+
readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
|
|
81
|
+
readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
|
|
82
|
+
readonly 'cancel-button.label': 'Cancel';
|
|
83
|
+
readonly 'save-button.label': 'Save';
|
|
84
|
+
readonly 'create-text.label': 'Create text';
|
|
85
|
+
readonly 'format.boolean.label': 'Boolean';
|
|
86
|
+
readonly 'format.currency.label': 'Currency';
|
|
87
|
+
readonly 'format.date.label': 'Date';
|
|
88
|
+
readonly 'format.date-time.label': 'DateTime';
|
|
89
|
+
readonly 'format.did.label': 'DID';
|
|
90
|
+
readonly 'format.duration.label': 'Duration';
|
|
91
|
+
readonly 'format.dxn.label': 'DXN';
|
|
92
|
+
readonly 'format.email.label': 'Email';
|
|
93
|
+
readonly 'format.formula.label': 'Formula';
|
|
94
|
+
readonly 'format.hostname.label': 'Hostname';
|
|
95
|
+
readonly 'format.integer.label': 'Integer';
|
|
96
|
+
readonly 'format.json.label': 'JSON';
|
|
97
|
+
readonly 'format.lnglat.label': 'Geopoint';
|
|
98
|
+
readonly 'format.markdown.label': 'Markdown';
|
|
99
|
+
readonly 'format.percent.label': 'Percent';
|
|
100
|
+
readonly 'format.ref.label': 'Reference';
|
|
101
|
+
readonly 'format.regex.label': 'RegExp';
|
|
102
|
+
readonly 'format.string.label': 'String';
|
|
103
|
+
readonly 'format.single-select.label': 'Select';
|
|
104
|
+
readonly 'format.multi-select.label': 'Multi-select';
|
|
105
|
+
readonly 'format.text.label': 'Long text';
|
|
106
|
+
readonly 'format.time.label': 'Time';
|
|
107
|
+
readonly 'format.timestamp.label': 'Timestamp';
|
|
108
|
+
readonly 'format.user.label': 'User';
|
|
109
|
+
readonly 'format.number.label': 'Number';
|
|
110
|
+
readonly 'format.uri.label': 'URI';
|
|
111
|
+
readonly 'format.url.label': 'URL';
|
|
112
|
+
readonly 'format.uuid.label': 'UUID';
|
|
113
|
+
readonly 'latitude.label': 'Latitude';
|
|
114
|
+
readonly 'longitude.label': 'Longitude';
|
|
115
|
+
readonly 'select-option.label': 'Label';
|
|
116
|
+
readonly 'select-option-label.placeholder': 'Option label';
|
|
117
|
+
readonly 'select-option-delete.button': 'Delete';
|
|
118
|
+
readonly 'select-option-add.button': 'Add option';
|
|
119
|
+
readonly 'system-schema.title': 'System type';
|
|
120
|
+
readonly 'system-schema.description': 'System type: cannot add or remove fields.';
|
|
121
|
+
readonly 'remove.button': 'Delete';
|
|
119
122
|
};
|
|
120
123
|
};
|
|
121
124
|
}];
|
|
122
125
|
};
|
|
123
126
|
};
|
|
124
127
|
export default meta;
|
|
125
|
-
type Story<T extends AnyProperties> = StoryObj<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
type Story<T extends AnyProperties> = StoryObj<DefaultStoryProps<T>>;
|
|
129
|
+
declare const PersonSchema: Schema.Schema<{
|
|
130
|
+
readonly name: string;
|
|
131
|
+
readonly ignore?: string | undefined;
|
|
132
|
+
readonly active?: boolean | undefined;
|
|
133
|
+
readonly address?: {
|
|
134
|
+
readonly street: string;
|
|
135
|
+
readonly city: string;
|
|
136
|
+
readonly state: string;
|
|
137
|
+
readonly zip: number;
|
|
138
|
+
} | undefined;
|
|
139
|
+
readonly employer?: import("@dxos/echo/internal").Ref<{
|
|
140
|
+
readonly name: string;
|
|
141
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
142
|
+
readonly tags?: readonly import("@dxos/echo/internal").Ref<{
|
|
143
|
+
readonly label: string;
|
|
144
|
+
readonly hue?: string | undefined;
|
|
145
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[] | undefined;
|
|
146
|
+
readonly status?: "active" | "inactive" | undefined;
|
|
147
|
+
readonly notes?: string | undefined;
|
|
148
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
149
|
+
readonly birthday?: string | undefined;
|
|
150
|
+
readonly meetingAt?: string | undefined;
|
|
151
|
+
readonly reminderAt?: string | undefined;
|
|
152
|
+
readonly tasks?: readonly string[] | undefined;
|
|
153
|
+
readonly locations?: readonly (readonly [number, number, (number | undefined)?])[] | undefined;
|
|
154
|
+
readonly identities?: readonly {
|
|
155
|
+
readonly type: string;
|
|
156
|
+
readonly value: string;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
|
|
159
|
+
readonly name: string;
|
|
160
|
+
readonly ignore?: string | undefined;
|
|
161
|
+
readonly active?: boolean | undefined;
|
|
162
|
+
readonly address?: {
|
|
163
|
+
readonly street: string;
|
|
164
|
+
readonly city: string;
|
|
165
|
+
readonly state: string;
|
|
166
|
+
readonly zip: number;
|
|
167
|
+
} | undefined;
|
|
168
|
+
readonly employer?: import("@dxos/echo/internal").Ref<{
|
|
169
|
+
readonly name: string;
|
|
170
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
171
|
+
readonly tags?: readonly import("@dxos/echo/internal").Ref<{
|
|
172
|
+
readonly label: string;
|
|
173
|
+
readonly hue?: string | undefined;
|
|
174
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[] | undefined;
|
|
175
|
+
readonly status?: "active" | "inactive" | undefined;
|
|
176
|
+
readonly notes?: string | undefined;
|
|
177
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
178
|
+
readonly birthday?: string | undefined;
|
|
179
|
+
readonly meetingAt?: string | undefined;
|
|
180
|
+
readonly reminderAt?: string | undefined;
|
|
181
|
+
readonly tasks?: readonly string[] | undefined;
|
|
182
|
+
readonly locations?: readonly (readonly [number, number, (number | undefined)?])[] | undefined;
|
|
183
|
+
readonly identities?: readonly {
|
|
184
|
+
readonly type: string;
|
|
185
|
+
readonly value: string;
|
|
186
|
+
}[] | undefined;
|
|
187
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>;
|
|
188
|
+
export declare const Default: Story<ExcludeId<typeof PersonSchema>>;
|
|
189
|
+
export declare const Readonly: Story<ExcludeId<typeof PersonSchema>>;
|
|
190
|
+
export declare const Static: Story<ExcludeId<typeof PersonSchema>>;
|
|
191
|
+
export declare const Empty: Story<ExcludeId<typeof PersonSchema>>;
|
|
130
192
|
//# sourceMappingURL=Form.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,
|
|
1
|
+
{"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAA2B,GAAG,EAAY,IAAI,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAUzD,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,aAAa,EAAU,MAAM,QAAQ,CAAC;AAE1E,QAAA,MAAM,YAAY;;wBAE0D,CAAC;AAE7E,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAElE,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoCuD,CAAC;AAEpE,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,MAAM,CAAC,CAAC;AAEtD,KAAK,iBAAiB,CAAC,CAAC,SAAS,aAAa,IAAI;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAC3B,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AAgDrB,QAAA,MAAM,IAAI;;;;;;aA9CY,CAAC,SAAS,aAAa,4DAI1C,iBAAiB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEiB,CAAC;eAE1B,IAAI;AAEnB,KAAK,KAAK,CAAC,CAAC,SAAS,aAAa,IAAI,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAErE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAAyB,CAAC;AAW5C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,CAMzD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,CAM1D,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,CAMxD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,CAEvD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as SchemaAST from 'effect/SchemaAST';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { IconButtonProps } from '@dxos/react-ui';
|
|
3
4
|
import { type ProjectionModel } from '@dxos/schema';
|
|
4
5
|
import { type RefFieldProps } from './fields';
|
|
5
6
|
import { type FormFieldComponentProps, type FormFieldMap, type FormFieldProvider } from './FormFieldComponent';
|
|
@@ -9,9 +10,14 @@ export type FormFieldProps = {
|
|
|
9
10
|
*/
|
|
10
11
|
type: SchemaAST.AST;
|
|
11
12
|
/**
|
|
12
|
-
* Name of the property.
|
|
13
|
+
* Name of the property. Used to derive a default label
|
|
14
|
+
* (`title ?? capitalize(name)`) and as the projection lookup key. Pass
|
|
15
|
+
* `null` to suppress the header label entirely -- the form still renders
|
|
16
|
+
* the field/struct, but `FormFieldSet`'s top-level `<FormFieldLabel>` is
|
|
17
|
+
* skipped. Used by `ArrayField` for object-array items, where every item
|
|
18
|
+
* would otherwise repeat the array's parent name.
|
|
13
19
|
*/
|
|
14
|
-
name: string;
|
|
20
|
+
name: string | null;
|
|
15
21
|
/**
|
|
16
22
|
* Path to the current object from the root. Used with nested forms.
|
|
17
23
|
*/
|
|
@@ -29,9 +35,19 @@ export type FormFieldProps = {
|
|
|
29
35
|
* Function to lookup custom renderers for specific properties.
|
|
30
36
|
*/
|
|
31
37
|
fieldProvider?: FormFieldProvider;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Typename of the ref type that the create props apply to.
|
|
40
|
+
* When set, createOptionLabel/createOptionIcon/createInitialValuePath/createFieldMap/onCreate
|
|
41
|
+
* are only passed to ref fields whose typename matches.
|
|
42
|
+
*/
|
|
43
|
+
createTypename?: string;
|
|
44
|
+
} & Pick<FormFieldComponentProps, 'autoFocus' | 'readonly' | 'layout'> & Pick<RefFieldProps, 'createOptionLabel' | 'createOptionIcon' | 'createInitialValuePath' | 'createFieldMap' | 'db' | 'useType' | 'getOptions' | 'onCreate'>;
|
|
45
|
+
export declare function FormField(props: FormFieldProps): React.JSX.Element | null;
|
|
46
|
+
export declare namespace FormField {
|
|
47
|
+
var displayName: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const Nesting: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
50
|
+
export declare const IconBlock: ({ inline, ...props }: IconButtonProps & {
|
|
51
|
+
inline?: boolean;
|
|
52
|
+
}) => React.JSX.Element;
|
|
37
53
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,OAAO,
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAa1D,OAAO,EAAc,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAMpD,OAAO,EASL,KAAK,aAAa,EAInB,MAAM,UAAU,CAAC;AAElB,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC;IAEpB;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;IAE7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC,GACpE,IAAI,CACF,aAAa,EACX,mBAAmB,GACnB,kBAAkB,GAClB,wBAAwB,GACxB,gBAAgB,GAChB,IAAI,GACJ,SAAS,GACT,YAAY,GACZ,UAAU,CACb,CAAC;kCAEsB,KAAK,EAAE,cAAc;;;;AAoM/C,eAAO,MAAM,OAAO,iBAAkB,iBAAiB,sBAItD,CAAC;AAEF,eAAO,MAAM,SAAS,yBAA0B,eAAe,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,sBAMrF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Schema from 'effect/Schema';
|
|
2
2
|
import type * as SchemaAST from 'effect/SchemaAST';
|
|
3
3
|
import React, { Component, type FC, type FocusEvent, type PropsWithChildren, type ReactElement, type ReactNode } from 'react';
|
|
4
|
-
import { type Format } from '@dxos/echo
|
|
4
|
+
import { type Database, Format } from '@dxos/echo';
|
|
5
5
|
import { type FormFieldStatus } from '../../hooks';
|
|
6
6
|
/**
|
|
7
7
|
* Dynamic props passed to input components.
|
|
@@ -14,7 +14,6 @@ export type FormFieldStateProps<T = any> = {
|
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Presentation mode.
|
|
17
|
-
*
|
|
18
17
|
* - full: Show label, control, and status.
|
|
19
18
|
* - compact: Show label and control.
|
|
20
19
|
* - inline: Control only.
|
|
@@ -25,33 +24,48 @@ export type Presentation = 'full' | 'compact' | 'inline' | 'static';
|
|
|
25
24
|
* Props passed to input components.
|
|
26
25
|
*/
|
|
27
26
|
export type FormFieldComponentProps<T = any> = {
|
|
27
|
+
/** Database the form is editing against; populated for fields whose value is an ECHO object/Ref. */
|
|
28
|
+
db?: Database.Database;
|
|
28
29
|
type: SchemaAST.AST;
|
|
29
30
|
format?: Format.TypeFormat;
|
|
30
31
|
readonly?: boolean;
|
|
31
32
|
label: string;
|
|
33
|
+
/**
|
|
34
|
+
* Dotted JSON path of this field within the form values (e.g.
|
|
35
|
+
* `runtime.client.storage.persistent`). Forwarded to `FormFieldLabel` so
|
|
36
|
+
* that it can render the path as a debug hint when the enclosing
|
|
37
|
+
* `Form.Root` has `debug` enabled.
|
|
38
|
+
*/
|
|
39
|
+
jsonPath?: string;
|
|
32
40
|
placeholder?: string;
|
|
33
41
|
autoFocus?: boolean;
|
|
34
42
|
layout?: Presentation;
|
|
35
43
|
} & FormFieldStateProps<T>;
|
|
36
|
-
/**
|
|
37
|
-
* Form field component.
|
|
38
|
-
*/
|
|
39
44
|
export type FormFieldComponent = FC<FormFieldComponentProps>;
|
|
40
45
|
export type FormFieldMap = Record<string, FormFieldComponent>;
|
|
41
46
|
export type FormFieldProvider = (props: {
|
|
42
47
|
prop: string;
|
|
43
48
|
schema: Schema.Schema<any>;
|
|
44
49
|
fieldProps: FormFieldComponentProps;
|
|
45
|
-
}) => ReactElement | undefined;
|
|
50
|
+
}) => ReactElement | null | undefined;
|
|
46
51
|
export type FormFieldLabelProps = {
|
|
47
52
|
asChild?: boolean;
|
|
48
53
|
error?: string;
|
|
54
|
+
/**
|
|
55
|
+
* JSON path of the field this label describes (e.g. `runtime.client.storage.persistent`).
|
|
56
|
+
* Surfaced as a hover tooltip on the label when the enclosing `Form.Root`
|
|
57
|
+
* has `tooltips` enabled (the default) -- useful for spotting which field
|
|
58
|
+
* maps to which path when authoring schemas or filing bugs against a form.
|
|
59
|
+
* Callers can supply the path unconditionally; the label suppresses the
|
|
60
|
+
* tooltip when `Form.Root tooltips={false}`.
|
|
61
|
+
*/
|
|
62
|
+
path?: string;
|
|
49
63
|
} & Pick<FormFieldComponentProps, 'label' | 'readonly'>;
|
|
50
|
-
export declare
|
|
51
|
-
|
|
52
|
-
displayName: string;
|
|
53
|
-
}
|
|
54
|
-
export type FormFieldWrapperProps<T = any> = Pick<FormFieldComponentProps, 'readonly' | 'label' | 'layout' | 'getStatus' | 'getValue'> & {
|
|
64
|
+
export declare function FormFieldLabel({ label, error, readonly, asChild, path }: FormFieldLabelProps): React.JSX.Element;
|
|
65
|
+
export declare namespace FormFieldLabel {
|
|
66
|
+
var displayName: string;
|
|
67
|
+
}
|
|
68
|
+
export type FormFieldWrapperProps<T = any> = Pick<FormFieldComponentProps, 'readonly' | 'label' | 'layout' | 'getStatus' | 'getValue' | 'jsonPath' | 'format'> & {
|
|
55
69
|
children?: (props: {
|
|
56
70
|
value: T;
|
|
57
71
|
}) => ReactNode;
|
|
@@ -71,8 +85,7 @@ export declare class FormFieldErrorBoundary extends Component<FormFieldErrorBoun
|
|
|
71
85
|
error: undefined;
|
|
72
86
|
};
|
|
73
87
|
componentDidUpdate(prevProps: FormFieldErrorBoundaryProps): void;
|
|
74
|
-
render(): string | number | bigint | boolean | Iterable<
|
|
88
|
+
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | null | undefined> | null | undefined;
|
|
75
89
|
private resetError;
|
|
76
90
|
}
|
|
77
|
-
export {};
|
|
78
91
|
//# sourceMappingURL=FormFieldComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormFieldComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormFieldComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormFieldComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormFieldComponent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,EACZ,SAAS,EACT,KAAK,EAAE,EACP,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,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,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAE9D;IAEQ,KAAK;QAAK,KAAK;MAAc;IAE7B,kBAAkB,CAAC,SAAS,EAAE,2BAA2B,QAIjE;IAEQ,MAAM,kRAWd;IAED,OAAO,CAAC,UAAU;CAGnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormFieldComponent.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormFieldComponent.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAwC,MAAM,OAAO,CAAC;AAK7D,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,sBAAsB,CAAC;AAEtF,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"FormFieldComponent.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormFieldComponent.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAwC,MAAM,OAAO,CAAC;AAK7D,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,sBAAsB,CAAC;AAEtF,QAAA,MAAM,YAAY,qEAOf,uBAAuB,CAAC,MAAM,CAAC,sBAsBjC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAOnC,CAAC;eAEa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
|