@dxos/react-ui-form 0.8.4-main.3f58842 → 0.8.4-main.422d1c7879

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 (235) hide show
  1. package/README.md +0 -1
  2. package/dist/lib/browser/index.mjs +2856 -2098
  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 +2856 -2098
  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 +8 -7
  9. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  10. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +84 -5
  11. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/Form/Form.d.ts +93 -25
  13. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/Form.stories.d.ts +130 -56
  15. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/FormField.d.ts +43 -0
  17. package/dist/types/src/components/Form/FormField.d.ts.map +1 -0
  18. package/dist/types/src/components/Form/FormFieldComponent.d.ts +80 -0
  19. package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -0
  20. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts +9 -0
  21. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -0
  22. package/dist/types/src/components/Form/FormFieldSet.d.ts +18 -0
  23. package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -0
  24. package/dist/types/src/components/Form/fields/ArrayField.d.ts +18 -0
  25. package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -0
  26. package/dist/types/src/components/Form/fields/BooleanField.d.ts +4 -0
  27. package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -0
  28. package/dist/types/src/components/Form/fields/GeoPointField.d.ts +5 -0
  29. package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -0
  30. package/dist/types/src/components/Form/fields/MarkdownField.d.ts +11 -0
  31. package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -0
  32. package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts +83 -0
  33. package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts.map +1 -0
  34. package/dist/types/src/components/Form/fields/NumberField.d.ts +4 -0
  35. package/dist/types/src/components/Form/fields/NumberField.d.ts.map +1 -0
  36. package/dist/types/src/components/Form/fields/RefField.d.ts +22 -0
  37. package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -0
  38. package/dist/types/src/components/Form/fields/SelectField.d.ts +10 -0
  39. package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -0
  40. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts +5 -0
  41. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -0
  42. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +84 -0
  43. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -0
  44. package/dist/types/src/components/Form/fields/TextAreaField.d.ts +4 -0
  45. package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -0
  46. package/dist/types/src/components/Form/fields/TextField.d.ts +4 -0
  47. package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -0
  48. package/dist/types/src/components/Form/fields/TupleField.d.ts +6 -0
  49. package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -0
  50. package/dist/types/src/components/Form/fields/index.d.ts +12 -0
  51. package/dist/types/src/components/Form/fields/index.d.ts.map +1 -0
  52. package/dist/types/src/components/Form/index.d.ts +2 -4
  53. package/dist/types/src/components/Form/index.d.ts.map +1 -1
  54. package/dist/types/src/components/ObjectForm/ObjectForm.d.ts +9 -0
  55. package/dist/types/src/components/ObjectForm/ObjectForm.d.ts.map +1 -0
  56. package/dist/types/src/components/ObjectForm/index.d.ts +2 -0
  57. package/dist/types/src/components/ObjectForm/index.d.ts.map +1 -0
  58. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +68 -0
  59. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -0
  60. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +87 -0
  61. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -0
  62. package/dist/types/src/components/ObjectPicker/index.d.ts +2 -0
  63. package/dist/types/src/components/ObjectPicker/index.d.ts.map +1 -0
  64. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts +9 -0
  65. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts.map +1 -0
  66. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts +127 -0
  67. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts.map +1 -0
  68. package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts +2 -0
  69. package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts.map +1 -0
  70. package/dist/types/src/components/ObjectProperties/index.d.ts +2 -0
  71. package/dist/types/src/components/ObjectProperties/index.d.ts.map +1 -0
  72. package/dist/types/src/components/Settings/Settings.d.ts +43 -0
  73. package/dist/types/src/components/Settings/Settings.d.ts.map +1 -0
  74. package/dist/types/src/components/Settings/Settings.stories.d.ts +84 -0
  75. package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -0
  76. package/dist/types/src/components/Settings/SettingsFieldSet.d.ts +38 -0
  77. package/dist/types/src/components/Settings/SettingsFieldSet.d.ts.map +1 -0
  78. package/dist/types/src/components/Settings/SettingsItem.d.ts +17 -0
  79. package/dist/types/src/components/Settings/SettingsItem.d.ts.map +1 -0
  80. package/dist/types/src/components/Settings/index.d.ts +3 -0
  81. package/dist/types/src/components/Settings/index.d.ts.map +1 -0
  82. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +22 -10
  83. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  84. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +86 -8
  85. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  86. package/dist/types/src/components/index.d.ts +4 -2
  87. package/dist/types/src/components/index.d.ts.map +1 -1
  88. package/dist/types/src/components/testing.d.ts +5 -4
  89. package/dist/types/src/components/testing.d.ts.map +1 -1
  90. package/dist/types/src/hooks/index.d.ts +2 -3
  91. package/dist/types/src/hooks/index.d.ts.map +1 -1
  92. package/dist/types/src/hooks/useFormHandler.d.ts +82 -0
  93. package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -0
  94. package/dist/types/src/hooks/useKeyHandler.d.ts +7 -0
  95. package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -0
  96. package/dist/types/src/translations.d.ts +65 -54
  97. package/dist/types/src/translations.d.ts.map +1 -1
  98. package/dist/types/src/util/field-type.d.ts +19 -0
  99. package/dist/types/src/util/field-type.d.ts.map +1 -0
  100. package/dist/types/src/util/field.d.ts +3 -3
  101. package/dist/types/src/util/field.d.ts.map +1 -1
  102. package/dist/types/src/util/formatting.d.ts +2 -2
  103. package/dist/types/src/util/formatting.d.ts.map +1 -1
  104. package/dist/types/src/util/index.d.ts +2 -1
  105. package/dist/types/src/util/index.d.ts.map +1 -1
  106. package/dist/types/src/util/properties.d.ts +7 -0
  107. package/dist/types/src/util/properties.d.ts.map +1 -0
  108. package/dist/types/src/util/refs.d.ts +3 -3
  109. package/dist/types/src/util/refs.d.ts.map +1 -1
  110. package/dist/types/tsconfig.tsbuildinfo +1 -1
  111. package/package.json +48 -46
  112. package/src/components/FieldEditor/FieldEditor.stories.tsx +50 -32
  113. package/src/components/FieldEditor/FieldEditor.test.tsx +2 -2
  114. package/src/components/FieldEditor/FieldEditor.tsx +87 -83
  115. package/src/components/Form/AUDIT.md +17 -0
  116. package/src/components/Form/Form.stories.tsx +144 -221
  117. package/src/components/Form/Form.tsx +375 -95
  118. package/src/components/Form/FormField.tsx +305 -0
  119. package/src/components/Form/FormFieldComponent.stories.tsx +65 -0
  120. package/src/components/Form/FormFieldComponent.tsx +174 -0
  121. package/src/components/Form/FormFieldSet.tsx +144 -0
  122. package/src/components/Form/README.md +3 -0
  123. package/src/components/Form/fields/ArrayField.tsx +158 -0
  124. package/src/components/Form/fields/BooleanField.tsx +22 -0
  125. package/src/components/Form/fields/GeoPointField.tsx +120 -0
  126. package/src/components/Form/fields/MarkdownField.stories.tsx +151 -0
  127. package/src/components/Form/fields/MarkdownField.tsx +167 -0
  128. package/src/components/Form/fields/NumberField.tsx +39 -0
  129. package/src/components/Form/fields/RefField.tsx +228 -0
  130. package/src/components/Form/fields/SelectField.tsx +65 -0
  131. package/src/components/Form/fields/SelectOptionField.stories.tsx +65 -0
  132. package/src/components/Form/{custom/SelectOptionsInput.tsx → fields/SelectOptionField.tsx} +49 -45
  133. package/src/components/Form/fields/TextAreaField.tsx +38 -0
  134. package/src/components/Form/fields/TextField.tsx +38 -0
  135. package/src/components/Form/{custom/TupleInput.tsx → fields/TupleField.tsx} +17 -10
  136. package/src/components/Form/fields/index.ts +15 -0
  137. package/src/components/Form/index.ts +3 -4
  138. package/src/components/ObjectForm/ObjectForm.tsx +113 -0
  139. package/src/components/{ControlSection → ObjectForm}/index.ts +1 -1
  140. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +209 -0
  141. package/src/components/ObjectPicker/ObjectPicker.tsx +193 -0
  142. package/src/components/ObjectPicker/index.ts +5 -0
  143. package/src/components/ObjectProperties/ObjectProperties.stories.tsx +361 -0
  144. package/src/components/ObjectProperties/ObjectProperties.test.tsx +101 -0
  145. package/src/components/ObjectProperties/ObjectProperties.tsx +140 -0
  146. package/src/components/ObjectProperties/index.ts +5 -0
  147. package/src/components/Settings/Settings.stories.tsx +103 -0
  148. package/src/components/Settings/Settings.tsx +81 -0
  149. package/src/components/Settings/SettingsFieldSet.tsx +211 -0
  150. package/src/components/Settings/SettingsItem.tsx +62 -0
  151. package/src/components/Settings/index.ts +6 -0
  152. package/src/components/ViewEditor/ViewEditor.stories.tsx +140 -63
  153. package/src/components/ViewEditor/ViewEditor.test.tsx +16 -18
  154. package/src/components/ViewEditor/ViewEditor.tsx +353 -203
  155. package/src/components/index.ts +4 -3
  156. package/src/components/testing.tsx +31 -12
  157. package/src/hooks/index.ts +2 -3
  158. package/src/hooks/useFormHandler.ts +380 -0
  159. package/src/hooks/useKeyHandler.tsx +37 -0
  160. package/src/translations.ts +70 -58
  161. package/src/util/field-type.ts +57 -0
  162. package/src/util/field.ts +33 -43
  163. package/src/util/formatting.ts +22 -22
  164. package/src/util/index.ts +2 -1
  165. package/src/util/properties.ts +18 -0
  166. package/src/util/refs.ts +17 -19
  167. package/dist/types/src/components/ControlSection/ControlSection.d.ts +0 -23
  168. package/dist/types/src/components/ControlSection/ControlSection.d.ts.map +0 -1
  169. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +0 -8
  170. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +0 -1
  171. package/dist/types/src/components/ControlSection/index.d.ts +0 -2
  172. package/dist/types/src/components/ControlSection/index.d.ts.map +0 -1
  173. package/dist/types/src/components/Form/ArrayField.d.ts +0 -16
  174. package/dist/types/src/components/Form/ArrayField.d.ts.map +0 -1
  175. package/dist/types/src/components/Form/Defaults.d.ts +0 -14
  176. package/dist/types/src/components/Form/Defaults.d.ts.map +0 -1
  177. package/dist/types/src/components/Form/FormActions.d.ts +0 -9
  178. package/dist/types/src/components/Form/FormActions.d.ts.map +0 -1
  179. package/dist/types/src/components/Form/FormContent.d.ts +0 -57
  180. package/dist/types/src/components/Form/FormContent.d.ts.map +0 -1
  181. package/dist/types/src/components/Form/FormContext.d.ts +0 -23
  182. package/dist/types/src/components/Form/FormContext.d.ts.map +0 -1
  183. package/dist/types/src/components/Form/Input.d.ts +0 -26
  184. package/dist/types/src/components/Form/Input.d.ts.map +0 -1
  185. package/dist/types/src/components/Form/RefField.d.ts +0 -12
  186. package/dist/types/src/components/Form/RefField.d.ts.map +0 -1
  187. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts +0 -4
  188. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts.map +0 -1
  189. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts +0 -4
  190. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts.map +0 -1
  191. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts +0 -7
  192. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +0 -1
  193. package/dist/types/src/components/Form/custom/TupleInput.d.ts +0 -6
  194. package/dist/types/src/components/Form/custom/TupleInput.d.ts.map +0 -1
  195. package/dist/types/src/components/Form/custom/index.d.ts +0 -4
  196. package/dist/types/src/components/Form/custom/index.d.ts.map +0 -1
  197. package/dist/types/src/components/Form/factory.d.ts +0 -8
  198. package/dist/types/src/components/Form/factory.d.ts.map +0 -1
  199. package/dist/types/src/components/deprecated/Form.d.ts +0 -15
  200. package/dist/types/src/components/deprecated/Form.d.ts.map +0 -1
  201. package/dist/types/src/components/deprecated/Form.stories.d.ts +0 -13
  202. package/dist/types/src/components/deprecated/Form.stories.d.ts.map +0 -1
  203. package/dist/types/src/components/deprecated/FormInput.d.ts +0 -16
  204. package/dist/types/src/components/deprecated/FormInput.d.ts.map +0 -1
  205. package/dist/types/src/components/deprecated/index.d.ts +0 -2
  206. package/dist/types/src/components/deprecated/index.d.ts.map +0 -1
  207. package/dist/types/src/hooks/useForm.d.ts +0 -67
  208. package/dist/types/src/hooks/useForm.d.ts.map +0 -1
  209. package/dist/types/src/hooks/useQueryRefOptions.d.ts +0 -23
  210. package/dist/types/src/hooks/useQueryRefOptions.d.ts.map +0 -1
  211. package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts +0 -8
  212. package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts.map +0 -1
  213. package/dist/types/src/util/schema.d.ts +0 -3
  214. package/dist/types/src/util/schema.d.ts.map +0 -1
  215. package/src/components/ControlSection/ControlSection.stories.tsx +0 -41
  216. package/src/components/ControlSection/ControlSection.tsx +0 -139
  217. package/src/components/Form/ArrayField.tsx +0 -124
  218. package/src/components/Form/Defaults.tsx +0 -203
  219. package/src/components/Form/FormActions.tsx +0 -53
  220. package/src/components/Form/FormContent.tsx +0 -240
  221. package/src/components/Form/FormContext.tsx +0 -110
  222. package/src/components/Form/Input.tsx +0 -51
  223. package/src/components/Form/RefField.tsx +0 -213
  224. package/src/components/Form/custom/GeoPointInput.tsx +0 -72
  225. package/src/components/Form/custom/SelectOptionsInput.stories.tsx +0 -61
  226. package/src/components/Form/custom/index.ts +0 -7
  227. package/src/components/Form/factory.tsx +0 -31
  228. package/src/components/deprecated/Form.stories.tsx +0 -62
  229. package/src/components/deprecated/Form.tsx +0 -119
  230. package/src/components/deprecated/FormInput.tsx +0 -71
  231. package/src/components/deprecated/index.ts +0 -5
  232. package/src/hooks/useForm.ts +0 -291
  233. package/src/hooks/useQueryRefOptions.ts +0 -53
  234. package/src/hooks/useRefQueryLookupHandler.ts +0 -39
  235. package/src/util/schema.ts +0 -14
