@nascentdigital/funnel-ui 4.5.3 → 4.5.6
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/dist/Tailwind.d.ts +1 -1
- package/dist/Tailwind.js +70 -24
- package/dist/client/interaction/Carousel.d.ts +1 -1
- package/dist/client/interaction/Carousel.js +28 -30
- package/dist/server/Page.d.ts +15 -0
- package/dist/server/Page.js +70 -0
- package/dist/server/blocks/Block.d.ts +4 -2
- package/dist/server/blocks/Block.js +9 -2
- package/dist/server/blocks/Editorial.d.ts +2 -2
- package/dist/server/blocks/Editorial.js +4 -4
- package/dist/server/blocks/Form.d.ts +2 -2
- package/dist/server/blocks/Form.js +3 -3
- package/dist/server/blocks/Projects.d.ts +29 -37
- package/dist/server/blocks/Projects.js +13 -84
- package/dist/server/blocks/RelatedPages.d.ts +58 -0
- package/dist/server/blocks/RelatedPages.js +99 -0
- package/dist/server/blocks/Stats.d.ts +19 -31
- package/dist/server/blocks/Stats.js +13 -57
- package/dist/server/blocks/Testimonial.d.ts +2 -2
- package/dist/server/blocks/Testimonial.js +4 -4
- package/dist/server/blocks/index.d.ts +1 -0
- package/dist/server/blocks/index.js +1 -0
- package/dist/server/entities/previews/MessagePreview.d.ts +2 -2
- package/dist/server/entities/previews/MessagePreview.js +1 -1
- package/dist/server/fields/Caption.js +3 -2
- package/dist/server/fields/Description.js +1 -1
- package/dist/server/fields/FreeFormContent.js +1 -1
- package/dist/server/fields/Headline.js +1 -1
- package/dist/server/fields/Quote.js +1 -1
- package/dist/server/fields/RichText.js +1 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +2 -0
- package/dist/server/layouts/BentoLayout.d.ts +289 -0
- package/dist/server/layouts/BentoLayout.js +25 -0
- package/dist/server/layouts/index.d.ts +1 -0
- package/dist/server/layouts/index.js +1 -0
- package/dist/server/panels/BlockPanel.js +2 -3
- package/dist/server/panels/ListPanel.d.ts +4 -4
- package/dist/server/panels/ListPanel.js +13 -2
- package/dist/server/panels/MessagePanel.js +0 -3
- package/dist/server/panels/VisualPanel.js +0 -2
- package/dist/server/schema/Anchor.d.ts +1 -1
- package/dist/server/schema/Anchor.js +2 -2
- package/dist/server/schema/BlockConfig.js +1 -1
- package/dist/server/schema/ListPanelLayout.d.ts +6 -0
- package/dist/server/schema/ListPanelLayout.js +3 -0
- package/dist/server/utils/ReactUtils.d.ts +6 -0
- package/dist/server/utils/ReactUtils.js +25 -0
- package/dist/server/utils/index.d.ts +1 -0
- package/dist/server/utils/index.js +17 -0
- package/dist/styles/Page.css +5 -0
- package/dist/styles/Section.css +52 -0
- package/dist/styles/blocks/Block-spacing.css +31 -38
- package/dist/styles/blocks/Block-theming.css +2 -4
- package/dist/styles/blocks/MediaLayout.css +16 -0
- package/dist/styles/blocks/Projects.css +0 -9
- package/dist/styles/blocks/RelatedPages.css +13 -0
- package/dist/styles/blocks/Stats.css +1 -30
- package/dist/styles/components/Carousel.css +128 -0
- package/dist/styles/components/_index.css +2 -1
- package/dist/styles/entities/Person.css +4 -4
- package/dist/styles/entities/Project.css +8 -2
- package/dist/styles/entities/UniqueSellingPoint.css +3 -3
- package/dist/styles/fields/Caption.css +2 -2
- package/dist/styles/fields/Description.css +2 -2
- package/dist/styles/fields/Icon.css +1 -1
- package/dist/styles/fields/Link.css +1 -1
- package/dist/styles/fields/Quote.css +2 -2
- package/dist/styles/fields/Title.css +1 -1
- package/dist/styles/index.css +2 -0
- package/dist/styles/layouts/BentoLayout.css +41 -0
- package/dist/styles/layouts/_index.css +1 -0
- package/dist/styles/panels/TestimonialPanel.css +4 -0
- package/package.json +2 -3
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactElement } from 'react';
|
|
2
|
+
import { HTMLElements } from '../../types';
|
|
3
|
+
export declare function BentoLayout<TTag extends HTMLElements.Standard.Container>({ as, className, children, ...props }: BentoLayout.Props<TTag>): ReactElement<{
|
|
4
|
+
prefix?: string | undefined | undefined;
|
|
5
|
+
content?: string | undefined | undefined;
|
|
6
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
7
|
+
color?: string | undefined | undefined;
|
|
8
|
+
id?: string | undefined | undefined;
|
|
9
|
+
onClick?: import("react").MouseEventHandler<TTag> | undefined;
|
|
10
|
+
slot?: string | undefined | undefined;
|
|
11
|
+
style?: import("react").CSSProperties | undefined;
|
|
12
|
+
title?: string | undefined | undefined;
|
|
13
|
+
onAnimationStart?: import("react").AnimationEventHandler<TTag> | undefined;
|
|
14
|
+
onDragStart?: import("react").DragEventHandler<TTag> | undefined;
|
|
15
|
+
onDragEnd?: import("react").DragEventHandler<TTag> | undefined;
|
|
16
|
+
onDrag?: import("react").DragEventHandler<TTag> | undefined;
|
|
17
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
18
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
19
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
20
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
21
|
+
accessKey?: string | undefined | undefined;
|
|
22
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
23
|
+
autoFocus?: boolean | undefined | undefined;
|
|
24
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
25
|
+
contextMenu?: string | undefined | undefined;
|
|
26
|
+
dir?: string | undefined | undefined;
|
|
27
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
28
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
29
|
+
hidden?: boolean | undefined | undefined;
|
|
30
|
+
lang?: string | undefined | undefined;
|
|
31
|
+
nonce?: string | undefined | undefined;
|
|
32
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
33
|
+
tabIndex?: number | undefined | undefined;
|
|
34
|
+
radioGroup?: string | undefined | undefined;
|
|
35
|
+
role?: import("react").AriaRole | undefined;
|
|
36
|
+
about?: string | undefined | undefined;
|
|
37
|
+
datatype?: string | undefined | undefined;
|
|
38
|
+
inlist?: any;
|
|
39
|
+
property?: string | undefined | undefined;
|
|
40
|
+
rel?: string | undefined | undefined;
|
|
41
|
+
resource?: string | undefined | undefined;
|
|
42
|
+
rev?: string | undefined | undefined;
|
|
43
|
+
typeof?: string | undefined | undefined;
|
|
44
|
+
vocab?: string | undefined | undefined;
|
|
45
|
+
autoCorrect?: string | undefined | undefined;
|
|
46
|
+
autoSave?: string | undefined | undefined;
|
|
47
|
+
itemProp?: string | undefined | undefined;
|
|
48
|
+
itemScope?: boolean | undefined | undefined;
|
|
49
|
+
itemType?: string | undefined | undefined;
|
|
50
|
+
itemID?: string | undefined | undefined;
|
|
51
|
+
itemRef?: string | undefined | undefined;
|
|
52
|
+
results?: number | undefined | undefined;
|
|
53
|
+
security?: string | undefined | undefined;
|
|
54
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
55
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
56
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
57
|
+
popoverTarget?: string | undefined | undefined;
|
|
58
|
+
inert?: boolean | undefined | undefined;
|
|
59
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
60
|
+
is?: string | undefined | undefined;
|
|
61
|
+
exportparts?: string | undefined | undefined;
|
|
62
|
+
part?: string | undefined | undefined;
|
|
63
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
64
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
65
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
66
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
67
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
68
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
69
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
70
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
71
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
72
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
73
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
74
|
+
"aria-controls"?: string | undefined | undefined;
|
|
75
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
76
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
77
|
+
"aria-description"?: string | undefined | undefined;
|
|
78
|
+
"aria-details"?: string | undefined | undefined;
|
|
79
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
80
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
81
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
82
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
83
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
84
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
85
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
86
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
87
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
88
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
89
|
+
"aria-label"?: string | undefined | undefined;
|
|
90
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
91
|
+
"aria-level"?: number | undefined | undefined;
|
|
92
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
93
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
95
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
96
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
97
|
+
"aria-owns"?: string | undefined | undefined;
|
|
98
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
99
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
100
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
101
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
103
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
104
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
105
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
106
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
107
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
108
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
109
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
110
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
111
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
112
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
113
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
114
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
115
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
116
|
+
dangerouslySetInnerHTML?: {
|
|
117
|
+
__html: string | TrustedHTML;
|
|
118
|
+
} | undefined | undefined;
|
|
119
|
+
onCopy?: import("react").ClipboardEventHandler<TTag> | undefined;
|
|
120
|
+
onCopyCapture?: import("react").ClipboardEventHandler<TTag> | undefined;
|
|
121
|
+
onCut?: import("react").ClipboardEventHandler<TTag> | undefined;
|
|
122
|
+
onCutCapture?: import("react").ClipboardEventHandler<TTag> | undefined;
|
|
123
|
+
onPaste?: import("react").ClipboardEventHandler<TTag> | undefined;
|
|
124
|
+
onPasteCapture?: import("react").ClipboardEventHandler<TTag> | undefined;
|
|
125
|
+
onCompositionEnd?: import("react").CompositionEventHandler<TTag> | undefined;
|
|
126
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<TTag> | undefined;
|
|
127
|
+
onCompositionStart?: import("react").CompositionEventHandler<TTag> | undefined;
|
|
128
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<TTag> | undefined;
|
|
129
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<TTag> | undefined;
|
|
130
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<TTag> | undefined;
|
|
131
|
+
onFocus?: import("react").FocusEventHandler<TTag> | undefined;
|
|
132
|
+
onFocusCapture?: import("react").FocusEventHandler<TTag> | undefined;
|
|
133
|
+
onBlur?: import("react").FocusEventHandler<TTag> | undefined;
|
|
134
|
+
onBlurCapture?: import("react").FocusEventHandler<TTag> | undefined;
|
|
135
|
+
onChange?: import("react").ChangeEventHandler<TTag, Element> | undefined;
|
|
136
|
+
onChangeCapture?: import("react").ChangeEventHandler<TTag, Element> | undefined;
|
|
137
|
+
onBeforeInput?: import("react").InputEventHandler<TTag> | undefined;
|
|
138
|
+
onBeforeInputCapture?: import("react").InputEventHandler<TTag> | undefined;
|
|
139
|
+
onInput?: import("react").InputEventHandler<TTag> | undefined;
|
|
140
|
+
onInputCapture?: import("react").InputEventHandler<TTag> | undefined;
|
|
141
|
+
onReset?: import("react").ReactEventHandler<TTag> | undefined;
|
|
142
|
+
onResetCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
143
|
+
onSubmit?: import("react").SubmitEventHandler<TTag> | undefined;
|
|
144
|
+
onSubmitCapture?: import("react").SubmitEventHandler<TTag> | undefined;
|
|
145
|
+
onInvalid?: import("react").ReactEventHandler<TTag> | undefined;
|
|
146
|
+
onInvalidCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
147
|
+
onLoad?: import("react").ReactEventHandler<TTag> | undefined;
|
|
148
|
+
onLoadCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
149
|
+
onError?: import("react").ReactEventHandler<TTag> | undefined;
|
|
150
|
+
onErrorCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
151
|
+
onKeyDown?: import("react").KeyboardEventHandler<TTag> | undefined;
|
|
152
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<TTag> | undefined;
|
|
153
|
+
onKeyPress?: import("react").KeyboardEventHandler<TTag> | undefined;
|
|
154
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<TTag> | undefined;
|
|
155
|
+
onKeyUp?: import("react").KeyboardEventHandler<TTag> | undefined;
|
|
156
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<TTag> | undefined;
|
|
157
|
+
onAbort?: import("react").ReactEventHandler<TTag> | undefined;
|
|
158
|
+
onAbortCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
159
|
+
onCanPlay?: import("react").ReactEventHandler<TTag> | undefined;
|
|
160
|
+
onCanPlayCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
161
|
+
onCanPlayThrough?: import("react").ReactEventHandler<TTag> | undefined;
|
|
162
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
163
|
+
onDurationChange?: import("react").ReactEventHandler<TTag> | undefined;
|
|
164
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
165
|
+
onEmptied?: import("react").ReactEventHandler<TTag> | undefined;
|
|
166
|
+
onEmptiedCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
167
|
+
onEncrypted?: import("react").ReactEventHandler<TTag> | undefined;
|
|
168
|
+
onEncryptedCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
169
|
+
onEnded?: import("react").ReactEventHandler<TTag> | undefined;
|
|
170
|
+
onEndedCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
171
|
+
onLoadedData?: import("react").ReactEventHandler<TTag> | undefined;
|
|
172
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
173
|
+
onLoadedMetadata?: import("react").ReactEventHandler<TTag> | undefined;
|
|
174
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
175
|
+
onLoadStart?: import("react").ReactEventHandler<TTag> | undefined;
|
|
176
|
+
onLoadStartCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
177
|
+
onPause?: import("react").ReactEventHandler<TTag> | undefined;
|
|
178
|
+
onPauseCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
179
|
+
onPlay?: import("react").ReactEventHandler<TTag> | undefined;
|
|
180
|
+
onPlayCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
181
|
+
onPlaying?: import("react").ReactEventHandler<TTag> | undefined;
|
|
182
|
+
onPlayingCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
183
|
+
onProgress?: import("react").ReactEventHandler<TTag> | undefined;
|
|
184
|
+
onProgressCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
185
|
+
onRateChange?: import("react").ReactEventHandler<TTag> | undefined;
|
|
186
|
+
onRateChangeCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
187
|
+
onSeeked?: import("react").ReactEventHandler<TTag> | undefined;
|
|
188
|
+
onSeekedCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
189
|
+
onSeeking?: import("react").ReactEventHandler<TTag> | undefined;
|
|
190
|
+
onSeekingCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
191
|
+
onStalled?: import("react").ReactEventHandler<TTag> | undefined;
|
|
192
|
+
onStalledCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
193
|
+
onSuspend?: import("react").ReactEventHandler<TTag> | undefined;
|
|
194
|
+
onSuspendCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
195
|
+
onTimeUpdate?: import("react").ReactEventHandler<TTag> | undefined;
|
|
196
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
197
|
+
onVolumeChange?: import("react").ReactEventHandler<TTag> | undefined;
|
|
198
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
199
|
+
onWaiting?: import("react").ReactEventHandler<TTag> | undefined;
|
|
200
|
+
onWaitingCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
201
|
+
onAuxClick?: import("react").MouseEventHandler<TTag> | undefined;
|
|
202
|
+
onAuxClickCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
203
|
+
onClickCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
204
|
+
onContextMenu?: import("react").MouseEventHandler<TTag> | undefined;
|
|
205
|
+
onContextMenuCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
206
|
+
onDoubleClick?: import("react").MouseEventHandler<TTag> | undefined;
|
|
207
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
208
|
+
onDragCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
209
|
+
onDragEndCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
210
|
+
onDragEnter?: import("react").DragEventHandler<TTag> | undefined;
|
|
211
|
+
onDragEnterCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
212
|
+
onDragExit?: import("react").DragEventHandler<TTag> | undefined;
|
|
213
|
+
onDragExitCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
214
|
+
onDragLeave?: import("react").DragEventHandler<TTag> | undefined;
|
|
215
|
+
onDragLeaveCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
216
|
+
onDragOver?: import("react").DragEventHandler<TTag> | undefined;
|
|
217
|
+
onDragOverCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
218
|
+
onDragStartCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
219
|
+
onDrop?: import("react").DragEventHandler<TTag> | undefined;
|
|
220
|
+
onDropCapture?: import("react").DragEventHandler<TTag> | undefined;
|
|
221
|
+
onMouseDown?: import("react").MouseEventHandler<TTag> | undefined;
|
|
222
|
+
onMouseDownCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
223
|
+
onMouseEnter?: import("react").MouseEventHandler<TTag> | undefined;
|
|
224
|
+
onMouseLeave?: import("react").MouseEventHandler<TTag> | undefined;
|
|
225
|
+
onMouseMove?: import("react").MouseEventHandler<TTag> | undefined;
|
|
226
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
227
|
+
onMouseOut?: import("react").MouseEventHandler<TTag> | undefined;
|
|
228
|
+
onMouseOutCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
229
|
+
onMouseOver?: import("react").MouseEventHandler<TTag> | undefined;
|
|
230
|
+
onMouseOverCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
231
|
+
onMouseUp?: import("react").MouseEventHandler<TTag> | undefined;
|
|
232
|
+
onMouseUpCapture?: import("react").MouseEventHandler<TTag> | undefined;
|
|
233
|
+
onSelect?: import("react").ReactEventHandler<TTag> | undefined;
|
|
234
|
+
onSelectCapture?: import("react").ReactEventHandler<TTag> | undefined;
|
|
235
|
+
onTouchCancel?: import("react").TouchEventHandler<TTag> | undefined;
|
|
236
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<TTag> | undefined;
|
|
237
|
+
onTouchEnd?: import("react").TouchEventHandler<TTag> | undefined;
|
|
238
|
+
onTouchEndCapture?: import("react").TouchEventHandler<TTag> | undefined;
|
|
239
|
+
onTouchMove?: import("react").TouchEventHandler<TTag> | undefined;
|
|
240
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<TTag> | undefined;
|
|
241
|
+
onTouchStart?: import("react").TouchEventHandler<TTag> | undefined;
|
|
242
|
+
onTouchStartCapture?: import("react").TouchEventHandler<TTag> | undefined;
|
|
243
|
+
onPointerDown?: import("react").PointerEventHandler<TTag> | undefined;
|
|
244
|
+
onPointerDownCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
245
|
+
onPointerMove?: import("react").PointerEventHandler<TTag> | undefined;
|
|
246
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
247
|
+
onPointerUp?: import("react").PointerEventHandler<TTag> | undefined;
|
|
248
|
+
onPointerUpCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
249
|
+
onPointerCancel?: import("react").PointerEventHandler<TTag> | undefined;
|
|
250
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
251
|
+
onPointerEnter?: import("react").PointerEventHandler<TTag> | undefined;
|
|
252
|
+
onPointerLeave?: import("react").PointerEventHandler<TTag> | undefined;
|
|
253
|
+
onPointerOver?: import("react").PointerEventHandler<TTag> | undefined;
|
|
254
|
+
onPointerOverCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
255
|
+
onPointerOut?: import("react").PointerEventHandler<TTag> | undefined;
|
|
256
|
+
onPointerOutCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
257
|
+
onGotPointerCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
258
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
259
|
+
onLostPointerCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
260
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<TTag> | undefined;
|
|
261
|
+
onScroll?: import("react").UIEventHandler<TTag> | undefined;
|
|
262
|
+
onScrollCapture?: import("react").UIEventHandler<TTag> | undefined;
|
|
263
|
+
onScrollEnd?: import("react").UIEventHandler<TTag> | undefined;
|
|
264
|
+
onScrollEndCapture?: import("react").UIEventHandler<TTag> | undefined;
|
|
265
|
+
onWheel?: import("react").WheelEventHandler<TTag> | undefined;
|
|
266
|
+
onWheelCapture?: import("react").WheelEventHandler<TTag> | undefined;
|
|
267
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<TTag> | undefined;
|
|
268
|
+
onAnimationEnd?: import("react").AnimationEventHandler<TTag> | undefined;
|
|
269
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<TTag> | undefined;
|
|
270
|
+
onAnimationIteration?: import("react").AnimationEventHandler<TTag> | undefined;
|
|
271
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<TTag> | undefined;
|
|
272
|
+
onToggle?: import("react").ToggleEventHandler<TTag> | undefined;
|
|
273
|
+
onBeforeToggle?: import("react").ToggleEventHandler<TTag> | undefined;
|
|
274
|
+
onTransitionCancel?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
275
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
276
|
+
onTransitionEnd?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
277
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
278
|
+
onTransitionRun?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
279
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
280
|
+
onTransitionStart?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
281
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<TTag> | undefined;
|
|
282
|
+
className: string;
|
|
283
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
284
|
+
export declare namespace BentoLayout {
|
|
285
|
+
type Props<TTag extends HTMLElements.Standard.Container> = Omit<HTMLAttributes<TTag>, 'children'> & {
|
|
286
|
+
as: TTag;
|
|
287
|
+
children: ReadonlyArray<ReactElement>;
|
|
288
|
+
};
|
|
289
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BentoLayout = BentoLayout;
|
|
18
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
19
|
+
const react_1 = require("react");
|
|
20
|
+
// component
|
|
21
|
+
function BentoLayout(_a) {
|
|
22
|
+
var { as, className, children } = _a, props = __rest(_a, ["as", "className", "children"]);
|
|
23
|
+
// render
|
|
24
|
+
return (0, react_1.createElement)(as, Object.assign({ className: (0, classnames_1.default)(className, 'nd-BentoLayout') }, props), children);
|
|
25
|
+
}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BentoLayout"), exports);
|
|
17
18
|
__exportStar(require("./CardLayout"), exports);
|
|
18
19
|
__exportStar(require("./BrickLayout"), exports);
|
|
19
20
|
__exportStar(require("./FlexWrapLayout"), exports);
|
|
@@ -78,8 +78,8 @@ var BlockPanel;
|
|
|
78
78
|
? variation === 'v1'
|
|
79
79
|
? ['M', 'L']
|
|
80
80
|
: ['L', 'M']
|
|
81
|
-
// only
|
|
82
|
-
:
|
|
81
|
+
// only list OR message
|
|
82
|
+
: list ? ['L'] : ['M'];
|
|
83
83
|
}
|
|
84
84
|
// or handle case where there's just a visual + message/list
|
|
85
85
|
else if (!message || !list) {
|
|
@@ -333,7 +333,6 @@ var BlockPanel;
|
|
|
333
333
|
if (panelCount > 1) {
|
|
334
334
|
configSchema['contentAlign'] = schema_1.ItemAlignment.Vertical.schema.rename('Content Alignment').optional();
|
|
335
335
|
}
|
|
336
|
-
console.debug('[BlockPanel/getConfigSchema] created schema', configSchema);
|
|
337
336
|
// return
|
|
338
337
|
return configSchema;
|
|
339
338
|
}
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { HTMLElements } from '../../types';
|
|
4
4
|
import { ItemAlignment, ItemSize, ListPanelLayout } from '../schema';
|
|
5
5
|
import { BlockPanel } from './BlockPanel';
|
|
6
|
-
export declare function ListPanel<TItem extends ListPanel.Item>({ as, className, panel, layout, items,
|
|
6
|
+
export declare function ListPanel<TItem extends ListPanel.Item>({ as, className, panel, layout, items, layoutConfigs, children }: ListPanel.Props<TItem>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare namespace ListPanel {
|
|
8
8
|
namespace Config {
|
|
9
9
|
type Key<TPrefix extends string = string> = Key.HorizontalAlign<TPrefix> | Key.VerticalAlign<TPrefix> | Key.Width<TPrefix>;
|
|
@@ -35,13 +35,13 @@ export declare namespace ListPanel {
|
|
|
35
35
|
panel: BlockLayout.List;
|
|
36
36
|
layout: ListPanelLayout;
|
|
37
37
|
items: ReadonlyArray<TItem>;
|
|
38
|
-
|
|
38
|
+
layoutConfigs?: LayoutConfigs;
|
|
39
39
|
children: Transform<TItem, ReactNode>;
|
|
40
40
|
};
|
|
41
41
|
namespace Props {
|
|
42
|
-
type Configuration = Pick<Partial<Props<any>>, 'className' | 'layout' | '
|
|
42
|
+
type Configuration = Pick<Partial<Props<any>>, 'className' | 'layout' | 'layoutConfigs'>;
|
|
43
43
|
}
|
|
44
|
-
type
|
|
44
|
+
type LayoutConfigs = {
|
|
45
45
|
[TKey in keyof ListPanelLayout.Configs]?: Partial<ListPanelLayout.Configs[TKey]>;
|
|
46
46
|
};
|
|
47
47
|
namespace GetConfig {
|
|
@@ -8,11 +8,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
9
9
|
const classnames_1 = __importDefault(require("classnames"));
|
|
10
10
|
const react_1 = require("react");
|
|
11
|
+
const refs_1 = require("../../client/refs");
|
|
11
12
|
const layouts_1 = require("../layouts");
|
|
12
13
|
const schema_1 = require("../schema");
|
|
13
14
|
const BlockPanel_1 = require("./BlockPanel");
|
|
14
15
|
// component
|
|
15
|
-
function ListPanel({ as = 'ul', className, panel, layout, items,
|
|
16
|
+
function ListPanel({ as = 'ul', className, panel, layout, items, layoutConfigs = {}, children }) {
|
|
16
17
|
// render items (or placeholder)
|
|
17
18
|
const itemsComponent = items.length > 0
|
|
18
19
|
?
|
|
@@ -20,10 +21,13 @@ function ListPanel({ as = 'ul', className, panel, layout, items, overrides = {},
|
|
|
20
21
|
:
|
|
21
22
|
funnel_core_1.ArrayUtils.series(panel.itemCount.base - 1).map(num => (0, jsx_runtime_1.jsx)(ListPanel.ItemPlaceholder, {}, num));
|
|
22
23
|
// build layout options
|
|
23
|
-
const { brick, brickFlipped, card, flexWrap, grid, horizontalStack,
|
|
24
|
+
const { brick, brickFlipped, card, carousel, flexWrap, grid, horizontalStack, masonry, verticalStack } = layoutConfigs;
|
|
24
25
|
// render layout
|
|
25
26
|
let layoutComponent;
|
|
26
27
|
switch (layout) {
|
|
28
|
+
case 'bento':
|
|
29
|
+
layoutComponent = ((0, jsx_runtime_1.jsx)(layouts_1.BentoLayout, { as: as, children: itemsComponent }));
|
|
30
|
+
break;
|
|
27
31
|
case 'brick':
|
|
28
32
|
layoutComponent = ((0, jsx_runtime_1.jsx)(layouts_1.BrickLayout, Object.assign({ as: as }, brick, { children: itemsComponent })));
|
|
29
33
|
break;
|
|
@@ -33,6 +37,9 @@ function ListPanel({ as = 'ul', className, panel, layout, items, overrides = {},
|
|
|
33
37
|
case 'card':
|
|
34
38
|
layoutComponent = ((0, jsx_runtime_1.jsx)(layouts_1.CardLayout, Object.assign({ as: as }, card, { children: itemsComponent })));
|
|
35
39
|
break;
|
|
40
|
+
case 'carousel':
|
|
41
|
+
layoutComponent = ((0, jsx_runtime_1.jsx)(refs_1.Carousel, Object.assign({ className: "nd-CarouselLayout" }, carousel, { children: itemsComponent })));
|
|
42
|
+
break;
|
|
36
43
|
case 'flexWrap':
|
|
37
44
|
layoutComponent = ((0, jsx_runtime_1.jsx)(layouts_1.FlexWrapLayout, Object.assign({ as: as }, flexWrap, { children: itemsComponent })));
|
|
38
45
|
break;
|
|
@@ -42,8 +49,12 @@ function ListPanel({ as = 'ul', className, panel, layout, items, overrides = {},
|
|
|
42
49
|
case 'horizontalStack':
|
|
43
50
|
layoutComponent = ((0, jsx_runtime_1.jsx)(layouts_1.StackLayout, Object.assign({ as: as, direction: "horizontal" }, horizontalStack, { children: itemsComponent })));
|
|
44
51
|
break;
|
|
52
|
+
case 'masonry':
|
|
53
|
+
layoutComponent = ((0, jsx_runtime_1.jsx)(refs_1.MasonryLayout, Object.assign({}, masonry, { children: itemsComponent })));
|
|
54
|
+
break;
|
|
45
55
|
case 'verticalStack':
|
|
46
56
|
layoutComponent = ((0, jsx_runtime_1.jsx)(layouts_1.StackLayout, Object.assign({ as: as, direction: "vertical" }, verticalStack, { children: itemsComponent })));
|
|
57
|
+
break;
|
|
47
58
|
}
|
|
48
59
|
// render
|
|
49
60
|
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(className, '@container nd-ListPanel',
|
|
@@ -181,7 +181,6 @@ function MessagePanel({ className, panel, titleTag = 'span', title, headlineTag
|
|
|
181
181
|
delete configSchema[keys.verticalAlign];
|
|
182
182
|
}
|
|
183
183
|
else if (flexDirection === 'y') {
|
|
184
|
-
delete configSchema[keys.textAlign];
|
|
185
184
|
delete configSchema[keys.width];
|
|
186
185
|
delete configSchema[keys.horizontalAlign];
|
|
187
186
|
}
|
|
@@ -192,8 +191,6 @@ function MessagePanel({ className, panel, titleTag = 'span', title, headlineTag
|
|
|
192
191
|
newWidthSchema.isValidOption(width);
|
|
193
192
|
width = newWidthSchema.isValidOption(width) ? width : 'full';
|
|
194
193
|
// drop unnecessary config
|
|
195
|
-
// drop unnecessary config
|
|
196
|
-
delete configSchema[keys.textAlign];
|
|
197
194
|
delete configSchema[keys.horizontalAlign];
|
|
198
195
|
delete configSchema[keys.verticalAlign];
|
|
199
196
|
}
|
|
@@ -147,7 +147,6 @@ function VisualPanel({ className, panel, visual, visualDecorator, visualLoading,
|
|
|
147
147
|
if (aspect === matchedAspect) {
|
|
148
148
|
aspect = 'auto';
|
|
149
149
|
}
|
|
150
|
-
console.debug('[VisualPanel/getConfig] aspect calculation:', { width, height, sourceAspectRatio, matchedAspect });
|
|
151
150
|
// create schema (drop matched aspect if we need to)
|
|
152
151
|
const configSchema = {
|
|
153
152
|
[keys.aspect]: matchedAspect
|
|
@@ -163,7 +162,6 @@ function VisualPanel({ className, panel, visual, visualDecorator, visualLoading,
|
|
|
163
162
|
if (sourceAspectRatio && aspect !== 'auto') {
|
|
164
163
|
// coerce anchor
|
|
165
164
|
const targetAspectRatio = schema_1.AspectRatio.ratios[aspect];
|
|
166
|
-
console.debug('[VisualPanel/getConfig] aspect calculation:', { width, height, sourceAspectRatio, matchedAspect, targetAspectRatio });
|
|
167
165
|
let anchorSchema = schema_1.Anchor.schema.modify({ semantics: 'segmented' });
|
|
168
166
|
if (sourceAspectRatio < targetAspectRatio) {
|
|
169
167
|
anchorSchema = anchorSchema.keepOptions('center', 'top', 'bottom');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from '@nascentdigital/funnel-core';
|
|
2
|
-
export type Anchor = '
|
|
2
|
+
export type Anchor = 'top' | 'left' | 'center' | 'bottom' | 'right';
|
|
3
3
|
export declare namespace Anchor {
|
|
4
4
|
const options: Schema.EnumField.Options<Anchor>;
|
|
5
5
|
const schema: Schema.EnumField<Schema.EnumField.Options<Anchor>>;
|
|
@@ -7,10 +7,10 @@ var Anchor;
|
|
|
7
7
|
(function (Anchor) {
|
|
8
8
|
// schema
|
|
9
9
|
Anchor.options = {
|
|
10
|
-
center: { name: 'Center' },
|
|
11
10
|
top: { name: 'Top' },
|
|
12
|
-
bottom: { name: 'Bottom' },
|
|
13
11
|
left: { name: 'Left' },
|
|
12
|
+
center: { name: 'Center' },
|
|
13
|
+
bottom: { name: 'Bottom' },
|
|
14
14
|
right: { name: 'Right' }
|
|
15
15
|
};
|
|
16
16
|
Anchor.schema = funnel_core_1.Schema.Field.enumeration({
|
|
@@ -22,7 +22,7 @@ var BlockConfig;
|
|
|
22
22
|
});
|
|
23
23
|
// helpers
|
|
24
24
|
function getClassName(theme) {
|
|
25
|
-
return
|
|
25
|
+
return `nd-theme-${(theme !== null && theme !== void 0 ? theme : 'default')}`;
|
|
26
26
|
}
|
|
27
27
|
Theme.getClassName = getClassName;
|
|
28
28
|
})(Theme = BlockConfig.Theme || (BlockConfig.Theme = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from '@nascentdigital/funnel-core';
|
|
2
2
|
import { ItemAlignment } from './ItemAlignment';
|
|
3
|
+
import type { Carousel } from '../../client';
|
|
3
4
|
export type ListPanelLayout = keyof ListPanelLayout.Configs;
|
|
4
5
|
export declare namespace ListPanelLayout {
|
|
5
6
|
const options: Schema.EnumField.Options<ListPanelLayout>;
|
|
@@ -11,6 +12,7 @@ export declare namespace ListPanelLayout {
|
|
|
11
12
|
type Card = {
|
|
12
13
|
itemSize: 'sm' | 'md';
|
|
13
14
|
};
|
|
15
|
+
type Carousel = Carousel.CommonProps;
|
|
14
16
|
type FlexWrap = {
|
|
15
17
|
allowSingleItemRows: boolean;
|
|
16
18
|
itemAlignment: ItemAlignment;
|
|
@@ -18,6 +20,7 @@ export declare namespace ListPanelLayout {
|
|
|
18
20
|
type Grid = {
|
|
19
21
|
columns: number;
|
|
20
22
|
};
|
|
23
|
+
type Masonry = {};
|
|
21
24
|
type Stack = {
|
|
22
25
|
direction: 'horizontal' | 'vertical';
|
|
23
26
|
itemDistribution: 'equal' | 'even' | 'none';
|
|
@@ -26,9 +29,12 @@ export declare namespace ListPanelLayout {
|
|
|
26
29
|
brick: Omit<Brick, 'flipped'>;
|
|
27
30
|
brickFlipped: Omit<Brick, 'flipped'>;
|
|
28
31
|
card: Card;
|
|
32
|
+
carousel: Carousel;
|
|
29
33
|
flexWrap: FlexWrap;
|
|
30
34
|
grid: Grid;
|
|
31
35
|
horizontalStack: Omit<Stack, 'direction'>;
|
|
36
|
+
masonry: Masonry;
|
|
32
37
|
verticalStack: Omit<Stack, 'direction'>;
|
|
38
|
+
bento: {};
|
|
33
39
|
};
|
|
34
40
|
}
|
|
@@ -9,10 +9,13 @@ var ListPanelLayout;
|
|
|
9
9
|
brick: { name: 'Brick' },
|
|
10
10
|
brickFlipped: { name: 'Brick flipped' },
|
|
11
11
|
card: { name: 'Card' },
|
|
12
|
+
carousel: { name: 'Carousel' },
|
|
12
13
|
flexWrap: { name: 'Flex wrap' },
|
|
13
14
|
horizontalStack: { name: 'Horizontal stack' },
|
|
15
|
+
masonry: { name: 'Masonry' },
|
|
14
16
|
verticalStack: { name: 'Vertical stack' },
|
|
15
17
|
grid: { name: 'Grid' },
|
|
18
|
+
bento: { name: 'Bento' }
|
|
16
19
|
};
|
|
17
20
|
ListPanelLayout.schema = funnel_core_1.Schema.Field.enumeration({
|
|
18
21
|
name: 'Layout',
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FragmentProps, ReactElement, ReactNode } from 'react';
|
|
2
|
+
export declare namespace ReactUtils {
|
|
3
|
+
function isFragment(node: ReactNode): node is ReactElement<FragmentProps>;
|
|
4
|
+
function flattenChildren<TNode extends ReactNode = ReactNode>(children: TNode): TNode[];
|
|
5
|
+
function flattenFragment<TNode extends ReactNode = ReactNode>(fragment: ReactElement<FragmentProps>): TNode[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactUtils = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
// namespace
|
|
6
|
+
var ReactUtils;
|
|
7
|
+
(function (ReactUtils) {
|
|
8
|
+
function isFragment(node) {
|
|
9
|
+
return (0, react_1.isValidElement)(node)
|
|
10
|
+
&& node.type === react_1.Fragment;
|
|
11
|
+
}
|
|
12
|
+
ReactUtils.isFragment = isFragment;
|
|
13
|
+
function flattenChildren(children) {
|
|
14
|
+
// setup nodes
|
|
15
|
+
const nodes = [];
|
|
16
|
+
//
|
|
17
|
+
// return nodes
|
|
18
|
+
return nodes;
|
|
19
|
+
}
|
|
20
|
+
ReactUtils.flattenChildren = flattenChildren;
|
|
21
|
+
function flattenFragment(fragment) {
|
|
22
|
+
throw new Error();
|
|
23
|
+
}
|
|
24
|
+
ReactUtils.flattenFragment = flattenFragment;
|
|
25
|
+
})(ReactUtils || (exports.ReactUtils = ReactUtils = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ReactUtils';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ReactUtils"), exports);
|