@dxos/react-ui-form 0.8.4-main.c1de068 → 0.8.4-main.c4373fc

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.
Files changed (117) hide show
  1. package/dist/lib/browser/index.mjs +810 -594
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +810 -594
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/components/ControlSection/ControlSection.d.ts +2 -2
  8. package/dist/types/src/components/ControlSection/ControlSection.d.ts.map +1 -1
  9. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +81 -5
  10. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +1 -1
  11. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +2 -2
  12. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  13. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +76 -5
  14. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  15. package/dist/types/src/components/Form/ArrayField.d.ts +2 -2
  16. package/dist/types/src/components/Form/ArrayField.d.ts.map +1 -1
  17. package/dist/types/src/components/Form/Defaults.d.ts +5 -5
  18. package/dist/types/src/components/Form/Defaults.d.ts.map +1 -1
  19. package/dist/types/src/components/Form/Form.d.ts +7 -6
  20. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  21. package/dist/types/src/components/Form/Form.stories.d.ts +129 -32
  22. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  23. package/dist/types/src/components/Form/FormActions.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/FormContent.d.ts +17 -11
  25. package/dist/types/src/components/Form/FormContent.d.ts.map +1 -1
  26. package/dist/types/src/components/Form/FormContext.d.ts +3 -3
  27. package/dist/types/src/components/Form/FormContext.d.ts.map +1 -1
  28. package/dist/types/src/components/Form/Input.d.ts +5 -2
  29. package/dist/types/src/components/Form/Input.d.ts.map +1 -1
  30. package/dist/types/src/components/Form/RefField.d.ts +14 -5
  31. package/dist/types/src/components/Form/RefField.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts +1 -1
  33. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts.map +1 -1
  34. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts +1 -1
  35. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts.map +1 -1
  36. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts +76 -4
  37. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +1 -1
  38. package/dist/types/src/components/Form/custom/TupleInput.d.ts +1 -1
  39. package/dist/types/src/components/Form/factory.d.ts +1 -1
  40. package/dist/types/src/components/Form/factory.d.ts.map +1 -1
  41. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +41 -0
  42. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -0
  43. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +81 -0
  44. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -0
  45. package/dist/types/src/components/ObjectPicker/index.d.ts +2 -0
  46. package/dist/types/src/components/ObjectPicker/index.d.ts.map +1 -0
  47. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +16 -4
  48. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  49. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +79 -7
  50. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  51. package/dist/types/src/components/index.d.ts +1 -1
  52. package/dist/types/src/components/index.d.ts.map +1 -1
  53. package/dist/types/src/components/testing.d.ts +6 -3
  54. package/dist/types/src/components/testing.d.ts.map +1 -1
  55. package/dist/types/src/hooks/useForm.d.ts +3 -3
  56. package/dist/types/src/hooks/useForm.d.ts.map +1 -1
  57. package/dist/types/src/hooks/useQueryRefOptions.d.ts +8 -3
  58. package/dist/types/src/hooks/useQueryRefOptions.d.ts.map +1 -1
  59. package/dist/types/src/translations.d.ts +11 -5
  60. package/dist/types/src/translations.d.ts.map +1 -1
  61. package/dist/types/src/util/field.d.ts +1 -1
  62. package/dist/types/src/util/field.d.ts.map +1 -1
  63. package/dist/types/src/util/formatting.d.ts +1 -1
  64. package/dist/types/src/util/formatting.d.ts.map +1 -1
  65. package/dist/types/src/util/refs.d.ts +1 -1
  66. package/dist/types/src/util/refs.d.ts.map +1 -1
  67. package/dist/types/src/util/schema.d.ts +1 -1
  68. package/dist/types/src/util/schema.d.ts.map +1 -1
  69. package/dist/types/tsconfig.tsbuildinfo +1 -1
  70. package/package.json +41 -36
  71. package/src/components/ControlSection/ControlSection.stories.tsx +11 -14
  72. package/src/components/ControlSection/ControlSection.tsx +26 -12
  73. package/src/components/FieldEditor/FieldEditor.stories.tsx +14 -14
  74. package/src/components/FieldEditor/FieldEditor.test.tsx +3 -2
  75. package/src/components/FieldEditor/FieldEditor.tsx +26 -18
  76. package/src/components/Form/ArrayField.tsx +12 -11
  77. package/src/components/Form/Defaults.tsx +22 -20
  78. package/src/components/Form/Form.stories.tsx +135 -99
  79. package/src/components/Form/Form.tsx +26 -15
  80. package/src/components/Form/FormActions.tsx +2 -1
  81. package/src/components/Form/FormContent.tsx +121 -39
  82. package/src/components/Form/FormContext.tsx +8 -8
  83. package/src/components/Form/Input.tsx +5 -2
  84. package/src/components/Form/RefField.tsx +97 -41
  85. package/src/components/Form/custom/GeoPointInput.tsx +29 -21
  86. package/src/components/Form/custom/SelectOptionsInput.stories.tsx +11 -11
  87. package/src/components/Form/custom/SelectOptionsInput.tsx +30 -31
  88. package/src/components/Form/custom/TupleInput.tsx +2 -2
  89. package/src/components/Form/factory.tsx +2 -2
  90. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +207 -0
  91. package/src/components/ObjectPicker/ObjectPicker.tsx +161 -0
  92. package/src/components/ObjectPicker/index.ts +5 -0
  93. package/src/components/ViewEditor/ViewEditor.stories.tsx +102 -44
  94. package/src/components/ViewEditor/ViewEditor.test.tsx +9 -12
  95. package/src/components/ViewEditor/ViewEditor.tsx +328 -220
  96. package/src/components/index.ts +1 -2
  97. package/src/components/testing.tsx +15 -9
  98. package/src/hooks/useForm.ts +8 -4
  99. package/src/hooks/useQueryRefOptions.ts +9 -3
  100. package/src/hooks/useRefQueryLookupHandler.ts +1 -1
  101. package/src/translations.ts +13 -6
  102. package/src/util/field.ts +9 -19
  103. package/src/util/formatting.ts +1 -1
  104. package/src/util/refs.ts +2 -2
  105. package/src/util/schema.ts +2 -4
  106. package/dist/types/src/components/deprecated/Form.d.ts +0 -15
  107. package/dist/types/src/components/deprecated/Form.d.ts.map +0 -1
  108. package/dist/types/src/components/deprecated/Form.stories.d.ts +0 -13
  109. package/dist/types/src/components/deprecated/Form.stories.d.ts.map +0 -1
  110. package/dist/types/src/components/deprecated/FormInput.d.ts +0 -16
  111. package/dist/types/src/components/deprecated/FormInput.d.ts.map +0 -1
  112. package/dist/types/src/components/deprecated/index.d.ts +0 -2
  113. package/dist/types/src/components/deprecated/index.d.ts.map +0 -1
  114. package/src/components/deprecated/Form.stories.tsx +0 -62
  115. package/src/components/deprecated/Form.tsx +0 -119
  116. package/src/components/deprecated/FormInput.tsx +0 -71
  117. package/src/components/deprecated/index.ts +0 -5
