@dxos/react-ui-form 0.8.4-main.937b3ca → 0.8.4-main.9be5663bfe

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 (113) hide show
  1. package/README.md +0 -1
  2. package/dist/lib/browser/index.mjs +1003 -668
  3. package/dist/lib/browser/index.mjs.map +4 -4
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/node-esm/index.mjs +1003 -668
  6. package/dist/lib/node-esm/index.mjs.map +4 -4
  7. package/dist/lib/node-esm/meta.json +1 -1
  8. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +3 -3
  9. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  10. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +62 -61
  11. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/Form/Form.d.ts +23 -18
  13. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/Form.stories.d.ts +68 -67
  15. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/FormField.d.ts +7 -1
  17. package/dist/types/src/components/Form/FormField.d.ts.map +1 -1
  18. package/dist/types/src/components/Form/FormFieldComponent.d.ts +0 -1
  19. package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts +2 -2
  21. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -1
  22. package/dist/types/src/components/Form/FormFieldSet.d.ts +9 -10
  23. package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -1
  25. package/dist/types/src/components/Form/fields/RefField.d.ts +8 -6
  26. package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -1
  27. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -1
  28. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +62 -61
  29. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -1
  30. package/dist/types/src/components/ObjectForm/ObjectForm.d.ts +9 -0
  31. package/dist/types/src/components/ObjectForm/ObjectForm.d.ts.map +1 -0
  32. package/dist/types/src/components/ObjectForm/index.d.ts +2 -0
  33. package/dist/types/src/components/ObjectForm/index.d.ts.map +1 -0
  34. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +10 -2
  35. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
  36. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +62 -61
  37. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
  38. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts +9 -0
  39. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts.map +1 -0
  40. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts +83 -0
  41. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts.map +1 -0
  42. package/dist/types/src/components/ObjectProperties/index.d.ts +2 -0
  43. package/dist/types/src/components/ObjectProperties/index.d.ts.map +1 -0
  44. package/dist/types/src/components/Settings/Settings.d.ts +35 -0
  45. package/dist/types/src/components/Settings/Settings.d.ts.map +1 -0
  46. package/dist/types/src/components/Settings/Settings.stories.d.ts +82 -0
  47. package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -0
  48. package/dist/types/src/components/Settings/index.d.ts +2 -0
  49. package/dist/types/src/components/Settings/index.d.ts.map +1 -0
  50. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +5 -5
  51. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  52. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +66 -64
  53. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/index.d.ts +3 -1
  55. package/dist/types/src/components/index.d.ts.map +1 -1
  56. package/dist/types/src/components/testing.d.ts.map +1 -1
  57. package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -1
  58. package/dist/types/src/hooks/useKeyHandler.d.ts +2 -1
  59. package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -1
  60. package/dist/types/src/translations.d.ts +62 -61
  61. package/dist/types/src/translations.d.ts.map +1 -1
  62. package/dist/types/src/util/refs.d.ts +1 -0
  63. package/dist/types/src/util/refs.d.ts.map +1 -1
  64. package/dist/types/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +37 -38
  66. package/src/components/FieldEditor/FieldEditor.stories.tsx +7 -8
  67. package/src/components/FieldEditor/FieldEditor.test.tsx +0 -1
  68. package/src/components/FieldEditor/FieldEditor.tsx +3 -4
  69. package/src/components/Form/AUDIT.md +17 -0
  70. package/src/components/Form/Form.stories.tsx +25 -26
  71. package/src/components/Form/Form.tsx +101 -66
  72. package/src/components/Form/FormField.tsx +32 -14
  73. package/src/components/Form/FormFieldComponent.stories.tsx +5 -5
  74. package/src/components/Form/FormFieldComponent.tsx +17 -20
  75. package/src/components/Form/FormFieldSet.tsx +126 -105
  76. package/src/components/Form/fields/ArrayField.tsx +11 -8
  77. package/src/components/Form/fields/GeoPointField.tsx +6 -6
  78. package/src/components/Form/fields/MarkdownField.tsx +1 -1
  79. package/src/components/Form/fields/RefField.tsx +37 -20
  80. package/src/components/Form/fields/SelectField.tsx +1 -1
  81. package/src/components/Form/fields/SelectOptionField.stories.tsx +2 -3
  82. package/src/components/Form/fields/SelectOptionField.tsx +9 -10
  83. package/src/components/Form/fields/TupleField.tsx +1 -1
  84. package/src/components/ObjectForm/ObjectForm.tsx +113 -0
  85. package/src/components/{ControlSection → ObjectForm}/index.ts +1 -1
  86. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +13 -18
  87. package/src/components/ObjectPicker/ObjectPicker.tsx +71 -60
  88. package/src/components/ObjectProperties/ObjectProperties.stories.tsx +63 -0
  89. package/src/components/ObjectProperties/ObjectProperties.tsx +129 -0
  90. package/src/components/ObjectProperties/index.ts +5 -0
  91. package/src/components/Settings/Settings.stories.tsx +55 -0
  92. package/src/components/Settings/Settings.tsx +129 -0
  93. package/src/components/Settings/index.ts +5 -0
  94. package/src/components/ViewEditor/ViewEditor.stories.tsx +36 -33
  95. package/src/components/ViewEditor/ViewEditor.test.tsx +3 -7
  96. package/src/components/ViewEditor/ViewEditor.tsx +117 -85
  97. package/src/components/index.ts +3 -1
  98. package/src/components/testing.tsx +20 -8
  99. package/src/hooks/useFormHandler.ts +42 -18
  100. package/src/hooks/useKeyHandler.tsx +7 -7
  101. package/src/translations.ts +63 -63
  102. package/src/util/refs.ts +7 -3
  103. package/dist/types/src/components/ControlSection/ControlSection.d.ts +0 -23
  104. package/dist/types/src/components/ControlSection/ControlSection.d.ts.map +0 -1
  105. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +0 -87
  106. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +0 -1
  107. package/dist/types/src/components/ControlSection/index.d.ts +0 -2
  108. package/dist/types/src/components/ControlSection/index.d.ts.map +0 -1
  109. package/dist/types/src/components/Form/Form-old.stories.d.ts +0 -131
  110. package/dist/types/src/components/Form/Form-old.stories.d.ts.map +0 -1
  111. package/src/components/ControlSection/ControlSection.stories.tsx +0 -38
  112. package/src/components/ControlSection/ControlSection.tsx +0 -153
  113. package/src/components/Form/Form-old.stories.tsx +0 -314
