@webstudio-is/sdk-components-react 0.71.0 → 0.73.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/__generated__/button.props.js +0 -6
- package/lib/__generated__/image.props.js +0 -1
- package/lib/__generated__/link-block.props.js +1 -7
- package/lib/__generated__/link.props.js +1 -7
- package/lib/__generated__/rich-text-link.props.js +1 -7
- package/lib/__generated__/{radio-button-field.props.js → vimeo-play-button.props.js} +14 -0
- package/lib/__generated__/vimeo-preview-image.props.js +441 -0
- package/lib/__generated__/{checkbox-field.props.js → vimeo-spinner.props.js} +0 -1
- package/lib/__generated__/vimeo.props.js +555 -0
- package/lib/blockquote.ws.js +1 -1
- package/lib/box.js +2 -1
- package/lib/button.js +1 -6
- package/lib/button.ws.js +9 -2
- package/lib/checkbox.ws.js +19 -1
- package/lib/cjs/__generated__/button.props.js +0 -6
- package/lib/cjs/__generated__/image.props.js +0 -1
- package/lib/cjs/__generated__/link-block.props.js +1 -7
- package/lib/cjs/__generated__/link.props.js +1 -7
- package/lib/cjs/__generated__/rich-text-link.props.js +1 -7
- package/lib/cjs/__generated__/{text-block.props.js → text.props.js} +3 -3
- package/lib/cjs/__generated__/{radio-button-field.props.js → vimeo-play-button.props.js} +17 -3
- package/lib/cjs/__generated__/vimeo-preview-image.props.js +461 -0
- package/lib/cjs/__generated__/{checkbox-field.props.js → vimeo-spinner.props.js} +3 -4
- package/lib/cjs/__generated__/vimeo.props.js +575 -0
- package/lib/cjs/blockquote.ws.js +1 -1
- package/lib/cjs/box.js +2 -1
- package/lib/cjs/button.js +1 -6
- package/lib/cjs/button.ws.js +9 -2
- package/lib/cjs/checkbox.ws.js +19 -1
- package/lib/cjs/code-text.ws.js +1 -1
- package/lib/cjs/components.js +11 -9
- package/lib/cjs/heading.ws.js +1 -1
- package/lib/cjs/image.js +3 -3
- package/lib/cjs/image.ws.js +12 -9
- package/lib/cjs/label.ws.js +3 -6
- package/lib/cjs/link.js +1 -1
- package/lib/cjs/link.ws.js +3 -3
- package/lib/cjs/list-item.ws.js +1 -1
- package/lib/cjs/metas.js +11 -9
- package/lib/cjs/paragraph.ws.js +2 -2
- package/lib/cjs/props.js +11 -9
- package/lib/cjs/radio-button.ws.js +19 -1
- package/lib/cjs/rich-text-link.ws.js +3 -10
- package/lib/cjs/span.ws.js +1 -1
- package/lib/cjs/{text-block.js → text.js} +6 -6
- package/lib/cjs/{text-block.ws.js → text.ws.js} +10 -10
- package/lib/cjs/{link-block.js → vimeo-play-button.js} +17 -9
- package/lib/cjs/{link-block.ws.js → vimeo-play-button.ws.js} +13 -22
- package/lib/cjs/vimeo-preview-image.js +40 -0
- package/lib/cjs/{radio-button-field.js → vimeo-preview-image.ws.js} +17 -10
- package/lib/cjs/{checkbox-field.js → vimeo-spinner.js} +16 -8
- package/lib/cjs/{checkbox-field.ws.js → vimeo-spinner.ws.js} +11 -30
- package/lib/cjs/vimeo.js +294 -0
- package/lib/cjs/vimeo.ws.js +345 -0
- package/lib/code-text.ws.js +1 -1
- package/lib/components.js +11 -9
- package/lib/heading.ws.js +1 -1
- package/lib/image.js +6 -5
- package/lib/image.ws.js +12 -9
- package/lib/label.ws.js +4 -7
- package/lib/link.js +3 -3
- package/lib/link.ws.js +3 -3
- package/lib/list-item.ws.js +1 -1
- package/lib/metas.js +52 -50
- package/lib/paragraph.ws.js +2 -2
- package/lib/props.js +52 -50
- package/lib/radio-button.ws.js +19 -1
- package/lib/rich-text-link.ws.js +3 -10
- package/lib/span.ws.js +1 -1
- package/lib/{text-block.js → text.js} +3 -3
- package/lib/{text-block.ws.js → text.ws.js} +7 -7
- package/lib/types/__generated__/vimeo-spinner.props.d.ts +2 -0
- package/lib/types/__generated__/vimeo.props.d.ts +2 -0
- package/lib/types/box.d.ts +1 -1
- package/lib/types/button.d.ts +2 -6
- package/lib/types/button.stories.d.ts +2 -6
- package/lib/types/components.d.ts +5 -4
- package/lib/types/image.d.ts +5 -6
- package/lib/types/image.stories.d.ts +555 -6
- package/lib/types/image.ws.d.ts +8 -0
- package/lib/types/link.d.ts +1 -3
- package/lib/types/link.stories.d.ts +2 -6
- package/lib/types/metas.d.ts +5 -4
- package/lib/types/props.d.ts +5 -4
- package/lib/types/rich-text-link.stories.d.ts +2 -6
- package/lib/types/{text-block.d.ts → text.d.ts} +1 -1
- package/lib/types/{text-block.stories.d.ts → text.stories.d.ts} +1 -1
- package/lib/types/vimeo-play-button.d.ts +4 -0
- package/lib/types/vimeo-play-button.stories.d.ts +5 -0
- package/lib/types/vimeo-preview-image.d.ts +281 -0
- package/lib/types/vimeo-preview-image.stories.d.ts +562 -0
- package/lib/types/vimeo-spinner.d.ts +2 -0
- package/lib/types/vimeo-spinner.stories.d.ts +5 -0
- package/lib/types/{link-block.ws.d.ts → vimeo-spinner.ws.d.ts} +1 -1
- package/lib/types/vimeo.d.ts +73 -0
- package/lib/types/vimeo.stories.d.ts +71 -0
- package/lib/types/vimeo.ws.d.ts +3 -0
- package/lib/vimeo-play-button.js +21 -0
- package/lib/vimeo-play-button.ws.js +26 -0
- package/lib/vimeo-preview-image.js +23 -0
- package/lib/vimeo-preview-image.ws.js +20 -0
- package/lib/vimeo-spinner.js +20 -0
- package/lib/vimeo-spinner.ws.js +25 -0
- package/lib/vimeo.js +282 -0
- package/lib/vimeo.ws.js +327 -0
- package/package.json +9 -7
- package/src/LICENSE +21 -0
- package/src/__generated__/button.props.ts +0 -6
- package/src/__generated__/image.props.ts +0 -1
- package/src/__generated__/link-block.props.ts +1 -7
- package/src/__generated__/link.props.ts +1 -7
- package/src/__generated__/rich-text-link.props.ts +1 -7
- package/src/__generated__/{checkbox-field.props.ts → vimeo-play-button.props.ts} +14 -0
- package/src/__generated__/vimeo-preview-image.props.ts +486 -0
- package/src/__generated__/{radio-button-field.props.ts → vimeo-spinner.props.ts} +0 -1
- package/src/__generated__/vimeo.props.ts +621 -0
- package/src/blockquote.ws.tsx +1 -1
- package/src/box.tsx +1 -1
- package/src/button.tsx +3 -11
- package/src/button.ws.tsx +8 -1
- package/src/checkbox.ws.tsx +19 -1
- package/src/code-text.ws.tsx +1 -1
- package/src/components.ts +5 -4
- package/src/heading.ws.tsx +1 -1
- package/src/image.tsx +6 -5
- package/src/image.ws.tsx +11 -9
- package/src/label.ws.tsx +4 -7
- package/src/link.tsx +5 -11
- package/src/link.ws.tsx +3 -3
- package/src/list-item.ws.tsx +1 -1
- package/src/metas.ts +5 -4
- package/src/paragraph.ws.tsx +2 -2
- package/src/props.ts +5 -4
- package/src/radio-button.ws.tsx +19 -1
- package/src/rich-text-link.ws.tsx +3 -11
- package/src/span.ws.tsx +1 -1
- package/src/text.stories.tsx +16 -0
- package/src/{text-block.tsx → text.tsx} +2 -2
- package/src/{text-block.ws.tsx → text.ws.tsx} +8 -8
- package/src/vimeo-play-button.stories.tsx +17 -0
- package/src/vimeo-play-button.tsx +24 -0
- package/src/vimeo-play-button.ws.ts +29 -0
- package/src/vimeo-preview-image.stories.tsx +17 -0
- package/src/vimeo-preview-image.tsx +30 -0
- package/src/vimeo-preview-image.ws.ts +22 -0
- package/src/vimeo-spinner.stories.tsx +17 -0
- package/src/vimeo-spinner.tsx +25 -0
- package/src/vimeo-spinner.ws.ts +27 -0
- package/src/vimeo.stories.tsx +17 -0
- package/src/vimeo.tsx +430 -0
- package/src/vimeo.ws.ts +331 -0
- package/lib/checkbox-field.js +0 -9
- package/lib/checkbox-field.ws.js +0 -44
- package/lib/cjs/radio-button-field.ws.js +0 -62
- package/lib/link-block.js +0 -10
- package/lib/link-block.ws.js +0 -33
- package/lib/radio-button-field.js +0 -9
- package/lib/radio-button-field.ws.js +0 -44
- package/lib/types/checkbox-field.d.ts +0 -3
- package/lib/types/link-block.d.ts +0 -3
- package/lib/types/link-block.stories.d.ts +0 -13
- package/lib/types/radio-button-field.d.ts +0 -3
- package/src/checkbox-field.tsx +0 -10
- package/src/checkbox-field.ws.tsx +0 -47
- package/src/link-block.stories.tsx +0 -16
- package/src/link-block.tsx +0 -9
- package/src/link-block.ws.tsx +0 -38
- package/src/radio-button-field.tsx +0 -10
- package/src/radio-button-field.ws.tsx +0 -47
- package/src/text-block.stories.tsx +0 -16
- /package/lib/__generated__/{text-block.props.js → text.props.js} +0 -0
- /package/lib/types/__generated__/{checkbox-field.props.d.ts → text.props.d.ts} +0 -0
- /package/lib/types/__generated__/{radio-button-field.props.d.ts → vimeo-play-button.props.d.ts} +0 -0
- /package/lib/types/__generated__/{text-block.props.d.ts → vimeo-preview-image.props.d.ts} +0 -0
- /package/lib/types/{checkbox-field.ws.d.ts → text.ws.d.ts} +0 -0
- /package/lib/types/{radio-button-field.ws.d.ts → vimeo-play-button.ws.d.ts} +0 -0
- /package/lib/types/{text-block.ws.d.ts → vimeo-preview-image.ws.d.ts} +0 -0
- /package/src/__generated__/{text-block.props.ts → text.props.ts} +0 -0
package/lib/vimeo.ws.js
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { PlayIcon, SpinnerIcon, VimeoIcon } from "@webstudio-is/icons/svg";
|
|
2
|
+
import {
|
|
3
|
+
defaultStates
|
|
4
|
+
} from "@webstudio-is/react-sdk";
|
|
5
|
+
import { div } from "@webstudio-is/react-sdk/css-normalize";
|
|
6
|
+
import { props } from "./__generated__/vimeo.props";
|
|
7
|
+
const presetStyle = {
|
|
8
|
+
div
|
|
9
|
+
};
|
|
10
|
+
const meta = {
|
|
11
|
+
category: "media",
|
|
12
|
+
type: "container",
|
|
13
|
+
label: "Vimeo",
|
|
14
|
+
order: 1,
|
|
15
|
+
icon: VimeoIcon,
|
|
16
|
+
states: defaultStates,
|
|
17
|
+
presetStyle,
|
|
18
|
+
template: [
|
|
19
|
+
{
|
|
20
|
+
type: "instance",
|
|
21
|
+
component: "Vimeo",
|
|
22
|
+
styles: [
|
|
23
|
+
{
|
|
24
|
+
property: "position",
|
|
25
|
+
value: { type: "keyword", value: "relative" }
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
property: "aspectRatio",
|
|
29
|
+
value: { type: "keyword", value: "640/360" }
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
property: "width",
|
|
33
|
+
value: { type: "unit", value: 100, unit: "%" }
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
children: [
|
|
37
|
+
{
|
|
38
|
+
type: "instance",
|
|
39
|
+
component: "VimeoPreviewImage",
|
|
40
|
+
styles: [
|
|
41
|
+
{
|
|
42
|
+
property: "position",
|
|
43
|
+
value: { type: "keyword", value: "absolute" }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
property: "objectFit",
|
|
47
|
+
value: { type: "keyword", value: "cover" }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
property: "width",
|
|
51
|
+
value: { type: "unit", value: 100, unit: "%" }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
property: "height",
|
|
55
|
+
value: { type: "unit", value: 100, unit: "%" }
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
property: "borderTopLeftRadius",
|
|
59
|
+
value: { type: "unit", value: 20, unit: "px" }
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
property: "borderTopRightRadius",
|
|
63
|
+
value: { type: "unit", value: 20, unit: "px" }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
property: "borderBottomLeftRadius",
|
|
67
|
+
value: { type: "unit", value: 20, unit: "px" }
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
property: "borderBottomRightRadius",
|
|
71
|
+
value: { type: "unit", value: 20, unit: "px" }
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
property: "objectPosition",
|
|
75
|
+
value: { type: "keyword", value: "cover" }
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
children: [],
|
|
79
|
+
props: [
|
|
80
|
+
{
|
|
81
|
+
type: "string",
|
|
82
|
+
name: "alt",
|
|
83
|
+
value: "Vimeo video preview image"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: "string",
|
|
87
|
+
name: "sizes",
|
|
88
|
+
value: "100vw"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "instance",
|
|
94
|
+
component: "Box",
|
|
95
|
+
label: "Spinner",
|
|
96
|
+
styles: [
|
|
97
|
+
{
|
|
98
|
+
property: "position",
|
|
99
|
+
value: { type: "keyword", value: "absolute" }
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
property: "top",
|
|
103
|
+
value: { type: "unit", value: 50, unit: "%" }
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
property: "left",
|
|
107
|
+
value: { type: "unit", value: 50, unit: "%" }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
property: "width",
|
|
111
|
+
value: { type: "unit", value: 70, unit: "px" }
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
property: "height",
|
|
115
|
+
value: { type: "unit", value: 70, unit: "px" }
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
property: "marginTop",
|
|
119
|
+
value: { type: "unit", value: -35, unit: "px" }
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
property: "marginLeft",
|
|
123
|
+
value: { type: "unit", value: -35, unit: "px" }
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
children: [
|
|
127
|
+
{
|
|
128
|
+
type: "instance",
|
|
129
|
+
component: "HtmlEmbed",
|
|
130
|
+
label: "Spinner SVG",
|
|
131
|
+
props: [
|
|
132
|
+
{
|
|
133
|
+
type: "string",
|
|
134
|
+
name: "code",
|
|
135
|
+
value: SpinnerIcon
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
children: []
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "instance",
|
|
144
|
+
component: "VimeoPlayButton",
|
|
145
|
+
props: [
|
|
146
|
+
{
|
|
147
|
+
type: "string",
|
|
148
|
+
name: "aria-label",
|
|
149
|
+
value: "Play button"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
styles: [
|
|
153
|
+
{
|
|
154
|
+
property: "position",
|
|
155
|
+
value: { type: "keyword", value: "absolute" }
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
property: "width",
|
|
159
|
+
value: { type: "unit", value: 140, unit: "px" }
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
property: "height",
|
|
163
|
+
value: { type: "unit", value: 80, unit: "px" }
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
property: "top",
|
|
167
|
+
value: { type: "unit", value: 50, unit: "%" }
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
property: "left",
|
|
171
|
+
value: { type: "unit", value: 50, unit: "%" }
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
property: "marginTop",
|
|
175
|
+
value: { type: "unit", value: -40, unit: "px" }
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
property: "marginLeft",
|
|
179
|
+
value: { type: "unit", value: -70, unit: "px" }
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
property: "display",
|
|
183
|
+
value: { type: "keyword", value: "flex" }
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
property: "alignItems",
|
|
187
|
+
value: { type: "keyword", value: "center" }
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
property: "justifyContent",
|
|
191
|
+
value: { type: "keyword", value: "center" }
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
property: "borderTopStyle",
|
|
195
|
+
value: { type: "keyword", value: "none" }
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
property: "borderRightStyle",
|
|
199
|
+
value: { type: "keyword", value: "none" }
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
property: "borderBottomStyle",
|
|
203
|
+
value: { type: "keyword", value: "none" }
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
property: "borderLeftStyle",
|
|
207
|
+
value: { type: "keyword", value: "none" }
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
property: "borderTopLeftRadius",
|
|
211
|
+
value: { type: "unit", value: 5, unit: "px" }
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
property: "borderTopRightRadius",
|
|
215
|
+
value: { type: "unit", value: 5, unit: "px" }
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
property: "borderBottomLeftRadius",
|
|
219
|
+
value: { type: "unit", value: 5, unit: "px" }
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
property: "borderBottomRightRadius",
|
|
223
|
+
value: { type: "unit", value: 5, unit: "px" }
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
property: "cursor",
|
|
227
|
+
value: { type: "keyword", value: "pointer" }
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
property: "backgroundColor",
|
|
231
|
+
value: {
|
|
232
|
+
type: "rgb",
|
|
233
|
+
r: 18,
|
|
234
|
+
g: 18,
|
|
235
|
+
b: 18,
|
|
236
|
+
alpha: 1
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
property: "color",
|
|
241
|
+
value: {
|
|
242
|
+
type: "rgb",
|
|
243
|
+
r: 255,
|
|
244
|
+
g: 255,
|
|
245
|
+
b: 255,
|
|
246
|
+
alpha: 1
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
state: ":hover",
|
|
251
|
+
property: "backgroundColor",
|
|
252
|
+
value: {
|
|
253
|
+
type: "rgb",
|
|
254
|
+
r: 0,
|
|
255
|
+
g: 173,
|
|
256
|
+
b: 239,
|
|
257
|
+
alpha: 1
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
children: [
|
|
262
|
+
{
|
|
263
|
+
type: "instance",
|
|
264
|
+
component: "Box",
|
|
265
|
+
label: "Play Icon",
|
|
266
|
+
styles: [
|
|
267
|
+
{
|
|
268
|
+
property: "width",
|
|
269
|
+
value: { type: "unit", value: 60, unit: "px" }
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
property: "height",
|
|
273
|
+
value: { type: "unit", value: 60, unit: "px" }
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
props: [
|
|
277
|
+
{
|
|
278
|
+
type: "string",
|
|
279
|
+
name: "aria-hidden",
|
|
280
|
+
value: "true"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
children: [
|
|
284
|
+
{
|
|
285
|
+
type: "instance",
|
|
286
|
+
component: "HtmlEmbed",
|
|
287
|
+
label: "Play SVG",
|
|
288
|
+
props: [
|
|
289
|
+
{
|
|
290
|
+
type: "string",
|
|
291
|
+
name: "code",
|
|
292
|
+
value: PlayIcon
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
children: []
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
};
|
|
305
|
+
const initialProps = [
|
|
306
|
+
"url",
|
|
307
|
+
"quality",
|
|
308
|
+
"showPreview",
|
|
309
|
+
"autoplay",
|
|
310
|
+
"backgroundMode",
|
|
311
|
+
"doNotTrack",
|
|
312
|
+
"loop",
|
|
313
|
+
"muted",
|
|
314
|
+
"showPortrait",
|
|
315
|
+
"showByline",
|
|
316
|
+
"showTitle",
|
|
317
|
+
"showControls",
|
|
318
|
+
"controlsColor"
|
|
319
|
+
];
|
|
320
|
+
const propsMeta = {
|
|
321
|
+
props,
|
|
322
|
+
initialProps
|
|
323
|
+
};
|
|
324
|
+
export {
|
|
325
|
+
meta,
|
|
326
|
+
propsMeta
|
|
327
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.0",
|
|
4
4
|
"description": "Webstudio default library for react",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -38,11 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@react-aria/utils": "^3.13.3",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"@webstudio-is/
|
|
44
|
-
"@webstudio-is/
|
|
45
|
-
"@webstudio-is/
|
|
41
|
+
"colord": "^2.9.3",
|
|
42
|
+
"shallow-equal": "^3.1.0",
|
|
43
|
+
"@webstudio-is/css-vars": "^0.73.0",
|
|
44
|
+
"@webstudio-is/generate-arg-types": "^0.73.0",
|
|
45
|
+
"@webstudio-is/icons": "^0.73.0",
|
|
46
|
+
"@webstudio-is/image": "^0.73.0",
|
|
47
|
+
"@webstudio-is/react-sdk": "^0.73.0"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
50
|
"@storybook/react": "^6.5.16",
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
"@types/react-dom": "^18.0.11",
|
|
51
53
|
"react": "^18.2.0",
|
|
52
54
|
"react-dom": "^18.2.0",
|
|
53
|
-
"typescript": "5.
|
|
55
|
+
"typescript": "5.1.3",
|
|
54
56
|
"@webstudio-is/scripts": "^0.0.0",
|
|
55
57
|
"@webstudio-is/storybook-config": "^0.0.0",
|
|
56
58
|
"@webstudio-is/tsconfig": "^1.0.6"
|
package/src/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Webstudio
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -482,6 +482,5 @@ export const props: Record<string, PropMeta> = {
|
|
|
482
482
|
type: "string",
|
|
483
483
|
},
|
|
484
484
|
quality: { required: false, control: "number", type: "number" },
|
|
485
|
-
loader: { required: true, control: "text", type: "string" },
|
|
486
485
|
optimize: { required: false, control: "boolean", type: "boolean" },
|
|
487
486
|
};
|
|
@@ -4,7 +4,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
4
4
|
slot: { required: false, control: "text", type: "string" },
|
|
5
5
|
style: { required: false, control: "text", type: "string" },
|
|
6
6
|
title: { required: false, control: "text", type: "string" },
|
|
7
|
-
href: { required: false, control: "text", type: "string" },
|
|
8
7
|
target: {
|
|
9
8
|
required: false,
|
|
10
9
|
control: "select",
|
|
@@ -12,6 +11,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
12
11
|
options: ["_self", "_blank", "_parent", "_top"],
|
|
13
12
|
},
|
|
14
13
|
download: { required: false, control: "text", type: "string" },
|
|
14
|
+
href: { required: false, control: "text", type: "string" },
|
|
15
15
|
hrefLang: { required: false, control: "text", type: "string" },
|
|
16
16
|
media: { required: false, control: "text", type: "string" },
|
|
17
17
|
ping: { required: false, control: "text", type: "string" },
|
|
@@ -468,10 +468,4 @@ export const props: Record<string, PropMeta> = {
|
|
|
468
468
|
control: "text",
|
|
469
469
|
type: "string",
|
|
470
470
|
},
|
|
471
|
-
prefetch: {
|
|
472
|
-
required: false,
|
|
473
|
-
control: "radio",
|
|
474
|
-
type: "string",
|
|
475
|
-
options: ["none", "intent", "render"],
|
|
476
|
-
},
|
|
477
471
|
};
|
|
@@ -4,7 +4,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
4
4
|
slot: { required: false, control: "text", type: "string" },
|
|
5
5
|
style: { required: false, control: "text", type: "string" },
|
|
6
6
|
title: { required: false, control: "text", type: "string" },
|
|
7
|
-
href: { required: false, control: "text", type: "string" },
|
|
8
7
|
target: {
|
|
9
8
|
required: false,
|
|
10
9
|
control: "select",
|
|
@@ -12,6 +11,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
12
11
|
options: ["_self", "_blank", "_parent", "_top"],
|
|
13
12
|
},
|
|
14
13
|
download: { required: false, control: "text", type: "string" },
|
|
14
|
+
href: { required: false, control: "text", type: "string" },
|
|
15
15
|
hrefLang: { required: false, control: "text", type: "string" },
|
|
16
16
|
media: { required: false, control: "text", type: "string" },
|
|
17
17
|
ping: { required: false, control: "text", type: "string" },
|
|
@@ -468,10 +468,4 @@ export const props: Record<string, PropMeta> = {
|
|
|
468
468
|
control: "text",
|
|
469
469
|
type: "string",
|
|
470
470
|
},
|
|
471
|
-
prefetch: {
|
|
472
|
-
required: false,
|
|
473
|
-
control: "radio",
|
|
474
|
-
type: "string",
|
|
475
|
-
options: ["none", "intent", "render"],
|
|
476
|
-
},
|
|
477
471
|
};
|
|
@@ -4,7 +4,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
4
4
|
slot: { required: false, control: "text", type: "string" },
|
|
5
5
|
style: { required: false, control: "text", type: "string" },
|
|
6
6
|
title: { required: false, control: "text", type: "string" },
|
|
7
|
-
href: { required: false, control: "text", type: "string" },
|
|
8
7
|
target: {
|
|
9
8
|
required: false,
|
|
10
9
|
control: "select",
|
|
@@ -12,6 +11,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
12
11
|
options: ["_self", "_blank", "_parent", "_top"],
|
|
13
12
|
},
|
|
14
13
|
download: { required: false, control: "text", type: "string" },
|
|
14
|
+
href: { required: false, control: "text", type: "string" },
|
|
15
15
|
hrefLang: { required: false, control: "text", type: "string" },
|
|
16
16
|
media: { required: false, control: "text", type: "string" },
|
|
17
17
|
ping: { required: false, control: "text", type: "string" },
|
|
@@ -468,10 +468,4 @@ export const props: Record<string, PropMeta> = {
|
|
|
468
468
|
control: "text",
|
|
469
469
|
type: "string",
|
|
470
470
|
},
|
|
471
|
-
prefetch: {
|
|
472
|
-
required: false,
|
|
473
|
-
control: "radio",
|
|
474
|
-
type: "string",
|
|
475
|
-
options: ["none", "intent", "render"],
|
|
476
|
-
},
|
|
477
471
|
};
|
|
@@ -5,6 +5,20 @@ export const props: Record<string, PropMeta> = {
|
|
|
5
5
|
slot: { required: false, control: "text", type: "string" },
|
|
6
6
|
style: { required: false, control: "text", type: "string" },
|
|
7
7
|
title: { required: false, control: "text", type: "string" },
|
|
8
|
+
disabled: { required: false, control: "boolean", type: "boolean" },
|
|
9
|
+
formAction: { required: false, control: "text", type: "string" },
|
|
10
|
+
formEncType: { required: false, control: "text", type: "string" },
|
|
11
|
+
formMethod: { required: false, control: "text", type: "string" },
|
|
12
|
+
formNoValidate: { required: false, control: "boolean", type: "boolean" },
|
|
13
|
+
formTarget: { required: false, control: "text", type: "string" },
|
|
14
|
+
name: { required: false, control: "text", type: "string" },
|
|
15
|
+
type: {
|
|
16
|
+
required: false,
|
|
17
|
+
control: "radio",
|
|
18
|
+
type: "string",
|
|
19
|
+
options: ["button", "submit", "reset"],
|
|
20
|
+
},
|
|
21
|
+
value: { required: false, control: "text", type: "string" },
|
|
8
22
|
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
9
23
|
defaultValue: { required: false, control: "text", type: "string" },
|
|
10
24
|
suppressContentEditableWarning: {
|