@@ -0,0 +1,84 @@
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 "@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 'field-property.label': "Property";
17
+ readonly 'field-property.placeholder': "Property name";
18
+ readonly 'field-format.label': "Type";
19
+ readonly 'field-path.label': "Field path";
20
+ readonly 'add-item.button': "Add item";
21
+ readonly 'add-property-button.label': "Add property";
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 'create-option.label': "Create";
28
+ readonly 'add-tag.label': "Add tag";
29
+ readonly 'ref-field-combobox-input.placeholder': "Search…";
30
+ readonly 'ref-field.placeholder': "Select…";
31
+ readonly 'ref-field.placeholder_one': "Select…";
32
+ readonly 'ref-field.placeholder_other': "Select items…";
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 'create-text.label': "Create text";
39
+ readonly 'format.boolean.label': "Boolean";
40
+ readonly 'format.currency.label': "Currency";
41
+ readonly 'format.date.label': "Date";
42
+ readonly 'format.date-time.label': "DateTime";
43
+ readonly 'format.did.label': "DID";
44
+ readonly 'format.duration.label': "Duration";
45
+ readonly 'format.dxn.label': "DXN";
46
+ readonly 'format.email.label': "Email";
47
+ readonly 'format.formula.label': "Formula";
48
+ readonly 'format.hostname.label': "Hostname";
49
+ readonly 'format.integer.label': "Integer";
50
+ readonly 'format.json.label': "JSON";
51
+ readonly 'format.lnglat.label': "Geopoint";
52
+ readonly 'format.markdown.label': "Markdown";
53
+ readonly 'format.percent.label': "Percent";
54
+ readonly 'format.ref.label': "Reference";
55
+ readonly 'format.regex.label': "RegExp";
56
+ readonly 'format.string.label': "String";
57
+ readonly 'format.single-select.label': "Select";
58
+ readonly 'format.multi-select.label': "Multi-select";
59
+ readonly 'format.text.label': "Long text";
60
+ readonly 'format.time.label': "Time";
61
+ readonly 'format.timestamp.label': "Timestamp";
62
+ readonly 'format.user.label': "User";
63
+ readonly 'format.number.label': "Number";
64
+ readonly 'format.uri.label': "URI";
65
+ readonly 'format.url.label': "URL";
66
+ readonly 'format.uuid.label': "UUID";
67
+ readonly 'latitude.label': "Latitude";
68
+ readonly 'longitude.label': "Longitude";
69
+ readonly 'select-option.label': "Label";
70
+ readonly 'select-option-label.placeholder': "Option label";
71
+ readonly 'select-option-delete.button': "Delete";
72
+ readonly 'select-option-add.button': "Add option";
73
+ readonly 'system-schema.title': "System type";
74
+ readonly 'system-schema.description': "System type: cannot add or remove fields.";
75
+ readonly 'remove.button': "Remove";
76
+ };
77
+ };
78
+ }];
79
+ };
80
+ };
81
+ export default meta;
82
+ type Story = StoryObj<typeof meta>;
83
+ export declare const Default: Story;
84
+ //# sourceMappingURL=SelectOptionField.stories.d.ts.map
@@ -0,0 +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;AA2CxC,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,4 @@
1
+ import React from 'react';
2
+ import { type FormFieldComponentProps } from '../FormFieldComponent';
3
+ export declare const TextAreaField: ({ type, readonly, placeholder, onValueChange, onBlur, ...props }: FormFieldComponentProps<string>) => React.JSX.Element;
4
+ //# sourceMappingURL=TextAreaField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextAreaField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/TextAreaField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,uBAAuB,CAAC;AAEvF,eAAO,MAAM,aAAa,GAAI,kEAO3B,uBAAuB,CAAC,MAAM,CAAC,sBAoBjC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type FormFieldComponentProps } from '../FormFieldComponent';
3
+ export declare const TextField: ({ type, readonly, placeholder, onBlur, onValueChange, ...props }: FormFieldComponentProps<string>) => React.JSX.Element;
4
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/TextField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,uBAAuB,CAAC;AAEvF,eAAO,MAAM,SAAS,GAAI,kEAOvB,uBAAuB,CAAC,MAAM,CAAC,sBAoBjC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type FormFieldComponentProps } from '../FormFieldComponent';
3
+ export declare const TupleField: ({ binding, type, readonly, label, getStatus, getValue, onValueChange, onBlur, }: FormFieldComponentProps<Record<string, number>> & {
4
+ binding: string[];
5
+ }) => React.JSX.Element;
6
+ //# sourceMappingURL=TupleField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TupleField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/TupleField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,uBAAuB,CAAC;AAIrF,eAAO,MAAM,UAAU,GAAI,iFASxB,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG;IACnD,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,sBA4BA,CAAC"}
@@ -0,0 +1,12 @@
1
+ export * from './ArrayField';
2
+ export * from './BooleanField';
3
+ export * from './GeoPointField';
4
+ export * from './MarkdownField';
5
+ export * from './NumberField';
6
+ export * from './RefField';
7
+ export * from './SelectField';
8
+ export * from './SelectOptionField';
9
+ export * from './TextField';
10
+ export * from './TextAreaField';
11
+ export * from './TupleField';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
@@ -1,6 +1,4 @@
1
- export * from './custom';
2
- export * from './Defaults';
1
+ export * from './fields';
3
2
  export * from './Form';