@@ -1,32 +1,98 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react-vite';
3
- import { Schema } from 'effect';
4
- import { ContactType } from '@dxos/client/testing';
5
- import { type BaseObject } from '@dxos/echo-schema';
6
- import { Testing } from '@dxos/schema/testing';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import * as Schema from 'effect/Schema';
3
+ import React from 'react';
4
+ import { type Type } from '@dxos/echo';
5
+ import { type BaseObject, Expando, Ref } from '@dxos/echo/internal';
7
6
  import { type FormProps } from './Form';
8
- declare const TestSchema: Schema.mutable<Schema.Struct<{
9
- name: Schema.optional<Schema.SchemaClass<string, string, never>>;
10
- active: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
11
- rank: Schema.optional<Schema.SchemaClass<number, number, never>>;
12
- website: Schema.optional<Schema.refine<string, typeof Schema.String>>;
13
- address: Schema.optional<Schema.Struct<{
14
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
15
- city: Schema.optional<Schema.SchemaClass<string, string, never>>;
16
- zip: Schema.optional<Schema.refine<string, typeof Schema.String>>;
17
- location: Schema.optional<Schema.Tuple<[Schema.refine<number, Schema.transform<typeof Schema.Number, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.refine<number, Schema.transform<typeof Schema.Number, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.Element<typeof Schema.Number, "?">]>>;
18
- }>>;
19
- }>>;
20
- type TestType = Schema.Schema.Type<typeof TestSchema>;
21
7
  type StoryProps<T extends BaseObject> = {
22
- schema: Schema.Schema<T>;
8
+ debug?: boolean;
9
+ schema: Type.Obj.Any;
23
10
  } & FormProps<T>;
