@react-magma/schema-renderer 0.0.10-next.0 → 0.0.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-magma/schema-renderer",
|
|
3
|
-
"version": "0.0.10
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^16.10.0",
|
|
42
42
|
"react-dom": "^16.10.0",
|
|
43
43
|
"react-dropzone": "11.3.2",
|
|
44
|
-
"react-magma-dom": "^2.5.9
|
|
44
|
+
"react-magma-dom": "^2.5.9",
|
|
45
45
|
"react-magma-icons": "^2.3.1",
|
|
46
46
|
"tsdx": "^0.14.1",
|
|
47
47
|
"uuid": "^8.3.0"
|
|
@@ -7,7 +7,7 @@ import { action } from '@storybook/addon-actions';
|
|
|
7
7
|
import { Story, Meta } from '@storybook/react/types-6-0';
|
|
8
8
|
import { templateTypes } from '../TemplateMapper';
|
|
9
9
|
|
|
10
|
-
import { Hyperlink } from 'react-magma-dom';
|
|
10
|
+
import { Hyperlink, InputType } from 'react-magma-dom';
|
|
11
11
|
|
|
12
12
|
const baseSchema: Schema = {
|
|
13
13
|
title: 'Form Header',
|
|
@@ -38,17 +38,19 @@ Form.args = {
|
|
|
38
38
|
component: componentTypes.INPUT,
|
|
39
39
|
name: 'name',
|
|
40
40
|
labelText: 'Name',
|
|
41
|
+
type: InputType.text,
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
component: componentTypes.PASSWORD_INPUT,
|
|
44
45
|
name: 'password',
|
|
45
46
|
labelText: 'Password',
|
|
47
|
+
type: InputType.password
|
|
46
48
|
},
|
|
47
49
|
{
|
|
48
50
|
component: componentTypes.COMBOBOX,
|
|
49
51
|
name: 'combobox',
|
|
50
52
|
labelText: 'Combobox',
|
|
51
|
-
|
|
53
|
+
options: [
|
|
52
54
|
{ label: 'Red', value: 'red' },
|
|
53
55
|
{ label: 'Blue', value: 'blue' },
|
|
54
56
|
{ label: 'Green', value: 'green' },
|
|
@@ -60,7 +62,7 @@ Form.args = {
|
|
|
60
62
|
name: 'multi-combobox',
|
|
61
63
|
labelText: 'Multi Combobox',
|
|
62
64
|
isMulti: true,
|
|
63
|
-
|
|
65
|
+
options: [
|
|
64
66
|
{ label: 'Red', value: 'red' },
|
|
65
67
|
{ label: 'Blue', value: 'blue' },
|
|
66
68
|
{ label: 'Green', value: 'green' },
|
|
@@ -71,7 +73,7 @@ Form.args = {
|
|
|
71
73
|
component: componentTypes.SELECT,
|
|
72
74
|
name: 'select',
|
|
73
75
|
labelText: 'Select',
|
|
74
|
-
|
|
76
|
+
options: [
|
|
75
77
|
{ label: 'Red', value: 'red' },
|
|
76
78
|
{ label: 'Blue', value: 'blue' },
|
|
77
79
|
{ label: 'Green', value: 'green' },
|
|
@@ -82,7 +84,7 @@ Form.args = {
|
|
|
82
84
|
name: 'multi-select',
|
|
83
85
|
labelText: 'Multi Select',
|
|
84
86
|
isMulti: true,
|
|
85
|
-
|
|
87
|
+
options: [
|
|
86
88
|
{ label: 'Red', value: 'red' },
|
|
87
89
|
{ label: 'Blue', value: 'blue' },
|
|
88
90
|
{ label: 'Green', value: 'green' },
|
|
@@ -355,16 +357,6 @@ Array.args = {
|
|
|
355
357
|
placeholder: 'Task',
|
|
356
358
|
isRequired: true,
|
|
357
359
|
},
|
|
358
|
-
{
|
|
359
|
-
component: componentTypes.SELECT,
|
|
360
|
-
name: 'select',
|
|
361
|
-
labelText: 'Select',
|
|
362
|
-
items: [
|
|
363
|
-
{ label: 'Red', value: 'red' },
|
|
364
|
-
{ label: 'Blue', value: 'blue' },
|
|
365
|
-
{ label: 'Green', value: 'green' },
|
|
366
|
-
],
|
|
367
|
-
},
|
|
368
360
|
],
|
|
369
361
|
},
|
|
370
362
|
],
|