@dxos/react-ui-form 0.9.1-staging.ee54ba693a → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.mjs +4064 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/translations.mjs +77 -0
- package/dist/lib/translations.mjs.map +1 -0
- package/dist/lib/types.mjs +0 -0
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +1 -0
- package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/Card.stories.d.ts +88 -0
- package/dist/types/src/components/Form/Card.stories.d.ts.map +1 -0
- package/dist/types/src/components/Form/Form.d.ts +7 -7
- package/dist/types/src/components/Form/Form.stories.d.ts +21 -0
- package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/Form.theme.d.ts +6 -0
- package/dist/types/src/components/Form/Form.theme.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormControls.d.ts +7 -7
- package/dist/types/src/components/Form/FormControls.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/FormField.d.ts +1 -1
- package/dist/types/src/components/Form/FormField/FormField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/FormRow.d.ts +17 -3
- package/dist/types/src/components/Form/FormField/FormRow.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/ArrayField/ArrayField.d.ts +0 -6
- package/dist/types/src/components/Form/FormField/fields/ArrayField/ArrayField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/ArrayField/ArrayField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/ArrayField/ArrayField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/ArrayField/default-value.d.ts +7 -0
- package/dist/types/src/components/Form/FormField/fields/ArrayField/default-value.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormField/fields/ArrayField/index.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/ArrayField/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/BooleanField/BooleanField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/BooleanField/BooleanField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/DateField/DateField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/DateField/DateField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/DateField/DateField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/GeoPointField/GeoPointField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/GeoPointField/GeoPointField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/MarkdownField/MarkdownField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/MarkdownField/MarkdownField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/MarkdownField/MarkdownField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/NumberField/NumberField.d.ts +0 -11
- package/dist/types/src/components/Form/FormField/fields/NumberField/NumberField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/NumberField/NumberField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/NumberField/NumberField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/NumberField/index.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/NumberField/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/NumberField/numeric-constraints.d.ts +12 -0
- package/dist/types/src/components/Form/FormField/fields/NumberField/numeric-constraints.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormField/fields/PasswordField/PasswordField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/PasswordField/PasswordField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/PasswordField/PasswordField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/RefField/RefField.d.ts +1 -11
- package/dist/types/src/components/Form/FormField/fields/RefField/RefField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/RefField/RefField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/RefField/RefField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/RefField/find-ref-option.d.ts +13 -0
- package/dist/types/src/components/Form/FormField/fields/RefField/find-ref-option.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormField/fields/RefField/index.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/RefField/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/SelectField/SelectField.d.ts +1 -13
- package/dist/types/src/components/Form/FormField/fields/SelectField/SelectField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/SelectField/SelectField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/SelectField/SelectField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/SelectField/create-select-field.d.ts +15 -0
- package/dist/types/src/components/Form/FormField/fields/SelectField/create-select-field.d.ts.map +1 -0
- package/dist/types/src/components/Form/FormField/fields/SelectField/index.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/SelectField/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/SelectOptionField/SelectOptionField.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/SelectOptionField/SelectOptionField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/SelectOptionField/SelectOptionField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/TextAreaField/TextAreaField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/TextAreaField/TextAreaField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/TextField/TextField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/TextField/TextField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormField/fields/TupleField/TupleField.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormField/fields/TupleField/TupleField.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormFieldSet/FormFieldSetContainer.d.ts +1 -1
- package/dist/types/src/components/Form/FormFieldSet/FormFieldSetContainer.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormLayout/FormLayout.d.ts +0 -27
- package/dist/types/src/components/Form/FormLayout/FormLayout.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormLayout/FormLayout.stories.d.ts +1 -0
- package/dist/types/src/components/Form/FormLayout/FormLayout.stories.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormLayout/index.d.ts +1 -0
- package/dist/types/src/components/Form/FormLayout/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/FormLayout/resolve-layout-field.d.ts +29 -0
- package/dist/types/src/components/Form/FormLayout/resolve-layout-field.d.ts.map +1 -0
- package/dist/types/src/components/ObjectForm/ObjectForm.d.ts +10 -1
- package/dist/types/src/components/ObjectForm/ObjectForm.d.ts.map +1 -1
- package/dist/types/src/components/ObjectForm/ObjectForm.stories.d.ts +2 -0
- package/dist/types/src/components/ObjectForm/ObjectForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +8 -23
- package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +1 -0
- package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
- package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts +1 -1
- package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts.map +1 -1
- package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts +1 -0
- package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts.map +1 -1
- package/dist/types/src/components/ObjectTree/ObjectTree.stories.d.ts +1 -0
- package/dist/types/src/components/ObjectTree/ObjectTree.stories.d.ts.map +1 -1
- package/dist/types/src/components/RefEditor/RefEditor.d.ts.map +1 -1
- package/dist/types/src/components/RefEditor/RefEditor.stories.d.ts +2 -0
- package/dist/types/src/components/RefEditor/RefEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/RefEditor/ref-editor-extension.d.ts +9 -8
- package/dist/types/src/components/RefEditor/ref-editor-extension.d.ts.map +1 -1
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +1 -0
- package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/useFormHandler.d.ts +6 -2
- package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -1
- package/dist/types/src/hooks/useFormHandler.test.d.ts +2 -0
- package/dist/types/src/hooks/useFormHandler.test.d.ts.map +1 -0
- package/dist/types/src/testing/TestLayout.d.ts +1 -1
- package/dist/types/src/testing/TestLayout.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +5 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +0 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -42
- package/src/components/Form/Card.stories.tsx +93 -0
- package/src/components/Form/Form.stories.tsx +95 -3
- package/src/components/Form/Form.theme.ts +14 -8
- package/src/components/Form/Form.tsx +2 -2
- package/src/components/Form/FormControls.tsx +32 -13
- package/src/components/Form/FormField/FormField.tsx +11 -3
- package/src/components/Form/FormField/FormRow.tsx +20 -1
- package/src/components/Form/FormField/fields/ArrayField/ArrayField.tsx +3 -46
- package/src/components/Form/FormField/fields/ArrayField/default-value.ts +49 -0
- package/src/components/Form/FormField/fields/ArrayField/index.ts +2 -0
- package/src/components/Form/FormField/fields/ComboboxField/ComboboxField.tsx +12 -2
- package/src/components/Form/FormField/fields/DateField/DateField.tsx +10 -3
- package/src/components/Form/FormField/fields/MarkdownField/MarkdownField.stories.tsx +1 -1
- package/src/components/Form/FormField/fields/MarkdownField/MarkdownField.tsx +2 -12
- package/src/components/Form/FormField/fields/NumberField/NumberField.test.ts +1 -1
- package/src/components/Form/FormField/fields/NumberField/NumberField.tsx +1 -36
- package/src/components/Form/FormField/fields/NumberField/index.ts +2 -0
- package/src/components/Form/FormField/fields/NumberField/numeric-constraints.ts +43 -0
- package/src/components/Form/FormField/fields/PasswordField/PasswordField.tsx +1 -0
- package/src/components/Form/FormField/fields/RefField/InlineRefField.tsx +2 -2
- package/src/components/Form/FormField/fields/RefField/RefField.test.ts +1 -1
- package/src/components/Form/FormField/fields/RefField/RefField.tsx +3 -45
- package/src/components/Form/FormField/fields/RefField/find-ref-option.ts +56 -0
- package/src/components/Form/FormField/fields/RefField/index.ts +2 -0
- package/src/components/Form/FormField/fields/SelectField/SelectField.tsx +2 -67
- package/src/components/Form/FormField/fields/SelectField/create-select-field.tsx +80 -0
- package/src/components/Form/FormField/fields/SelectField/index.ts +2 -0
- package/src/components/Form/FormField/fields/SelectOptionField/SelectOptionField.tsx +2 -1
- package/src/components/Form/FormFieldSet/FormFieldSetContainer.tsx +11 -9
- package/src/components/Form/FormLayout/FormLayout.test.ts +1 -1
- package/src/components/Form/FormLayout/FormLayout.tsx +1 -86
- package/src/components/Form/FormLayout/index.ts +2 -0
- package/src/components/Form/FormLayout/resolve-layout-field.ts +98 -0
- package/src/components/ObjectForm/ObjectForm.stories.tsx +93 -3
- package/src/components/ObjectForm/ObjectForm.tsx +22 -4
- package/src/components/ObjectPicker/ObjectPicker.stories.tsx +1 -1
- package/src/components/ObjectPicker/ObjectPicker.tsx +3 -3
- package/src/components/ObjectProperties/ObjectProperties.stories.tsx +1 -1
- package/src/components/ObjectProperties/ObjectProperties.tsx +7 -1
- package/src/components/ObjectTree/ObjectTree.stories.tsx +1 -1
- package/src/components/RefEditor/RefEditor.stories.tsx +9 -1
- package/src/components/RefEditor/RefEditor.tsx +42 -6
- package/src/components/RefEditor/ref-editor-extension.ts +168 -91
- package/src/components/ViewEditor/ViewEditor.stories.tsx +1 -1
- package/src/components/ViewEditor/ViewEditor.tsx +9 -9
- package/src/hooks/useFormHandler.test.ts +85 -0
- package/src/hooks/useFormHandler.ts +118 -31
- package/src/translations.ts +1 -0
- package/src/types.ts +5 -0
- package/src/util/index.ts +0 -1
- package/dist/lib/browser/index.mjs +0 -4675
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/translations.mjs +0 -87
- package/dist/lib/browser/translations.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -4677
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/translations.mjs +0 -89
- package/dist/lib/node-esm/translations.mjs.map +0 -7
- package/dist/types/src/util/formatting.d.ts +0 -15
- package/dist/types/src/util/formatting.d.ts.map +0 -1
- package/src/util/formatting.ts +0 -171
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//#region src/translations.ts
|
|
2
|
+
var translationKey = "@dxos/react-ui-form";
|
|
3
|
+
var translations = [{ "en-US": { [translationKey]: {
|
|
4
|
+
"ref-editor.placeholder": "Type '@' to add a reference, or enter a value",
|
|
5
|
+
"ref-editor-auto.placeholder": "Search by name, or enter a value",
|
|
6
|
+
"fields.label": "Fields",
|
|
7
|
+
"hidden-fields.label": "Hidden Fields",
|
|
8
|
+
"empty-readonly-ref-field.label": "(none)",
|
|
9
|
+
"field-property.label": "Property",
|
|
10
|
+
"field-property.placeholder": "Property name",
|
|
11
|
+
"field-format.label": "Type",
|
|
12
|
+
"field-path.label": "Field path",
|
|
13
|
+
"remove-item.button": "Delete item",
|
|
14
|
+
"add-item.button": "Add item",
|
|
15
|
+
"add-property-button.label": "Add property",
|
|
16
|
+
"boolean-input-true.value": "Yes",
|
|
17
|
+
"boolean-input-false.value": "No",
|
|
18
|
+
"show-field.label": "Show field",
|
|
19
|
+
"hide-field.label": "Hide field",
|
|
20
|
+
"expand-fields.label": "Expand",
|
|
21
|
+
"collapse-fields.label": "Collapse",
|
|
22
|
+
"delete-field.label": "Delete field",
|
|
23
|
+
"create-option.label": "Create",
|
|
24
|
+
"add-tag.label": "Add tag",
|
|
25
|
+
"ref-field-combobox-input.placeholder": "Search…",
|
|
26
|
+
"ref-field.placeholder": "Select…",
|
|
27
|
+
"ref-field.placeholder_one": "Select…",
|
|
28
|
+
"ref-field.placeholder_other": "Select items…",
|
|
29
|
+
"example.placeholder": "Example",
|
|
30
|
+
"latitude.placeholder": "Latitude (e.g., 40.7128)",
|
|
31
|
+
"longitude.placeholder": "Longitude (e.g., -74.0060)",
|
|
32
|
+
"cancel-button.label": "Cancel",
|
|
33
|
+
"save-button.label": "Save",
|
|
34
|
+
"create-text.label": "Create text",
|
|
35
|
+
"format.boolean.label": "Boolean",
|
|
36
|
+
"format.currency.label": "Currency",
|
|
37
|
+
"format.date.label": "Date",
|
|
38
|
+
"format.date-time.label": "DateTime",
|
|
39
|
+
"format.did.label": "DID",
|
|
40
|
+
"format.duration.label": "Duration",
|
|
41
|
+
"format.dxn.label": "DXN",
|
|
42
|
+
"format.email.label": "Email",
|
|
43
|
+
"format.formula.label": "Formula",
|
|
44
|
+
"format.hostname.label": "Hostname",
|
|
45
|
+
"format.integer.label": "Integer",
|
|
46
|
+
"format.json.label": "JSON",
|
|
47
|
+
"format.lnglat.label": "Geopoint",
|
|
48
|
+
"format.markdown.label": "Markdown",
|
|
49
|
+
"format.password.label": "Password",
|
|
50
|
+
"format.percent.label": "Percent",
|
|
51
|
+
"format.ref.label": "Reference",
|
|
52
|
+
"format.regex.label": "RegExp",
|
|
53
|
+
"format.string.label": "String",
|
|
54
|
+
"format.single-select.label": "Select",
|
|
55
|
+
"format.multi-select.label": "Multi-select",
|
|
56
|
+
"format.text.label": "Long text",
|
|
57
|
+
"format.time.label": "Time",
|
|
58
|
+
"format.timestamp.label": "Timestamp",
|
|
59
|
+
"format.user.label": "User",
|
|
60
|
+
"format.number.label": "Number",
|
|
61
|
+
"format.uri.label": "URI",
|
|
62
|
+
"format.url.label": "URL",
|
|
63
|
+
"format.uuid.label": "UUID",
|
|
64
|
+
"latitude.label": "Latitude",
|
|
65
|
+
"longitude.label": "Longitude",
|
|
66
|
+
"select-option.label": "Label",
|
|
67
|
+
"select-option-label.placeholder": "Option label",
|
|
68
|
+
"select-option-delete.button": "Delete",
|
|
69
|
+
"select-option-add.button": "Add option",
|
|
70
|
+
"system-schema.title": "System type",
|
|
71
|
+
"system-schema.description": "System type: cannot add or remove fields.",
|
|
72
|
+
"remove.button": "Delete"
|
|
73
|
+
} } }];
|
|
74
|
+
//#endregion
|
|
75
|
+
export { translationKey, translations };
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.mjs","names":[],"sources":["../../src/translations.ts"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nexport const translationKey = '@dxos/react-ui-form';\n\nexport const translations = [\n {\n 'en-US': {\n [translationKey]: {\n 'ref-editor.placeholder': \"Type '@' to add a reference, or enter a value\",\n 'ref-editor-auto.placeholder': 'Search by name, or enter a value',\n\n 'fields.label': 'Fields',\n 'hidden-fields.label': 'Hidden Fields',\n 'empty-readonly-ref-field.label': '(none)',\n\n 'field-property.label': 'Property',\n 'field-property.placeholder': 'Property name',\n 'field-format.label': 'Type',\n 'field-path.label': 'Field path',\n\n 'remove-item.button': 'Delete item',\n 'add-item.button': 'Add item',\n 'add-property-button.label': 'Add property',\n 'boolean-input-true.value': 'Yes',\n 'boolean-input-false.value': 'No',\n 'show-field.label': 'Show field',\n 'hide-field.label': 'Hide field',\n 'expand-fields.label': 'Expand',\n 'collapse-fields.label': 'Collapse',\n 'delete-field.label': 'Delete field',\n 'create-option.label': 'Create',\n 'add-tag.label': 'Add tag',\n\n 'ref-field-combobox-input.placeholder': 'Search…',\n 'ref-field.placeholder': 'Select…',\n 'ref-field.placeholder_one': 'Select…',\n 'ref-field.placeholder_other': 'Select items…',\n\n 'example.placeholder': 'Example',\n 'latitude.placeholder': 'Latitude (e.g., 40.7128)',\n 'longitude.placeholder': 'Longitude (e.g., -74.0060)',\n\n 'cancel-button.label': 'Cancel',\n 'save-button.label': 'Save',\n 'create-text.label': 'Create text',\n\n // TypeFormat\n 'format.boolean.label': 'Boolean',\n 'format.currency.label': 'Currency',\n 'format.date.label': 'Date',\n 'format.date-time.label': 'DateTime',\n 'format.did.label': 'DID',\n 'format.duration.label': 'Duration',\n 'format.dxn.label': 'DXN',\n 'format.email.label': 'Email',\n 'format.formula.label': 'Formula',\n 'format.hostname.label': 'Hostname',\n 'format.integer.label': 'Integer',\n 'format.json.label': 'JSON',\n 'format.lnglat.label': 'Geopoint',\n 'format.markdown.label': 'Markdown',\n 'format.password.label': 'Password',\n 'format.percent.label': 'Percent',\n 'format.ref.label': 'Reference',\n 'format.regex.label': 'RegExp',\n 'format.string.label': 'String',\n 'format.single-select.label': 'Select',\n 'format.multi-select.label': 'Multi-select',\n 'format.text.label': 'Long text',\n 'format.time.label': 'Time',\n 'format.timestamp.label': 'Timestamp',\n 'format.user.label': 'User',\n 'format.number.label': 'Number',\n 'format.uri.label': 'URI',\n 'format.url.label': 'URL',\n 'format.uuid.label': 'UUID',\n\n // GeoPointField.\n 'latitude.label': 'Latitude',\n 'longitude.label': 'Longitude',\n\n // SelectOptionsField.\n 'select-option.label': 'Label',\n 'select-option-label.placeholder': 'Option label',\n 'select-option-delete.button': 'Delete',\n 'select-option-add.button': 'Add option',\n\n // System schema message.\n 'system-schema.title': 'System type',\n 'system-schema.description': 'System type: cannot add or remove fields.',\n 'remove.button': 'Delete',\n },\n },\n },\n] as const satisfies Resource[];\n"],"mappings":";AAMA,IAAa,iBAAiB;AAE9B,IAAa,eAAe,CAC1B,EACE,SAAS,GACN,iBAAiB;CAChB,0BAA0B;CAC1B,+BAA+B;CAE/B,gBAAgB;CAChB,uBAAuB;CACvB,kCAAkC;CAElC,wBAAwB;CACxB,8BAA8B;CAC9B,sBAAsB;CACtB,oBAAoB;CAEpB,sBAAsB;CACtB,mBAAmB;CACnB,6BAA6B;CAC7B,4BAA4B;CAC5B,6BAA6B;CAC7B,oBAAoB;CACpB,oBAAoB;CACpB,uBAAuB;CACvB,yBAAyB;CACzB,sBAAsB;CACtB,uBAAuB;CACvB,iBAAiB;CAEjB,wCAAwC;CACxC,yBAAyB;CACzB,6BAA6B;CAC7B,+BAA+B;CAE/B,uBAAuB;CACvB,wBAAwB;CACxB,yBAAyB;CAEzB,uBAAuB;CACvB,qBAAqB;CACrB,qBAAqB;CAGrB,wBAAwB;CACxB,yBAAyB;CACzB,qBAAqB;CACrB,0BAA0B;CAC1B,oBAAoB;CACpB,yBAAyB;CACzB,oBAAoB;CACpB,sBAAsB;CACtB,wBAAwB;CACxB,yBAAyB;CACzB,wBAAwB;CACxB,qBAAqB;CACrB,uBAAuB;CACvB,yBAAyB;CACzB,yBAAyB;CACzB,wBAAwB;CACxB,oBAAoB;CACpB,sBAAsB;CACtB,uBAAuB;CACvB,8BAA8B;CAC9B,6BAA6B;CAC7B,qBAAqB;CACrB,qBAAqB;CACrB,0BAA0B;CAC1B,qBAAqB;CACrB,uBAAuB;CACvB,oBAAoB;CACpB,oBAAoB;CACpB,qBAAqB;CAGrB,kBAAkB;CAClB,mBAAmB;CAGnB,uBAAuB;CACvB,mCAAmC;CACnC,+BAA+B;CAC/B,4BAA4B;CAG5B,uBAAuB;CACvB,6BAA6B;CAC7B,iBAAiB;AACnB,EACF,EACF,CACF"}
|
|
File without changes
|
|
@@ -61,6 +61,7 @@ declare const meta: {
|
|
|
61
61
|
readonly 'format.json.label': 'JSON';
|
|
62
62
|
readonly 'format.lnglat.label': 'Geopoint';
|
|
63
63
|
readonly 'format.markdown.label': 'Markdown';
|
|
64
|
+
readonly 'format.password.label': 'Password';
|
|
64
65
|
readonly 'format.percent.label': 'Percent';
|
|
65
66
|
readonly 'format.ref.label': 'Reference';
|
|
66
67
|
readonly 'format.regex.label': 'RegExp';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/FieldEditor/FieldEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA6B,MAAM,OAAO,CAAC;AAMlD,OAAO,EAAE,eAAe,EAAuC,MAAM,cAAc,CAAC;AAMpF,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,gBAAgB,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAwDF,QAAA,MAAM,IAAI;;eAEkB,GAAG
|
|
1
|
+
{"version":3,"file":"FieldEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/FieldEditor/FieldEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA6B,MAAM,OAAO,CAAC;AAMlD,OAAO,EAAE,eAAe,EAAuC,MAAM,cAAc,CAAC;AAMpF,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,gBAAgB,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAwDF,QAAA,MAAM,IAAI;;eAEkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAOzB,QAAQ;;;CAGuB,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
translations: [{
|
|
9
|
+
readonly 'en-US': {
|
|
10
|
+
readonly "@dxos/react-ui-form": {
|
|
11
|
+
readonly 'ref-editor.placeholder': "Type '@' to add a reference, or enter a value";
|
|
12
|
+
readonly 'ref-editor-auto.placeholder': 'Search by name, or enter a value';
|
|
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 'remove-item.button': 'Delete item';
|
|
21
|
+
readonly 'add-item.button': 'Add item';
|
|
22
|
+
readonly 'add-property-button.label': 'Add property';
|
|
23
|
+
readonly 'boolean-input-true.value': 'Yes';
|
|
24
|
+
readonly 'boolean-input-false.value': 'No';
|
|
25
|
+
readonly 'show-field.label': 'Show field';
|
|
26
|
+
readonly 'hide-field.label': 'Hide field';
|
|
27
|
+
readonly 'expand-fields.label': 'Expand';
|
|
28
|
+
readonly 'collapse-fields.label': 'Collapse';
|
|
29
|
+
readonly 'delete-field.label': 'Delete field';
|
|
30
|
+
readonly 'create-option.label': 'Create';
|
|
31
|
+
readonly 'add-tag.label': 'Add tag';
|
|
32
|
+
readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
|
|
33
|
+
readonly 'ref-field.placeholder': 'Select\u2026';
|
|
34
|
+
readonly 'ref-field.placeholder_one': 'Select\u2026';
|
|
35
|
+
readonly 'ref-field.placeholder_other': 'Select items\u2026';
|
|
36
|
+
readonly 'example.placeholder': 'Example';
|
|
37
|
+
readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
|
|
38
|
+
readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
|
|
39
|
+
readonly 'cancel-button.label': 'Cancel';
|
|
40
|
+
readonly 'save-button.label': 'Save';
|
|
41
|
+
readonly 'create-text.label': 'Create text';
|
|
42
|
+
readonly 'format.boolean.label': 'Boolean';
|
|
43
|
+
readonly 'format.currency.label': 'Currency';
|
|
44
|
+
readonly 'format.date.label': 'Date';
|
|
45
|
+
readonly 'format.date-time.label': 'DateTime';
|
|
46
|
+
readonly 'format.did.label': 'DID';
|
|
47
|
+
readonly 'format.duration.label': 'Duration';
|
|
48
|
+
readonly 'format.dxn.label': 'DXN';
|
|
49
|
+
readonly 'format.email.label': 'Email';
|
|
50
|
+
readonly 'format.formula.label': 'Formula';
|
|
51
|
+
readonly 'format.hostname.label': 'Hostname';
|
|
52
|
+
readonly 'format.integer.label': 'Integer';
|
|
53
|
+
readonly 'format.json.label': 'JSON';
|
|
54
|
+
readonly 'format.lnglat.label': 'Geopoint';
|
|
55
|
+
readonly 'format.markdown.label': 'Markdown';
|
|
56
|
+
readonly 'format.password.label': 'Password';
|
|
57
|
+
readonly 'format.percent.label': 'Percent';
|
|
58
|
+
readonly 'format.ref.label': 'Reference';
|
|
59
|
+
readonly 'format.regex.label': 'RegExp';
|
|
60
|
+
readonly 'format.string.label': 'String';
|
|
61
|
+
readonly 'format.single-select.label': 'Select';
|
|
62
|
+
readonly 'format.multi-select.label': 'Multi-select';
|
|
63
|
+
readonly 'format.text.label': 'Long text';
|
|
64
|
+
readonly 'format.time.label': 'Time';
|
|
65
|
+
readonly 'format.timestamp.label': 'Timestamp';
|
|
66
|
+
readonly 'format.user.label': 'User';
|
|
67
|
+
readonly 'format.number.label': 'Number';
|
|
68
|
+
readonly 'format.uri.label': 'URI';
|
|
69
|
+
readonly 'format.url.label': 'URL';
|
|
70
|
+
readonly 'format.uuid.label': 'UUID';
|
|
71
|
+
readonly 'latitude.label': 'Latitude';
|
|
72
|
+
readonly 'longitude.label': 'Longitude';
|
|
73
|
+
readonly 'select-option.label': 'Label';
|
|
74
|
+
readonly 'select-option-label.placeholder': 'Option label';
|
|
75
|
+
readonly 'select-option-delete.button': 'Delete';
|
|
76
|
+
readonly 'select-option-add.button': 'Add option';
|
|
77
|
+
readonly 'system-schema.title': 'System type';
|
|
78
|
+
readonly 'system-schema.description': 'System type: cannot add or remove fields.';
|
|
79
|
+
readonly 'remove.button': 'Delete';
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export default meta;
|
|
86
|
+
type Story = StoryObj<typeof meta>;
|
|
87
|
+
export declare const Default: Story;
|
|
88
|
+
//# sourceMappingURL=Card.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AA2E1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -7,18 +7,18 @@ export declare const Form: {
|
|
|
7
7
|
};
|
|
8
8
|
Viewport: import("react").ForwardRefExoticComponent<Omit<FormViewportProps, "className"> & {
|
|
9
9
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
10
|
-
} & Pick<import("react").HTMLAttributes<Element>, "children" | "
|
|
10
|
+
} & Pick<import("react").HTMLAttributes<Element>, "children" | "role" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
Content: import("react").ForwardRefExoticComponent<Omit<FormContentProps, "className"> & {
|
|
12
12
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
13
|
-
} & Pick<import("react").HTMLAttributes<Element>, "children" | "
|
|
13
|
+
} & Pick<import("react").HTMLAttributes<Element>, "children" | "role" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
14
|
Section: import("react").ForwardRefExoticComponent<Omit<FormSectionProps, "className"> & {
|
|
15
15
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
16
|
-
} & Pick<import("react").HTMLAttributes<Element>, "children" | "
|
|
16
|
+
} & Pick<import("react").HTMLAttributes<Element>, "children" | "role" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
Group: import("react").ForwardRefExoticComponent<Omit<FormGroupProps, "className"> & {
|
|
18
18
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
19
|
-
} & Pick<import("react").HTMLAttributes<Element>, "children" | "
|
|
19
|
+
} & Pick<import("react").HTMLAttributes<Element>, "children" | "role" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
20
|
FieldSet: {
|
|
21
|
-
({ classNames, ...props }: import("./FormControls").
|
|
21
|
+
({ classNames, ...props }: import("./FormControls").FormFieldSetContainerProps): import("react").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
Layout: {
|
|
@@ -26,11 +26,11 @@ export declare const Form: {
|
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
Label: {
|
|
29
|
-
({ classNames, labelClassName, variant, label, error, readonly, required, standalone, button, onClick, }: import("./FormField").FormFieldLabelProps): import("react").JSX.Element;
|
|
29
|
+
({ classNames, labelClassName, variant, label, error, readonly, required, standalone, button, labelEnd, onClick, }: import("./FormField").FormFieldLabelProps): import("react").JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
32
32
|
Row: {
|
|
33
|
-
<T>({ classNames, children, readonly, presentation, label, description, jsonPath, format, required, standalone, renderStatic, validation, getStatus, getValue, rootRef, }: FormRowProps<T>): import("react").JSX.Element | null;
|
|
33
|
+
<T>({ classNames, children, readonly, presentation, label, description, jsonPath, format, required, standalone, labelEnd, renderStatic, validation, getStatus, getValue, rootRef, }: FormRowProps<T>): import("react").JSX.Element | null;
|
|
34
34
|
displayName: string;
|
|
35
35
|
};
|
|
36
36
|
Actions: {
|
|
@@ -66,6 +66,7 @@ declare const meta: {
|
|
|
66
66
|
readonly 'format.json.label': 'JSON';
|
|
67
67
|
readonly 'format.lnglat.label': 'Geopoint';
|
|
68
68
|
readonly 'format.markdown.label': 'Markdown';
|
|
69
|
+
readonly 'format.password.label': 'Password';
|
|
69
70
|
readonly 'format.percent.label': 'Percent';
|
|
70
71
|
readonly 'format.ref.label': 'Reference';
|
|
71
72
|
readonly 'format.regex.label': 'RegExp';
|
|
@@ -153,4 +154,24 @@ declare const CreateFeedSchema: Schema.Union<[Schema.Struct<{
|
|
|
153
154
|
* `standard-site`, URL + autofill for `rss`). Mirrors the magazine create-feed schema.
|
|
154
155
|
*/
|
|
155
156
|
export declare const DiscriminatedUnion: Story<Schema.Schema.Type<typeof CreateFeedSchema>>;
|
|
157
|
+
declare const ReactiveSchema: Schema.mutable<Schema.Struct<{
|
|
158
|
+
name: Schema.refine<string, typeof Schema.String>;
|
|
159
|
+
counter: Schema.SchemaClass<number, number, never>;
|
|
160
|
+
}>>;
|
|
161
|
+
type ReactiveValues = Schema.Schema.Type<typeof ReactiveSchema>;
|
|
162
|
+
/**
|
|
163
|
+
* Demonstrates the reactive-source + local-buffer pattern used by the selected-objects companion. Pass a live
|
|
164
|
+
* object as `values` and gate persistence on validity in `onValuesChanged`. Watch the `Counter` field update
|
|
165
|
+
* live from the external tick while you clear `Name`: the form holds the invalid draft (shows the error) without
|
|
166
|
+
* snapping back, and the external counter keeps flowing in. Fixing `Name` commits it and reconciles.
|
|
167
|
+
*
|
|
168
|
+
* Use the toolbar to stop the external ticks (then edit `Counter` by hand, or step it once with the `+` button)
|
|
169
|
+
* to see manual edits and external updates reconcile through the same path.
|
|
170
|
+
*
|
|
171
|
+
* @idiom org.dxos.react-ui-form.reactiveBufferedForm
|
|
172
|
+
* applies: Editing a live/remote object where fields can change externally mid-edit (object/article editors, companions)
|
|
173
|
+
* instead-of: Uncontrolled `defaultValues` (ignores external changes) or naive controlled `values` (snaps invalid input back)
|
|
174
|
+
* uses: {@link Form.Root}
|
|
175
|
+
*/
|
|
176
|
+
export declare const ReactiveBuffered: Story<ReactiveValues>;
|
|
156
177
|
//# sourceMappingURL=Form.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAoD,MAAM,OAAO,CAAC;AAIzE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAWzD,OAAO,EAAgB,MAAM,EAAc,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,YAAY,CAAC;AACpD,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAElD,KAAK,SAAS,C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;AAkEF,QAAA,MAAM,gBAAgB;;;;;;;;IAA8C,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAKjF,CAAC;AAKF,QAAA,MAAM,cAAc;;;GAWnB,CAAC;AACF,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;AA0DhE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAElD,CAAC"}
|
|
@@ -15,6 +15,7 @@ declare const formStyles: import("tailwind-variants").TVReturnType<{
|
|
|
15
15
|
sectionTitle: string;
|
|
16
16
|
sectionDescription: string;
|
|
17
17
|
fieldSet: string;
|
|
18
|
+
fieldSetBody: string;
|
|
18
19
|
field: string;
|
|
19
20
|
fieldLabel: string;
|
|
20
21
|
fieldLabelText: string;
|
|
@@ -53,6 +54,7 @@ declare const formStyles: import("tailwind-variants").TVReturnType<{
|
|
|
53
54
|
sectionTitle: string;
|
|
54
55
|
sectionDescription: string;
|
|
55
56
|
fieldSet: string;
|
|
57
|
+
fieldSetBody: string;
|
|
56
58
|
field: string;
|
|
57
59
|
fieldLabel: string;
|
|
58
60
|
fieldLabelText: string;
|
|
@@ -91,6 +93,7 @@ declare const formStyles: import("tailwind-variants").TVReturnType<{
|
|
|
91
93
|
sectionTitle: string;
|
|
92
94
|
sectionDescription: string;
|
|
93
95
|
fieldSet: string;
|
|
96
|
+
fieldSetBody: string;
|
|
94
97
|
field: string;
|
|
95
98
|
fieldLabel: string;
|
|
96
99
|
fieldLabelText: string;
|
|
@@ -132,6 +135,7 @@ export declare const formTheme: {
|
|
|
132
135
|
sectionTitle: string;
|
|
133
136
|
sectionDescription: string;
|
|
134
137
|
fieldSet: string;
|
|
138
|
+
fieldSetBody: string;
|
|
135
139
|
field: string;
|
|
136
140
|
fieldLabel: string;
|
|
137
141
|
fieldLabelText: string;
|
|
@@ -170,6 +174,7 @@ export declare const formTheme: {
|
|
|
170
174
|
sectionTitle: string;
|
|
171
175
|
sectionDescription: string;
|
|
172
176
|
fieldSet: string;
|
|
177
|
+
fieldSetBody: string;
|
|
173
178
|
field: string;
|
|
174
179
|
fieldLabel: string;
|
|
175
180
|
fieldLabelText: string;
|
|
@@ -208,6 +213,7 @@ export declare const formTheme: {
|
|
|
208
213
|
sectionTitle: string;
|
|
209
214
|
sectionDescription: string;
|
|
210
215
|
fieldSet: string;
|
|
216
|
+
fieldSetBody: string;
|
|
211
217
|
field: string;
|
|
212
218
|
fieldLabel: string;
|
|
213
219
|
fieldLabelText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.theme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,gBAAgB,CAAC;AAE3D,mGAAmG;AACnG,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAElF,kEAAkE;AAClE,MAAM,MAAM,YAAY,GAAG;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,CAAC;AAExD,QAAA,MAAM,UAAU;;
|
|
1
|
+
{"version":3,"file":"Form.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Form.theme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,gBAAgB,CAAC;AAE3D,mGAAmG;AACnG,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAElF,kEAAkE;AAClE,MAAM,MAAM,YAAY,GAAG;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,CAAC;AAExD,QAAA,MAAM,UAAU;;QA+BV,OAAO;QACP,QAAQ;YACN,OAAO;YAGP,OAAO;YACP,aAAa;YACb,YAAY;YACZ,kBAAkB;YAElB,QAAQ;YAGR,YAAY;YACZ,KAAK;YAML,UAAU;YACV,cAAc;YACd,gBAAgB;YAChB,YAAY;YACZ,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAOrB,CAAC;AAEH,oGAAoG;AACpG,eAAO,MAAM,SAAS;;;YAlChB,OAAO;YACP,QAAQ;gBACN,OAAO;gBAGP,OAAO;gBACP,aAAa;gBACb,YAAY;gBACZ,kBAAkB;gBAElB,QAAQ;gBAGR,YAAY;gBACZ,KAAK;gBAML,UAAU;gBACV,cAAc;gBACd,gBAAgB;gBAChB,YAAY;gBACZ,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBtB,CAAC;AAEF,2EAA2E;AAE3E,eAAO,MAAM,SAAS,EAAsC,KAAK,CAAC,MAAM,UAAU,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -25,14 +25,14 @@ export type FormViewportProps = {
|
|
|
25
25
|
};
|
|
26
26
|
export declare const FormViewport: React.ForwardRefExoticComponent<Omit<FormViewportProps, "className"> & {
|
|
27
27
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
28
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
28
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
29
|
export type FormContentProps = ThemedClassName<PropsWithChildren<{}>>;
|
|
30
30
|
export declare const FormContent: React.ForwardRefExoticComponent<Omit<FormContentProps, "className"> & {
|
|
31
31
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
32
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
33
|
-
export type
|
|
34
|
-
export declare function
|
|
35
|
-
export declare namespace
|
|
32
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
export type FormFieldSetContainerProps = ThemedClassName<NaturalFormFieldSetProps<any>>;
|
|
34
|
+
export declare function FormFieldSetContainer({ classNames, ...props }: FormFieldSetContainerProps): React.JSX.Element;
|
|
35
|
+
export declare namespace FormFieldSetContainer {
|
|
36
36
|
var displayName: string;
|
|
37
37
|
}
|
|
38
38
|
export type FormLayoutProps = Omit<NaturalFormLayoutProps, 'schema'> & {
|
|
@@ -53,7 +53,7 @@ export type FormSectionProps = ThemedClassName<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const FormSection: React.ForwardRefExoticComponent<Omit<FormSectionProps, "className"> & {
|
|
55
55
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
56
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
56
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
57
|
export type FormGroupProps = ThemedClassName<PropsWithChildren>;
|
|
58
58
|
/**
|
|
59
59
|
* A bordered card grouping related rows/controls (e.g. an entity card in a list).
|
|
@@ -61,7 +61,7 @@ export type FormGroupProps = ThemedClassName<PropsWithChildren>;
|
|
|
61
61
|
*/
|
|
62
62
|
export declare const FormGroup: React.ForwardRefExoticComponent<Omit<FormGroupProps, "className"> & {
|
|
63
63
|
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
64
|
-
} & Pick<React.HTMLAttributes<Element>, "children" | "
|
|
64
|
+
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
|
|
65
65
|
export type FormSubmitProps = ThemedClassName<Partial<Pick<IconButtonProps, 'icon' | 'label' | 'disabled'>>>;
|
|
66
66
|
export declare function FormSubmit({ classNames, label, icon, disabled }: FormSubmitProps): React.JSX.Element | null;
|
|
67
67
|
export declare namespace FormSubmit {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,eAAe,EAGpB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"FormControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/FormControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,eAAe,EAGpB,KAAK,eAAe,EAOrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAIxC,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAIpB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAgB,KAAK,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAc,KAAK,eAAe,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAM1F,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,KAAK,CACxE,iBAAiB,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KA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AAC,CAAC;oCAEvB,EAAE,UAAU,EAAE,EAAE,gBAAgB;;;;AAkD5D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW;;6GAgBvB,CAAC;AAUF,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,SAAS;;6GASpB,CAAC;AAUH,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;mCAElF,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,eAAe;;;;AAoCjF,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;kCAGtC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,cAAc"}
|
|
@@ -40,5 +40,5 @@ export declare function FormField(props: FormFieldProps): React.JSX.Element | nu
|
|
|
40
40
|
export declare namespace FormField {
|
|
41
41
|
var displayName: string;
|
|
42
42
|
}
|
|
43
|
-
export declare const CompactIconButton: (props: IconButtonProps) => React.JSX.Element;
|
|
43
|
+
export declare const CompactIconButton: ({ classNames, ...props }: IconButtonProps) => React.JSX.Element;
|
|
44
44
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/FormField/FormField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAc,eAAe,EAAkB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/FormField/FormField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAc,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAI7E,OAAO,EAAE,KAAK,YAAY,EAAuD,MAAM,QAAQ,CAAC;AAwBhG,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC;IAEpB;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,YAAY,CAAC;kCAES,KAAK,EAAE,cAAc;;;;AA6O/C,eAAO,MAAM,iBAAiB,6BAA8B,eAAe,sBAM1E,CAAC"}
|
|
@@ -17,13 +17,20 @@ export type FormFieldLabelProps = ThemedClassName<{
|
|
|
17
17
|
*/
|
|
18
18
|
path?: string;
|
|
19
19
|
/**
|
|
20
|
-
* Trailing button rendered at the end of the label row (
|
|
20
|
+
* Trailing button rendered at the end of the label row (last grid column).
|
|
21
21
|
* Used by nested-object field sets to surface a collapse toggle.
|
|
22
22
|
*/
|
|
23
23
|
button?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Read-only content rendered right after the label text (e.g. a live numeric readout for a
|
|
26
|
+
* slider field) — a sibling of `Input.Label`, never a child, so the label's `textContent`
|
|
27
|
+
* stays exactly `label` (see the comment on `labelClassNames` below) and doesn't masquerade
|
|
28
|
+
* as an interactive control the way `button` does.
|
|
29
|
+
*/
|
|
30
|
+
labelEnd?: ReactNode;
|
|
24
31
|
onClick?: () => void;
|
|
25
32
|
} & Pick<FormFieldRendererProps, 'label' | 'readonly' | 'required'>>;
|
|
26
|
-
export declare function FormFieldLabel({ classNames, labelClassName, variant, label, error, readonly, required, standalone, button, onClick }: FormFieldLabelProps): React.JSX.Element;
|
|
33
|
+
export declare function FormFieldLabel({ classNames, labelClassName, variant, label, error, readonly, required, standalone, button, labelEnd, onClick }: FormFieldLabelProps): React.JSX.Element;
|
|
27
34
|
export declare namespace FormFieldLabel {
|
|
28
35
|
var displayName: string;
|
|
29
36
|
}
|
|
@@ -37,6 +44,13 @@ export type FormRowProps<T = any> = ThemedClassName<Pick<FormFieldRendererProps<
|
|
|
37
44
|
* Render the label as a standalone `<span>` (group/multi-input fields with no single associated control).
|
|
38
45
|
*/
|
|
39
46
|
standalone?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Read-only content rendered right after the label text, right-aligned by the label row's
|
|
49
|
+
* grid (e.g. a live numeric readout for a slider field). Forwarded to `FormFieldLabel`'s
|
|
50
|
+
* `labelEnd` slot — a sibling of the label, never a child, so the label's `textContent` and
|
|
51
|
+
* accessible name stay exactly `label`.
|
|
52
|
+
*/
|
|
53
|
+
labelEnd?: ReactNode;
|
|
40
54
|
/**
|
|
41
55
|
* Override the read-only/`static` rendering of the value. Fields whose value is not plain text
|
|
42
56
|
* (refs, selects, markdown) supply this; the default formats scalars/dates via `formatStaticValue`.
|
|
@@ -61,7 +75,7 @@ export type FormRowProps<T = any> = ThemedClassName<Pick<FormFieldRendererProps<
|
|
|
61
75
|
presentation: FormFieldPresentation;
|
|
62
76
|
}) => ReactNode);
|
|
63
77
|
}>;
|
|
64
|
-
export declare function FormRow<T>({ classNames, children, readonly, presentation, label, description, jsonPath, format, required, standalone, renderStatic, validation, getStatus, getValue, rootRef }: FormRowProps<T>): React.JSX.Element | null;
|
|
78
|
+
export declare function FormRow<T>({ classNames, children, readonly, presentation, label, description, jsonPath, format, required, standalone, labelEnd, renderStatic, validation, getStatus, getValue, rootRef }: FormRowProps<T>): React.JSX.Element | null;
|
|
65
79
|
export declare namespace FormRow {
|
|
66
80
|
var displayName: string;
|
|
67
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/FormField/FormRow.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAG3F,OAAO,EAAe,KAAK,eAAe,EAAW,MAAM,gBAAgB,CAAC;AAG5E,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAGrD,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,KAAK,qBAAqB,EAAmB,MAAM,gBAAgB,CAAC;AAM7E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAC/C;IACE,kJAAkJ;IAClJ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sGAAsG;IACtG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oHAAoH;IACpH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC,CACpE,CAAC;uCAE6B,EAC7B,UAAU,EACV,cAAc,EACd,OAAmB,EACnB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,MAAM,EACN,OAAO,EACR,EAAE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B,CAAC;IACrG,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAE9D;IAEQ,KAAK;QAAK,KAAK;MAAc;IAE7B,kBAAkB,CAAC,SAAS,EAAE,2BAA2B,QAIjE;IAEQ,MAAM,wRAWd;IAED,OAAO,CAAC,UAAU;CAGnB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as SchemaAST from 'effect/SchemaAST';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { type FormFieldStateProps } from '#types';
|
|
4
3
|
import { type FormFieldProps } from '../../FormField';
|
|
@@ -10,9 +9,4 @@ export declare function ArrayField({ type, path, label, readonly, layout, fieldP
|
|
|
10
9
|
export declare namespace ArrayField {
|
|
11
10
|
var displayName: string;
|
|
12
11
|
}
|
|
13
|
-
/**
|
|
14
|
-
* Returns the default empty value for a given AST.
|
|
15
|
-
* Used for initializing new array values etc.
|
|
16
|
-
*/
|
|
17
|
-
export declare const getDefaultValue: (ast?: SchemaAST.AST) => any;
|
|
18
12
|
//# sourceMappingURL=ArrayField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/ArrayField/ArrayField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrayField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/ArrayField/ArrayField.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAanE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAIlD,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAqBpF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,mBAAmB,CAAC;CACjC,GAAG,cAAc,CAAC;mCAEQ,EACzB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,UAAU,EAAE,UAAU,EACtB,GAAG,KAAK,EACT,EAAE,eAAe"}
|
|
@@ -52,6 +52,7 @@ declare const meta: {
|
|
|
52
52
|
readonly 'format.json.label': 'JSON';
|
|
53
53
|
readonly 'format.lnglat.label': 'Geopoint';
|
|
54
54
|
readonly 'format.markdown.label': 'Markdown';
|
|
55
|
+
readonly 'format.password.label': 'Password';
|
|
55
56
|
readonly 'format.percent.label': 'Percent';
|
|
56
57
|
readonly 'format.ref.label': 'Reference';
|
|
57
58
|
readonly 'format.regex.label': 'RegExp';
|
package/dist/types/src/components/Form/FormField/fields/ArrayField/ArrayField.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/ArrayField/ArrayField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA2FjE,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ArrayField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/ArrayField/ArrayField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA2FjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as SchemaAST from 'effect/SchemaAST';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the default empty value for a given AST.
|
|
4
|
+
* Used for initializing new array values etc.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getDefaultValue: (ast?: SchemaAST.AST) => any;
|
|
7
|
+
//# sourceMappingURL=default-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-value.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/ArrayField/default-value.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAO9C;;;GAGG;AAEH,eAAO,MAAM,eAAe,SAAU,SAAS,CAAC,GAAG,KAAG,GA+BrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/ArrayField/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/ArrayField/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,cAAc,CAAC"}
|
package/dist/types/src/components/Form/FormField/fields/BooleanField/BooleanField.stories.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ declare const meta: {
|
|
|
54
54
|
readonly 'format.json.label': 'JSON';
|
|
55
55
|
readonly 'format.lnglat.label': 'Geopoint';
|
|
56
56
|
readonly 'format.markdown.label': 'Markdown';
|
|
57
|
+
readonly 'format.password.label': 'Password';
|
|
57
58
|
readonly 'format.percent.label': 'Percent';
|
|
58
59
|
readonly 'format.ref.label': 'Reference';
|
|
59
60
|
readonly 'format.regex.label': 'RegExp';
|
package/dist/types/src/components/Form/FormField/fields/BooleanField/BooleanField.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/BooleanField/BooleanField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAkCxC,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"BooleanField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/BooleanField/BooleanField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAkCxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/DateField/DateField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAsCrD,eAAO,MAAM,SAAS,oGAQnB,sBAAsB,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"DateField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/DateField/DateField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAsCrD,eAAO,MAAM,SAAS,oGAQnB,sBAAsB,CAAC,MAAM,CAAC,sBAqDhC,CAAC"}
|
|
@@ -54,6 +54,7 @@ declare const meta: {
|
|
|
54
54
|
readonly 'format.json.label': 'JSON';
|
|
55
55
|
readonly 'format.lnglat.label': 'Geopoint';
|
|
56
56
|
readonly 'format.markdown.label': 'Markdown';
|
|
57
|
+
readonly 'format.password.label': 'Password';
|
|
57
58
|
readonly 'format.percent.label': 'Percent';
|
|
58
59
|
readonly 'format.ref.label': 'Reference';
|
|
59
60
|
readonly 'format.regex.label': 'RegExp';
|
package/dist/types/src/components/Form/FormField/fields/DateField/DateField.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/DateField/DateField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0CxC,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"DateField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/DateField/DateField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0CxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
package/dist/types/src/components/Form/FormField/fields/GeoPointField/GeoPointField.stories.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ declare const meta: {
|
|
|
54
54
|
readonly 'format.json.label': 'JSON';
|
|
55
55
|
readonly 'format.lnglat.label': 'Geopoint';
|
|
56
56
|
readonly 'format.markdown.label': 'Markdown';
|
|
57
|
+
readonly 'format.password.label': 'Password';
|
|
57
58
|
readonly 'format.percent.label': 'Percent';
|
|
58
59
|
readonly 'format.ref.label': 'Reference';
|
|
59
60
|
readonly 'format.regex.label': 'RegExp';
|
package/dist/types/src/components/Form/FormField/fields/GeoPointField/GeoPointField.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoPointField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/GeoPointField/GeoPointField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAmCxC,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"GeoPointField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/GeoPointField/GeoPointField.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAmCxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
package/dist/types/src/components/Form/FormField/fields/MarkdownField/MarkdownField.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/MarkdownField/MarkdownField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"MarkdownField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Form/FormField/fields/MarkdownField/MarkdownField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAIrD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,2EAQvB,sBAAsB,sBA2CxB,CAAC"}
|