24
- declare const meta: Meta<StoryProps<any>>;
11
+ declare const meta: {
12
+ title: string;
13
+ component: any;
14
+ render: <T extends BaseObject = any>({ debug, schema, values: initialValues, ...props }: StoryProps<T>) => React.JSX.Element;
15
+ decorators: import("@storybook/react").Decorator[];
16
+ parameters: {
17
+ layout: string;
18
+ translations: [{
19
+ readonly 'en-US': {
20
+ readonly "react-ui-form": {
21
+ readonly 'fields label': "Fields";
22
+ readonly 'hidden fields label': "Hidden Fields";
23
+ readonly 'empty readonly ref field label': "(none)";
24
+ readonly 'button add property': "Add property";
25
+ readonly 'field property label': "Property";
26
+ readonly 'field property placeholder': "Property name";
27
+ readonly 'field format label': "Type";
28
+ readonly 'field path label': "Field path";
29
+ readonly 'add field': "Add field";
30
+ readonly 'delete field': "Delete field";
31
+ readonly 'field limit reached': "Maximum number of fields reached";
32
+ readonly 'boolean input true value': "Yes";
33
+ readonly 'boolean input false value': "No";
34
+ readonly 'show field label': "Show field";
35
+ readonly 'hide field label': "Hide field";
36
+ readonly 'delete field label': "Delete field";
37
+ readonly 'ref field combobox input placeholder': "Search…";
38
+ readonly 'ref field placeholder_one': "Select…";
39
+ readonly 'ref field placeholder_other': "Select items…";
40
+ readonly 'button cancel': "Cancel";
41
+ readonly 'button save': "Save";
42
+ readonly 'format boolean': "Boolean";
43
+ readonly 'format currency': "Currency";
44
+ readonly 'format date': "Date";
45
+ readonly 'format date-time': "DateTime";
46
+ readonly 'format did': "DID";
47
+ readonly 'format duration': "Duration";
48
+ readonly 'format dxn': "DXN";
49
+ readonly 'format email': "Email";
50
+ readonly 'format formula': "Formula";
51
+ readonly 'format hostname': "Hostname";
52
+ readonly 'format integer': "Integer";
53
+ readonly 'format json': "JSON";
54
+ readonly 'format lnglat': "Geopoint";
55
+ readonly 'format markdown': "Markdown";
56
+ readonly 'format percent': "Percent";
57
+ readonly 'format ref': "Reference";
58
+ readonly 'format regex': "RegExp";
59
+ readonly 'format string': "String";
60
+ readonly 'format single-select': "Select";
61
+ readonly 'format multi-select': "Multi-select";
62
+ readonly 'format text': "Long text";
63
+ readonly 'format time': "Time";
64
+ readonly 'format timestamp': "Timestamp";
65
+ readonly 'format user': "User";
66
+ readonly 'format number': "Number";
67
+ readonly 'format uri': "URI";
68
+ readonly 'format url': "URL";
69
+ readonly 'format uuid': "UUID";
70
+ readonly 'latitude label': "Latitude";
71
+ readonly 'longitude label': "Longitude";
72
+ readonly 'select option label': "Label";
73
+ readonly 'select option label placeholder': "Option label";
74
+ readonly 'select option color': "Color";
75
+ readonly 'select option delete': "Delete";
76
+ readonly 'select option add': "Add option";
77
+ readonly 'system schema title': "System record type";
78
+ readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
79
+ };
80
+ };
81
+ }];
82
+ };
83
+ argTypes: {
84
+ readonly: {
85
+ control: "boolean";
86
+ description: string;
87
+ };
88
+ };
89
+ };
25
90
  export default meta;
