@webstudio-is/react-sdk 0.7.2 → 0.8.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/lib/arg-types/utils.js +3 -8
- package/lib/cjs/arg-types/utils.cjs +88 -0
- package/lib/cjs/arg-types/utils.d.ts +10 -0
- package/lib/cjs/arg-types/utils.d.ts.map +1 -0
- package/lib/cjs/components/body.cjs +8 -0
- package/lib/cjs/components/body.d.ts +3 -0
- package/lib/cjs/components/body.d.ts.map +1 -0
- package/lib/cjs/components/body.props.json +491 -0
- package/lib/cjs/components/body.stories.cjs +11 -0
- package/lib/cjs/components/body.stories.d.ts +7 -0
- package/lib/cjs/components/body.stories.d.ts.map +1 -0
- package/lib/cjs/components/body.ws.cjs +64 -0
- package/lib/cjs/components/body.ws.d.ts +5 -0
- package/lib/cjs/components/body.ws.d.ts.map +1 -0
- package/lib/cjs/components/bold.cjs +8 -0
- package/lib/cjs/components/bold.d.ts +3 -0
- package/lib/cjs/components/bold.d.ts.map +1 -0
- package/lib/cjs/components/bold.props.json +491 -0
- package/lib/cjs/components/bold.stories.cjs +14 -0
- package/lib/cjs/components/bold.stories.d.ts +6 -0
- package/lib/cjs/components/bold.stories.d.ts.map +1 -0
- package/lib/cjs/components/bold.ws.cjs +14 -0
- package/lib/cjs/components/bold.ws.d.ts +5 -0
- package/lib/cjs/components/bold.ws.d.ts.map +1 -0
- package/lib/cjs/components/box.cjs +9 -0
- package/lib/cjs/components/box.d.ts +8 -0
- package/lib/cjs/components/box.d.ts.map +1 -0
- package/lib/cjs/components/box.props.json +508 -0
- package/lib/cjs/components/box.stories.cjs +12 -0
- package/lib/cjs/components/box.stories.d.ts +10 -0
- package/lib/cjs/components/box.stories.d.ts.map +1 -0
- package/lib/cjs/components/box.ws.cjs +21 -0
- package/lib/cjs/components/box.ws.d.ts +5 -0
- package/lib/cjs/components/box.ws.d.ts.map +1 -0
- package/lib/cjs/components/button.cjs +11 -0
- package/lib/cjs/components/button.d.ts +3 -0
- package/lib/cjs/components/button.d.ts.map +1 -0
- package/lib/cjs/components/button.props.json +547 -0
- package/lib/cjs/components/button.stories.cjs +14 -0
- package/lib/cjs/components/button.stories.d.ts +6 -0
- package/lib/cjs/components/button.stories.d.ts.map +1 -0
- package/lib/cjs/components/button.ws.cjs +15 -0
- package/lib/cjs/components/button.ws.d.ts +5 -0
- package/lib/cjs/components/button.ws.d.ts.map +1 -0
- package/lib/cjs/components/component-type.cjs +28 -0
- package/lib/cjs/components/component-type.d.ts +17 -0
- package/lib/cjs/components/component-type.d.ts.map +1 -0
- package/lib/cjs/components/form.cjs +8 -0
- package/lib/cjs/components/form.d.ts +3 -0
- package/lib/cjs/components/form.d.ts.map +1 -0
- package/lib/cjs/components/form.props.json +531 -0
- package/lib/cjs/components/form.stories.cjs +12 -0
- package/lib/cjs/components/form.stories.d.ts +6 -0
- package/lib/cjs/components/form.stories.d.ts.map +1 -0
- package/lib/cjs/components/form.ws.cjs +26 -0
- package/lib/cjs/components/form.ws.d.ts +5 -0
- package/lib/cjs/components/form.ws.d.ts.map +1 -0
- package/lib/cjs/components/heading.cjs +9 -0
- package/lib/cjs/components/heading.d.ts +8 -0
- package/lib/cjs/components/heading.d.ts.map +1 -0
- package/lib/cjs/components/heading.props.json +497 -0
- package/lib/cjs/components/heading.stories.cjs +14 -0
- package/lib/cjs/components/heading.stories.d.ts +10 -0
- package/lib/cjs/components/heading.stories.d.ts.map +1 -0
- package/lib/cjs/components/heading.ws.cjs +15 -0
- package/lib/cjs/components/heading.ws.d.ts +5 -0
- package/lib/cjs/components/heading.ws.d.ts.map +1 -0
- package/lib/cjs/components/image.cjs +40 -0
- package/lib/cjs/components/image.d.ts +3 -0
- package/lib/cjs/components/image.d.ts.map +1 -0
- package/lib/cjs/components/image.props.json +575 -0
- package/lib/cjs/components/image.stories.cjs +12 -0
- package/lib/cjs/components/image.stories.d.ts +6 -0
- package/lib/cjs/components/image.stories.d.ts.map +1 -0
- package/lib/cjs/components/image.ws.cjs +29 -0
- package/lib/cjs/components/image.ws.d.ts +5 -0
- package/lib/cjs/components/image.ws.d.ts.map +1 -0
- package/lib/cjs/components/index.cjs +36 -0
- package/lib/cjs/components/index.d.ts +16 -0
- package/lib/cjs/components/index.d.ts.map +1 -0
- package/lib/cjs/components/index.test.cjs +33 -0
- package/lib/cjs/components/index.test.d.ts +2 -0
- package/lib/cjs/components/index.test.d.ts.map +1 -0
- package/lib/cjs/components/input.cjs +8 -0
- package/lib/cjs/components/input.d.ts +3 -0
- package/lib/cjs/components/input.d.ts.map +1 -0
- package/lib/cjs/components/input.props.json +657 -0
- package/lib/cjs/components/input.stories.cjs +12 -0
- package/lib/cjs/components/input.stories.d.ts +6 -0
- package/lib/cjs/components/input.stories.d.ts.map +1 -0
- package/lib/cjs/components/input.ws.cjs +14 -0
- package/lib/cjs/components/input.ws.d.ts +5 -0
- package/lib/cjs/components/input.ws.d.ts.map +1 -0
- package/lib/cjs/components/italic.cjs +8 -0
- package/lib/cjs/components/italic.d.ts +3 -0
- package/lib/cjs/components/italic.d.ts.map +1 -0
- package/lib/cjs/components/italic.props.json +491 -0
- package/lib/cjs/components/italic.stories.cjs +14 -0
- package/lib/cjs/components/italic.stories.d.ts +6 -0
- package/lib/cjs/components/italic.stories.d.ts.map +1 -0
- package/lib/cjs/components/italic.ws.cjs +21 -0
- package/lib/cjs/components/italic.ws.d.ts +5 -0
- package/lib/cjs/components/italic.ws.d.ts.map +1 -0
- package/lib/cjs/components/link.cjs +8 -0
- package/lib/cjs/components/link.d.ts +8 -0
- package/lib/cjs/components/link.d.ts.map +1 -0
- package/lib/cjs/components/link.props.json +547 -0
- package/lib/cjs/components/link.stories.cjs +14 -0
- package/lib/cjs/components/link.stories.d.ts +10 -0
- package/lib/cjs/components/link.stories.d.ts.map +1 -0
- package/lib/cjs/components/link.ws.cjs +27 -0
- package/lib/cjs/components/link.ws.d.ts +5 -0
- package/lib/cjs/components/link.ws.d.ts.map +1 -0
- package/lib/cjs/components/meta.cjs +40 -0
- package/lib/cjs/components/meta.d.ts +7479 -0
- package/lib/cjs/components/meta.d.ts.map +1 -0
- package/lib/cjs/components/paragraph.cjs +8 -0
- package/lib/cjs/components/paragraph.d.ts +3 -0
- package/lib/cjs/components/paragraph.d.ts.map +1 -0
- package/lib/cjs/components/paragraph.props.json +491 -0
- package/lib/cjs/components/paragraph.stories.cjs +14 -0
- package/lib/cjs/components/paragraph.stories.d.ts +6 -0
- package/lib/cjs/components/paragraph.stories.d.ts.map +1 -0
- package/lib/cjs/components/paragraph.ws.cjs +15 -0
- package/lib/cjs/components/paragraph.ws.d.ts +5 -0
- package/lib/cjs/components/paragraph.ws.d.ts.map +1 -0
- package/lib/cjs/components/span.cjs +8 -0
- package/lib/cjs/components/span.d.ts +3 -0
- package/lib/cjs/components/span.d.ts.map +1 -0
- package/lib/cjs/components/span.props.json +491 -0
- package/lib/cjs/components/span.stories.cjs +14 -0
- package/lib/cjs/components/span.stories.d.ts +6 -0
- package/lib/cjs/components/span.stories.d.ts.map +1 -0
- package/lib/cjs/components/span.ws.cjs +14 -0
- package/lib/cjs/components/span.ws.d.ts +5 -0
- package/lib/cjs/components/span.ws.d.ts.map +1 -0
- package/lib/cjs/components/subscript.cjs +8 -0
- package/lib/cjs/components/subscript.d.ts +3 -0
- package/lib/cjs/components/subscript.d.ts.map +1 -0
- package/lib/cjs/components/subscript.props.json +491 -0
- package/lib/cjs/components/subscript.stories.cjs +14 -0
- package/lib/cjs/components/subscript.stories.d.ts +6 -0
- package/lib/cjs/components/subscript.stories.d.ts.map +1 -0
- package/lib/cjs/components/subscript.ws.cjs +14 -0
- package/lib/cjs/components/subscript.ws.d.ts +5 -0
- package/lib/cjs/components/subscript.ws.d.ts.map +1 -0
- package/lib/cjs/components/superscript.cjs +8 -0
- package/lib/cjs/components/superscript.d.ts +3 -0
- package/lib/cjs/components/superscript.d.ts.map +1 -0
- package/lib/cjs/components/superscript.props.json +491 -0
- package/lib/cjs/components/superscript.stories.cjs +14 -0
- package/lib/cjs/components/superscript.stories.d.ts +6 -0
- package/lib/cjs/components/superscript.stories.d.ts.map +1 -0
- package/lib/cjs/components/superscript.ws.cjs +14 -0
- package/lib/cjs/components/superscript.ws.d.ts +5 -0
- package/lib/cjs/components/superscript.ws.d.ts.map +1 -0
- package/lib/cjs/components/text-block.cjs +8 -0
- package/lib/cjs/components/text-block.d.ts +3 -0
- package/lib/cjs/components/text-block.d.ts.map +1 -0
- package/lib/cjs/components/text-block.props.json +491 -0
- package/lib/cjs/components/text-block.stories.cjs +14 -0
- package/lib/cjs/components/text-block.stories.d.ts +6 -0
- package/lib/cjs/components/text-block.stories.d.ts.map +1 -0
- package/lib/cjs/components/text-block.ws.cjs +23 -0
- package/lib/cjs/components/text-block.ws.d.ts +5 -0
- package/lib/cjs/components/text-block.ws.d.ts.map +1 -0
- package/lib/cjs/css/breakpoints.cjs +9 -0
- package/lib/cjs/css/breakpoints.d.ts +4 -0
- package/lib/cjs/css/breakpoints.d.ts.map +1 -0
- package/lib/cjs/css/categories.cjs +229 -0
- package/lib/cjs/css/categories.d.ts +408 -0
- package/lib/cjs/css/categories.d.ts.map +1 -0
- package/lib/cjs/css/get-browser-style.cjs +48 -0
- package/lib/cjs/css/get-browser-style.d.ts +3 -0
- package/lib/cjs/css/get-browser-style.d.ts.map +1 -0
- package/lib/cjs/css/index.cjs +19 -0
- package/lib/cjs/css/index.d.ts +4 -0
- package/lib/cjs/css/index.d.ts.map +1 -0
- package/lib/cjs/db/index.cjs +18 -0
- package/lib/cjs/db/index.d.ts +3 -0
- package/lib/cjs/db/index.d.ts.map +1 -0
- package/lib/cjs/db/instance.cjs +21 -0
- package/lib/cjs/db/instance.d.ts +14 -0
- package/lib/cjs/db/instance.d.ts.map +1 -0
- package/lib/cjs/db/types.cjs +2 -0
- package/lib/cjs/db/types.d.ts +17 -0
- package/lib/cjs/db/types.d.ts.map +1 -0
- package/lib/cjs/index.cjs +37 -0
- package/lib/cjs/index.d.ts +9 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/pubsub/create.cjs +66 -0
- package/lib/cjs/pubsub/create.d.ts +29 -0
- package/lib/cjs/pubsub/create.d.ts.map +1 -0
- package/lib/cjs/pubsub/index.cjs +17 -0
- package/lib/cjs/pubsub/index.d.ts +2 -0
- package/lib/cjs/pubsub/index.d.ts.map +1 -0
- package/lib/cjs/remix/handle-request.server.cjs +15 -0
- package/lib/cjs/remix/handle-request.server.d.ts +3 -0
- package/lib/cjs/remix/handle-request.server.d.ts.map +1 -0
- package/lib/cjs/remix/index.cjs +18 -0
- package/lib/cjs/remix/index.d.ts +3 -0
- package/lib/cjs/remix/index.d.ts.map +1 -0
- package/lib/cjs/remix/root.cjs +13 -0
- package/lib/cjs/remix/root.d.ts +8 -0
- package/lib/cjs/remix/root.d.ts.map +1 -0
- package/lib/cjs/tree/create-elements-tree.cjs +54 -0
- package/lib/cjs/tree/create-elements-tree.d.ts +19 -0
- package/lib/cjs/tree/create-elements-tree.d.ts.map +1 -0
- package/lib/cjs/tree/index.cjs +19 -0
- package/lib/cjs/tree/index.d.ts +4 -0
- package/lib/cjs/tree/index.d.ts.map +1 -0
- package/lib/cjs/tree/root.cjs +17 -0
- package/lib/cjs/tree/root.d.ts +18 -0
- package/lib/cjs/tree/root.d.ts.map +1 -0
- package/lib/cjs/tree/session-storage-polyfill.cjs +39 -0
- package/lib/cjs/tree/session-storage-polyfill.d.ts +2 -0
- package/lib/cjs/tree/session-storage-polyfill.d.ts.map +1 -0
- package/lib/cjs/tree/wrapper-component.cjs +53 -0
- package/lib/cjs/tree/wrapper-component.d.ts +12 -0
- package/lib/cjs/tree/wrapper-component.d.ts.map +1 -0
- package/lib/cjs/user-props/all-user-props.cjs +21 -0
- package/lib/cjs/user-props/all-user-props.d.ts +8 -0
- package/lib/cjs/user-props/all-user-props.d.ts.map +1 -0
- package/lib/cjs/user-props/index.cjs +20 -0
- package/lib/cjs/user-props/index.d.ts +5 -0
- package/lib/cjs/user-props/index.d.ts.map +1 -0
- package/lib/cjs/user-props/schema.cjs +33 -0
- package/lib/cjs/user-props/schema.d.ts +72 -0
- package/lib/cjs/user-props/schema.d.ts.map +1 -0
- package/lib/cjs/user-props/types.cjs +2 -0
- package/lib/cjs/user-props/types.d.ts +13 -0
- package/lib/cjs/user-props/types.d.ts.map +1 -0
- package/lib/cjs/user-props/use-user-props.cjs +33 -0
- package/lib/cjs/user-props/use-user-props.d.ts +12 -0
- package/lib/cjs/user-props/use-user-props.d.ts.map +1 -0
- package/lib/components/body.js +4 -7
- package/lib/components/body.stories.js +5 -9
- package/lib/components/body.ws.js +5 -7
- package/lib/components/bold.js +4 -7
- package/lib/components/bold.stories.js +7 -10
- package/lib/components/bold.ws.js +5 -7
- package/lib/components/box.js +4 -7
- package/lib/components/box.stories.js +7 -10
- package/lib/components/box.ws.js +5 -7
- package/lib/components/button.js +5 -8
- package/lib/components/button.stories.js +7 -10
- package/lib/components/button.ws.js +5 -7
- package/lib/components/component-type.js +11 -14
- package/lib/components/form.js +4 -7
- package/lib/components/form.stories.js +7 -10
- package/lib/components/form.ws.js +5 -7
- package/lib/components/heading.js +4 -7
- package/lib/components/heading.stories.js +7 -10
- package/lib/components/heading.ws.js +5 -7
- package/lib/components/image.d.ts +2 -10
- package/lib/components/image.d.ts.map +1 -1
- package/lib/components/image.js +6 -21
- package/lib/components/image.stories.d.ts +2 -10
- package/lib/components/image.stories.d.ts.map +1 -1
- package/lib/components/image.stories.js +7 -10
- package/lib/components/image.ws.js +5 -7
- package/lib/components/index.js +15 -36
- package/lib/components/index.test.js +3 -28
- package/lib/components/input.js +4 -7
- package/lib/components/input.stories.js +7 -10
- package/lib/components/input.ws.js +5 -7
- package/lib/components/italic.js +4 -7
- package/lib/components/italic.stories.js +7 -10
- package/lib/components/italic.ws.d.ts.map +1 -1
- package/lib/components/italic.ws.js +12 -7
- package/lib/components/link.js +4 -7
- package/lib/components/link.stories.js +7 -10
- package/lib/components/link.ws.js +5 -7
- package/lib/components/meta.d.ts +13 -4
- package/lib/components/meta.d.ts.map +1 -1
- package/lib/components/meta.js +32 -37
- package/lib/components/paragraph.js +4 -7
- package/lib/components/paragraph.stories.js +7 -10
- package/lib/components/paragraph.ws.js +5 -7
- package/lib/components/span.js +4 -7
- package/lib/components/span.stories.js +7 -10
- package/lib/components/span.ws.js +5 -7
- package/lib/components/subscript.js +4 -7
- package/lib/components/subscript.stories.js +7 -10
- package/lib/components/subscript.ws.js +5 -7
- package/lib/components/superscript.js +4 -7
- package/lib/components/superscript.stories.js +7 -10
- package/lib/components/superscript.ws.js +5 -7
- package/lib/components/text-block.js +4 -7
- package/lib/components/text-block.stories.js +7 -10
- package/lib/components/text-block.ws.js +5 -7
- package/lib/css/breakpoints.js +1 -4
- package/lib/css/categories.js +5 -8
- package/lib/css/get-browser-style.js +7 -11
- package/lib/css/index.js +3 -19
- package/lib/db/index.js +2 -18
- package/lib/db/instance.js +8 -12
- package/lib/db/types.d.ts +6 -0
- package/lib/db/types.d.ts.map +1 -1
- package/lib/db/types.js +1 -2
- package/lib/index.js +8 -37
- package/lib/pubsub/create.js +8 -15
- package/lib/pubsub/index.js +1 -17
- package/lib/remix/handle-request.server.js +5 -9
- package/lib/remix/index.js +2 -18
- package/lib/remix/root.js +5 -9
- package/lib/tree/create-elements-tree.js +7 -11
- package/lib/tree/index.js +3 -19
- package/lib/tree/root.js +7 -11
- package/lib/tree/session-storage-polyfill.js +2 -6
- package/lib/tree/wrapper-component.js +11 -39
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/user-props/all-user-props.js +7 -11
- package/lib/user-props/index.js +4 -20
- package/lib/user-props/schema.d.ts +41 -4
- package/lib/user-props/schema.d.ts.map +1 -1
- package/lib/user-props/schema.js +29 -10
- package/lib/user-props/types.js +1 -2
- package/lib/user-props/use-user-props.d.ts.map +1 -1
- package/lib/user-props/use-user-props.js +7 -11
- package/package.json +16 -10
- package/lib/component-utils/image.d.ts +0 -107
- package/lib/component-utils/image.d.ts.map +0 -1
- package/lib/component-utils/image.js +0 -198
- package/lib/component-utils/image.test.d.ts +0 -2
- package/lib/component-utils/image.test.d.ts.map +0 -1
- package/lib/component-utils/image.test.js +0 -132
- package/lib/components/image-dev.stories.d.ts +0 -36
- package/lib/components/image-dev.stories.d.ts.map +0 -1
- package/lib/components/image-dev.stories.js +0 -102
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
{
|
|
2
|
+
"form": {
|
|
3
|
+
"defaultValue": null,
|
|
4
|
+
"required": false,
|
|
5
|
+
"type": "text"
|
|
6
|
+
},
|
|
7
|
+
"slot": {
|
|
8
|
+
"defaultValue": null,
|
|
9
|
+
"required": false,
|
|
10
|
+
"type": "text"
|
|
11
|
+
},
|
|
12
|
+
"style": {
|
|
13
|
+
"defaultValue": null,
|
|
14
|
+
"required": false,
|
|
15
|
+
"type": "text"
|
|
16
|
+
},
|
|
17
|
+
"title": {
|
|
18
|
+
"defaultValue": null,
|
|
19
|
+
"required": false,
|
|
20
|
+
"type": "text"
|
|
21
|
+
},
|
|
22
|
+
"autoFocus": {
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"required": false,
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"disabled": {
|
|
28
|
+
"defaultValue": null,
|
|
29
|
+
"required": false,
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"formAction": {
|
|
33
|
+
"defaultValue": null,
|
|
34
|
+
"required": false,
|
|
35
|
+
"type": "text"
|
|
36
|
+
},
|
|
37
|
+
"formEncType": {
|
|
38
|
+
"defaultValue": null,
|
|
39
|
+
"required": false,
|
|
40
|
+
"type": "text"
|
|
41
|
+
},
|
|
42
|
+
"formMethod": {
|
|
43
|
+
"defaultValue": null,
|
|
44
|
+
"required": false,
|
|
45
|
+
"type": "text"
|
|
46
|
+
},
|
|
47
|
+
"formNoValidate": {
|
|
48
|
+
"defaultValue": null,
|
|
49
|
+
"required": false,
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"formTarget": {
|
|
53
|
+
"defaultValue": null,
|
|
54
|
+
"required": false,
|
|
55
|
+
"type": "text"
|
|
56
|
+
},
|
|
57
|
+
"name": {
|
|
58
|
+
"defaultValue": null,
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": "text"
|
|
61
|
+
},
|
|
62
|
+
"type": {
|
|
63
|
+
"defaultValue": "submit",
|
|
64
|
+
"options": ["button", "submit", "reset"],
|
|
65
|
+
"required": false,
|
|
66
|
+
"type": "radio"
|
|
67
|
+
},
|
|
68
|
+
"value": {
|
|
69
|
+
"defaultValue": null,
|
|
70
|
+
"required": false,
|
|
71
|
+
"type": "text"
|
|
72
|
+
},
|
|
73
|
+
"defaultChecked": {
|
|
74
|
+
"defaultValue": null,
|
|
75
|
+
"required": false,
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
},
|
|
78
|
+
"defaultValue": {
|
|
79
|
+
"defaultValue": null,
|
|
80
|
+
"required": false,
|
|
81
|
+
"type": "text"
|
|
82
|
+
},
|
|
83
|
+
"suppressContentEditableWarning": {
|
|
84
|
+
"defaultValue": null,
|
|
85
|
+
"required": false,
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
},
|
|
88
|
+
"suppressHydrationWarning": {
|
|
89
|
+
"defaultValue": null,
|
|
90
|
+
"required": false,
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"accessKey": {
|
|
94
|
+
"defaultValue": null,
|
|
95
|
+
"required": false,
|
|
96
|
+
"type": "text"
|
|
97
|
+
},
|
|
98
|
+
"className": {
|
|
99
|
+
"defaultValue": null,
|
|
100
|
+
"required": false,
|
|
101
|
+
"type": "text"
|
|
102
|
+
},
|
|
103
|
+
"contentEditable": {
|
|
104
|
+
"defaultValue": null,
|
|
105
|
+
"required": false,
|
|
106
|
+
"type": "text"
|
|
107
|
+
},
|
|
108
|
+
"contextMenu": {
|
|
109
|
+
"defaultValue": null,
|
|
110
|
+
"required": false,
|
|
111
|
+
"type": "text"
|
|
112
|
+
},
|
|
113
|
+
"dir": {
|
|
114
|
+
"defaultValue": null,
|
|
115
|
+
"required": false,
|
|
116
|
+
"type": "text"
|
|
117
|
+
},
|
|
118
|
+
"draggable": {
|
|
119
|
+
"defaultValue": null,
|
|
120
|
+
"required": false,
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"hidden": {
|
|
124
|
+
"defaultValue": null,
|
|
125
|
+
"required": false,
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"id": {
|
|
129
|
+
"defaultValue": null,
|
|
130
|
+
"required": false,
|
|
131
|
+
"type": "text"
|
|
132
|
+
},
|
|
133
|
+
"lang": {
|
|
134
|
+
"defaultValue": null,
|
|
135
|
+
"required": false,
|
|
136
|
+
"type": "text"
|
|
137
|
+
},
|
|
138
|
+
"placeholder": {
|
|
139
|
+
"defaultValue": null,
|
|
140
|
+
"required": false,
|
|
141
|
+
"type": "text"
|
|
142
|
+
},
|
|
143
|
+
"spellCheck": {
|
|
144
|
+
"defaultValue": null,
|
|
145
|
+
"required": false,
|
|
146
|
+
"type": "boolean"
|
|
147
|
+
},
|
|
148
|
+
"tabIndex": {
|
|
149
|
+
"defaultValue": null,
|
|
150
|
+
"required": false,
|
|
151
|
+
"type": "number"
|
|
152
|
+
},
|
|
153
|
+
"translate": {
|
|
154
|
+
"defaultValue": null,
|
|
155
|
+
"options": ["yes", "no"],
|
|
156
|
+
"required": false,
|
|
157
|
+
"type": "radio"
|
|
158
|
+
},
|
|
159
|
+
"radioGroup": {
|
|
160
|
+
"defaultValue": null,
|
|
161
|
+
"required": false,
|
|
162
|
+
"type": "text"
|
|
163
|
+
},
|
|
164
|
+
"role": {
|
|
165
|
+
"defaultValue": null,
|
|
166
|
+
"required": false,
|
|
167
|
+
"type": "text"
|
|
168
|
+
},
|
|
169
|
+
"about": {
|
|
170
|
+
"defaultValue": null,
|
|
171
|
+
"required": false,
|
|
172
|
+
"type": "text"
|
|
173
|
+
},
|
|
174
|
+
"datatype": {
|
|
175
|
+
"defaultValue": null,
|
|
176
|
+
"required": false,
|
|
177
|
+
"type": "text"
|
|
178
|
+
},
|
|
179
|
+
"inlist": {
|
|
180
|
+
"defaultValue": null,
|
|
181
|
+
"required": false,
|
|
182
|
+
"type": "text"
|
|
183
|
+
},
|
|
184
|
+
"prefix": {
|
|
185
|
+
"defaultValue": null,
|
|
186
|
+
"required": false,
|
|
187
|
+
"type": "text"
|
|
188
|
+
},
|
|
189
|
+
"property": {
|
|
190
|
+
"defaultValue": null,
|
|
191
|
+
"required": false,
|
|
192
|
+
"type": "text"
|
|
193
|
+
},
|
|
194
|
+
"resource": {
|
|
195
|
+
"defaultValue": null,
|
|
196
|
+
"required": false,
|
|
197
|
+
"type": "text"
|
|
198
|
+
},
|
|
199
|
+
"typeof": {
|
|
200
|
+
"defaultValue": null,
|
|
201
|
+
"required": false,
|
|
202
|
+
"type": "text"
|
|
203
|
+
},
|
|
204
|
+
"vocab": {
|
|
205
|
+
"defaultValue": null,
|
|
206
|
+
"required": false,
|
|
207
|
+
"type": "text"
|
|
208
|
+
},
|
|
209
|
+
"autoCapitalize": {
|
|
210
|
+
"defaultValue": null,
|
|
211
|
+
"required": false,
|
|
212
|
+
"type": "text"
|
|
213
|
+
},
|
|
214
|
+
"autoCorrect": {
|
|
215
|
+
"defaultValue": null,
|
|
216
|
+
"required": false,
|
|
217
|
+
"type": "text"
|
|
218
|
+
},
|
|
219
|
+
"autoSave": {
|
|
220
|
+
"defaultValue": null,
|
|
221
|
+
"required": false,
|
|
222
|
+
"type": "text"
|
|
223
|
+
},
|
|
224
|
+
"color": {
|
|
225
|
+
"defaultValue": null,
|
|
226
|
+
"required": false,
|
|
227
|
+
"type": "color"
|
|
228
|
+
},
|
|
229
|
+
"itemProp": {
|
|
230
|
+
"defaultValue": null,
|
|
231
|
+
"required": false,
|
|
232
|
+
"type": "text"
|
|
233
|
+
},
|
|
234
|
+
"itemScope": {
|
|
235
|
+
"defaultValue": null,
|
|
236
|
+
"required": false,
|
|
237
|
+
"type": "boolean"
|
|
238
|
+
},
|
|
239
|
+
"itemType": {
|
|
240
|
+
"defaultValue": null,
|
|
241
|
+
"required": false,
|
|
242
|
+
"type": "text"
|
|
243
|
+
},
|
|
244
|
+
"itemID": {
|
|
245
|
+
"defaultValue": null,
|
|
246
|
+
"required": false,
|
|
247
|
+
"type": "text"
|
|
248
|
+
},
|
|
249
|
+
"itemRef": {
|
|
250
|
+
"defaultValue": null,
|
|
251
|
+
"required": false,
|
|
252
|
+
"type": "text"
|
|
253
|
+
},
|
|
254
|
+
"results": {
|
|
255
|
+
"defaultValue": null,
|
|
256
|
+
"required": false,
|
|
257
|
+
"type": "number"
|
|
258
|
+
},
|
|
259
|
+
"security": {
|
|
260
|
+
"defaultValue": null,
|
|
261
|
+
"required": false,
|
|
262
|
+
"type": "text"
|
|
263
|
+
},
|
|
264
|
+
"unselectable": {
|
|
265
|
+
"defaultValue": null,
|
|
266
|
+
"options": ["on", "off"],
|
|
267
|
+
"required": false,
|
|
268
|
+
"type": "radio"
|
|
269
|
+
},
|
|
270
|
+
"inputMode": {
|
|
271
|
+
"defaultValue": null,
|
|
272
|
+
"options": [
|
|
273
|
+
"text",
|
|
274
|
+
"none",
|
|
275
|
+
"search",
|
|
276
|
+
"tel",
|
|
277
|
+
"url",
|
|
278
|
+
"email",
|
|
279
|
+
"numeric",
|
|
280
|
+
"decimal"
|
|
281
|
+
],
|
|
282
|
+
"required": false,
|
|
283
|
+
"type": "select"
|
|
284
|
+
},
|
|
285
|
+
"is": {
|
|
286
|
+
"defaultValue": null,
|
|
287
|
+
"required": false,
|
|
288
|
+
"type": "text"
|
|
289
|
+
},
|
|
290
|
+
"aria-activedescendant": {
|
|
291
|
+
"defaultValue": null,
|
|
292
|
+
"required": false,
|
|
293
|
+
"type": "text"
|
|
294
|
+
},
|
|
295
|
+
"aria-atomic": {
|
|
296
|
+
"defaultValue": null,
|
|
297
|
+
"required": false,
|
|
298
|
+
"type": "boolean"
|
|
299
|
+
},
|
|
300
|
+
"aria-autocomplete": {
|
|
301
|
+
"defaultValue": null,
|
|
302
|
+
"options": ["list", "none", "inline", "both"],
|
|
303
|
+
"required": false,
|
|
304
|
+
"type": "radio"
|
|
305
|
+
},
|
|
306
|
+
"aria-busy": {
|
|
307
|
+
"defaultValue": null,
|
|
308
|
+
"required": false,
|
|
309
|
+
"type": "boolean"
|
|
310
|
+
},
|
|
311
|
+
"aria-checked": {
|
|
312
|
+
"defaultValue": null,
|
|
313
|
+
"required": false,
|
|
314
|
+
"type": "text"
|
|
315
|
+
},
|
|
316
|
+
"aria-colcount": {
|
|
317
|
+
"defaultValue": null,
|
|
318
|
+
"required": false,
|
|
319
|
+
"type": "number"
|
|
320
|
+
},
|
|
321
|
+
"aria-colindex": {
|
|
322
|
+
"defaultValue": null,
|
|
323
|
+
"required": false,
|
|
324
|
+
"type": "number"
|
|
325
|
+
},
|
|
326
|
+
"aria-colspan": {
|
|
327
|
+
"defaultValue": null,
|
|
328
|
+
"required": false,
|
|
329
|
+
"type": "number"
|
|
330
|
+
},
|
|
331
|
+
"aria-controls": {
|
|
332
|
+
"defaultValue": null,
|
|
333
|
+
"required": false,
|
|
334
|
+
"type": "text"
|
|
335
|
+
},
|
|
336
|
+
"aria-current": {
|
|
337
|
+
"defaultValue": null,
|
|
338
|
+
"required": false,
|
|
339
|
+
"type": "text"
|
|
340
|
+
},
|
|
341
|
+
"aria-describedby": {
|
|
342
|
+
"defaultValue": null,
|
|
343
|
+
"required": false,
|
|
344
|
+
"type": "text"
|
|
345
|
+
},
|
|
346
|
+
"aria-details": {
|
|
347
|
+
"defaultValue": null,
|
|
348
|
+
"required": false,
|
|
349
|
+
"type": "text"
|
|
350
|
+
},
|
|
351
|
+
"aria-disabled": {
|
|
352
|
+
"defaultValue": null,
|
|
353
|
+
"required": false,
|
|
354
|
+
"type": "boolean"
|
|
355
|
+
},
|
|
356
|
+
"aria-dropeffect": {
|
|
357
|
+
"defaultValue": null,
|
|
358
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"],
|
|
359
|
+
"required": false,
|
|
360
|
+
"type": "select"
|
|
361
|
+
},
|
|
362
|
+
"aria-errormessage": {
|
|
363
|
+
"defaultValue": null,
|
|
364
|
+
"required": false,
|
|
365
|
+
"type": "text"
|
|
366
|
+
},
|
|
367
|
+
"aria-expanded": {
|
|
368
|
+
"defaultValue": null,
|
|
369
|
+
"required": false,
|
|
370
|
+
"type": "boolean"
|
|
371
|
+
},
|
|
372
|
+
"aria-flowto": {
|
|
373
|
+
"defaultValue": null,
|
|
374
|
+
"required": false,
|
|
375
|
+
"type": "text"
|
|
376
|
+
},
|
|
377
|
+
"aria-grabbed": {
|
|
378
|
+
"defaultValue": null,
|
|
379
|
+
"required": false,
|
|
380
|
+
"type": "boolean"
|
|
381
|
+
},
|
|
382
|
+
"aria-haspopup": {
|
|
383
|
+
"defaultValue": null,
|
|
384
|
+
"required": false,
|
|
385
|
+
"type": "text"
|
|
386
|
+
},
|
|
387
|
+
"aria-hidden": {
|
|
388
|
+
"defaultValue": null,
|
|
389
|
+
"required": false,
|
|
390
|
+
"type": "boolean"
|
|
391
|
+
},
|
|
392
|
+
"aria-invalid": {
|
|
393
|
+
"defaultValue": null,
|
|
394
|
+
"required": false,
|
|
395
|
+
"type": "text"
|
|
396
|
+
},
|
|
397
|
+
"aria-keyshortcuts": {
|
|
398
|
+
"defaultValue": null,
|
|
399
|
+
"required": false,
|
|
400
|
+
"type": "text"
|
|
401
|
+
},
|
|
402
|
+
"aria-label": {
|
|
403
|
+
"defaultValue": null,
|
|
404
|
+
"required": false,
|
|
405
|
+
"type": "text"
|
|
406
|
+
},
|
|
407
|
+
"aria-labelledby": {
|
|
408
|
+
"defaultValue": null,
|
|
409
|
+
"required": false,
|
|
410
|
+
"type": "text"
|
|
411
|
+
},
|
|
412
|
+
"aria-level": {
|
|
413
|
+
"defaultValue": null,
|
|
414
|
+
"required": false,
|
|
415
|
+
"type": "number"
|
|
416
|
+
},
|
|
417
|
+
"aria-live": {
|
|
418
|
+
"defaultValue": null,
|
|
419
|
+
"options": ["off", "assertive", "polite"],
|
|
420
|
+
"required": false,
|
|
421
|
+
"type": "radio"
|
|
422
|
+
},
|
|
423
|
+
"aria-modal": {
|
|
424
|
+
"defaultValue": null,
|
|
425
|
+
"required": false,
|
|
426
|
+
"type": "boolean"
|
|
427
|
+
},
|
|
428
|
+
"aria-multiline": {
|
|
429
|
+
"defaultValue": null,
|
|
430
|
+
"required": false,
|
|
431
|
+
"type": "boolean"
|
|
432
|
+
},
|
|
433
|
+
"aria-multiselectable": {
|
|
434
|
+
"defaultValue": null,
|
|
435
|
+
"required": false,
|
|
436
|
+
"type": "boolean"
|
|
437
|
+
},
|
|
438
|
+
"aria-orientation": {
|
|
439
|
+
"defaultValue": null,
|
|
440
|
+
"options": ["horizontal", "vertical"],
|
|
441
|
+
"required": false,
|
|
442
|
+
"type": "radio"
|
|
443
|
+
},
|
|
444
|
+
"aria-owns": {
|
|
445
|
+
"defaultValue": null,
|
|
446
|
+
"required": false,
|
|
447
|
+
"type": "text"
|
|
448
|
+
},
|
|
449
|
+
"aria-placeholder": {
|
|
450
|
+
"defaultValue": null,
|
|
451
|
+
"required": false,
|
|
452
|
+
"type": "text"
|
|
453
|
+
},
|
|
454
|
+
"aria-posinset": {
|
|
455
|
+
"defaultValue": null,
|
|
456
|
+
"required": false,
|
|
457
|
+
"type": "number"
|
|
458
|
+
},
|
|
459
|
+
"aria-pressed": {
|
|
460
|
+
"defaultValue": null,
|
|
461
|
+
"required": false,
|
|
462
|
+
"type": "text"
|
|
463
|
+
},
|
|
464
|
+
"aria-readonly": {
|
|
465
|
+
"defaultValue": null,
|
|
466
|
+
"required": false,
|
|
467
|
+
"type": "boolean"
|
|
468
|
+
},
|
|
469
|
+
"aria-relevant": {
|
|
470
|
+
"defaultValue": null,
|
|
471
|
+
"options": [
|
|
472
|
+
"text",
|
|
473
|
+
"additions",
|
|
474
|
+
"additions removals",
|
|
475
|
+
"additions text",
|
|
476
|
+
"all",
|
|
477
|
+
"removals",
|
|
478
|
+
"removals additions",
|
|
479
|
+
"removals text",
|
|
480
|
+
"text additions",
|
|
481
|
+
"text removals"
|
|
482
|
+
],
|
|
483
|
+
"required": false,
|
|
484
|
+
"type": "select"
|
|
485
|
+
},
|
|
486
|
+
"aria-required": {
|
|
487
|
+
"defaultValue": null,
|
|
488
|
+
"required": false,
|
|
489
|
+
"type": "boolean"
|
|
490
|
+
},
|
|
491
|
+
"aria-roledescription": {
|
|
492
|
+
"defaultValue": null,
|
|
493
|
+
"required": false,
|
|
494
|
+
"type": "text"
|
|
495
|
+
},
|
|
496
|
+
"aria-rowcount": {
|
|
497
|
+
"defaultValue": null,
|
|
498
|
+
"required": false,
|
|
499
|
+
"type": "number"
|
|
500
|
+
},
|
|
501
|
+
"aria-rowindex": {
|
|
502
|
+
"defaultValue": null,
|
|
503
|
+
"required": false,
|
|
504
|
+
"type": "number"
|
|
505
|
+
},
|
|
506
|
+
"aria-rowspan": {
|
|
507
|
+
"defaultValue": null,
|
|
508
|
+
"required": false,
|
|
509
|
+
"type": "number"
|
|
510
|
+
},
|
|
511
|
+
"aria-selected": {
|
|
512
|
+
"defaultValue": null,
|
|
513
|
+
"required": false,
|
|
514
|
+
"type": "boolean"
|
|
515
|
+
},
|
|
516
|
+
"aria-setsize": {
|
|
517
|
+
"defaultValue": null,
|
|
518
|
+
"required": false,
|
|
519
|
+
"type": "number"
|
|
520
|
+
},
|
|
521
|
+
"aria-sort": {
|
|
522
|
+
"defaultValue": null,
|
|
523
|
+
"options": ["none", "ascending", "descending", "other"],
|
|
524
|
+
"required": false,
|
|
525
|
+
"type": "radio"
|
|
526
|
+
},
|
|
527
|
+
"aria-valuemax": {
|
|
528
|
+
"defaultValue": null,
|
|
529
|
+
"required": false,
|
|
530
|
+
"type": "number"
|
|
531
|
+
},
|
|
532
|
+
"aria-valuemin": {
|
|
533
|
+
"defaultValue": null,
|
|
534
|
+
"required": false,
|
|
535
|
+
"type": "number"
|
|
536
|
+
},
|
|
537
|
+
"aria-valuenow": {
|
|
538
|
+
"defaultValue": null,
|
|
539
|
+
"required": false,
|
|
540
|
+
"type": "number"
|
|
541
|
+
},
|
|
542
|
+
"aria-valuetext": {
|
|
543
|
+
"defaultValue": null,
|
|
544
|
+
"required": false,
|
|
545
|
+
"type": "text"
|
|
546
|
+
}
|
|
547
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Button = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const button_1 = require("./button");
|
|
6
|
+
exports.default = {
|
|
7
|
+
title: "Components/Button",
|
|
8
|
+
component: button_1.Button,
|
|
9
|
+
};
|
|
10
|
+
const Template = (args) => ((0, jsx_runtime_1.jsx)(button_1.Button, { ...args }));
|
|
11
|
+
exports.Button = Template.bind({});
|
|
12
|
+
exports.Button.args = {
|
|
13
|
+
children: "Test",
|
|
14
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ComponentMeta, ComponentStory } from "@storybook/react";
|
|
3
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Button: ComponentStory<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
6
|
+
//# sourceMappingURL=button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/button.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAGtE,wBAG2C;AAM3C,eAAO,MAAM,MAAM,0SAAoB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const icons_1 = require("@webstudio-is/icons");
|
|
4
|
+
const button_1 = require("./button");
|
|
5
|
+
const meta = {
|
|
6
|
+
Icon: icons_1.ButtonIcon,
|
|
7
|
+
Component: button_1.Button,
|
|
8
|
+
canAcceptChildren: false,
|
|
9
|
+
isContentEditable: true,
|
|
10
|
+
isInlineOnly: false,
|
|
11
|
+
isListed: true,
|
|
12
|
+
label: "Button",
|
|
13
|
+
children: ["Button text you can edit"],
|
|
14
|
+
};
|
|
15
|
+
exports.default = meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.ws.d.ts","sourceRoot":"","sources":["../../../src/components/button.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,MAAM,CASxC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WsComponentMeta = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.WsComponentMeta = zod_1.z.lazy(() => zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
Component: zod_1.z.any(),
|
|
8
|
+
Icon: zod_1.z.any(),
|
|
9
|
+
defaultStyle: zod_1.z.optional(zod_1.z.any()),
|
|
10
|
+
canAcceptChildren: zod_1.z.boolean(),
|
|
11
|
+
isContentEditable: zod_1.z.boolean(),
|
|
12
|
+
isInlineOnly: zod_1.z.boolean(),
|
|
13
|
+
isListed: zod_1.z.boolean(),
|
|
14
|
+
label: zod_1.z.string(),
|
|
15
|
+
children: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
|
|
16
|
+
})
|
|
17
|
+
// We need these restrictions because of the limitation of the current drag&drop implementation.
|
|
18
|
+
// Its position detection logic will be confused if drop target has `string` children.
|
|
19
|
+
.refine((val) => val.isContentEditable === false || val.canAcceptChildren === false, {
|
|
20
|
+
message: "Content editable componetns are not allowed to accept children via drag&drop, because they may have `string` children",
|
|
21
|
+
path: ["canAcceptChildren"],
|
|
22
|
+
})
|
|
23
|
+
.refine((val) => val.canAcceptChildren === false ||
|
|
24
|
+
val.children === undefined ||
|
|
25
|
+
val.children.every((child) => typeof child !== "string"), {
|
|
26
|
+
message: "Components that can accept children via drag&drop are not allowed to have `string` children",
|
|
27
|
+
path: ["children"],
|
|
28
|
+
}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { IconProps } from "@webstudio-is/icons";
|
|
4
|
+
import type { Style } from "@webstudio-is/css-data";
|
|
5
|
+
export declare type WsComponentMeta<ComponentType> = {
|
|
6
|
+
Component: ComponentType;
|
|
7
|
+
Icon: React.FunctionComponent<IconProps>;
|
|
8
|
+
defaultStyle?: Style;
|
|
9
|
+
canAcceptChildren: boolean;
|
|
10
|
+
isContentEditable: boolean;
|
|
11
|
+
isInlineOnly: boolean;
|
|
12
|
+
isListed: boolean;
|
|
13
|
+
label: string;
|
|
14
|
+
children?: Array<string>;
|
|
15
|
+
};
|
|
16
|
+
export declare const WsComponentMeta: z.ZodType<WsComponentMeta<unknown>, z.ZodTypeDef, WsComponentMeta<unknown>>;
|
|
17
|
+
//# sourceMappingURL=component-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-type.d.ts","sourceRoot":"","sources":["../../../src/components/component-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,oBAAY,eAAe,CAAC,aAAa,IAAI;IAC3C,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAG3B,iBAAiB,EAAE,OAAO,CAAC;IAE3B,YAAY,EAAE,OAAO,CAAC;IAEtB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,eAAe,6EAoCY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Form = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const defaultTag = "form";
|
|
7
|
+
exports.Form = (0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)("form", { ...props, ref: ref }));
|
|
8
|
+
exports.Form.displayName = "Form";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Form: import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "key" | keyof import("react").FormHTMLAttributes<HTMLFormElement>> & import("react").RefAttributes<HTMLFormElement>>;
|
|
3
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/form.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,IAAI,8QAG+B,CAAC"}
|