@webstudio-is/react-sdk 0.7.0 → 0.7.1
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.d.ts +1 -8
- package/lib/arg-types/utils.d.ts.map +1 -1
- package/lib/arg-types/utils.js +18 -7
- package/lib/component-utils/image.d.ts +107 -0
- package/lib/component-utils/image.d.ts.map +1 -0
- package/lib/component-utils/image.js +198 -0
- package/lib/component-utils/image.test.d.ts +2 -0
- package/lib/component-utils/image.test.d.ts.map +1 -0
- package/lib/component-utils/image.test.js +132 -0
- package/lib/components/body.props.json +8 -37
- package/lib/components/bold.props.json +8 -37
- package/lib/components/box.props.json +9 -40
- package/lib/components/button.props.json +10 -45
- package/lib/components/component-type.d.ts +1 -1
- package/lib/components/component-type.d.ts.map +1 -1
- package/lib/components/form.props.json +8 -37
- package/lib/components/heading.props.json +10 -48
- package/lib/components/image-dev.stories.d.ts +36 -0
- package/lib/components/image-dev.stories.d.ts.map +1 -0
- package/lib/components/image-dev.stories.js +102 -0
- package/lib/components/image.d.ts +10 -2
- package/lib/components/image.d.ts.map +1 -1
- package/lib/components/image.js +19 -9
- package/lib/components/image.props.json +60 -15
- package/lib/components/image.stories.d.ts +10 -2
- package/lib/components/image.stories.d.ts.map +1 -1
- package/lib/components/image.ws.d.ts.map +1 -1
- package/lib/components/image.ws.js +15 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +7 -1
- package/lib/components/input.props.json +9 -46
- package/lib/components/italic.props.json +8 -37
- package/lib/components/link.d.ts +1 -1
- package/lib/components/link.props.json +9 -40
- package/lib/components/link.stories.d.ts +2 -2
- package/lib/components/meta.d.ts +3 -0
- package/lib/components/meta.d.ts.map +1 -1
- package/lib/components/meta.js +7 -1
- package/lib/components/paragraph.props.json +8 -37
- package/lib/components/span.d.ts +3 -0
- package/lib/components/span.d.ts.map +1 -0
- package/lib/components/span.js +8 -0
- package/lib/components/span.props.json +2205 -0
- package/lib/components/span.stories.d.ts +6 -0
- package/lib/components/span.stories.d.ts.map +1 -0
- package/lib/components/span.stories.js +19 -0
- package/lib/components/span.ws.d.ts +5 -0
- package/lib/components/span.ws.d.ts.map +1 -0
- package/lib/components/span.ws.js +14 -0
- package/lib/components/subscript.d.ts +3 -0
- package/lib/components/subscript.d.ts.map +1 -0
- package/lib/components/subscript.js +8 -0
- package/lib/components/subscript.props.json +2205 -0
- package/lib/components/subscript.stories.d.ts +6 -0
- package/lib/components/subscript.stories.d.ts.map +1 -0
- package/lib/components/subscript.stories.js +19 -0
- package/lib/components/subscript.ws.d.ts +5 -0
- package/lib/components/subscript.ws.d.ts.map +1 -0
- package/lib/components/subscript.ws.js +14 -0
- package/lib/components/superscript.d.ts +3 -0
- package/lib/components/superscript.d.ts.map +1 -0
- package/lib/components/superscript.js +8 -0
- package/lib/components/superscript.props.json +2205 -0
- package/lib/components/superscript.stories.d.ts +6 -0
- package/lib/components/superscript.stories.d.ts.map +1 -0
- package/lib/components/superscript.stories.js +19 -0
- package/lib/components/superscript.ws.d.ts +5 -0
- package/lib/components/superscript.ws.d.ts.map +1 -0
- package/lib/components/superscript.ws.js +14 -0
- package/lib/components/text-block.props.json +8 -37
- package/lib/css/breakpoints.d.ts +1 -1
- package/lib/css/breakpoints.d.ts.map +1 -1
- package/lib/css/categories.d.ts +2 -2
- package/lib/css/get-browser-style.d.ts +1 -1
- package/lib/css/get-browser-style.d.ts.map +1 -1
- package/lib/css/get-browser-style.js +10 -5
- package/lib/css/index.d.ts +0 -5
- package/lib/css/index.d.ts.map +1 -1
- package/lib/css/index.js +0 -5
- package/lib/db/instance.d.ts +1 -1
- package/lib/db/instance.d.ts.map +1 -1
- package/lib/db/instance.js +2 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pubsub/create.d.ts +1 -0
- package/lib/pubsub/create.d.ts.map +1 -1
- package/lib/pubsub/create.js +8 -0
- package/lib/remix/handle-request.server.d.ts.map +1 -1
- package/lib/remix/handle-request.server.js +1 -2
- package/lib/remix/root.d.ts.map +1 -1
- package/lib/remix/root.js +2 -2
- package/lib/tree/create-elements-tree.d.ts +7 -11
- package/lib/tree/create-elements-tree.d.ts.map +1 -1
- package/lib/tree/create-elements-tree.js +5 -10
- package/lib/tree/root.d.ts +4 -6
- package/lib/tree/root.d.ts.map +1 -1
- package/lib/tree/root.js +1 -23
- package/lib/tree/session-storage-polyfill.d.ts +2 -0
- package/lib/tree/session-storage-polyfill.d.ts.map +1 -0
- package/lib/tree/session-storage-polyfill.js +39 -0
- package/lib/tree/wrapper-component.d.ts +4 -4
- package/lib/tree/wrapper-component.d.ts.map +1 -1
- package/lib/tree/wrapper-component.js +5 -5
- package/package.json +20 -13
- package/lib/css/keyword-values.d.ts +0 -302
- package/lib/css/keyword-values.d.ts.map +0 -1
- package/lib/css/keyword-values.js +0 -6619
- package/lib/css/properties.d.ts +0 -3199
- package/lib/css/properties.d.ts.map +0 -1
- package/lib/css/properties.js +0 -3202
- package/lib/css/schema.d.ts +0 -283
- package/lib/css/schema.d.ts.map +0 -1
- package/lib/css/schema.js +0 -48
- package/lib/css/types.d.ts +0 -6
- package/lib/css/types.d.ts.map +0 -1
- package/lib/css/types.js +0 -2
- package/lib/css/units.d.ts +0 -2
- package/lib/css/units.d.ts.map +0 -1
- package/lib/css/units.js +0 -35
- package/lib/remix/constants.d.ts +0 -2
- package/lib/remix/constants.d.ts.map +0 -1
- package/lib/remix/constants.js +0 -4
- package/lib/remix/insert-critical-css.d.ts +0 -2
- package/lib/remix/insert-critical-css.d.ts.map +0 -1
- package/lib/remix/insert-critical-css.js +0 -9
- package/lib/stitches/index.d.ts +0 -3
- package/lib/stitches/index.d.ts.map +0 -1
- package/lib/stitches/index.js +0 -18
- package/lib/stitches/stitches.d.ts +0 -8
- package/lib/stitches/stitches.d.ts.map +0 -1
- package/lib/stitches/stitches.js +0 -38
- package/lib/stitches/to-css.d.ts +0 -8
- package/lib/stitches/to-css.d.ts.map +0 -1
- package/lib/stitches/to-css.js +0 -52
- package/lib/stitches/to-css.test.d.ts +0 -2
- package/lib/stitches/to-css.test.d.ts.map +0 -1
- package/lib/stitches/to-css.test.js +0 -82
|
@@ -447,10 +447,7 @@
|
|
|
447
447
|
"control": {
|
|
448
448
|
"type": "radio"
|
|
449
449
|
},
|
|
450
|
-
"options": [
|
|
451
|
-
"yes",
|
|
452
|
-
"no"
|
|
453
|
-
]
|
|
450
|
+
"options": ["yes", "no"]
|
|
454
451
|
},
|
|
455
452
|
"radioGroup": {
|
|
456
453
|
"defaultValue": null,
|
|
@@ -739,6 +736,7 @@
|
|
|
739
736
|
}
|
|
740
737
|
},
|
|
741
738
|
"color": {
|
|
739
|
+
"defaultValue": null,
|
|
742
740
|
"description": "",
|
|
743
741
|
"name": "color",
|
|
744
742
|
"parent": {
|
|
@@ -943,10 +941,7 @@
|
|
|
943
941
|
"control": {
|
|
944
942
|
"type": "radio"
|
|
945
943
|
},
|
|
946
|
-
"options": [
|
|
947
|
-
"on",
|
|
948
|
-
"off"
|
|
949
|
-
]
|
|
944
|
+
"options": ["on", "off"]
|
|
950
945
|
},
|
|
951
946
|
"inputMode": {
|
|
952
947
|
"defaultValue": null,
|
|
@@ -1109,12 +1104,7 @@
|
|
|
1109
1104
|
"control": {
|
|
1110
1105
|
"type": "radio"
|
|
1111
1106
|
},
|
|
1112
|
-
"options": [
|
|
1113
|
-
"list",
|
|
1114
|
-
"none",
|
|
1115
|
-
"inline",
|
|
1116
|
-
"both"
|
|
1117
|
-
]
|
|
1107
|
+
"options": ["list", "none", "inline", "both"]
|
|
1118
1108
|
},
|
|
1119
1109
|
"aria-busy": {
|
|
1120
1110
|
"defaultValue": null,
|
|
@@ -1378,14 +1368,7 @@
|
|
|
1378
1368
|
"control": {
|
|
1379
1369
|
"type": "select"
|
|
1380
1370
|
},
|
|
1381
|
-
"options": [
|
|
1382
|
-
"link",
|
|
1383
|
-
"none",
|
|
1384
|
-
"copy",
|
|
1385
|
-
"execute",
|
|
1386
|
-
"move",
|
|
1387
|
-
"popup"
|
|
1388
|
-
]
|
|
1371
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"]
|
|
1389
1372
|
},
|
|
1390
1373
|
"aria-errormessage": {
|
|
1391
1374
|
"defaultValue": null,
|
|
@@ -1662,11 +1645,7 @@
|
|
|
1662
1645
|
"control": {
|
|
1663
1646
|
"type": "radio"
|
|
1664
1647
|
},
|
|
1665
|
-
"options": [
|
|
1666
|
-
"off",
|
|
1667
|
-
"assertive",
|
|
1668
|
-
"polite"
|
|
1669
|
-
]
|
|
1648
|
+
"options": ["off", "assertive", "polite"]
|
|
1670
1649
|
},
|
|
1671
1650
|
"aria-modal": {
|
|
1672
1651
|
"defaultValue": null,
|
|
@@ -1764,10 +1743,7 @@
|
|
|
1764
1743
|
"control": {
|
|
1765
1744
|
"type": "radio"
|
|
1766
1745
|
},
|
|
1767
|
-
"options": [
|
|
1768
|
-
"horizontal",
|
|
1769
|
-
"vertical"
|
|
1770
|
-
]
|
|
1746
|
+
"options": ["horizontal", "vertical"]
|
|
1771
1747
|
},
|
|
1772
1748
|
"aria-owns": {
|
|
1773
1749
|
"defaultValue": null,
|
|
@@ -2136,12 +2112,7 @@
|
|
|
2136
2112
|
"control": {
|
|
2137
2113
|
"type": "radio"
|
|
2138
2114
|
},
|
|
2139
|
-
"options": [
|
|
2140
|
-
"none",
|
|
2141
|
-
"ascending",
|
|
2142
|
-
"descending",
|
|
2143
|
-
"other"
|
|
2144
|
-
]
|
|
2115
|
+
"options": ["none", "ascending", "descending", "other"]
|
|
2145
2116
|
},
|
|
2146
2117
|
"aria-valuemax": {
|
|
2147
2118
|
"defaultValue": null,
|
|
@@ -447,10 +447,7 @@
|
|
|
447
447
|
"control": {
|
|
448
448
|
"type": "radio"
|
|
449
449
|
},
|
|
450
|
-
"options": [
|
|
451
|
-
"yes",
|
|
452
|
-
"no"
|
|
453
|
-
]
|
|
450
|
+
"options": ["yes", "no"]
|
|
454
451
|
},
|
|
455
452
|
"radioGroup": {
|
|
456
453
|
"defaultValue": null,
|
|
@@ -739,6 +736,7 @@
|
|
|
739
736
|
}
|
|
740
737
|
},
|
|
741
738
|
"color": {
|
|
739
|
+
"defaultValue": null,
|
|
742
740
|
"description": "",
|
|
743
741
|
"name": "color",
|
|
744
742
|
"parent": {
|
|
@@ -943,10 +941,7 @@
|
|
|
943
941
|
"control": {
|
|
944
942
|
"type": "radio"
|
|
945
943
|
},
|
|
946
|
-
"options": [
|
|
947
|
-
"on",
|
|
948
|
-
"off"
|
|
949
|
-
]
|
|
944
|
+
"options": ["on", "off"]
|
|
950
945
|
},
|
|
951
946
|
"inputMode": {
|
|
952
947
|
"defaultValue": null,
|
|
@@ -1109,12 +1104,7 @@
|
|
|
1109
1104
|
"control": {
|
|
1110
1105
|
"type": "radio"
|
|
1111
1106
|
},
|
|
1112
|
-
"options": [
|
|
1113
|
-
"list",
|
|
1114
|
-
"none",
|
|
1115
|
-
"inline",
|
|
1116
|
-
"both"
|
|
1117
|
-
]
|
|
1107
|
+
"options": ["list", "none", "inline", "both"]
|
|
1118
1108
|
},
|
|
1119
1109
|
"aria-busy": {
|
|
1120
1110
|
"defaultValue": null,
|
|
@@ -1378,14 +1368,7 @@
|
|
|
1378
1368
|
"control": {
|
|
1379
1369
|
"type": "select"
|
|
1380
1370
|
},
|
|
1381
|
-
"options": [
|
|
1382
|
-
"link",
|
|
1383
|
-
"none",
|
|
1384
|
-
"copy",
|
|
1385
|
-
"execute",
|
|
1386
|
-
"move",
|
|
1387
|
-
"popup"
|
|
1388
|
-
]
|
|
1371
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"]
|
|
1389
1372
|
},
|
|
1390
1373
|
"aria-errormessage": {
|
|
1391
1374
|
"defaultValue": null,
|
|
@@ -1662,11 +1645,7 @@
|
|
|
1662
1645
|
"control": {
|
|
1663
1646
|
"type": "radio"
|
|
1664
1647
|
},
|
|
1665
|
-
"options": [
|
|
1666
|
-
"off",
|
|
1667
|
-
"assertive",
|
|
1668
|
-
"polite"
|
|
1669
|
-
]
|
|
1648
|
+
"options": ["off", "assertive", "polite"]
|
|
1670
1649
|
},
|
|
1671
1650
|
"aria-modal": {
|
|
1672
1651
|
"defaultValue": null,
|
|
@@ -1764,10 +1743,7 @@
|
|
|
1764
1743
|
"control": {
|
|
1765
1744
|
"type": "radio"
|
|
1766
1745
|
},
|
|
1767
|
-
"options": [
|
|
1768
|
-
"horizontal",
|
|
1769
|
-
"vertical"
|
|
1770
|
-
]
|
|
1746
|
+
"options": ["horizontal", "vertical"]
|
|
1771
1747
|
},
|
|
1772
1748
|
"aria-owns": {
|
|
1773
1749
|
"defaultValue": null,
|
|
@@ -2136,12 +2112,7 @@
|
|
|
2136
2112
|
"control": {
|
|
2137
2113
|
"type": "radio"
|
|
2138
2114
|
},
|
|
2139
|
-
"options": [
|
|
2140
|
-
"none",
|
|
2141
|
-
"ascending",
|
|
2142
|
-
"descending",
|
|
2143
|
-
"other"
|
|
2144
|
-
]
|
|
2115
|
+
"options": ["none", "ascending", "descending", "other"]
|
|
2145
2116
|
},
|
|
2146
2117
|
"aria-valuemax": {
|
|
2147
2118
|
"defaultValue": null,
|
|
@@ -2232,9 +2203,7 @@
|
|
|
2232
2203
|
}
|
|
2233
2204
|
},
|
|
2234
2205
|
"tag": {
|
|
2235
|
-
"defaultValue":
|
|
2236
|
-
"value": "div"
|
|
2237
|
-
},
|
|
2206
|
+
"defaultValue": "div",
|
|
2238
2207
|
"description": "",
|
|
2239
2208
|
"name": "tag",
|
|
2240
2209
|
"declarations": [
|
|
@@ -264,9 +264,7 @@
|
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
"type": {
|
|
267
|
-
"defaultValue":
|
|
268
|
-
"value": "submit"
|
|
269
|
-
},
|
|
267
|
+
"defaultValue": "submit",
|
|
270
268
|
"description": "",
|
|
271
269
|
"name": "type",
|
|
272
270
|
"parent": {
|
|
@@ -298,11 +296,7 @@
|
|
|
298
296
|
"control": {
|
|
299
297
|
"type": "radio"
|
|
300
298
|
},
|
|
301
|
-
"options": [
|
|
302
|
-
"button",
|
|
303
|
-
"submit",
|
|
304
|
-
"reset"
|
|
305
|
-
]
|
|
299
|
+
"options": ["button", "submit", "reset"]
|
|
306
300
|
},
|
|
307
301
|
"value": {
|
|
308
302
|
"defaultValue": null,
|
|
@@ -708,10 +702,7 @@
|
|
|
708
702
|
"control": {
|
|
709
703
|
"type": "radio"
|
|
710
704
|
},
|
|
711
|
-
"options": [
|
|
712
|
-
"yes",
|
|
713
|
-
"no"
|
|
714
|
-
]
|
|
705
|
+
"options": ["yes", "no"]
|
|
715
706
|
},
|
|
716
707
|
"radioGroup": {
|
|
717
708
|
"defaultValue": null,
|
|
@@ -1000,6 +991,7 @@
|
|
|
1000
991
|
}
|
|
1001
992
|
},
|
|
1002
993
|
"color": {
|
|
994
|
+
"defaultValue": null,
|
|
1003
995
|
"description": "",
|
|
1004
996
|
"name": "color",
|
|
1005
997
|
"parent": {
|
|
@@ -1204,10 +1196,7 @@
|
|
|
1204
1196
|
"control": {
|
|
1205
1197
|
"type": "radio"
|
|
1206
1198
|
},
|
|
1207
|
-
"options": [
|
|
1208
|
-
"on",
|
|
1209
|
-
"off"
|
|
1210
|
-
]
|
|
1199
|
+
"options": ["on", "off"]
|
|
1211
1200
|
},
|
|
1212
1201
|
"inputMode": {
|
|
1213
1202
|
"defaultValue": null,
|
|
@@ -1370,12 +1359,7 @@
|
|
|
1370
1359
|
"control": {
|
|
1371
1360
|
"type": "radio"
|
|
1372
1361
|
},
|
|
1373
|
-
"options": [
|
|
1374
|
-
"list",
|
|
1375
|
-
"none",
|
|
1376
|
-
"inline",
|
|
1377
|
-
"both"
|
|
1378
|
-
]
|
|
1362
|
+
"options": ["list", "none", "inline", "both"]
|
|
1379
1363
|
},
|
|
1380
1364
|
"aria-busy": {
|
|
1381
1365
|
"defaultValue": null,
|
|
@@ -1639,14 +1623,7 @@
|
|
|
1639
1623
|
"control": {
|
|
1640
1624
|
"type": "select"
|
|
1641
1625
|
},
|
|
1642
|
-
"options": [
|
|
1643
|
-
"link",
|
|
1644
|
-
"none",
|
|
1645
|
-
"copy",
|
|
1646
|
-
"execute",
|
|
1647
|
-
"move",
|
|
1648
|
-
"popup"
|
|
1649
|
-
]
|
|
1626
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"]
|
|
1650
1627
|
},
|
|
1651
1628
|
"aria-errormessage": {
|
|
1652
1629
|
"defaultValue": null,
|
|
@@ -1923,11 +1900,7 @@
|
|
|
1923
1900
|
"control": {
|
|
1924
1901
|
"type": "radio"
|
|
1925
1902
|
},
|
|
1926
|
-
"options": [
|
|
1927
|
-
"off",
|
|
1928
|
-
"assertive",
|
|
1929
|
-
"polite"
|
|
1930
|
-
]
|
|
1903
|
+
"options": ["off", "assertive", "polite"]
|
|
1931
1904
|
},
|
|
1932
1905
|
"aria-modal": {
|
|
1933
1906
|
"defaultValue": null,
|
|
@@ -2025,10 +1998,7 @@
|
|
|
2025
1998
|
"control": {
|
|
2026
1999
|
"type": "radio"
|
|
2027
2000
|
},
|
|
2028
|
-
"options": [
|
|
2029
|
-
"horizontal",
|
|
2030
|
-
"vertical"
|
|
2031
|
-
]
|
|
2001
|
+
"options": ["horizontal", "vertical"]
|
|
2032
2002
|
},
|
|
2033
2003
|
"aria-owns": {
|
|
2034
2004
|
"defaultValue": null,
|
|
@@ -2397,12 +2367,7 @@
|
|
|
2397
2367
|
"control": {
|
|
2398
2368
|
"type": "radio"
|
|
2399
2369
|
},
|
|
2400
|
-
"options": [
|
|
2401
|
-
"none",
|
|
2402
|
-
"ascending",
|
|
2403
|
-
"descending",
|
|
2404
|
-
"other"
|
|
2405
|
-
]
|
|
2370
|
+
"options": ["none", "ascending", "descending", "other"]
|
|
2406
2371
|
},
|
|
2407
2372
|
"aria-valuemax": {
|
|
2408
2373
|
"defaultValue": null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Style } from "../css";
|
|
2
1
|
import { z } from "zod";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { IconProps } from "@webstudio-is/icons";
|
|
4
|
+
import type { Style } from "@webstudio-is/css-data";
|
|
5
5
|
export declare type WsComponentMeta<ComponentType> = {
|
|
6
6
|
Component: ComponentType;
|
|
7
7
|
Icon: React.FunctionComponent<IconProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-type.d.ts","sourceRoot":"","sources":["../../src/components/component-type.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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"}
|
|
@@ -623,10 +623,7 @@
|
|
|
623
623
|
"control": {
|
|
624
624
|
"type": "radio"
|
|
625
625
|
},
|
|
626
|
-
"options": [
|
|
627
|
-
"yes",
|
|
628
|
-
"no"
|
|
629
|
-
]
|
|
626
|
+
"options": ["yes", "no"]
|
|
630
627
|
},
|
|
631
628
|
"radioGroup": {
|
|
632
629
|
"defaultValue": null,
|
|
@@ -915,6 +912,7 @@
|
|
|
915
912
|
}
|
|
916
913
|
},
|
|
917
914
|
"color": {
|
|
915
|
+
"defaultValue": null,
|
|
918
916
|
"description": "",
|
|
919
917
|
"name": "color",
|
|
920
918
|
"parent": {
|
|
@@ -1119,10 +1117,7 @@
|
|
|
1119
1117
|
"control": {
|
|
1120
1118
|
"type": "radio"
|
|
1121
1119
|
},
|
|
1122
|
-
"options": [
|
|
1123
|
-
"on",
|
|
1124
|
-
"off"
|
|
1125
|
-
]
|
|
1120
|
+
"options": ["on", "off"]
|
|
1126
1121
|
},
|
|
1127
1122
|
"inputMode": {
|
|
1128
1123
|
"defaultValue": null,
|
|
@@ -1285,12 +1280,7 @@
|
|
|
1285
1280
|
"control": {
|
|
1286
1281
|
"type": "radio"
|
|
1287
1282
|
},
|
|
1288
|
-
"options": [
|
|
1289
|
-
"list",
|
|
1290
|
-
"none",
|
|
1291
|
-
"inline",
|
|
1292
|
-
"both"
|
|
1293
|
-
]
|
|
1283
|
+
"options": ["list", "none", "inline", "both"]
|
|
1294
1284
|
},
|
|
1295
1285
|
"aria-busy": {
|
|
1296
1286
|
"defaultValue": null,
|
|
@@ -1554,14 +1544,7 @@
|
|
|
1554
1544
|
"control": {
|
|
1555
1545
|
"type": "select"
|
|
1556
1546
|
},
|
|
1557
|
-
"options": [
|
|
1558
|
-
"link",
|
|
1559
|
-
"none",
|
|
1560
|
-
"copy",
|
|
1561
|
-
"execute",
|
|
1562
|
-
"move",
|
|
1563
|
-
"popup"
|
|
1564
|
-
]
|
|
1547
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"]
|
|
1565
1548
|
},
|
|
1566
1549
|
"aria-errormessage": {
|
|
1567
1550
|
"defaultValue": null,
|
|
@@ -1838,11 +1821,7 @@
|
|
|
1838
1821
|
"control": {
|
|
1839
1822
|
"type": "radio"
|
|
1840
1823
|
},
|
|
1841
|
-
"options": [
|
|
1842
|
-
"off",
|
|
1843
|
-
"assertive",
|
|
1844
|
-
"polite"
|
|
1845
|
-
]
|
|
1824
|
+
"options": ["off", "assertive", "polite"]
|
|
1846
1825
|
},
|
|
1847
1826
|
"aria-modal": {
|
|
1848
1827
|
"defaultValue": null,
|
|
@@ -1940,10 +1919,7 @@
|
|
|
1940
1919
|
"control": {
|
|
1941
1920
|
"type": "radio"
|
|
1942
1921
|
},
|
|
1943
|
-
"options": [
|
|
1944
|
-
"horizontal",
|
|
1945
|
-
"vertical"
|
|
1946
|
-
]
|
|
1922
|
+
"options": ["horizontal", "vertical"]
|
|
1947
1923
|
},
|
|
1948
1924
|
"aria-owns": {
|
|
1949
1925
|
"defaultValue": null,
|
|
@@ -2312,12 +2288,7 @@
|
|
|
2312
2288
|
"control": {
|
|
2313
2289
|
"type": "radio"
|
|
2314
2290
|
},
|
|
2315
|
-
"options": [
|
|
2316
|
-
"none",
|
|
2317
|
-
"ascending",
|
|
2318
|
-
"descending",
|
|
2319
|
-
"other"
|
|
2320
|
-
]
|
|
2291
|
+
"options": ["none", "ascending", "descending", "other"]
|
|
2321
2292
|
},
|
|
2322
2293
|
"aria-valuemax": {
|
|
2323
2294
|
"defaultValue": null,
|
|
@@ -447,10 +447,7 @@
|
|
|
447
447
|
"control": {
|
|
448
448
|
"type": "radio"
|
|
449
449
|
},
|
|
450
|
-
"options": [
|
|
451
|
-
"yes",
|
|
452
|
-
"no"
|
|
453
|
-
]
|
|
450
|
+
"options": ["yes", "no"]
|
|
454
451
|
},
|
|
455
452
|
"radioGroup": {
|
|
456
453
|
"defaultValue": null,
|
|
@@ -739,6 +736,7 @@
|
|
|
739
736
|
}
|
|
740
737
|
},
|
|
741
738
|
"color": {
|
|
739
|
+
"defaultValue": null,
|
|
742
740
|
"description": "",
|
|
743
741
|
"name": "color",
|
|
744
742
|
"parent": {
|
|
@@ -943,10 +941,7 @@
|
|
|
943
941
|
"control": {
|
|
944
942
|
"type": "radio"
|
|
945
943
|
},
|
|
946
|
-
"options": [
|
|
947
|
-
"on",
|
|
948
|
-
"off"
|
|
949
|
-
]
|
|
944
|
+
"options": ["on", "off"]
|
|
950
945
|
},
|
|
951
946
|
"inputMode": {
|
|
952
947
|
"defaultValue": null,
|
|
@@ -1109,12 +1104,7 @@
|
|
|
1109
1104
|
"control": {
|
|
1110
1105
|
"type": "radio"
|
|
1111
1106
|
},
|
|
1112
|
-
"options": [
|
|
1113
|
-
"list",
|
|
1114
|
-
"none",
|
|
1115
|
-
"inline",
|
|
1116
|
-
"both"
|
|
1117
|
-
]
|
|
1107
|
+
"options": ["list", "none", "inline", "both"]
|
|
1118
1108
|
},
|
|
1119
1109
|
"aria-busy": {
|
|
1120
1110
|
"defaultValue": null,
|
|
@@ -1378,14 +1368,7 @@
|
|
|
1378
1368
|
"control": {
|
|
1379
1369
|
"type": "select"
|
|
1380
1370
|
},
|
|
1381
|
-
"options": [
|
|
1382
|
-
"link",
|
|
1383
|
-
"none",
|
|
1384
|
-
"copy",
|
|
1385
|
-
"execute",
|
|
1386
|
-
"move",
|
|
1387
|
-
"popup"
|
|
1388
|
-
]
|
|
1371
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"]
|
|
1389
1372
|
},
|
|
1390
1373
|
"aria-errormessage": {
|
|
1391
1374
|
"defaultValue": null,
|
|
@@ -1662,11 +1645,7 @@
|
|
|
1662
1645
|
"control": {
|
|
1663
1646
|
"type": "radio"
|
|
1664
1647
|
},
|
|
1665
|
-
"options": [
|
|
1666
|
-
"off",
|
|
1667
|
-
"assertive",
|
|
1668
|
-
"polite"
|
|
1669
|
-
]
|
|
1648
|
+
"options": ["off", "assertive", "polite"]
|
|
1670
1649
|
},
|
|
1671
1650
|
"aria-modal": {
|
|
1672
1651
|
"defaultValue": null,
|
|
@@ -1764,10 +1743,7 @@
|
|
|
1764
1743
|
"control": {
|
|
1765
1744
|
"type": "radio"
|
|
1766
1745
|
},
|
|
1767
|
-
"options": [
|
|
1768
|
-
"horizontal",
|
|
1769
|
-
"vertical"
|
|
1770
|
-
]
|
|
1746
|
+
"options": ["horizontal", "vertical"]
|
|
1771
1747
|
},
|
|
1772
1748
|
"aria-owns": {
|
|
1773
1749
|
"defaultValue": null,
|
|
@@ -2136,12 +2112,7 @@
|
|
|
2136
2112
|
"control": {
|
|
2137
2113
|
"type": "radio"
|
|
2138
2114
|
},
|
|
2139
|
-
"options": [
|
|
2140
|
-
"none",
|
|
2141
|
-
"ascending",
|
|
2142
|
-
"descending",
|
|
2143
|
-
"other"
|
|
2144
|
-
]
|
|
2115
|
+
"options": ["none", "ascending", "descending", "other"]
|
|
2145
2116
|
},
|
|
2146
2117
|
"aria-valuemax": {
|
|
2147
2118
|
"defaultValue": null,
|
|
@@ -2232,9 +2203,7 @@
|
|
|
2232
2203
|
}
|
|
2233
2204
|
},
|
|
2234
2205
|
"tag": {
|
|
2235
|
-
"defaultValue":
|
|
2236
|
-
"value": "h1"
|
|
2237
|
-
},
|
|
2206
|
+
"defaultValue": "h1",
|
|
2238
2207
|
"description": "",
|
|
2239
2208
|
"name": "tag",
|
|
2240
2209
|
"declarations": [
|
|
@@ -2271,13 +2240,6 @@
|
|
|
2271
2240
|
"control": {
|
|
2272
2241
|
"type": "select"
|
|
2273
2242
|
},
|
|
2274
|
-
"options": [
|
|
2275
|
-
"h1",
|
|
2276
|
-
"h2",
|
|
2277
|
-
"h3",
|
|
2278
|
-
"h4",
|
|
2279
|
-
"h5",
|
|
2280
|
-
"h6"
|
|
2281
|
-
]
|
|
2243
|
+
"options": ["h1", "h2", "h3", "h4", "h5", "h6"]
|
|
2282
2244
|
}
|
|
2283
2245
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ComponentMeta, ComponentStory } from "@storybook/react";
|
|
3
|
+
import { type ImageLoader } from "../component-utils/image";
|
|
4
|
+
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
5
|
+
quality?: number | undefined;
|
|
6
|
+
loader?: ImageLoader | undefined;
|
|
7
|
+
optimize?: boolean | undefined;
|
|
8
|
+
}, "key" | "quality" | "loader" | keyof React.ImgHTMLAttributes<HTMLImageElement> | "optimize"> & React.RefAttributes<HTMLImageElement>>>;
|
|
9
|
+
export default _default;
|
|
10
|
+
/**
|
|
11
|
+
* Load images depending on image width and device per pixel ratio.
|
|
12
|
+
**/
|
|
13
|
+
export declare const FixedWidthImage: ComponentStory<React.FunctionComponent>;
|
|
14
|
+
/**
|
|
15
|
+
* Preserve ratio using object-fit: cover. Load images depending on image width and device per pixel ratio.
|
|
16
|
+
**/
|
|
17
|
+
export declare const FixedWidthImageCover: ComponentStory<React.FunctionComponent>;
|
|
18
|
+
/**
|
|
19
|
+
* Load images depending on the viewport width.
|
|
20
|
+
**/
|
|
21
|
+
export declare const UnknownWidthImage: ComponentStory<React.FunctionComponent>;
|
|
22
|
+
/**
|
|
23
|
+
* Fit width of the parent container, has own aspect-ratio and object-fit=cover.
|
|
24
|
+
* Load images depending on the viewport width.
|
|
25
|
+
**/
|
|
26
|
+
export declare const AspectRatioImage: ComponentStory<React.FunctionComponent>;
|
|
27
|
+
/**
|
|
28
|
+
* Fill width and height of the relative parent container, object-fit=cover. Load images depending on the viewport width.
|
|
29
|
+
**/
|
|
30
|
+
export declare const FillParentImage: ComponentStory<React.FunctionComponent>;
|
|
31
|
+
/**
|
|
32
|
+
* "sizes" attribute explicitly equal to 100vw allowing to skip the default behavior.
|
|
33
|
+
* See DEFAULT_SIZES in the Image component. Load images depending on the viewport width.
|
|
34
|
+
**/
|
|
35
|
+
export declare const HeroImage: ComponentStory<React.FunctionComponent>;
|
|
36
|
+
//# sourceMappingURL=image-dev.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-dev.stories.d.ts","sourceRoot":"","sources":["../../src/components/image-dev.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAItE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;;;;;;AAO5D,wBAE0C;AAgF1C;;IAEI;AACJ,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAEnE,CAAC;AAEF;;IAEI;AACJ,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAC/C,KAAK,CAAC,iBAAiB,CAQxB,CAAC;AAEF;;IAEI;AACJ,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAC5C,KAAK,CAAC,iBAAiB,CACa,CAAC;AAEvC;;;IAGI;AACJ,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAOpE,CAAC;AAEF;;IAEI;AACJ,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAYnE,CAAC;AAEF;;;IAGI;AACJ,eAAO,MAAM,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAU7D,CAAC"}
|