@webflow/webflow-cli 1.0.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/.eslintrc.js +5 -0
- package/.turbo/turbo-build.log +13 -0
- package/.turbo/turbo-lint.log +5 -0
- package/CHANGELOG.md +7 -0
- package/dist/devlink-engine/_Builtin/BackgroundVideo.d.ts +25 -0
- package/dist/devlink-engine/_Builtin/BackgroundVideo.js +38 -0
- package/dist/devlink-engine/_Builtin/Basic.d.ts +740 -0
- package/dist/devlink-engine/_Builtin/Basic.js +100 -0
- package/dist/devlink-engine/_Builtin/Dropdown.d.ts +38 -0
- package/dist/devlink-engine/_Builtin/Dropdown.js +47 -0
- package/dist/devlink-engine/_Builtin/Facebook.d.ts +11 -0
- package/dist/devlink-engine/_Builtin/Facebook.js +22 -0
- package/dist/devlink-engine/_Builtin/Form.d.ts +8401 -0
- package/dist/devlink-engine/_Builtin/Form.js +316 -0
- package/dist/devlink-engine/_Builtin/Map.d.ts +14 -0
- package/dist/devlink-engine/_Builtin/Map.js +71 -0
- package/dist/devlink-engine/_Builtin/Navbar.d.ts +53 -0
- package/dist/devlink-engine/_Builtin/Navbar.js +240 -0
- package/dist/devlink-engine/_Builtin/Slider.d.ts +876 -0
- package/dist/devlink-engine/_Builtin/Slider.js +304 -0
- package/dist/devlink-engine/_Builtin/Tabs.d.ts +34 -0
- package/dist/devlink-engine/_Builtin/Tabs.js +84 -0
- package/dist/devlink-engine/_Builtin/Twitter.d.ts +17 -0
- package/dist/devlink-engine/_Builtin/Twitter.js +41 -0
- package/dist/devlink-engine/_Builtin/Typography.d.ts +291 -0
- package/dist/devlink-engine/_Builtin/Typography.js +38 -0
- package/dist/devlink-engine/_Builtin/Video.d.ts +8 -0
- package/dist/devlink-engine/_Builtin/Video.js +8 -0
- package/dist/devlink-engine/_Builtin/YouTubeVideo.d.ts +15 -0
- package/dist/devlink-engine/_Builtin/YouTubeVideo.js +27 -0
- package/dist/devlink-engine/_Builtin/index.d.ts +13 -0
- package/dist/devlink-engine/_Builtin/index.js +13 -0
- package/dist/devlink-engine/interactions.d.ts +13 -0
- package/dist/devlink-engine/interactions.js +86 -0
- package/dist/devlink-engine/types.d.ts +32 -0
- package/dist/devlink-engine/types.js +1 -0
- package/dist/devlink-engine/utils.d.ts +66 -0
- package/dist/devlink-engine/utils.js +133 -0
- package/dist/index.js +197591 -0
- package/package.json +30 -0
- package/src/index.ts +33 -0
- package/tsconfig.json +5 -0
- package/tsup.config.ts +6 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type Props } from "./Basic";
|
|
3
|
+
type HeadingProps = React.PropsWithChildren<{
|
|
4
|
+
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5
|
+
}> & React.HTMLAttributes<HTMLHeadingElement>;
|
|
6
|
+
export declare function Heading({ tag, ...props }: HeadingProps): React.DetailedReactHTMLElement<{
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
defaultChecked?: boolean | undefined;
|
|
9
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
10
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
11
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
12
|
+
accessKey?: string | undefined;
|
|
13
|
+
autoFocus?: boolean | undefined;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
16
|
+
contextMenu?: string | undefined;
|
|
17
|
+
dir?: string | undefined;
|
|
18
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
|
+
hidden?: boolean | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
lang?: string | undefined;
|
|
22
|
+
nonce?: string | undefined;
|
|
23
|
+
placeholder?: string | undefined;
|
|
24
|
+
slot?: string | undefined;
|
|
25
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
26
|
+
style?: React.CSSProperties | undefined;
|
|
27
|
+
tabIndex?: number | undefined;
|
|
28
|
+
title?: string | undefined;
|
|
29
|
+
translate?: "yes" | "no" | undefined;
|
|
30
|
+
radioGroup?: string | undefined;
|
|
31
|
+
role?: React.AriaRole | undefined;
|
|
32
|
+
about?: string | undefined;
|
|
33
|
+
content?: string | undefined;
|
|
34
|
+
datatype?: string | undefined;
|
|
35
|
+
inlist?: any;
|
|
36
|
+
prefix?: string | undefined;
|
|
37
|
+
property?: string | undefined;
|
|
38
|
+
rel?: string | undefined;
|
|
39
|
+
resource?: string | undefined;
|
|
40
|
+
rev?: string | undefined;
|
|
41
|
+
typeof?: string | undefined;
|
|
42
|
+
vocab?: string | undefined;
|
|
43
|
+
autoCapitalize?: string | undefined;
|
|
44
|
+
autoCorrect?: string | undefined;
|
|
45
|
+
autoSave?: string | undefined;
|
|
46
|
+
color?: string | undefined;
|
|
47
|
+
itemProp?: string | undefined;
|
|
48
|
+
itemScope?: boolean | undefined;
|
|
49
|
+
itemType?: string | undefined;
|
|
50
|
+
itemID?: string | undefined;
|
|
51
|
+
itemRef?: string | undefined;
|
|
52
|
+
results?: number | undefined;
|
|
53
|
+
security?: string | undefined;
|
|
54
|
+
unselectable?: "off" | "on" | undefined;
|
|
55
|
+
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
56
|
+
is?: string | undefined;
|
|
57
|
+
'aria-activedescendant'?: string | undefined;
|
|
58
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
59
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
60
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
62
|
+
'aria-colcount'?: number | undefined;
|
|
63
|
+
'aria-colindex'?: number | undefined;
|
|
64
|
+
'aria-colspan'?: number | undefined;
|
|
65
|
+
'aria-controls'?: string | undefined;
|
|
66
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
67
|
+
'aria-describedby'?: string | undefined;
|
|
68
|
+
'aria-details'?: string | undefined;
|
|
69
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
70
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
71
|
+
'aria-errormessage'?: string | undefined;
|
|
72
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
73
|
+
'aria-flowto'?: string | undefined;
|
|
74
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
76
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
78
|
+
'aria-keyshortcuts'?: string | undefined;
|
|
79
|
+
'aria-label'?: string | undefined;
|
|
80
|
+
'aria-labelledby'?: string | undefined;
|
|
81
|
+
'aria-level'?: number | undefined;
|
|
82
|
+
'aria-live'?: "polite" | "off" | "assertive" | undefined;
|
|
83
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
84
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
85
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
87
|
+
'aria-owns'?: string | undefined;
|
|
88
|
+
'aria-placeholder'?: string | undefined;
|
|
89
|
+
'aria-posinset'?: number | undefined;
|
|
90
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
91
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
92
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
93
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
'aria-roledescription'?: string | undefined;
|
|
95
|
+
'aria-rowcount'?: number | undefined;
|
|
96
|
+
'aria-rowindex'?: number | undefined;
|
|
97
|
+
'aria-rowspan'?: number | undefined;
|
|
98
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
99
|
+
'aria-setsize'?: number | undefined;
|
|
100
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
101
|
+
'aria-valuemax'?: number | undefined;
|
|
102
|
+
'aria-valuemin'?: number | undefined;
|
|
103
|
+
'aria-valuenow'?: number | undefined;
|
|
104
|
+
'aria-valuetext'?: string | undefined;
|
|
105
|
+
dangerouslySetInnerHTML?: {
|
|
106
|
+
__html: string | TrustedHTML;
|
|
107
|
+
} | undefined;
|
|
108
|
+
onCopy?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
109
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
110
|
+
onCut?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
111
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
112
|
+
onPaste?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
113
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
114
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
115
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
116
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
117
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
118
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
119
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
120
|
+
onFocus?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
121
|
+
onFocusCapture?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
122
|
+
onBlur?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
123
|
+
onBlurCapture?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
124
|
+
onChange?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
125
|
+
onChangeCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
126
|
+
onBeforeInput?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
127
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
128
|
+
onInput?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
129
|
+
onInputCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
130
|
+
onReset?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
131
|
+
onResetCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
132
|
+
onSubmit?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
133
|
+
onSubmitCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
134
|
+
onInvalid?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
135
|
+
onInvalidCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
136
|
+
onLoad?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
137
|
+
onLoadCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
138
|
+
onError?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
139
|
+
onErrorCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
140
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
141
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
142
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
143
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
144
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
145
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
146
|
+
onAbort?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
147
|
+
onAbortCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
148
|
+
onCanPlay?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
149
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
150
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
151
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
152
|
+
onDurationChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
153
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
154
|
+
onEmptied?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
155
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
156
|
+
onEncrypted?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
157
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
158
|
+
onEnded?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
159
|
+
onEndedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
160
|
+
onLoadedData?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
161
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
162
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
163
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
164
|
+
onLoadStart?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
165
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
166
|
+
onPause?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
167
|
+
onPauseCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
168
|
+
onPlay?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
169
|
+
onPlayCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
170
|
+
onPlaying?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
171
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
172
|
+
onProgress?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
173
|
+
onProgressCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
174
|
+
onRateChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
175
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
176
|
+
onResize?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
177
|
+
onResizeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
178
|
+
onSeeked?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
179
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
180
|
+
onSeeking?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
181
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
182
|
+
onStalled?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
183
|
+
onStalledCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
184
|
+
onSuspend?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
185
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
186
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
187
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
188
|
+
onVolumeChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
189
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
190
|
+
onWaiting?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
191
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
192
|
+
onAuxClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
193
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
194
|
+
onClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
195
|
+
onClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
196
|
+
onContextMenu?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
197
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
198
|
+
onDoubleClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
199
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
200
|
+
onDrag?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
201
|
+
onDragCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
202
|
+
onDragEnd?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
203
|
+
onDragEndCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
204
|
+
onDragEnter?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
205
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
206
|
+
onDragExit?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
207
|
+
onDragExitCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
208
|
+
onDragLeave?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
209
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
210
|
+
onDragOver?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
211
|
+
onDragOverCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
212
|
+
onDragStart?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
213
|
+
onDragStartCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
214
|
+
onDrop?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
215
|
+
onDropCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
216
|
+
onMouseDown?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
217
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
218
|
+
onMouseEnter?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
219
|
+
onMouseLeave?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
220
|
+
onMouseMove?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
221
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
222
|
+
onMouseOut?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
223
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
224
|
+
onMouseOver?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
225
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
226
|
+
onMouseUp?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
227
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
228
|
+
onSelect?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
229
|
+
onSelectCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
230
|
+
onTouchCancel?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
231
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
232
|
+
onTouchEnd?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
233
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
234
|
+
onTouchMove?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
235
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
236
|
+
onTouchStart?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
237
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
238
|
+
onPointerDown?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
239
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
240
|
+
onPointerMove?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
241
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
242
|
+
onPointerUp?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
243
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
244
|
+
onPointerCancel?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
245
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
246
|
+
onPointerEnter?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
247
|
+
onPointerEnterCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
248
|
+
onPointerLeave?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
249
|
+
onPointerLeaveCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
250
|
+
onPointerOver?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
251
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
252
|
+
onPointerOut?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
253
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
254
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
255
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
256
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
257
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
258
|
+
onScroll?: React.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
259
|
+
onScrollCapture?: React.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
260
|
+
onWheel?: React.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
261
|
+
onWheelCapture?: React.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
262
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
263
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
264
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
265
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
266
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
267
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
268
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
269
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
270
|
+
}, HTMLElement>;
|
|
271
|
+
export declare function Paragraph(props: Props<"p">): React.DetailedReactHTMLElement<import("./Basic").ElementProps<"p"> & {
|
|
272
|
+
children?: React.ReactNode;
|
|
273
|
+
}, HTMLElement>;
|
|
274
|
+
export declare function Emphasized(props: Props<"em">): JSX.Element;
|
|
275
|
+
export declare function Strong(props: Props<"strong">): React.DetailedReactHTMLElement<import("./Basic").ElementProps<"strong"> & {
|
|
276
|
+
children?: React.ReactNode;
|
|
277
|
+
}, HTMLElement>;
|
|
278
|
+
type FigureProps = Props<"figure"> & {
|
|
279
|
+
figure: {
|
|
280
|
+
align: string;
|
|
281
|
+
type: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
export declare function Figure({ className, figure, ...props }: FigureProps): JSX.Element;
|
|
285
|
+
export declare function Figcaption(props: Props<"figcaption">): JSX.Element;
|
|
286
|
+
export declare function Subscript(props: Props<"sub">): JSX.Element;
|
|
287
|
+
export declare function Superscript(props: Props<"sup">): JSX.Element;
|
|
288
|
+
export declare function RichText({ tag, className, ...props }: Props<"div", {
|
|
289
|
+
tag?: React.ElementType;
|
|
290
|
+
}>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
291
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export function Heading({ tag = "h1", ...props }) {
|
|
3
|
+
return React.createElement(tag, props);
|
|
4
|
+
}
|
|
5
|
+
export function Paragraph(props) {
|
|
6
|
+
return React.createElement("p", props);
|
|
7
|
+
}
|
|
8
|
+
export function Emphasized(props) {
|
|
9
|
+
return React.createElement("em", { ...props });
|
|
10
|
+
}
|
|
11
|
+
export function Strong(props) {
|
|
12
|
+
return React.createElement("strong", props);
|
|
13
|
+
}
|
|
14
|
+
export function Figure({ className = "", figure, ...props }) {
|
|
15
|
+
const { type, align } = figure;
|
|
16
|
+
if (align) {
|
|
17
|
+
className += `w-richtext-align-${align} `;
|
|
18
|
+
}
|
|
19
|
+
if (type) {
|
|
20
|
+
className += `w-richtext-align-${type} `;
|
|
21
|
+
}
|
|
22
|
+
return React.createElement("figure", { className: className, ...props });
|
|
23
|
+
}
|
|
24
|
+
export function Figcaption(props) {
|
|
25
|
+
return React.createElement("figcaption", { ...props });
|
|
26
|
+
}
|
|
27
|
+
export function Subscript(props) {
|
|
28
|
+
return React.createElement("sub", { ...props });
|
|
29
|
+
}
|
|
30
|
+
export function Superscript(props) {
|
|
31
|
+
return React.createElement("sup", { ...props });
|
|
32
|
+
}
|
|
33
|
+
export function RichText({ tag = "div", className = "", ...props }) {
|
|
34
|
+
return React.createElement(tag, {
|
|
35
|
+
className: className + " w-richtext",
|
|
36
|
+
...props,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { cj } from "../utils";
|
|
3
|
+
const getAspectRatio = ({ width, height }) => height && width ? height / width : 0;
|
|
4
|
+
export function Video({ className = "", options = { height: 0, width: 0, title: "", url: "" }, ...props }) {
|
|
5
|
+
const { height, title, url, width } = options;
|
|
6
|
+
return (React.createElement("div", { ...props, style: { paddingTop: `${getAspectRatio(options) * 100}%` }, className: cj("w-video", "w-embed", className) },
|
|
7
|
+
React.createElement("iframe", { className: "embedly-embed", src: url, width: width, height: height, title: title, allowFullScreen: true, scrolling: "no", frameBorder: "0" })));
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type YouTubeVideoProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
videoId: string;
|
|
6
|
+
aspectRatio?: number;
|
|
7
|
+
startAt?: number;
|
|
8
|
+
showAllRelatedVideos?: boolean;
|
|
9
|
+
controls?: boolean;
|
|
10
|
+
autoplay?: boolean;
|
|
11
|
+
muted?: boolean;
|
|
12
|
+
privacyMode?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function YouTubeVideo({ className, title, videoId, aspectRatio, startAt, showAllRelatedVideos, controls, autoplay, muted, privacyMode, ...props }: YouTubeVideoProps): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { cj } from "../utils";
|
|
3
|
+
const DEFAULT_16_9_RATIO = 0.5617021276595745;
|
|
4
|
+
export function YouTubeVideo({ className = "", title, videoId, aspectRatio = DEFAULT_16_9_RATIO, startAt = 0, showAllRelatedVideos = false, controls = true, autoplay = false, muted = false, privacyMode = false, ...props }) {
|
|
5
|
+
const baseUrl = privacyMode
|
|
6
|
+
? "https://www.youtube-nocookie.com/embed"
|
|
7
|
+
: "https://www.youtube.com/embed";
|
|
8
|
+
const urlParams = Object.entries({
|
|
9
|
+
startAt,
|
|
10
|
+
showAllRelatedVideos,
|
|
11
|
+
controls,
|
|
12
|
+
autoplay,
|
|
13
|
+
muted,
|
|
14
|
+
})
|
|
15
|
+
.map(([k, v]) => `${k}=${Number(v)}`)
|
|
16
|
+
.join("&");
|
|
17
|
+
const iframeStyle = {
|
|
18
|
+
position: "absolute",
|
|
19
|
+
left: 0,
|
|
20
|
+
top: 0,
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: "100%",
|
|
23
|
+
pointerEvents: "auto",
|
|
24
|
+
};
|
|
25
|
+
return (React.createElement("div", { ...props, style: { paddingTop: `${aspectRatio * 100}%` }, className: cj("w-embed-youtubevideo", className) },
|
|
26
|
+
React.createElement("iframe", { src: `${baseUrl}/${videoId}?${urlParams}`, title: title, allowFullScreen: true, scrolling: "no", frameBorder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", style: iframeStyle })));
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Basic";
|
|
2
|
+
export * from "./Tabs";
|
|
3
|
+
export * from "./Dropdown";
|
|
4
|
+
export * from "./Navbar";
|
|
5
|
+
export * from "./Facebook";
|
|
6
|
+
export * from "./Typography";
|
|
7
|
+
export * from "./Twitter";
|
|
8
|
+
export * from "./Form";
|
|
9
|
+
export * from "./Map";
|
|
10
|
+
export * from "./Slider";
|
|
11
|
+
export * from "./Video";
|
|
12
|
+
export * from "./YouTubeVideo";
|
|
13
|
+
export * from "./BackgroundVideo";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Basic";
|
|
2
|
+
export * from "./Tabs";
|
|
3
|
+
export * from "./Dropdown";
|
|
4
|
+
export * from "./Navbar";
|
|
5
|
+
export * from "./Facebook";
|
|
6
|
+
export * from "./Typography";
|
|
7
|
+
export * from "./Twitter";
|
|
8
|
+
export * from "./Form";
|
|
9
|
+
export * from "./Map";
|
|
10
|
+
export * from "./Slider";
|
|
11
|
+
export * from "./Video";
|
|
12
|
+
export * from "./YouTubeVideo";
|
|
13
|
+
export * from "./BackgroundVideo";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CSSModules } from "./types";
|
|
3
|
+
type IXData = any;
|
|
4
|
+
type IXEngine = {
|
|
5
|
+
init: (data: IXData) => void;
|
|
6
|
+
};
|
|
7
|
+
type InteractionProviderProps = {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
createEngine: () => IXEngine;
|
|
10
|
+
};
|
|
11
|
+
export declare const InteractionsProvider: React.FC<InteractionProviderProps>;
|
|
12
|
+
export declare const useInteractions: (data: IXData, styles: CSSModules, ...nodes: string[]) => void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { debounce, replaceSelector } from "./utils";
|
|
3
|
+
const enhanceIXData = (data, styles) => {
|
|
4
|
+
const newIXData = structuredClone(data);
|
|
5
|
+
for (const id in newIXData.events) {
|
|
6
|
+
const { target, targets } = newIXData.events[id];
|
|
7
|
+
for (const t of [target, ...targets]) {
|
|
8
|
+
if (t.appliesTo !== "CLASS")
|
|
9
|
+
continue;
|
|
10
|
+
t.selector = replaceSelector(t.selector, styles);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
for (const id in newIXData.actionLists) {
|
|
14
|
+
const { actionItemGroups, continuousParameterGroups } = newIXData.actionLists[id];
|
|
15
|
+
if (actionItemGroups) {
|
|
16
|
+
for (const { actionItems } of actionItemGroups) {
|
|
17
|
+
for (const { config } of actionItems) {
|
|
18
|
+
const { selector } = config.target;
|
|
19
|
+
if (!selector)
|
|
20
|
+
continue;
|
|
21
|
+
config.target.selector = replaceSelector(selector, styles);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (continuousParameterGroups) {
|
|
26
|
+
for (const group of continuousParameterGroups) {
|
|
27
|
+
for (const { actionItems } of group.continuousActionGroups) {
|
|
28
|
+
for (const { config } of actionItems) {
|
|
29
|
+
const { selector } = config.target;
|
|
30
|
+
if (!selector)
|
|
31
|
+
continue;
|
|
32
|
+
config.target.selector = replaceSelector(selector, styles);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return newIXData;
|
|
39
|
+
};
|
|
40
|
+
const IXContext = React.createContext(null);
|
|
41
|
+
export const InteractionsProvider = ({ children, createEngine, }) => {
|
|
42
|
+
const ixData = React.useRef({});
|
|
43
|
+
const ixEngine = React.useRef();
|
|
44
|
+
const debouncedInit = React.useRef(debounce((data) => {
|
|
45
|
+
if (!ixEngine.current)
|
|
46
|
+
ixEngine.current = createEngine();
|
|
47
|
+
ixEngine.current.init(data);
|
|
48
|
+
document.dispatchEvent(new CustomEvent("IX2_PAGE_UPDATE"));
|
|
49
|
+
}));
|
|
50
|
+
const initEngine = React.useCallback((data, styles) => {
|
|
51
|
+
const newIXData = enhanceIXData(data, styles);
|
|
52
|
+
if (!newIXData)
|
|
53
|
+
return;
|
|
54
|
+
if (!ixData.current.site) {
|
|
55
|
+
ixData.current.site = newIXData.site;
|
|
56
|
+
}
|
|
57
|
+
ixData.current.events = {
|
|
58
|
+
...ixData.current.events,
|
|
59
|
+
...newIXData.events,
|
|
60
|
+
};
|
|
61
|
+
ixData.current.actionLists = {
|
|
62
|
+
...ixData.current.actionLists,
|
|
63
|
+
...newIXData.actionLists,
|
|
64
|
+
};
|
|
65
|
+
debouncedInit.current(ixData.current);
|
|
66
|
+
}, []);
|
|
67
|
+
return React.createElement(IXContext.Provider, { value: initEngine }, children);
|
|
68
|
+
};
|
|
69
|
+
export const useInteractions = (data, styles, ...nodes) => {
|
|
70
|
+
const initEngine = React.useContext(IXContext);
|
|
71
|
+
React.useEffect(() => {
|
|
72
|
+
if (initEngine)
|
|
73
|
+
initEngine(data, styles, ...nodes);
|
|
74
|
+
}, [initEngine, data, nodes, styles]);
|
|
75
|
+
React.useEffect(() => {
|
|
76
|
+
if (document.querySelector("html")?.hasAttribute("data-wf-page"))
|
|
77
|
+
return;
|
|
78
|
+
const hasPageInteractions = Object.values(data.events).some((event) => event.target.appliesTo === "PAGE");
|
|
79
|
+
if (hasPageInteractions) {
|
|
80
|
+
document
|
|
81
|
+
.querySelector("html")
|
|
82
|
+
?.setAttribute("data-wf-page", "wf-page-id");
|
|
83
|
+
document.dispatchEvent(new CustomEvent("IX2_PAGE_UPDATE"));
|
|
84
|
+
}
|
|
85
|
+
}, []);
|
|
86
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type CSSModules = {
|
|
3
|
+
[sel: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export declare namespace Basic {
|
|
6
|
+
type PreloadedLink = {
|
|
7
|
+
preload?: "prerender" | "prefetch" | "none";
|
|
8
|
+
};
|
|
9
|
+
type TargetedLink = {
|
|
10
|
+
target?: "_self" | "_blank";
|
|
11
|
+
};
|
|
12
|
+
type PreloadedAndTargetedLink = PreloadedLink & TargetedLink;
|
|
13
|
+
export type Link = {
|
|
14
|
+
href: string;
|
|
15
|
+
} & PreloadedAndTargetedLink;
|
|
16
|
+
export type RichTextChildren = React.ReactNode;
|
|
17
|
+
export {};
|
|
18
|
+
}
|
|
19
|
+
export declare namespace Asset {
|
|
20
|
+
type Image = string;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace Embed {
|
|
23
|
+
type Video = {
|
|
24
|
+
height: number;
|
|
25
|
+
width: number;
|
|
26
|
+
title: string;
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export declare namespace Visibility {
|
|
31
|
+
type VisibilityConditions = boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CSSModules } from "./types";
|
|
3
|
+
export declare const cx: (style: CSSModules, ...classNames: string[]) => string;
|
|
4
|
+
/**
|
|
5
|
+
* The cj function takes care of eliminting classes that don't exist and joining
|
|
6
|
+
* them with a white space.
|
|
7
|
+
*/
|
|
8
|
+
export declare const cj: (...classNames: (string | boolean | undefined)[]) => string;
|
|
9
|
+
export declare const removeUnescaped: (value: string) => string;
|
|
10
|
+
export declare const replaceSelector: (selector: string, styles: CSSModules) => string;
|
|
11
|
+
export declare function debounce<T extends (...args: any[]) => void>(this: void, func: T, timeout?: number): (...args: Parameters<T>) => void;
|
|
12
|
+
/**
|
|
13
|
+
* cubic bezier functions have been extracted from this repository:
|
|
14
|
+
* https://github.com/ai/easings.net
|
|
15
|
+
*/
|
|
16
|
+
export declare const EASING_FUNCTIONS: {
|
|
17
|
+
linear: string;
|
|
18
|
+
ease: string;
|
|
19
|
+
"ease-in": string;
|
|
20
|
+
"ease-out": string;
|
|
21
|
+
"ease-in-out": string;
|
|
22
|
+
"ease-in-sine": string;
|
|
23
|
+
"ease-out-sine": string;
|
|
24
|
+
"ease-in-out-sine": string;
|
|
25
|
+
"ease-in-quad": string;
|
|
26
|
+
"ease-out-quad": string;
|
|
27
|
+
"ease-in-out-quad": string;
|
|
28
|
+
"ease-in-cubic": string;
|
|
29
|
+
"ease-out-cubic": string;
|
|
30
|
+
"ease-in-out-cubic": string;
|
|
31
|
+
"ease-in-quart": string;
|
|
32
|
+
"ease-out-quart": string;
|
|
33
|
+
"ease-in-out-quart": string;
|
|
34
|
+
"ease-in-quint": string;
|
|
35
|
+
"ease-out-quint": string;
|
|
36
|
+
"ease-in-out-quint": string;
|
|
37
|
+
"ease-in-expo": string;
|
|
38
|
+
"ease-out-expo": string;
|
|
39
|
+
"ease-in-out-expo": string;
|
|
40
|
+
"ease-in-circ": string;
|
|
41
|
+
"ease-out-circ": string;
|
|
42
|
+
"ease-in-out-circ": string;
|
|
43
|
+
"ease-in-back": string;
|
|
44
|
+
"ease-out-back": string;
|
|
45
|
+
"ease-in-out-back": string;
|
|
46
|
+
};
|
|
47
|
+
export declare const isServer: boolean;
|
|
48
|
+
export declare const useLayoutEffect: typeof React.useLayoutEffect;
|
|
49
|
+
export declare function useResizeObserver(ref: React.RefObject<HTMLElement>, fn: (entry: ResizeObserverEntry) => void): void;
|
|
50
|
+
export declare function isUrl(str: string): boolean;
|
|
51
|
+
export declare function loadScript(src: string, options?: {
|
|
52
|
+
async?: boolean;
|
|
53
|
+
type?: string;
|
|
54
|
+
defer?: boolean;
|
|
55
|
+
cacheRegex?: RegExp;
|
|
56
|
+
}): Promise<unknown>;
|
|
57
|
+
export declare const KEY_CODES: {
|
|
58
|
+
ARROW_LEFT: string;
|
|
59
|
+
ARROW_UP: string;
|
|
60
|
+
ARROW_RIGHT: string;
|
|
61
|
+
ARROW_DOWN: string;
|
|
62
|
+
SPACE: string;
|
|
63
|
+
ENTER: string;
|
|
64
|
+
HOME: string;
|
|
65
|
+
END: string;
|
|
66
|
+
};
|