@@ -10,21 +10,21 @@ declare const Organization: Type.Obj<{
10
10
  export interface Organization extends Schema.Schema.Type<typeof Organization> {
11
11
  }
12
12
  declare const Person: Type.Obj<{
13
+ readonly name: string;
13
14
  readonly address?: {
14
15
  readonly state: string;
15
16
  readonly street: string;
16
17
  readonly city: string;
17
18
  readonly zip: number;
18
19
  } | undefined;
19
- readonly name: string;
20
20
  readonly status?: "active" | "inactive" | undefined;
21
21
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
22
22
  readonly tags?: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
23
- readonly label: string;
24
23
  readonly hue?: string | undefined;
24
+ readonly label: string;
25
25
  }>[] | undefined;
26
- readonly active?: boolean | undefined;
27
26
  readonly ignore?: string | undefined;
27
+ readonly active?: boolean | undefined;
28
28
  readonly employer?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
29
29
  readonly name: string;
30
30
  }> | undefined;
@@ -38,7 +38,7 @@ declare const Person: Type.Obj<{
38
38
  }, Schema.Struct.Fields>;
39
39
  export interface Person extends Schema.Schema.Type<typeof Person> {
40
40
  }
41
- type StoryProps<T extends AnyProperties> = {
41
+ type DefaultStoryProps<T extends AnyProperties> = {
42
42
  debug?: boolean;
43
43
  schema: Schema.Schema<T>;
44
44
  } & FormRootProps<T>;
@@ -48,81 +48,82 @@ 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>({ debug, schema, values: valuesProp, ...props }: StoryProps<T>) => React.JSX.Element;
51
+ render: <T extends AnyProperties = AnyProperties>({ debug, 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 label': "Fields";
59
- readonly 'hidden fields label': "Hidden Fields";
60
- readonly 'empty readonly ref field label': "(none)";
61
- readonly 'add property button label': "Add property";
62
- readonly 'field property label': "Property";
63
- readonly 'field property placeholder': "Property name";
64
- readonly 'field format label': "Type";
65
- readonly 'field path label': "Field path";
66
- readonly 'add field': "Add field";
67
- readonly 'delete field': "Delete field";
68
- readonly 'field limit reached': "Maximum number of fields reached";
69
- readonly 'boolean input true value': "Yes";
70
- readonly 'boolean input false value': "No";
71
- readonly 'show field label': "Show field";
72
- readonly 'hide field label': "Hide field";
73
- readonly 'delete field label': "Delete field";
74
- readonly 'ref field combobox input placeholder': "Search…";
75
- readonly 'ref field placeholder_one': "Select…";
76
- readonly 'ref field placeholder_other': "Select items…";
77
- readonly 'example placeholder': "Example";
78
- readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
79
- readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
80
- readonly 'cancel button label': "Cancel";
81
- readonly 'save button label': "Save";
82
- readonly 'format boolean': "Boolean";
83
- readonly 'format currency': "Currency";
84
- readonly 'format date': "Date";
85
- readonly 'format date-time': "DateTime";
86
- readonly 'format did': "DID";
87
- readonly 'format duration': "Duration";
88
- readonly 'format dxn': "DXN";
89
- readonly 'format email': "Email";
90
- readonly 'format formula': "Formula";
91
- readonly 'format hostname': "Hostname";
92
- readonly 'format integer': "Integer";
93
- readonly 'format json': "JSON";
94
- readonly 'format lnglat': "Geopoint";
95
- readonly 'format markdown': "Markdown";
96
- readonly 'format percent': "Percent";
97
- readonly 'format ref': "Reference";
98
- readonly 'format regex': "RegExp";
99
- readonly 'format string': "String";
100
- readonly 'format single-select': "Select";
101
- readonly 'format multi-select': "Multi-select";
102
- readonly 'format text': "Long text";
103
- readonly 'format time': "Time";
104
- readonly 'format timestamp': "Timestamp";
105
- readonly 'format user': "User";
106
- readonly 'format number': "Number";
107
- readonly 'format uri': "URI";
108
- readonly 'format url': "URL";
109
- readonly 'format uuid': "UUID";
110
- readonly 'latitude label': "Latitude";
111
- readonly 'longitude label': "Longitude";
112
- readonly 'select option label': "Label";
113
- readonly 'select option label placeholder': "Option label";
114
- readonly 'select option color': "Color";
115
- readonly 'select option delete': "Delete";
116
- readonly 'select option add': "Add option";
117
- readonly 'system schema title': "System type";
118
- readonly 'system schema description': "System type: cannot add or remove fields.";
58
+ readonly 'fields.label': "Fields";
59
+ readonly 'hidden-fields.label': "Hidden Fields";
60
+ readonly 'empty-readonly-ref-field.label': "(none)";
61
+ readonly 'add-property-button.label': "Add property";
62
+ readonly 'field-property.label': "Property";
63
+ readonly 'field-property.placeholder': "Property name";
64
+ readonly 'field-format.label': "Type";
65
+ readonly 'field-path.label': "Field path";
66
+ readonly 'add-field.button': "Add field";
67
+ readonly 'boolean-input-true.value': "Yes";
68
+ readonly 'boolean-input-false.value': "No";
69
+ readonly 'show-field.label': "Show field";
70
+ readonly 'hide-field.label': "Hide field";
71
+ readonly 'delete-field.label': "Delete field";
72
+ readonly 'ref-field-combobox-input.placeholder': "Search…";
73
+ readonly 'ref-field.placeholder': "Select…";
74
+ readonly 'ref-field.placeholder_one': "Select…";
75
+ readonly 'ref-field.placeholder_other': "Select items…";
76
+ readonly 'create-option.label': "Create";
77
+ readonly 'add-tag.label': "Add tag";
78
+ readonly 'example.placeholder': "Example";
79
+ readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
80
+ readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
81
+ readonly 'cancel-button.label': "Cancel";
82
+ readonly 'save-button.label': "Save";
83
+ readonly 'format.boolean.label': "Boolean";
84
+ readonly 'format.currency.label': "Currency";
85
+ readonly 'format.date.label': "Date";
86
+ readonly 'format.date-time.label': "DateTime";
87
+ readonly 'format.did.label': "DID";
88
+ readonly 'format.duration.label': "Duration";
89
+ readonly 'format.dxn.label': "DXN";
90
+ readonly 'format.email.label': "Email";
91
+ readonly 'format.formula.label': "Formula";
92
+ readonly 'format.hostname.label': "Hostname";
93
+ readonly 'format.integer.label': "Integer";
94
+ readonly 'format.json.label': "JSON";
95
+ readonly 'format.lnglat.label': "Geopoint";
96
+ readonly 'format.markdown.label': "Markdown";
97
+ readonly 'format.percent.label': "Percent";
98
+ readonly 'format.ref.label': "Reference";
99
+ readonly 'format.regex.label': "RegExp";
100
+ readonly 'format.string.label': "String";
101
+ readonly 'format.single-select.label': "Select";
102
+ readonly 'format.multi-select.label': "Multi-select";
103
+ readonly 'format.text.label': "Long text";
104
+ readonly 'format.time.label': "Time";
105
+ readonly 'format.timestamp.label': "Timestamp";
106
+ readonly 'format.user.label': "User";
107
+ readonly 'format.number.label': "Number";
108
+ readonly 'format.uri.label': "URI";
109
+ readonly 'format.url.label': "URL";
110
+ readonly 'format.uuid.label': "UUID";
111
+ readonly 'latitude.label': "Latitude";
112
+ readonly 'longitude.label': "Longitude";
113
+ readonly 'select-option.label': "Label";
114
+ readonly 'select-option-label.placeholder': "Option label";
115
+ readonly 'select-option-delete.button': "Delete";
116
+ readonly 'select-option-add.button': "Add option";
117
+ readonly 'system-schema.title': "System type";
118
+ readonly 'system-schema.description': "System type: cannot add or remove fields.";
119
+ readonly 'remove.button': "Remove";
119
120
  };
120
121
  };
121
122
  }];