26
- type Story<T extends BaseObject> = StoryObj<StoryProps<T>>;
27
- export declare const Default: Story<TestType>;
28
- export declare const Organization: Story<Schema.Schema.Type<typeof Testing.OrganizationSchema>>;
29
- export declare const OrganizationAutoSave: Story<Schema.Schema.Type<typeof Testing.OrganizationSchema>>;
91
+ type Story = StoryObj<typeof meta>;
92
+ export declare const Default: Story;
93
+ export declare const Organization: Story;
94
+ export declare const OrganizationAutoSave: Story;
95
+ export declare const Contact: Story;
30
96
  declare const ShapeSchema: Schema.mutable<Schema.Struct<{
31
97
  shape: Schema.optional<Schema.Union<[Schema.Struct<{
32
98
  type: Schema.Literal<["circle"]>;
@@ -36,23 +102,54 @@ declare const ShapeSchema: Schema.mutable<Schema.Struct<{
36
102
  size: Schema.optional<Schema.refine<number, typeof Schema.Number>>;
37
103
  }>]>>;
38
104
  }>>;
39
- type ShapeType = Schema.Schema.Type<typeof ShapeSchema>;
40
- export declare const DiscriminatedShape: Story<ShapeType>;
105
+ type ShapeSchema = Schema.Schema.Type<typeof ShapeSchema>;
106
+ export declare const DiscriminatedShape: StoryObj<StoryProps<ShapeSchema>>;
41
107
  declare const ArraysSchema: Schema.mutable<Schema.Struct<{
42
108
  names: Schema.Array$<Schema.filter<typeof Schema.String>>;
43
109
  addresses: Schema.Array$<Schema.Struct<{
44
110
  street: Schema.optional<Schema.SchemaClass<string, string, never>>;
45
111
  city: Schema.optional<Schema.SchemaClass<string, string, never>>;
46
112
  zip: Schema.optional<Schema.refine<string, typeof Schema.String>>;
47
- location: Schema.optional<Schema.Tuple<[Schema.refine<number, Schema.transform<typeof Schema.Number, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.refine<number, Schema.transform<typeof Schema.Number, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.Element<typeof Schema.Number, "?">]>>;
113
+ location: Schema.optional<Schema.Tuple<[Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.Element<typeof Schema.Number, "?">]>>;
48
114
  }>>;
49
115
  }>>;
50
- type ArraysType = Schema.Schema.Type<typeof ArraysSchema>;
51
- export declare const Arrays: StoryObj<FormProps<ArraysType>>;
116
+ type ArraysSchema = Schema.Schema.Type<typeof ArraysSchema>;
117
+ export declare const Arrays: StoryObj<StoryProps<ArraysSchema>>;
118
+ declare const TupleSchema: Schema.mutable<Schema.Struct<{
119
+ tuple: Schema.Tuple<[typeof Schema.Number, typeof Schema.String, typeof Schema.Boolean]>;
120
+ geopoint: Schema.Tuple<[Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.Element<typeof Schema.Number, "?">]>;
121
+ }>>;
122
+ type TupleSchema = Schema.Schema.Type<typeof TupleSchema>;
123
+ export declare const Tuple: StoryObj<StoryProps<TupleSchema>>;
52
124
  declare const ColorSchema: Schema.mutable<Schema.Struct<{
53
125
  color: Schema.Union<[Schema.Literal<["red"]>, Schema.Literal<["green"]>, Schema.Literal<["blue"]>]>;
54
126
  }>>;
55
127
  type ColorType = Schema.Schema.Type<typeof ColorSchema>;
56
- export declare const Enum: StoryObj<FormProps<ColorType>>;
57
- export declare const Refs: StoryObj<FormProps<ContactType>>;
128
+ export declare const Enum: StoryObj<StoryProps<ColorType>>;
129
+ declare const RefSchema: Schema.Struct<{
130
+ contact: Schema.SchemaClass<Ref<import("@dxos/echo/internal").TypedObjectFields<{
131
+ name: Schema.optional<typeof Schema.String>;
132
+ identifiers: Schema.mutable<Schema.Array$<Schema.Struct<{
133
+ type: typeof Schema.String;
134
+ value: typeof Schema.String;
135
+ }>>>;
136
+ }, import("@dxos/echo/internal").TypedObjectOptions>>, import("@dxos/echo-protocol").EncodedReference, never>;
137
+ optionalContact: Schema.optional<Schema.SchemaClass<Ref<import("@dxos/echo/internal").TypedObjectFields<{
138
+ name: Schema.optional<typeof Schema.String>;
139
+ identifiers: Schema.mutable<Schema.Array$<Schema.Struct<{
140
+ type: typeof Schema.String;
141
+ value: typeof Schema.String;
142
+ }>>>;
143
+ }, import("@dxos/echo/internal").TypedObjectOptions>>, import("@dxos/echo-protocol").EncodedReference, never>>;
144
+ refArray: Schema.optional<Schema.Array$<import("@dxos/echo/internal").Ref$<import("@dxos/echo/internal").TypedObjectFields<{
145
+ name: Schema.optional<typeof Schema.String>;
146
+ identifiers: Schema.mutable<Schema.Array$<Schema.Struct<{
147
+ type: typeof Schema.String;
148
+ value: typeof Schema.String;
149
+ }>>>;
150
+ }, import("@dxos/echo/internal").TypedObjectOptions>>>>;
151
+ unknownExpando: Schema.optional<Schema.SchemaClass<Ref<Expando>, import("@dxos/echo-protocol").EncodedReference, never>>;
152
+ }>;
153
+ type RefSchema = Schema.Schema.Type<typeof RefSchema>;
154
+ export declare const Refs: StoryObj<StoryProps<RefSchema>>;
58
155
  //# 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,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,KAAK,UAAU,EAA2D,MAAM,mBAAmB,CAAC;AAG7G,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAI/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAY9C,QAAA,MAAM,UAAU;;;;;;;;;;;GAMO,CAAC;AAExB,KAAK,QAAQ,G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,MAAM,gBAAgB,GAAG,OAAO,GAAG,cAAc,GAAG,eAAe,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sCAA6C,gBAAgB,sBA+BxF,CAAC"}
1
+ {"version":3,"file":"FormActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormActions.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,cAAc,GAAG,eAAe,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sCAA6C,gBAAgB,sBA+BxF,CAAC"}
@@ -1,24 +1,23 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  import React from 'react';
3
3
  import { type ThemedClassName } from '@dxos/react-ui';
4
- import { type SchemaProperty } from '@dxos/schema';
4
+ import { type ProjectionModel, type SchemaProperty } from '@dxos/schema';
5
+ import { type QueryRefOptions } from '../../hooks';
5
6
  import { type ComponentLookup } from './Form';
6
7
  import { type InputComponent } from './Input';
7
- import { type QueryRefOptions } from '../../hooks';
8
+ import { type RefFieldProps } from './RefField';
8
9
  export type FormFieldProps = {
9
10
  property: SchemaProperty<any>;
10
11
  path?: (string | number)[];
11
- readonly?: boolean;
12
12
  /** Used to indicate if input should be presented inline (e.g. for array items). */
13
13
  inline?: boolean;
14
- onQueryRefOptions?: QueryRefOptions;
14
+ projection?: ProjectionModel;
15
15
  lookupComponent?: ComponentLookup;
16
16
  Custom?: Partial<Record<string, InputComponent>>;
17
- };
18
- export declare const FormField: ({ property, path, readonly, inline, onQueryRefOptions, lookupComponent, Custom, }: FormFieldProps) => React.JSX.Element | null;
17
+ } & Pick<RefFieldProps, 'readonly' | 'onQueryRefOptions' | 'createOptionLabel' | 'createOptionIcon' | 'onCreate' | 'createSchema' | 'createInitialValuePath'>;
18
+ export declare const FormField: ({ property, path, readonly, inline, projection, onQueryRefOptions, createOptionLabel, createOptionIcon, onCreate, createSchema, createInitialValuePath, lookupComponent, Custom, }: FormFieldProps) => React.JSX.Element | null;
19
19
  export type FormFieldsProps = ThemedClassName<{
20
20
  testId?: string;
21
- readonly?: boolean;
22
21
  schema: Schema.Schema.All;
23
22
  /**
24
23
  * Path to the current object from the root. Used with nested forms.
@@ -26,6 +25,10 @@ export type FormFieldsProps = ThemedClassName<{
26
25
  path?: (string | number)[];
27
26
  filter?: (props: SchemaProperty<any>[]) => SchemaProperty<any>[];
28
27
  sort?: string[];
28
+ /**
29
+ * Optional projection for projection-based field management
30
+ */
31
+ projection?: ProjectionModel;
29
32
  lookupComponent?: ComponentLookup;
30
33
  /**
31
34
  * Map of custom renderers for specific properties.
@@ -33,10 +36,9 @@ export type FormFieldsProps = ThemedClassName<{
33
36
  */
34
37
  Custom?: Partial<Record<string, InputComponent>>;
35
38
  onQueryRefOptions?: QueryRefOptions;
36
- }>;
39
+ } & Pick<FormFieldProps, 'readonly'> & Pick<RefFieldProps, 'onQueryRefOptions' | 'createOptionLabel' | 'createOptionIcon' | 'onCreate' | 'createSchema' | 'createInitialValuePath'>>;
37
40
  export declare const FormFields: React.ForwardRefExoticComponent<Omit<{
38
41
  testId?: string;
39
- readonly?: boolean;
40
42
  schema: Schema.Schema.All;
41
43
  /**
42
44
  * Path to the current object from the root. Used with nested forms.
@@ -44,6 +46,10 @@ export declare const FormFields: React.ForwardRefExoticComponent<Omit<{
44
46
  path?: (string | number)[];
45
47
  filter?: (props: SchemaProperty<any>[]) => SchemaProperty<any>[];
46
48
  sort?: string[];
49
+ /**
50
+ * Optional projection for projection-based field management
51
+ */
52
+ projection?: ProjectionModel;
47
53
  lookupComponent?: ComponentLookup;
48
54
  /**
49
55
  * Map of custom renderers for specific properties.
@@ -51,7 +57,7 @@ export declare const FormFields: React.ForwardRefExoticComponent<Omit<{
51
57
  */
52
58
  Custom?: Partial<Record<string, InputComponent>>;
53
59
  onQueryRefOptions?: QueryRefOptions;
54
- }, "className"> & {
60
+ } & Pick<FormFieldProps, "readonly"> & Pick<RefFieldProps, "onQueryRefOptions" | "createOptionLabel" | "createOptionIcon" | "onCreate" | "createSchema" | "createInitialValuePath">, "className"> & {
55
61
  classNames?: import("@dxos/react-ui-types").ClassNameValue;
56
62
  } & React.RefAttributes<HTMLDivElement>>;
