@vvedantb/native-ui 0.35.0 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/dist/Button.jsx +29 -18
- package/dist/DropdownMenu.jsx +89 -39
- package/dist/ExpoWebRoot.jsx +42 -21
- package/dist/Field.jsx +309 -0
- package/dist/FloatingTabBar.jsx +98 -94
- package/dist/IconButton.jsx +74 -51
- package/dist/ai/conversation.jsx +1 -1
- package/dist/ai/icon-button.jsx +67 -60
- package/dist/ai/prompt-input.jsx +9 -8
- package/dist/blur.js +6 -0
- package/dist/controlStyles.js +24 -2
- package/dist/entries/primitives.js +1 -0
- package/dist/examples/ParityGallery.jsx +488 -475
- package/dist/glassBlur.jsx +1 -1
- package/dist/index.js +1 -0
- package/dist/primitives/window-layer.jsx +35 -28
- package/package.json +27 -3
- package/src/Button.tsx +18 -7
- package/src/DropdownMenu.tsx +53 -7
- package/src/ExpoWebRoot.tsx +18 -3
- package/src/Field.tsx +105 -0
- package/src/FloatingTabBar.tsx +17 -12
- package/src/IconButton.tsx +7 -4
- package/src/Spinner.tsx +2 -2
- package/src/ai/conversation.tsx +1 -1
- package/src/ai/icon-button.tsx +5 -4
- package/src/ai/message.tsx +2 -2
- package/src/ai/prompt-input.tsx +6 -4
- package/src/auth/AccountScreens.tsx +4 -4
- package/src/auth/SignInScreen.tsx +4 -4
- package/src/blur.ts +8 -0
- package/src/controlStyles.ts +29 -2
- package/src/entries/primitives.ts +2 -0
- package/src/examples/ParityGallery.tsx +22 -1
- package/src/glassBlur.tsx +5 -7
- package/src/index.ts +2 -0
- package/src/primitives/sheet-gesture.tsx +1 -2
- package/src/primitives/web-click-guard.ts +3 -3
- package/src/primitives/window-layer.tsx +8 -6
- package/src/tabBarRoutes.ts +4 -3
- package/src/webview/HtmlView.tsx +5 -2
package/README.md
CHANGED
|
@@ -373,7 +373,7 @@ configureTheme({ font: { regular: "Inter_400Regular", medium: "Inter_500Medium",
|
|
|
373
373
|
|
|
374
374
|
| Area | Exports |
|
|
375
375
|
| --- | --- |
|
|
376
|
-
| Actions and fields | `Button` (`default`/`primary`, `secondary`, `outline`, `destructive`, `ghost`, `link`, `tinted
|
|
376
|
+
| Actions and fields | `Button` (`default`/`primary`, `secondary`, `outline`, `destructive`, `ghost`, `link`, `tinted`, plus the `tertiary`/`danger`/`success`/`warning`/`flat` aliases; `sm`/`small`, `default`/`medium`, `lg`/`large`, `icon`; `shape` `pill`/`rounded` from 0.6.0), `IconButton` (0.5.0), `CaptureButton` (0.5.0), `Field` (with `FieldLabel`, `FieldControl`, `FieldDescription`, `FieldError`), `Input`, `SearchInput` (0.3.9), `PasswordInput` (0.11.0), `Textarea`, `Label`, `Select`, `Switch`, `Checkbox`, `LabeledSwitchRow`, `ColorSwatches` (0.5.0), `DateTimeField` (date-only, empty and clearable from 0.5.0) |
|
|
377
377
|
| Display | `Card` (+ `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, `CardFooter`; `onPress` from 0.5.0), `Badge`, `StatusDot` (`info` from 0.5.0), `Avatar` (+ `AvatarImage`, `AvatarFallback`, `initials()`), `Separator`, `Progress`, `Spinner`, `CenteredSpinner`, `Skeleton`, `EmptyState` (+ `EmptyState.Root` and parts), `ListRow` (`leading`, `titleEnd`, `control`, `onLongPress` from 0.5.0), `StatGrid` (0.5.0), `SectionLabel` (0.5.0), `Chip`, `Text` (0.5.0, `/primitives` only) |
|
|
378
378
|
| Navigation | `Tabs` (+ `TabsList`, `TabsTrigger` (`minHeight` from 0.14.0), `TabsContent`), `PillTabs`, `PageIndicator` (0.5.0), `FloatingTabBar`, `FloatingFAB`, `HeaderIconButton`, `ThemeToggle` (0.3.16), `StackPageHeader` (0.5.0) |
|
|
379
379
|
| Overlays | `Dialog`, `AlertDialog`, `ConfirmDialog`, `Sheet` (a `WindowLayer` from 0.29.0: in the app's window under `WindowLayerHost`, else an RN `Modal`; each with the web part names; a `SheetContent` or compact `DialogContent` drags down to close), `SheetRow` (0.5.0), `BottomSheetContainer` (`@swmansion/react-native-bottom-sheet`; optional `detents`), `DropdownMenu` (Unreleased; see below) |
|
|
@@ -384,6 +384,21 @@ configureTheme({ font: { regular: "Inter_400Regular", medium: "Inter_500Medium",
|
|
|
384
384
|
|
|
385
385
|
**Settings at web sizes (0.14.0).** `SettingsSection`, `SettingsToggleRow`, `SettingsField` and `SettingsEmptyState` take the web type: titles and labels `text-sm` (14 / 20; the section title semibold, the others medium), descriptions and help `text-xs leading-relaxed` (12 / 19.5; the section description `text-sm leading-relaxed`, 14 / 22.75). `SettingsToggleRow` steps up one size with larger text and has no minimum height; its control keeps the 44 target.
|
|
386
386
|
|
|
387
|
+
**`Button` aliases and `Field` (unreleased).** `variant` also accepts `tertiary` (= `ghost`), `danger` (= `destructive`), `success`, `warning` and `flat`, as the web `Button`. `tinted` stays as a legacy alias (the pink tint of `outline` before 0.3.0). `size` accepts `md` (= `default`/`medium`), and `Spinner` `size="default"` equals `md`. Roles: `primary`/`default` is the one main action, `secondary` an alternative, `tertiary`/`ghost` a dismissive action, `destructive`/`danger` a destructive action, `success` and `warning` show status, and `outline`, `link` and `flat` are visual.
|
|
388
|
+
|
|
389
|
+
`Field`, `FieldLabel`, `FieldControl`, `FieldDescription` and `FieldError` (root and `/primitives`) link a label to a control. `FieldLabel` sets `nativeID`; `FieldControl` sets `accessibilityLabelledBy` while a `FieldLabel` renders, and otherwise keeps the `accessibilityLabel` you pass (the fallback, and what iOS reads). A plain `Input` is unchanged. The `FieldError` in `@vvedantb/native-ui/auth` is a different component (it takes a `message` prop).
|
|
390
|
+
|
|
391
|
+
```tsx
|
|
392
|
+
<Field>
|
|
393
|
+
<FieldLabel>Email</FieldLabel>
|
|
394
|
+
<FieldControl placeholder="you@example.com" accessibilityLabel="Email" />
|
|
395
|
+
<FieldDescription>We never share it.</FieldDescription>
|
|
396
|
+
{error ? <FieldError>{error}</FieldError> : null}
|
|
397
|
+
</Field>
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
**Control styles are internal.** `buttonColors`, `fieldStyle`, `textStyle` and the other helpers in `src/controlStyles.ts` are not exported from any entry. Their names and return values can change in any release; build on the components instead.
|
|
401
|
+
|
|
387
402
|
**`Button` `shape` (0.6.0).** `Button` is a pill by default, as the web `Button` from `@vvedantb/ui` 0.31.0: `shape="pill"` is fully round (`tokens.radius.pill`, web `rounded-full`) for every variant and size, so `size="icon"` is a circle. `shape="rounded"` keeps the radius from before 0.6.0: 16 at every size (web `rounded-lg`). The web `rounded` is 14 (`rounded-md`) on `xs` and `icon-xs`; native has neither size. The radius is a style, so a `style` radius such as `style={{ borderRadius: 8 }}` wins over either shape; a `className` radius does not.
|
|
388
403
|
|
|
389
404
|
```tsx
|
package/dist/Button.jsx
CHANGED
|
@@ -14,7 +14,7 @@ import { useLargerText } from "./theme";
|
|
|
14
14
|
import { tokens } from "./tokens";
|
|
15
15
|
import { useScheme } from "./useScheme";
|
|
16
16
|
|
|
17
|
-
/** `sm`, `default` and `lg` are the web names for `small`, `medium` and `large`. `icon` is a square button. */
|
|
17
|
+
/** `sm`, `default` (or `md`) and `lg` are the web names for `small`, `medium` and `large`. `icon` is a square button. */
|
|
18
18
|
|
|
19
19
|
/** The web `shape`. `"pill"` (default) is fully round; `"rounded"` is radius 16, the look before 0.6.0. */
|
|
20
20
|
|
|
@@ -23,6 +23,7 @@ const SIZE_ALIAS = {
|
|
|
23
23
|
medium: "medium",
|
|
24
24
|
large: "large",
|
|
25
25
|
sm: "small",
|
|
26
|
+
md: "medium",
|
|
26
27
|
default: "medium",
|
|
27
28
|
lg: "large",
|
|
28
29
|
icon: "icon"
|
|
@@ -100,8 +101,8 @@ const RADIUS = {
|
|
|
100
101
|
rounded: tokens.radius.lg
|
|
101
102
|
};
|
|
102
103
|
|
|
103
|
-
// Colours come from `buttonColors` as styles, except `tinted
|
|
104
|
-
// the pink classes that `outline` used before 0.3.0.
|
|
104
|
+
// Colours come from `buttonColors` as styles, except `tinted` (a legacy
|
|
105
|
+
// alias), which keeps the pink classes that `outline` used before 0.3.0.
|
|
105
106
|
const VARIANT_CLASS = {
|
|
106
107
|
link: "h-auto border-0 px-0",
|
|
107
108
|
tinted: "border-0 bg-pink-50 dark:bg-pink-900/20"
|
|
@@ -117,11 +118,20 @@ const PRIMITIVE_VARIANT = {
|
|
|
117
118
|
secondary: "secondary",
|
|
118
119
|
destructive: "destructive",
|
|
119
120
|
ghost: "ghost",
|
|
121
|
+
tertiary: "ghost",
|
|
122
|
+
danger: "destructive",
|
|
123
|
+
success: "default",
|
|
124
|
+
warning: "default",
|
|
125
|
+
flat: "ghost",
|
|
120
126
|
link: "link",
|
|
121
127
|
tinted: "secondary"
|
|
122
128
|
};
|
|
123
|
-
|
|
124
|
-
|
|
129
|
+
/**
|
|
130
|
+
* Forwards `ref` to the native view, so a parent (such as `DropdownMenuTrigger
|
|
131
|
+
* asChild`) can measure it.
|
|
132
|
+
*/
|
|
133
|
+
export const Button = React.forwardRef(function Button(t0, ref) {
|
|
134
|
+
const $ = _c(68);
|
|
125
135
|
let children;
|
|
126
136
|
let className;
|
|
127
137
|
let endContent;
|
|
@@ -324,21 +334,22 @@ export function Button(t0) {
|
|
|
324
334
|
t27 = $[55];
|
|
325
335
|
}
|
|
326
336
|
let t28;
|
|
327
|
-
if ($[56] !== onPress || $[57] !== props || $[58] !==
|
|
328
|
-
t28 = <PrimitiveButton onPress={onPress} variant={t13} shape={shape} hitSlop={t14} accessibilityRole="button" className={t19} {...props} disabled={t20} accessibilityState={t24} style={t25}>{t27}</PrimitiveButton>;
|
|
337
|
+
if ($[56] !== onPress || $[57] !== props || $[58] !== ref || $[59] !== shape || $[60] !== t13 || $[61] !== t14 || $[62] !== t19 || $[63] !== t20 || $[64] !== t24 || $[65] !== t25 || $[66] !== t27) {
|
|
338
|
+
t28 = <PrimitiveButton ref={ref} onPress={onPress} variant={t13} shape={shape} hitSlop={t14} accessibilityRole="button" className={t19} {...props} disabled={t20} accessibilityState={t24} style={t25}>{t27}</PrimitiveButton>;
|
|
329
339
|
$[56] = onPress;
|
|
330
340
|
$[57] = props;
|
|
331
|
-
$[58] =
|
|
332
|
-
$[59] =
|
|
333
|
-
$[60] =
|
|
334
|
-
$[61] =
|
|
335
|
-
$[62] =
|
|
336
|
-
$[63] =
|
|
337
|
-
$[64] =
|
|
338
|
-
$[65] =
|
|
339
|
-
$[66] =
|
|
341
|
+
$[58] = ref;
|
|
342
|
+
$[59] = shape;
|
|
343
|
+
$[60] = t13;
|
|
344
|
+
$[61] = t14;
|
|
345
|
+
$[62] = t19;
|
|
346
|
+
$[63] = t20;
|
|
347
|
+
$[64] = t24;
|
|
348
|
+
$[65] = t25;
|
|
349
|
+
$[66] = t27;
|
|
350
|
+
$[67] = t28;
|
|
340
351
|
} else {
|
|
341
|
-
t28 = $[
|
|
352
|
+
t28 = $[67];
|
|
342
353
|
}
|
|
343
354
|
return t28;
|
|
344
|
-
}
|
|
355
|
+
});
|
package/dist/DropdownMenu.jsx
CHANGED
|
@@ -109,14 +109,46 @@ export function DropdownMenu(t0) {
|
|
|
109
109
|
}
|
|
110
110
|
return t4;
|
|
111
111
|
}
|
|
112
|
+
/** A measured box is usable when it has a size: Android reports 0, 0, 0, 0 for a view it has not laid out. */
|
|
113
|
+
export function isMeasuredRect(rect) {
|
|
114
|
+
return rect.width > 0 && rect.height > 0;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The view's box in window coordinates, or `null` when it cannot be measured.
|
|
118
|
+
* `measureInWindow` first; when it returns an empty box, `measure` (its
|
|
119
|
+
* `pageX` and `pageY` are window coordinates too) as a second reading.
|
|
120
|
+
*/
|
|
121
|
+
export function measureAnchor(view, done) {
|
|
122
|
+
view.measureInWindow((x, y, width, height) => {
|
|
123
|
+
const rect = {
|
|
124
|
+
x,
|
|
125
|
+
y,
|
|
126
|
+
width,
|
|
127
|
+
height
|
|
128
|
+
};
|
|
129
|
+
if (isMeasuredRect(rect)) return done(rect);
|
|
130
|
+
view.measure((_x, _y, w, h, pageX, pageY) => {
|
|
131
|
+
const second = {
|
|
132
|
+
x: pageX,
|
|
133
|
+
y: pageY,
|
|
134
|
+
width: w,
|
|
135
|
+
height: h
|
|
136
|
+
};
|
|
137
|
+
done(isMeasuredRect(second) ? second : null);
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
112
142
|
/**
|
|
113
143
|
* Opens the menu, or closes it when open. On press it measures itself
|
|
114
|
-
* (`measureInWindow`) and the menu opens under it. Reports `expanded`.
|
|
144
|
+
* (`measureInWindow`) and the menu opens under it. Reports `expanded`. A
|
|
145
|
+
* caller `ref` is kept: the menu's own handle never replaces it.
|
|
115
146
|
*/
|
|
116
147
|
export function DropdownMenuTrigger(t0) {
|
|
117
|
-
const $ = _c(
|
|
148
|
+
const $ = _c(22);
|
|
118
149
|
let accessibilityState;
|
|
119
150
|
let asChild;
|
|
151
|
+
let callerRef;
|
|
120
152
|
let onPress;
|
|
121
153
|
let props;
|
|
122
154
|
if ($[0] !== t0) {
|
|
@@ -124,18 +156,21 @@ export function DropdownMenuTrigger(t0) {
|
|
|
124
156
|
asChild,
|
|
125
157
|
onPress,
|
|
126
158
|
accessibilityState,
|
|
159
|
+
ref: callerRef,
|
|
127
160
|
...props
|
|
128
161
|
} = t0);
|
|
129
162
|
$[0] = t0;
|
|
130
163
|
$[1] = accessibilityState;
|
|
131
164
|
$[2] = asChild;
|
|
132
|
-
$[3] =
|
|
133
|
-
$[4] =
|
|
165
|
+
$[3] = callerRef;
|
|
166
|
+
$[4] = onPress;
|
|
167
|
+
$[5] = props;
|
|
134
168
|
} else {
|
|
135
169
|
accessibilityState = $[1];
|
|
136
170
|
asChild = $[2];
|
|
137
|
-
|
|
138
|
-
|
|
171
|
+
callerRef = $[3];
|
|
172
|
+
onPress = $[4];
|
|
173
|
+
props = $[5];
|
|
139
174
|
}
|
|
140
175
|
const {
|
|
141
176
|
open,
|
|
@@ -145,58 +180,73 @@ export function DropdownMenuTrigger(t0) {
|
|
|
145
180
|
const ref = useRef(null);
|
|
146
181
|
const Component = asChild ? Slot.Pressable : Pressable;
|
|
147
182
|
let t1;
|
|
148
|
-
if ($[
|
|
149
|
-
t1 = {
|
|
150
|
-
|
|
151
|
-
|
|
183
|
+
if ($[6] !== callerRef) {
|
|
184
|
+
t1 = view => {
|
|
185
|
+
ref.current = view;
|
|
186
|
+
if (typeof callerRef === "function") {
|
|
187
|
+
callerRef(view);
|
|
188
|
+
} else {
|
|
189
|
+
if (callerRef) {
|
|
190
|
+
callerRef.current = view;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
152
193
|
};
|
|
153
|
-
$[
|
|
154
|
-
$[6] = open;
|
|
194
|
+
$[6] = callerRef;
|
|
155
195
|
$[7] = t1;
|
|
156
196
|
} else {
|
|
157
197
|
t1 = $[7];
|
|
158
198
|
}
|
|
159
199
|
let t2;
|
|
160
|
-
if ($[8] !==
|
|
161
|
-
t2 =
|
|
200
|
+
if ($[8] !== accessibilityState || $[9] !== open) {
|
|
201
|
+
t2 = {
|
|
202
|
+
...accessibilityState,
|
|
203
|
+
expanded: open
|
|
204
|
+
};
|
|
205
|
+
$[8] = accessibilityState;
|
|
206
|
+
$[9] = open;
|
|
207
|
+
$[10] = t2;
|
|
208
|
+
} else {
|
|
209
|
+
t2 = $[10];
|
|
210
|
+
}
|
|
211
|
+
let t3;
|
|
212
|
+
if ($[11] !== onPress || $[12] !== open || $[13] !== setOpen || $[14] !== setTrigger) {
|
|
213
|
+
t3 = event => {
|
|
162
214
|
onPress?.(event);
|
|
163
215
|
if (open) {
|
|
164
216
|
return setOpen(false);
|
|
165
217
|
}
|
|
166
|
-
const
|
|
167
|
-
if (!
|
|
218
|
+
const view_0 = ref.current;
|
|
219
|
+
if (!view_0) {
|
|
168
220
|
return setOpen(true);
|
|
169
221
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
width,
|
|
175
|
-
height
|
|
176
|
-
});
|
|
222
|
+
measureAnchor(view_0, rect => {
|
|
223
|
+
if (rect) {
|
|
224
|
+
setTrigger(rect);
|
|
225
|
+
}
|
|
177
226
|
setOpen(true);
|
|
178
227
|
});
|
|
179
228
|
};
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
229
|
+
$[11] = onPress;
|
|
230
|
+
$[12] = open;
|
|
231
|
+
$[13] = setOpen;
|
|
232
|
+
$[14] = setTrigger;
|
|
233
|
+
$[15] = t3;
|
|
185
234
|
} else {
|
|
186
|
-
|
|
235
|
+
t3 = $[15];
|
|
187
236
|
}
|
|
188
|
-
let
|
|
189
|
-
if ($[
|
|
190
|
-
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
237
|
+
let t4;
|
|
238
|
+
if ($[16] !== Component || $[17] !== props || $[18] !== t1 || $[19] !== t2 || $[20] !== t3) {
|
|
239
|
+
t4 = <Component ref={t1} accessibilityRole="button" {...props} accessibilityState={t2} onPress={t3} />;
|
|
240
|
+
$[16] = Component;
|
|
241
|
+
$[17] = props;
|
|
242
|
+
$[18] = t1;
|
|
243
|
+
$[19] = t2;
|
|
244
|
+
$[20] = t3;
|
|
245
|
+
$[21] = t4;
|
|
196
246
|
} else {
|
|
197
|
-
|
|
247
|
+
t4 = $[21];
|
|
198
248
|
}
|
|
199
|
-
return
|
|
249
|
+
return t4;
|
|
200
250
|
}
|
|
201
251
|
/**
|
|
202
252
|
* Where the menu goes: under the trigger, `sideOffset` away, its start edge on
|
package/dist/ExpoWebRoot.jsx
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import
|
|
2
|
+
import * as expoRouterHtml from "expo-router/html";
|
|
3
3
|
import { tokens } from "./tokens";
|
|
4
|
+
const {
|
|
5
|
+
ScrollViewStyleReset
|
|
6
|
+
} = expoRouterHtml;
|
|
7
|
+
|
|
8
|
+
// From Expo SDK 58 the static render no longer writes the page's CSS links and
|
|
9
|
+
// script tags into the HTML afterwards: it hands them to the root as nodes, and
|
|
10
|
+
// a root that leaves them out gives a blank page. Earlier SDKs have no such
|
|
11
|
+
// hook and still write the tags themselves.
|
|
12
|
+
|
|
13
|
+
const emptyDocument = {};
|
|
14
|
+
const useServerDocument = expoRouterHtml.useServerDocumentContext ?? (() => emptyDocument);
|
|
4
15
|
|
|
5
16
|
/** `"native"` stops pinch-zoom so the page acts like the app; `"accessible"` allows it (WCAG 1.4.4). Both cover the notch. */
|
|
6
17
|
|
|
@@ -39,7 +50,7 @@ html.dark body {
|
|
|
39
50
|
* Runs in Node during the static render, with no DOM.
|
|
40
51
|
*/
|
|
41
52
|
export function ExpoWebRoot(t0) {
|
|
42
|
-
const $ = _c(
|
|
53
|
+
const $ = _c(26);
|
|
43
54
|
const {
|
|
44
55
|
children,
|
|
45
56
|
lang: t1,
|
|
@@ -54,6 +65,12 @@ export function ExpoWebRoot(t0) {
|
|
|
54
65
|
const scrollReset = t3 === undefined ? true : t3;
|
|
55
66
|
const lightBackground = t4 === undefined ? tokens.color.background.light : t4;
|
|
56
67
|
const darkBackground = t5 === undefined ? tokens.color.background.dark : t5;
|
|
68
|
+
const {
|
|
69
|
+
htmlAttributes,
|
|
70
|
+
headNodes,
|
|
71
|
+
bodyAttributes,
|
|
72
|
+
bodyNodes
|
|
73
|
+
} = useServerDocument();
|
|
57
74
|
let t6;
|
|
58
75
|
let t7;
|
|
59
76
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -102,33 +119,37 @@ export function ExpoWebRoot(t0) {
|
|
|
102
119
|
t12 = $[10];
|
|
103
120
|
}
|
|
104
121
|
let t13;
|
|
105
|
-
if ($[11] !== head || $[12] !==
|
|
106
|
-
t13 = <head>{t6}{t7}{t9}{t10}{t12}{head}</head>;
|
|
122
|
+
if ($[11] !== head || $[12] !== headNodes || $[13] !== t10 || $[14] !== t12 || $[15] !== t9) {
|
|
123
|
+
t13 = <head>{t6}{t7}{t9}{t10}{t12}{head}{headNodes}</head>;
|
|
107
124
|
$[11] = head;
|
|
108
|
-
$[12] =
|
|
109
|
-
$[13] =
|
|
110
|
-
$[14] =
|
|
111
|
-
$[15] =
|
|
125
|
+
$[12] = headNodes;
|
|
126
|
+
$[13] = t10;
|
|
127
|
+
$[14] = t12;
|
|
128
|
+
$[15] = t9;
|
|
129
|
+
$[16] = t13;
|
|
112
130
|
} else {
|
|
113
|
-
t13 = $[
|
|
131
|
+
t13 = $[16];
|
|
114
132
|
}
|
|
115
133
|
let t14;
|
|
116
|
-
if ($[
|
|
117
|
-
t14 = <body>{children}</body>;
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
134
|
+
if ($[17] !== bodyAttributes || $[18] !== bodyNodes || $[19] !== children) {
|
|
135
|
+
t14 = <body {...bodyAttributes}>{children}{bodyNodes}</body>;
|
|
136
|
+
$[17] = bodyAttributes;
|
|
137
|
+
$[18] = bodyNodes;
|
|
138
|
+
$[19] = children;
|
|
139
|
+
$[20] = t14;
|
|
120
140
|
} else {
|
|
121
|
-
t14 = $[
|
|
141
|
+
t14 = $[20];
|
|
122
142
|
}
|
|
123
143
|
let t15;
|
|
124
|
-
if ($[
|
|
125
|
-
t15 = <html lang={lang}>{t13}{t14}</html>;
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
144
|
+
if ($[21] !== htmlAttributes || $[22] !== lang || $[23] !== t13 || $[24] !== t14) {
|
|
145
|
+
t15 = <html lang={lang} {...htmlAttributes}>{t13}{t14}</html>;
|
|
146
|
+
$[21] = htmlAttributes;
|
|
147
|
+
$[22] = lang;
|
|
148
|
+
$[23] = t13;
|
|
149
|
+
$[24] = t14;
|
|
150
|
+
$[25] = t15;
|
|
130
151
|
} else {
|
|
131
|
-
t15 = $[
|
|
152
|
+
t15 = $[25];
|
|
132
153
|
}
|
|
133
154
|
return t15;
|
|
134
155
|
}
|