122
123
  };
123
124
  };
124
125
  export default meta;
125
- type Story<T extends AnyProperties> = StoryObj<StoryProps<T>>;
126
+ type Story<T extends AnyProperties> = StoryObj<DefaultStoryProps<T>>;
126
127
  export declare const Default: Story<ExcludeId<typeof Person>>;
127
128
  export declare const Readonly: Story<ExcludeId<typeof Person>>;
128
129
  export declare const Static: Story<ExcludeId<typeof Person>>;
@@ -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,EAAgC,IAAI,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAUzD,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,aAAa,EAAU,MAAM,QAAQ,CAAC;AAE1E,QAAA,MAAM,YAAY;;wBAOjB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC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,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,MAAM,CAAC,CAMlD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,MAAM,CAAC,CAajD,CAAC"}
@@ -29,7 +29,13 @@ export type FormFieldProps = {
29
29
  * Function to lookup custom renderers for specific properties.
30
30
  */
31
31
  fieldProvider?: FormFieldProvider;
32
- } & Pick<FormFieldComponentProps, 'autoFocus' | 'readonly' | 'layout'> & Pick<RefFieldProps, 'createOptionLabel' | 'createOptionIcon' | 'createInitialValuePath' | 'db' | 'schemaHook' | 'getOptions' | 'onCreate'>;
32
+ /**
33
+ * Typename of the ref type that the create props apply to.
34
+ * When set, createOptionLabel/createOptionIcon/createInitialValuePath/createFieldMap/onCreate
35
+ * are only passed to ref fields whose typename matches.
36
+ */
37
+ createTypename?: string;
38
+ } & Pick<FormFieldComponentProps, 'autoFocus' | 'readonly' | 'layout'> & Pick<RefFieldProps, 'createOptionLabel' | 'createOptionIcon' | 'createInitialValuePath' | 'createFieldMap' | 'db' | 'schemaHook' | 'getOptions' | 'onCreate'>;
33
39
  export declare const FormField: {
34
40
  (props: FormFieldProps): React.JSX.Element | null;
35
41
  displayName: string;
@@ -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,KAAkB,MAAM,OAAO,CAAC;AAcvC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,EAOL,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;I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Aa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;;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,YAAY,GACZ,YAAY,GACZ,UAAU,CACb,CAAC;AAEJ,eAAO,MAAM,SAAS;YAAW,cAAc;;CAgK9C,CAAC"}
@@ -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.
@@ -1 +1 @@
1
- {"version":3,"file":"FormFieldComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormFieldComponent.tsx"],"names":[],"mappings":"AAIA,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,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAIlD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,GAAG,IAAI;IACzC,SAAS,EAAE,MAAM,eAAe,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9B,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACjD,aAAa,EAAE,CAAC,IAAI,EAAE,S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KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,uBAAuB,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc;0CAAyC,mBAAmB;;CAYtF,CAAC;AAQF,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,CAC/C,uBAAuB,EACvB,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,CAC3D,GAAG;IACF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,KAAK,SAAS,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,OAAO,qBAAqB,CAAC,CAAC,CAAC,6BAwBnE,CAAC;AAMF,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,KAAK,2BAA2B,GAAG,iBAAiB,CAAC;IACnD,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC5B,CAAC,CAAC;AAEH,qBAAa,sBAAuB,SAAQ,SAAS,CAAC,2BAA2B,EAAE,mBAAmB,CAAC;IACrG,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE;IAItD,KAAK;;MAAwB;IAE7B,kBAAkB,CAAC,SAAS,EAAE,2BAA2B;IAMzD,MAAM;IAaf,OAAO,CAAC,UAAU;CAGnB"}
@@ -1,8 +1,8 @@
1
1
  import { type Meta, type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
3
  import { type FormFieldComponentProps } from './FormFieldComponent';
4
- declare const Component: ({ type, placeholder, readonly, onBlur, onValueChange, ...props }: FormFieldComponentProps<string>) => React.JSX.Element;
5
- declare const meta: Meta<typeof Component>;
4
+ declare const DefaultStory: ({ type, placeholder, readonly, onBlur, onValueChange, ...props }: FormFieldComponentProps<string>) => React.JSX.Element;
5
+ declare const meta: Meta<typeof DefaultStory>;
6
6
  export default meta;
7
7
  type Story = StoryObj<typeof meta>;
8
8
  export declare const Default: Story;
@@ -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,SAAS,GAAI,kEAOhB,uBAAuB,CAAC,MAAM,CAAC,sBAsBjC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAOhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
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,GAAI,kEAOnB,uBAAuB,CAAC,MAAM,CAAC,sBAsBjC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAOnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
@@ -1,19 +1,18 @@
1
1
  import React from 'react';
2
2
  import { type AnyProperties } from '@dxos/echo/internal';
3
3
  import { type SchemaProperty } from '@dxos/effect';
4
- import { type ThemedClassName } from '@dxos/react-ui';
5
4
  import { type FormHandlerProps } from '../../hooks';
6
5
  import { type FormFieldProps } from './FormField';
7
- export type FormFieldSetProps<T extends AnyProperties> = ThemedClassName<{
6
+ export type FormFieldSetProps<T extends AnyProperties> = {
8
7
  label?: string;
9
- exclude?: (props: SchemaProperty[]) => SchemaProperty[];
10
8
  sort?: string[];
11
- } & Pick<FormHandlerProps<T>, 'schema'> & Pick<FormFieldProps, 'path' | 'autoFocus' | 'readonly' | 'layout' | 'projection' | 'fieldMap' | 'fieldProvider' | 'createOptionLabel' | 'createOptionIcon' | 'createInitialValuePath' | 'db' | 'schemaHook' | 'getOptions' | 'onCreate'>>;
12
- export declare const FormFieldSet: React.ForwardRefExoticComponent<Omit<{
13
- label?: string;
14
9
  exclude?: (props: SchemaProperty[]) => SchemaProperty[];
15
- sort?: string[];
16
- } & Pick<FormHandlerProps<any>, "schema"> & Pick<FormFieldProps, "path" | "autoFocus" | "readonly" | "layout" | "createOptionLabel" | "createOptionIcon" | "createInitialValuePath" | "onCreate" | "db" | "schemaHook" | "getOptions" | "fieldProvider" | "projection" | "fieldMap">, "className"> & {
17
- classNames?: import("@dxos/ui-types").ClassNameValue;
18
- } & React.RefAttributes<HTMLDivElement>>;
10
+ } & Pick<FormHandlerProps<T>, 'schema'> & Pick<FormFieldProps, 'path' | 'autoFocus' | 'readonly' | 'layout' | 'projection' | 'fieldMap' | 'fieldProvider' | 'createTypename' | 'createOptionLabel' | 'createOptionIcon' | 'createInitialValuePath' | 'createFieldMap' | 'db' | 'schemaHook' | 'getOptions' | 'onCreate'>;
11
+ /**
12
+ * Renders a set of form fields derived from a schema object.
13
+ */
14
+ export declare const FormFieldSet: {
15
+ ({ label, schema, readonly, path, sort, exclude, projection, layout, ...props }: FormFieldSetProps<any>): React.JSX.Element | null;
16
+ displayName: string;
17
+ };
19
18
  //# sourceMappingURL=FormFieldSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormFieldSet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormFieldSet.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIpD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7D,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,aAAa,IAAI,eAAe,CACtE;IACE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,CAAC;IACxD,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,GACrC,IAAI,CACF,cAAc,EACZ,MAAM,GACN,WAAW,GACX,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,eAAe,GACf,mBAAmB,GACnB,kBAAkB,GAClB,wBAAwB,GACxB,IAAI,GACJ,YAAY,GACZ,YAAY,GACZ,UAAU,CACb,CACJ,CAAC;AAEF,eAAO,MAAM,YAAY;YAvBb,MAAM;cACJ,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE;WAChD,MAAM,EAAE;;;wCAmGlB,CAAC"}
1
+ {"version":3,"file":"FormFieldSet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormFieldSet.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAK7D,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,aAAa,IAAI;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,CAAC;CACzD,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,GACrC,IAAI,CACF,cAAc,EACZ,MAAM,GACN,WAAW,GACX,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,wBAAwB,GACxB,gBAAgB,GAChB,IAAI,GACJ,YAAY,GACZ,YAAY,GACZ,UAAU,CACb,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,YAAY;qFAUtB,iBAAiB,CAAC,GAAG,CAAC;;CA8BxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/ArrayField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAgC,MAAM,OAAO,CAAC;AAQrD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,mBAAmB,CAAC;CACjC,GAAG,cAAc,CAAC;AAEnB,eAAO,MAAM,UAAU;gFAQpB,eAAe;;CA4FjB,CAAC;AAIF;;;GAGG;AAEH,eAAO,MAAM,eAAe,GAAI,MAAM,SAAS,CAAC,GAAG,KAAG,GAmBrD,CAAC"}
1
+ {"version":3,"file":"ArrayField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/ArrayField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAsB,MAAM,OAAO,CAAC;AAQ3C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,mBAAmB,CAAC;CACjC,GAAG,cAAc,CAAC;AAEnB,eAAO,MAAM,UAAU;gFAQpB,eAAe;;CA4FjB,CAAC;AAIF;;;GAGG;AAEH,eAAO,MAAM,eAAe,GAAI,MAAM,SAAS,CAAC,GAAG,KAAG,GAsBrD,CAAC"}
@@ -1,14 +1,16 @@
1
- import '@dxos/lit-ui/dx-tag-picker.pcss';
2
1
  import React from 'react';
3
- import { type Database, Entity, type Type } from '@dxos/echo';
2
+ import '@dxos/lit-ui/dx-tag-picker.pcss';
3
+ import { type Database, Entity, Type } from '@dxos/echo';
4
4
  import { type ObjectPickerContentProps, type RefOption } from '../../ObjectPicker';
5
5
  import { type FormFieldComponentProps } from '../FormFieldComponent';
6
- export type RefFieldProps = FormFieldComponentProps & Pick<ObjectPickerContentProps, 'createOptionLabel' | 'createOptionIcon' | 'createInitialValuePath'> & {
6
+ export type RefFieldProps = FormFieldComponentProps & Pick<ObjectPickerContentProps, 'createOptionLabel' | 'createOptionIcon' | 'createInitialValuePath' | 'createFieldMap'> & {
7
7
  db?: Database.Database;
8
8
  resultsHook?: (db?: Database.Database, typename?: string) => Entity.Any[];
9
- schemaHook?: (db?: Database.Database, typename?: string) => Type.Entity.Any;
10
- getOptions?: (objects: Entity.Any[]) => RefOption[];
11
- onCreate?: (schema: Type.Entity.Any, values: any) => void;
9
+ schemaHook?: (db?: Database.Database, typename?: string) => Type.AnyEntity;
10
+ getOptions?: (objects: Entity.Any[], options?: {
11
+ parentLabel?: boolean;
12
+ }) => RefOption[];
13
+ onCreate?: (schema: Type.AnyEntity, values: any) => void;
12
14
  };
13
15
  export declare const RefField: (props: RefFieldProps) => React.JSX.Element | null;
14
16
  //# sourceMappingURL=RefField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/RefField.tsx"],"names":[],"mappings":"AAIA,OAAO,iCAAiC,CAAC;AAEzC,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,EAAe,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAU3E,OAAO,EAAgB,KAAK,wBAAwB,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEjG,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,uBAAuB,CAAC;AAiBrF,MAAM,MAAM,aAAa,GAAG,uBAAuB,GACjD,IAAI,CAAC,wBAAwB,EAAE,mBAAmB,GAAG,kBAAkB,GAAG,wBAAwB,CAAC,GAAG;IACpG,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACvB,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,EAAE,CAAC;IAC1E,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,K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C,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,SAAS,EAAE,CAAC;IACzF,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEJ,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,6BA2I5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/SelectOptionField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyF,MAAM,OAAO,CAAC;AAE9G,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,uBAAuB,CAAC;AAErF,eAAO,MAAM,iBAAiB,GAAI,gEAO/B,uBAAuB,CAAC,YAAY,EAAE,GAAG,SAAS,CAAC,sBA6KrD,CAAC"}
1
+ {"version":3,"file":"SelectOptionField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/SelectOptionField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyF,MAAM,OAAO,CAAC;AAE9G,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,uBAAuB,CAAC;AAErF,eAAO,MAAM,iBAAiB,GAAI,gEAO/B,uBAAuB,CAAC,YAAY,EAAE,GAAG,SAAS,CAAC,sBA4KrD,CAAC"}
@@ -10,67 +10,68 @@ declare const meta: {
10
10
  translations: [{
11
11
  readonly 'en-US': {
12
12
  readonly "@dxos/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 'add property button label': "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 'example placeholder': "Example";
33
- readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
34
- readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
35
- readonly 'cancel button label': "Cancel";
36
- readonly 'save button label': "Save";
37
- readonly 'format boolean': "Boolean";
38
- readonly 'format currency': "Currency";
39
- readonly 'format date': "Date";
40
- readonly 'format date-time': "DateTime";
41
- readonly 'format did': "DID";
42
- readonly 'format duration': "Duration";
43
- readonly 'format dxn': "DXN";
44
- readonly 'format email': "Email";
45
- readonly 'format formula': "Formula";
46
- readonly 'format hostname': "Hostname";
47
- readonly 'format integer': "Integer";
48
- readonly 'format json': "JSON";
49
- readonly 'format lnglat': "Geopoint";
50
- readonly 'format markdown': "Markdown";
51
- readonly 'format percent': "Percent";
52
- readonly 'format ref': "Reference";
53
- readonly 'format regex': "RegExp";
54
- readonly 'format string': "String";
55
- readonly 'format single-select': "Select";
56
- readonly 'format multi-select': "Multi-select";
57
- readonly 'format text': "Long text";
58
- readonly 'format time': "Time";
59
- readonly 'format timestamp': "Timestamp";
60
- readonly 'format user': "User";
61
- readonly 'format number': "Number";
62
- readonly 'format uri': "URI";
63
- readonly 'format url': "URL";
64
- readonly 'format uuid': "UUID";
65
- readonly 'latitude label': "Latitude";
66
- readonly 'longitude label': "Longitude";
67
- readonly 'select option label': "Label";
68
- readonly 'select option label placeholder': "Option label";
69
- readonly 'select option color': "Color";
70
- readonly 'select option delete': "Delete";
71
- readonly 'select option add': "Add option";
72
- readonly 'system schema title': "System type";
73
- readonly 'system schema description': "System type: cannot add or remove fields.";
13
+ readonly 'fields.label': "Fields";
14
+ readonly 'hidden-fields.label': "Hidden Fields";
15
+ readonly 'empty-readonly-ref-field.label': "(none)";
16
+ readonly 'add-property-button.label': "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.button': "Add field";
22
+ readonly 'boolean-input-true.value': "Yes";
23
+ readonly 'boolean-input-false.value': "No";
24
+ readonly 'show-field.label': "Show field";
25
+ readonly 'hide-field.label': "Hide field";
26
+ readonly 'delete-field.label': "Delete field";
27
+ readonly 'ref-field-combobox-input.placeholder': "Search…";
28
+ readonly 'ref-field.placeholder': "Select…";
29
+ readonly 'ref-field.placeholder_one': "Select…";
30
+ readonly 'ref-field.placeholder_other': "Select items…";
31
+ readonly 'create-option.label': "Create";
32
+ readonly 'add-tag.label': "Add tag";
33
+ readonly 'example.placeholder': "Example";
34
+ readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
35
+ readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
36
+ readonly 'cancel-button.label': "Cancel";
37
+ readonly 'save-button.label': "Save";
38
+ readonly 'format.boolean.label': "Boolean";
39
+ readonly 'format.currency.label': "Currency";
40
+ readonly 'format.date.label': "Date";
41
+ readonly 'format.date-time.label': "DateTime";
42
+ readonly 'format.did.label': "DID";
43
+ readonly 'format.duration.label': "Duration";
44
+ readonly 'format.dxn.label': "DXN";
45
+ readonly 'format.email.label': "Email";
46
+ readonly 'format.formula.label': "Formula";
47
+ readonly 'format.hostname.label': "Hostname";
48
+ readonly 'format.integer.label': "Integer";
49
+ readonly 'format.json.label': "JSON";
50
+ readonly 'format.lnglat.label': "Geopoint";
51
+ readonly 'format.markdown.label': "Markdown";
52
+ readonly 'format.percent.label': "Percent";
53
+ readonly 'format.ref.label': "Reference";
54
+ readonly 'format.regex.label': "RegExp";
55
+ readonly 'format.string.label': "String";
56
+ readonly 'format.single-select.label': "Select";
57
+ readonly 'format.multi-select.label': "Multi-select";
58
+ readonly 'format.text.label': "Long text";
59
+ readonly 'format.time.label': "Time";
60
+ readonly 'format.timestamp.label': "Timestamp";
61
+ readonly 'format.user.label': "User";
62
+ readonly 'format.number.label': "Number";
63
+ readonly 'format.uri.label': "URI";
64
+ readonly 'format.url.label': "URL";
65
+ readonly 'format.uuid.label': "UUID";
66
+ readonly 'latitude.label': "Latitude";
67
+ readonly 'longitude.label': "Longitude";
68
+ readonly 'select-option.label': "Label";
69
+ readonly 'select-option-label.placeholder': "Option label";
70
+ readonly 'select-option-delete.button': "Delete";
71
+ readonly 'select-option-add.button': "Add option";
72
+ readonly 'system-schema.title': "System type";
73
+ readonly 'system-schema.description': "System type: cannot add or remove fields.";
74
+ readonly 'remove.button': "Remove";
74
75
  };
75
76
  };
76
77
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionField.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/SelectOptionField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0CxC,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
+ {"version":3,"file":"SelectOptionField.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/SelectOptionField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAyCxC,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"}
@@ -0,0 +1,9 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import React from 'react';
3
+ import { Obj } from '@dxos/echo';
4
+ export type ObjectFormProps = {
5
+ schema: Schema.Schema.AnyNoContext;
6
+ object: Obj.Unknown;
7
+ };
8
+ export declare const ObjectForm: ({ object, schema }: ObjectFormProps) => React.JSX.Element;
9
+ //# sourceMappingURL=ObjectForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectForm/ObjectForm.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAO,GAAG,EAAkB,MAAM,YAAY,CAAC;AAStD,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACnC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC;CACrB,CAAC;AAeF,eAAO,MAAM,UAAU,GAAI,oBAAoB,eAAe,sBA8E7D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ObjectForm';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectForm/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type * as Schema from 'effect/Schema';
2
2
  import React from 'react';
3
3
  import { type Palette, type ThemedClassName } from '@dxos/react-ui';
4
+ import { type FormFieldMap } from '../Form/FormFieldComponent';
4
5
  export type RefOption = {
5
6
  id: string;
6
7
  label: string;
@@ -15,12 +16,18 @@ export type ObjectPickerContentProps = ThemedClassName<{
15
16
  createOptionIcon?: string;
16
17
  createSchema?: Schema.Schema.AnyNoContext;
17
18
  createInitialValuePath?: string;
19
+ createFieldMap?: FormFieldMap;
18
20
  onCreate?: (values: any) => void;
19
21
  onSelect: (id: string) => void;
20
22
  }>;
21
23
  export declare const ObjectPicker: {
22
- Root: ({ modal, modalId: propsModalId, open: propsOpen, defaultOpen, onOpenChange: propsOnOpenChange, value: propsValue, defaultValue, onValueChange: propsOnValueChange, placeholder, children, }: import("@dxos/react-ui-searchlist").ComboboxRootProps) => React.JSX.Element;
23
- Portal: React.FC<import("@dxos/react-ui").PopoverPortalProps>;
24
+ Root: ({ modal, modalId: propsModalId, open: propsOpen, defaultOpen, onOpenChange: propsOnOpenChange, value: propsValue, defaultValue, onValueChange: propsOnValueChange, placeholder, children, }: import("@dxos/react-ui-search").ComboboxRootProps) => React.JSX.Element;
25
+ Portal: {
26
+ (props: import("@dxos/react-ui").PopoverPortalProps & {
27
+ __scopePopover?: import("@radix-ui/react-context").Scope;
28
+ }): React.JSX.Element;
29
+ displayName: string;
30
+ };
24
31
  Trigger: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
25
32
  VirtualTrigger: {
26
33
  (props: import("@dxos/react-ui").PopoverVirtualTriggerProps & {
@@ -37,6 +44,7 @@ export declare const ObjectPicker: {
37
44
  createOptionIcon?: string;
38
45
  createSchema?: Schema.Schema.AnyNoContext;
39
46
  createInitialValuePath?: string;
47
+ createFieldMap?: FormFieldMap;
40
48
  onCreate?: (values: any) => void;
41
49
  onSelect: (id: string) => void;
42
50
  }, "className"> & {
@@ -1 +1 @@
1
- {"version":3,"file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