57
63
  //# sourceMappingURL=FormContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAmB,MAAM,QAAQ,CAAC;AAEjD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAKxE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAC;IACj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AAE,CAAC;IAC3B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,KAAK,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;IACjE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IACjD,iBAAiB,CAAC,EAAE,eAAe,CAAC;CACrC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAClC,IAAI,CACF,aAAa,EACX,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,UAAU,GACV,cAAc,GACd,wBAAwB,CAC3B,CACJ,CAAC;AAEF,eAAO,MAAM,UAAU;aA/BV,MAAM;YACP,MAAM,CAAC,MAAM,CAAC,GAAG;IACzB;;OAEG;WACI,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;aACjB,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,KAAK,cAAc,CAAC,GAAG,CAAC,EAAE;WACzD,MAAM,EAAE;IACf;;OAEG;iBACU,eAAe;sBACV,eAAe;IACjC;;;OAGG;aACM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;wBAC5B,eAAe;;;wCAuFtC,CAAC"}
@@ -1,5 +1,5 @@
1
- import React, { type RefObject, type FocusEvent, type PropsWithChildren } from 'react';
2
- import { type BaseObject } from '@dxos/echo-schema';
1
+ import React, { type FocusEvent, type PropsWithChildren, type RefObject } from 'react';
2
+ import { type BaseObject } from '@dxos/echo/internal';
3
3
  import { type SimpleType } from '@dxos/effect';