4
- export * from './FormContext';
5
- export * from './Input';
3
+ export * from './FormFieldComponent';
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AAEzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,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"}
@@ -0,0 +1,68 @@
1
+ import type * as Schema from 'effect/Schema';
2
+ import React from 'react';
3
+ import { type Palette, type ThemedClassName } from '@dxos/react-ui';
4
+ import { type FormFieldMap } from '../Form/FormFieldComponent';
5
+ export type RefOption = {
6
+ id: string;
7
+ label: string;
8
+ hue?: Palette;
9
+ };
10
+ export type ObjectPickerContentProps = ThemedClassName<{
11
+ options: RefOption[];
12
+ selectedIds?: string[];
13
+ createOptionLabel?: [string, {
14
+ ns: string;
15
+ }];
16
+ createOptionIcon?: string;
17
+ createSchema?: Schema.Schema.AnyNoContext;
18
+ createInitialValuePath?: string;
19
+ createFieldMap?: FormFieldMap;
20
+ /**
21
+ * Persist a newly-created object given the form values. May be async (e.g.
22
+ * to write to a database). The Promise is awaited before the inline create
23
+ * form is collapsed back to the picker list, so consumers can complete
24
+ * follow-up work (assign the new ref to a parent slot, close the popover)
25
+ * before the picker UI re-renders.
26
+ */
27
+ onCreate?: (values: any) => unknown | Promise<unknown>;
28
+ onSelect: (id: string) => void;
29
+ }>;
30
+ export declare const ObjectPicker: {
31
+ 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;
32
+ Portal: {
33
+ (props: import("@dxos/react-ui").PopoverPortalProps & {
34
+ __scopePopover?: import("@radix-ui/react-context").Scope;
35
+ }): React.JSX.Element;
36
+ displayName: string;
37
+ };
38
+ Trigger: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
+ VirtualTrigger: {
40
+ (props: import("@dxos/react-ui").PopoverVirtualTriggerProps & {
41
+ __scopePopover?: import("@radix-ui/react-context").Scope;
42
+ }): React.JSX.Element;
43
+ displayName: string;
44
+ };
45
+ Content: React.ForwardRefExoticComponent<Omit<{
46
+ options: RefOption[];
47
+ selectedIds?: string[];
48
+ createOptionLabel?: [string, {
49
+ ns: string;
50
+ }];
51
+ createOptionIcon?: string;
52
+ createSchema?: Schema.Schema.AnyNoContext;
53
+ createInitialValuePath?: string;
54
+ createFieldMap?: FormFieldMap;
55
+ /**
56
+ * Persist a newly-created object given the form values. May be async (e.g.
57
+ * to write to a database). The Promise is awaited before the inline create
58
+ * form is collapsed back to the picker list, so consumers can complete
59
+ * follow-up work (assign the new ref to a parent slot, close the popover)
60
+ * before the picker UI re-renders.
61
+ */
62
+ onCreate?: (values: any) => unknown | Promise<unknown>;
63
+ onSelect: (id: string) => void;
64
+ }, "className"> & {
65
+ classNames?: import("@dxos/ui-types").ClassNameValue;
66
+ } & React.RefAttributes<HTMLDivElement>>;
67
+ };
68
+ //# 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,KAAgE,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,KAAK,OAAO,EAAW,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAK7F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC,CAAC;AAqJH,eAAO,MAAM,YAAY;;;;0BAjIa,CAAC;;;;;;;0BAyB7B,CAAN;;;;;iBA7DO,SAAS,EAAE;sBACN,MAAM,EAAE;4BACF,CAAC,MAAM,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;2BACzB,MAAM;uBACV,MAAM,CAAC,MAAM,CAAC,YAAY;iCAChB,MAAM;yBACd,YAAY;QAC7B;;;;;;WAMG;mBACQ,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;kBAC5C,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;;;;CA4J/B,CAAC"}
@@ -0,0 +1,87 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ render: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ controls: {
10
+ disable: boolean;
11
+ };
12
+ translations: [{
13
+ readonly 'en-US': {
14
+ readonly "@dxos/react-ui-form": {
15
+ readonly 'fields.label': "Fields";
16
+ readonly 'hidden-fields.label': "Hidden Fields";
17
+ readonly 'empty-readonly-ref-field.label': "(none)";
18
+ readonly 'field-property.label': "Property";
19
+ readonly 'field-property.placeholder': "Property name";
20
+ readonly 'field-format.label': "Type";
21
+ readonly 'field-path.label': "Field path";
22
+ readonly 'add-item.button': "Add item";
23
+ readonly 'add-property-button.label': "Add property";
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 'create-option.label': "Create";
30
+ readonly 'add-tag.label': "Add tag";
31
+ readonly 'ref-field-combobox-input.placeholder': "Search…";
32
+ readonly 'ref-field.placeholder': "Select…";
33
+ readonly 'ref-field.placeholder_one': "Select…";
34
+ readonly 'ref-field.placeholder_other': "Select items…";
35
+ readonly 'example.placeholder': "Example";
36
+ readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
37
+ readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
38
+ readonly 'cancel-button.label': "Cancel";
39
+ readonly 'save-button.label': "Save";
40
+ readonly 'create-text.label': "Create text";
41
+ readonly 'format.boolean.label': "Boolean";
42
+ readonly 'format.currency.label': "Currency";
43
+ readonly 'format.date.label': "Date";
44
+ readonly 'format.date-time.label': "DateTime";
45
+ readonly 'format.did.label': "DID";
46
+ readonly 'format.duration.label': "Duration";
47
+ readonly 'format.dxn.label': "DXN";
48
+ readonly 'format.email.label': "Email";
49
+ readonly 'format.formula.label': "Formula";
50
+ readonly 'format.hostname.label': "Hostname";
51
+ readonly 'format.integer.label': "Integer";
52
+ readonly 'format.json.label': "JSON";
53
+ readonly 'format.lnglat.label': "Geopoint";
54
+ readonly 'format.markdown.label': "Markdown";
55
+ readonly 'format.percent.label': "Percent";
56
+ readonly 'format.ref.label': "Reference";
57
+ readonly 'format.regex.label': "RegExp";
58
+ readonly 'format.string.label': "String";
59
+ readonly 'format.single-select.label': "Select";
60
+ readonly 'format.multi-select.label': "Multi-select";
61
+ readonly 'format.text.label': "Long text";
62
+ readonly 'format.time.label': "Time";
63
+ readonly 'format.timestamp.label': "Timestamp";
64
+ readonly 'format.user.label': "User";
65
+ readonly 'format.number.label': "Number";
66
+ readonly 'format.uri.label': "URI";
67
+ readonly 'format.url.label': "URL";
68
+ readonly 'format.uuid.label': "UUID";
69
+ readonly 'latitude.label': "Latitude";
70
+ readonly 'longitude.label': "Longitude";
71
+ readonly 'select-option.label': "Label";
72
+ readonly 'select-option-label.placeholder': "Option label";
73
+ readonly 'select-option-delete.button': "Delete";
74
+ readonly 'select-option-add.button': "Add option";
75
+ readonly 'system-schema.title': "System type";
76
+ readonly 'system-schema.description': "System type: cannot add or remove fields.";
77
+ readonly 'remove.button': "Remove";
78
+ };
79
+ };
80
+ }];
81
+ };
82
+ };
83
+ export default meta;
84
+ type Story = StoryObj<typeof meta>;
85
+ export declare const Default: Story;
86
+ export declare const WithTest: Story;
87
+ //# sourceMappingURL=ObjectPicker.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectPicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA2FzE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAuFtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ObjectPicker';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { Obj } from '@dxos/echo';
3
+ export type ObjectPropertiesProps = PropsWithChildren<{
4
+ object: Obj.Unknown;
5
+ }>;
6
+ export declare const ObjectProperties: React.ForwardRefExoticComponent<Omit<ObjectPropertiesProps, "className"> & {
7
+ classNames?: import("@dxos/ui-types").ClassNameValue;
8
+ } & Pick<React.HTMLAttributes<Element>, "style" | "children" | "className" | "role"> & React.RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=ObjectProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectProperties.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectProperties/ObjectProperties.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAO,GAAG,EAAkB,MAAM,YAAY,CAAC;AAWtD,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IAAE,MAAM,EAAE,GAAG,CAAC,OAAO,CAAA;CAAE,CAAC,CAAC;AAG/E,eAAO,MAAM,gBAAgB;;2HAkG5B,CAAC"}
@@ -0,0 +1,127 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import { Obj } from '@dxos/echo';
3
+ import { useClientStory } from '@dxos/react-client/testing';
4
+ export type ObjectPropertiesDebug = {
5
+ /** Live database the story is rendering against. */
6
+ db: ReturnType<typeof useClientStory>['space'] extends infer S ? (S extends {
7
+ db: infer D;
8
+ } ? D : never) : never;
9
+ /** Object whose properties are being edited. */
10
+ object: Obj.Unknown;
11
+ };
12
+ declare const meta: {
13
+ title: string;
14
+ component: any;
15
+ decorators: import("@storybook/react").Decorator[];
16
+ parameters: {
17
+ layout: string;
18
+ translations: [{
19
+ readonly 'en-US': {
20
+ readonly "@dxos/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 'field-property.label': "Property";
25
+ readonly 'field-property.placeholder': "Property name";
26
+ readonly 'field-format.label': "Type";
27
+ readonly 'field-path.label': "Field path";
28
+ readonly 'add-item.button': "Add item";
29
+ readonly 'add-property-button.label': "Add property";
30
+ readonly 'boolean-input-true.value': "Yes";
31
+ readonly 'boolean-input-false.value': "No";
32
+ readonly 'show-field.label': "Show field";
33
+ readonly 'hide-field.label': "Hide field";
34
+ readonly 'delete-field.label': "Delete field";
35
+ readonly 'create-option.label': "Create";
36
+ readonly 'add-tag.label': "Add tag";
37
+ readonly 'ref-field-combobox-input.placeholder': "Search…";
38
+ readonly 'ref-field.placeholder': "Select…";
39
+ readonly 'ref-field.placeholder_one': "Select…";
40
+ readonly 'ref-field.placeholder_other': "Select items…";
41
+ readonly 'example.placeholder': "Example";
42
+ readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
43
+ readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
44
+ readonly 'cancel-button.label': "Cancel";
45
+ readonly 'save-button.label': "Save";
46
+ readonly 'create-text.label': "Create text";
47
+ readonly 'format.boolean.label': "Boolean";
48
+ readonly 'format.currency.label': "Currency";
49
+ readonly 'format.date.label': "Date";
50
+ readonly 'format.date-time.label': "DateTime";
51
+ readonly 'format.did.label': "DID";
52
+ readonly 'format.duration.label': "Duration";
53
+ readonly 'format.dxn.label': "DXN";
54
+ readonly 'format.email.label': "Email";
55
+ readonly 'format.formula.label': "Formula";
56
+ readonly 'format.hostname.label': "Hostname";
57
+ readonly 'format.integer.label': "Integer";
58
+ readonly 'format.json.label': "JSON";
59
+ readonly 'format.lnglat.label': "Geopoint";
60
+ readonly 'format.markdown.label': "Markdown";
61
+ readonly 'format.percent.label': "Percent";
62
+ readonly 'format.ref.label': "Reference";
63
+ readonly 'format.regex.label': "RegExp";
64
+ readonly 'format.string.label': "String";
65
+ readonly 'format.single-select.label': "Select";
66
+ readonly 'format.multi-select.label': "Multi-select";
67
+ readonly 'format.text.label': "Long text";
68
+ readonly 'format.time.label': "Time";
69
+ readonly 'format.timestamp.label': "Timestamp";
70
+ readonly 'format.user.label': "User";
71
+ readonly 'format.number.label': "Number";
72
+ readonly 'format.uri.label': "URI";
73
+ readonly 'format.url.label': "URL";
74
+ readonly 'format.uuid.label': "UUID";
75
+ readonly 'latitude.label': "Latitude";
76
+ readonly 'longitude.label': "Longitude";
77
+ readonly 'select-option.label': "Label";
78
+ readonly 'select-option-label.placeholder': "Option label";
79
+ readonly 'select-option-delete.button': "Delete";
80
+ readonly 'select-option-add.button': "Add option";
81
+ readonly 'system-schema.title': "System type";
82
+ readonly 'system-schema.description': "System type: cannot add or remove fields.";
83
+ readonly 'remove.button': "Remove";
84
+ };
85
+ };
86
+ }];
87
+ };
88
+ };
89
+ export default meta;
90
+ type Story = StoryObj<typeof meta>;
91
+ /**
92
+ * Default Pipeline form — manual exploration. Includes the Tags picker (which
93
+ * is the only ref-array path that currently works end-to-end, by virtue of
94
+ * `Tag.Tag` being special-cased in `ObjectProperties.handleCreate`).
95
+ */
96
+ export declare const Default: Story;
97
+ /**
98
+ * Tag-creation play. Walks the inline create flow against the Tags picker and
99
+ * leaves the magazine in the post-Save state for assertions to inspect via
100
+ * `OBJECT_PROPERTIES_DEBUG_SYMBOL`.
101
+ *
102
+ * Expected end-state (currently passes):
103
+ * - new Tag.Tag exists in the DB with `label === "PinnedTag"`
104
+ * - `Obj.getMeta(object).tags` includes its DXN.
105
+ */
106
+ export declare const CreateTagPlay: Story;
107
+ /**
108
+ * Ref-array creation play. Walks Add → Open → Create → Save against
109
+ * `Article.authors`. After the fix, the new Author should be persisted AND
110
+ * wired into `article.authors[0]`. Today it persists to the DB but the array
111
+ * slot stays empty.
112
+ */
113
+ export declare const CreateRefArrayPlay: Story;
114
+ /**
115
+ * Ref-array creation against a schema with a hidden required field. `Note`
116
+ * mirrors the shape of `Subscription.Feed`: the form omits `backing` (a
117
+ * required `Ref` annotated `FormInputAnnotation.set(false)`) but the schema
118
+ * requires it. Without `omitHiddenFormFields` + `FactoryAnnotation`, the
119
+ * form's validator would reject Save and the popover would never close.
120
+ *
121
+ * Expected end-state after the fix:
122
+ * - new Note exists in DB with a synthesised `backing` ref
123
+ * - `notebook.notes[0]` references the new Note
124
+ * - the create form is gone
125
+ */
126
+ export declare const CreateHiddenFieldPlay: Story;
127
+ //# sourceMappingURL=ObjectProperties.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectProperties.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectProperties/ObjectProperties.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKjE,OAAO,EAAsB,GAAG,EAAkB,MAAM,YAAY,CAAC;AAGrE,OAAO,EAAE,cAAc,EAAsB,MAAM,4BAA4B,CAAC;AAqFhF,MAAM,MAAM,qBAAqB,GAAG;IAClC,oDAAoD;IACpD,EAAE,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,OAAO,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS;QAAE,EAAE,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;IACjH,gDAAgD;IAChD,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC;CACrB,CAAC;AA8CF,QAAA,MAAM,IAAI;;eAEuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAME,CAAC;AAEvC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4DnC;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,EAAE,KAmC3B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAkChC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,EAAE,KA8BnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ObjectProperties.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectProperties.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectProperties/ObjectProperties.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './ObjectProperties';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectProperties/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { type Label, type ThemedClassName } from '@dxos/react-ui';
3
+ type SettingsRootProps = ThemedClassName<PropsWithChildren>;
4
+ type SettingsSectionProps = PropsWithChildren<{
5
+ title: Label;
6
+ description?: Label;
7
+ }>;
8
+ export declare const Settings: {
9
+ Root: {
10
+ ({ children, classNames }: SettingsRootProps): React.JSX.Element;
11
+ displayName: string;
12
+ };
13
+ Viewport: React.ForwardRefExoticComponent<Omit<{}, "className"> & {
14
+ classNames?: import("@dxos/ui-types").ClassNameValue;
15
+ } & Pick<React.HTMLAttributes<Element>, "style" | "children" | "className" | "role"> & React.RefAttributes<HTMLDivElement>>;
16
+ Section: {
17
+ ({ title, description, children }: SettingsSectionProps): React.JSX.Element;
18
+ displayName: string;
19
+ };
20
+ Panel: {
21
+ ({ classNames, children }: Omit<{
22
+ children?: React.ReactNode | undefined;
23
+ }, "className"> & {
24
+ classNames?: import("@dxos/ui-types").ClassNameValue;
25
+ }): React.JSX.Element;
26
+ displayName: string;
27
+ };
28
+ Item: {
29
+ ({ title, description, children }: {
30
+ title: Label;
31
+ description?: Label;
32
+ } & {
33
+ children?: React.ReactNode | undefined;
34
+ }): React.JSX.Element;
35
+ displayName: string;
36
+ };
37
+ FieldSet: {
38
+ <T extends Record<string, any>>({ schema, values, onValuesChanged, readonly, fieldMap, visible, sort, }: import("./SettingsFieldSet").SettingsFieldSetProps<T>): React.JSX.Element;
39
+ displayName: string;
40
+ };
41
+ };
42
+ export {};
43
+ //# sourceMappingURL=Settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,KAAK,EAAc,KAAK,eAAe,EAAqC,MAAM,gBAAgB,CAAC;AAejH,KAAK,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AA8B5D,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AAmBH,eAAO,MAAM,QAAQ;;mCAlD2B,iBAAiB;;;;;;;2CAiCN,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;CAwB9E,CAAC"}