4
4
  import { type FormHandler, type FormOptions } from '../../hooks';
5
5
  type FormContextValue<T extends BaseObject> = FormHandler<T>;
@@ -16,7 +16,7 @@ export type FormInputStateProps = {
16
16
  };
17
17
  export declare const useInputProps: (path?: (string | number)[]) => FormInputStateProps;
18
18
  export declare const FormProvider: ({ children, formRef, autoSave, ...formOptions }: PropsWithChildren<FormOptions<any> & {
19
- formRef?: RefObject<HTMLDivElement>;
19
+ formRef?: RefObject<HTMLDivElement | null>;
20
20
  autoSave?: boolean;
21
21
  }>) => React.JSX.Element;
22
22
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FormContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,KAAK,SAAS,EAId,KAAK,UAAU,EACf,KAAK,iBAAiB,EAEvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAW,MAAM,aAAa,CAAC;AAE1E,KAAK,gBAAgB,CAAC,CAAC,SAAS,UAAU,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAI7D,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,UAAU,OAAK,gBAAgB,CAAC,CAAC,CAEzE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAM,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,KAAG,GAI9D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IACjC,aAAa,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACtD,MAAM,EAAE,CAAC,KAAK,EAAE,UA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KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACtD,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAM,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,KAAG,mBAa9D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,iDAK1B,iBAAiB,CAClB,WAAW,CAAC,GAAG,CAAC,GAAG;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CACF,sBA0CA,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React, { type FC } from 'react';
2
- import { type FormatEnum } from '@dxos/echo-schema';
2
+ import { type FormatEnum } from '@dxos/echo/internal';
3
3
  import { type SimpleType } from '@dxos/effect';
4
4
  import { type FormInputStateProps } from './FormContext';
5
5
  /**
@@ -9,9 +9,12 @@ export type InputProps = {
9
9
  type: SimpleType;
10
10
  format?: FormatEnum;
11
11
  label: string;
12
- disabled?: boolean;
13
12
  placeholder?: string;
14
13
  inputOnly?: boolean;
14
+ /**
15
+ * Specifies the readonly variant: either disabled inputs, elements indicating they are usually editable but currently are not; or `static`, a field’s representation as regular content without signifiers that it is ever editable.
16
+ */
17
+ readonly?: 'disabled-input' | 'static' | false;
15
18
  } & FormInputStateProps;
16
19
  /**
17
20
  * Form input component.
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAK/C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MA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cAAc,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,4BAA4B,gBAAgB,sBAavE,CAAC"}
@@ -1,12 +1,21 @@
1
- import { type SchemaAST } from 'effect';
1
+ import type * as Schema from 'effect/Schema';
2
+ import type * as SchemaAST from 'effect/SchemaAST';
2
3
  import React from 'react';
3
- import { type InputProps } from './Input';
4
+ import { type EchoSchema } from '@dxos/echo/internal';
4
5
  import { type QueryRefOptions } from '../../hooks';
5
- type RefFieldProps = InputProps & {
6
+ import { type InputProps } from './Input';
7
+ export type RefFieldProps = InputProps & {
6
8
  ast?: SchemaAST.AST;
7
9
  array?: boolean;
10
+ createOptionLabel?: [string, {
11
+ ns: string;
12
+ }];
13
+ createOptionIcon?: string;
14
+ onCreate?: (values: any) => void;
15
+ createSchema?: Schema.Schema.AnyNoContext;
16
+ createInitialValuePath?: string;
8
17
  onQueryRefOptions?: QueryRefOptions;
18
+ schema?: EchoSchema;
9
19
  };
10
- export declare const RefField: ({ type, label, disabled, placeholder, inputOnly, array, ast, getValue, onBlur, onQueryRefOptions, onValueChange, ...restInputProps }: RefFieldProps) => React.JSX.Element | null;
11
- export {};
20
+ export declare const RefField: ({ type, label, readonly, placeholder, inputOnly, array, ast, getValue, createOptionLabel, createOptionIcon, onBlur, onCreate, createSchema, createInitialValuePath, onQueryRefOptions, onValueChange, ...restInputProps }: RefFieldProps) => React.JSX.Element | null;
12
21
  //# sourceMappingURL=RefField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefField.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/RefField.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO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,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAOF,eAAO,MAAM,QAAQ,GAAI,2NAkBtB,aAAa,6BA2Jf,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type InputProps } from '../Input';
3
- export declare const GeoPointInput: ({ type, label, disabled, getStatus, getValue, onValueChange, onBlur }: InputProps) => React.JSX.Element;
3
+ export declare const GeoPointInput: ({ type, label, readonly, getStatus, getValue, onValueChange, onBlur }: InputProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=GeoPointInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeoPointInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/custom/GeoPointInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsE,MAAM,OAAO,CAAC;AAO3F,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,aAAa,GAAI,uEAAuE,UAAU,sBA0D9G,CAAC"}
1
+ {"version":3,"file":"GeoPointInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/custom/GeoPointInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsE,MAAM,OAAO,CAAC;AAO3F,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,aAAa,GAAI,uEAAuE,UAAU,sBAkE9G,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type InputProps } from '../Input';
3
- export declare const SelectOptionInput: ({ type, label, disabled, getStatus, getValue, onValueChange }: InputProps) => React.JSX.Element;
3
+ export declare const SelectOptionInput: ({ type, label, readonly, getStatus, getValue, onValueChange }: InputProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=SelectOptionsInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionsInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/custom/SelectOptionsInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyF,MAAM,OAAO,CAAC;AAU9G,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAGxD,eAAO,MAAM,iBAAiB,GAAI,+DAA+D,UAAU,sBA8K1G,CAAC"}
1
+ {"version":3,"file":"SelectOptionsInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/custom/SelectOptionsInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyF,MAAM,OAAO,CAAC;AAU9G,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,iBAAiB,GAAI,+DAA+D,UAAU,sBA8K1G,CAAC"}
@@ -1,7 +1,79 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react-vite';
3
- declare const meta: Meta;
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: any;
6
+ render: () => React.JSX.Element;
7
+ decorators: import("@storybook/react").Decorator[];
8
+ parameters: {
9
+ layout: string;
10
+ translations: [{
11
+ readonly 'en-US': {
12
+ readonly "react-ui-form": {
13
+ readonly 'fields label': "Fields";
14
+ readonly 'hidden fields label': "Hidden Fields";
15
+ readonly 'empty readonly ref field label': "(none)";
16
+ readonly 'button add property': "Add property";
17
+ readonly 'field property label': "Property";
18
+ readonly 'field property placeholder': "Property name";
19
+ readonly 'field format label': "Type";
20
+ readonly 'field path label': "Field path";
21
+ readonly 'add field': "Add field";
22
+ readonly 'delete field': "Delete field";
23
+ readonly 'field limit reached': "Maximum number of fields reached";
24
+ readonly 'boolean input true value': "Yes";
25
+ readonly 'boolean input false value': "No";
26
+ readonly 'show field label': "Show field";
27
+ readonly 'hide field label': "Hide field";
28
+ readonly 'delete field label': "Delete field";
29
+ readonly 'ref field combobox input placeholder': "Search…";
30
+ readonly 'ref field placeholder_one': "Select…";
31
+ readonly 'ref field placeholder_other': "Select items…";
32
+ readonly 'button cancel': "Cancel";
33
+ readonly 'button save': "Save";
34
+ readonly 'format boolean': "Boolean";
35
+ readonly 'format currency': "Currency";
36
+ readonly 'format date': "Date";
37
+ readonly 'format date-time': "DateTime";
38
+ readonly 'format did': "DID";
39
+ readonly 'format duration': "Duration";
40
+ readonly 'format dxn': "DXN";
41
+ readonly 'format email': "Email";
42
+ readonly 'format formula': "Formula";
43
+ readonly 'format hostname': "Hostname";
44
+ readonly 'format integer': "Integer";
45
+ readonly 'format json': "JSON";
46
+ readonly 'format lnglat': "Geopoint";
47
+ readonly 'format markdown': "Markdown";
48
+ readonly 'format percent': "Percent";
49
+ readonly 'format ref': "Reference";
50
+ readonly 'format regex': "RegExp";
51
+ readonly 'format string': "String";
52
+ readonly 'format single-select': "Select";
53
+ readonly 'format multi-select': "Multi-select";
54
+ readonly 'format text': "Long text";
55
+ readonly 'format time': "Time";
56
+ readonly 'format timestamp': "Timestamp";
57
+ readonly 'format user': "User";
58
+ readonly 'format number': "Number";
59
+ readonly 'format uri': "URI";
60
+ readonly 'format url': "URL";
61
+ readonly 'format uuid': "UUID";
62
+ readonly 'latitude label': "Latitude";
63
+ readonly 'longitude label': "Longitude";
64
+ readonly 'select option label': "Label";
65
+ readonly 'select option label placeholder': "Option label";
66
+ readonly 'select option color': "Color";
67
+ readonly 'select option delete': "Delete";
68
+ readonly 'select option add': "Add option";
69
+ readonly 'system schema title': "System record type";
70
+ readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
71
+ };
72
+ };
73
+ }];
74
+ };
75
+ };
4
76
  export default meta;
5
- type Story = StoryObj;
77
+ type Story = StoryObj<typeof meta>;
6
78
  export declare const Default: Story;
7
79
  //# sourceMappingURL=SelectOptionsInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionsInput.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/custom/SelectOptionsInput.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAwCjE,QAAA,MAAM,IAAI,EAAE,IAQX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
1
+ {"version":3,"file":"SelectOptionsInput.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/custom/SelectOptionsInput.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAuCxC,QAAA,MAAM,IAAI;;eAEwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOA,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type InputProps } from '../Input';
3
- export declare const TupleInput: ({ binding, type, label, disabled, getStatus, getValue, onValueChange, onBlur, }: InputProps & {
3
+ export declare const TupleInput: ({ binding, type, label, readonly, getStatus, getValue, onValueChange, onBlur, }: InputProps & {
4
4
  binding: string[];
5
5
  }) => React.JSX.Element;
6
6
  //# sourceMappingURL=TupleInput.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FormatEnum } from '@dxos/echo-schema';
1
+ import { FormatEnum } from '@dxos/echo/internal';
2
2
  import { type SimpleType } from '@dxos/effect';
3
3
  import { type InputComponent } from './Input';
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/factory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,EAAE,SAAS,UAAU,GAAG,MAAM,KAAG,cAAc,GAAG,SAgBnG,CAAC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/factory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,EAAE,SAAS,UAAU,GAAG,MAAM,KAAG,cAAc,GAAG,SAgBnG,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type * as Schema from 'effect/Schema';
2
+ import React from 'react';
3
+ import { type ThemedClassName } from '@dxos/react-ui';
4
+ import { type QueryTag } from '../../hooks';
5
+ export type ObjectPickerContentProps = ThemedClassName<{
6
+ options: QueryTag[];
7
+ selectedIds?: string[];
8
+ createSchema?: Schema.Schema.AnyNoContext;
9
+ createOptionLabel?: [string, {
10
+ ns: string;
11
+ }];
12
+ createOptionIcon?: string;
13
+ createInitialValuePath?: string;
14
+ onSelect: (id: string) => void;
15
+ onCreate?: (values: any) => void;
16
+ }>;
17
+ export declare const ObjectPicker: {
18
+ Root: ({ modal, children, open: propsOpen, onOpenChange: propsOnOpenChange, defaultOpen, ...props }: import("@dxos/react-ui-searchlist").PopoverComboboxRootProps) => React.JSX.Element;
19
+ Trigger: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
+ VirtualTrigger: {
21
+ (props: import("@dxos/react-ui").PopoverVirtualTriggerProps & {
22
+ __scopePopover?: import("@radix-ui/react-context").Scope;
23
+ }): React.JSX.Element;
24
+ displayName: string;
25
+ };
26
+ Content: React.ForwardRefExoticComponent<Omit<{
27
+ options: QueryTag[];
28
+ selectedIds?: string[];
29
+ createSchema?: Schema.Schema.AnyNoContext;
30
+ createOptionLabel?: [string, {
31
+ ns: string;
32
+ }];
33
+ createOptionIcon?: string;
34
+ createInitialValuePath?: string;
35
+ onSelect: (id: string) => void;
36
+ onCreate?: (values: any) => void;
37
+ }, "className"> & {
38
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
39
+ } & React.RefAttributes<HTMLDivElement>>;
40
+ };
41
+ //# sourceMappingURL=ObjectPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAA0F,MAAM,OAAO,CAAC;AAE/G,OAAO,EAAiB,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAGrF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IAC1C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC,CAAC,CAAC;AAoIH,eAAO,MAAM,YAAY;;;;;0BArGb,CAAC;;;;;iBAvCF,QAAQ,EAAE;sBACL,MAAM,EAAE;uBACP,MAAM,CAAC,MAAM,CAAC,YAAY;4BACrB,CAAC,MAAM,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;2BACzB,MAAM;iCACA,MAAM;kBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;mBACnB,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI;;;;CA0IjC,CAAC"}