@vvedantb/native-ui 0.38.0 → 0.39.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/dist/Avatar.jsx +22 -19
- package/dist/BottomSheetContainer.jsx +0 -6
- package/dist/BulkActionBar.jsx +0 -24
- package/dist/Button.jsx +92 -116
- package/dist/Card.jsx +56 -50
- package/dist/ColorSwatches.jsx +0 -6
- package/dist/Dialog.jsx +0 -12
- package/dist/DropdownMenu.jsx +0 -10
- package/dist/EmptyState.jsx +0 -3
- package/dist/ExpoWebRoot.jsx +0 -6
- package/dist/Field.jsx +0 -17
- package/dist/FloatingSurface.jsx +95 -80
- package/dist/FloatingTabBar.jsx +0 -23
- package/dist/IconButton.jsx +0 -1
- package/dist/LoadingState.jsx +0 -6
- package/dist/PasswordInput.jsx +0 -15
- package/dist/PillTabs.jsx +39 -36
- package/dist/SearchInput.jsx +0 -13
- package/dist/SectionLabel.jsx +0 -1
- package/dist/SharedTransition.jsx +0 -3
- package/dist/Skeleton.jsx +0 -2
- package/dist/Spinner.jsx +0 -2
- package/dist/StatusDot.jsx +0 -5
- package/dist/Switch.jsx +32 -22
- package/dist/Tabs.jsx +27 -26
- package/dist/Textarea.jsx +0 -1
- package/dist/ThemeToggle.jsx +0 -1
- package/dist/Toast.jsx +80 -91
- package/dist/UpdateChecker.jsx +0 -1
- package/dist/ai/activity-question.jsx +0 -6
- package/dist/ai/activity-step-label.js +0 -6
- package/dist/ai/activity-step-types.js +0 -4
- package/dist/ai/activity-tasks-utils.js +0 -17
- package/dist/ai/activity-timeline.js +0 -8
- package/dist/ai/attachments.jsx +0 -2
- package/dist/ai/chain-of-thought.jsx +0 -3
- package/dist/ai/chat-text.js +0 -1
- package/dist/ai/chat-thread.jsx +0 -1
- package/dist/ai/choice-question.jsx +0 -10
- package/dist/ai/code-block.jsx +0 -31
- package/dist/ai/collapsible.jsx +0 -14
- package/dist/ai/conversation-context.js +0 -3
- package/dist/ai/conversation.jsx +2 -48
- package/dist/ai/file-chip.jsx +0 -2
- package/dist/ai/icon-button.jsx +0 -8
- package/dist/ai/index.js +0 -5
- package/dist/ai/message-context-menu.jsx +0 -7
- package/dist/ai/message.jsx +0 -21
- package/dist/ai/prompt-input-menu.jsx +0 -3
- package/dist/ai/prompt-input.jsx +0 -27
- package/dist/ai/response-text.jsx +0 -6
- package/dist/ai/sources.jsx +0 -1
- package/dist/ai/suggestion.jsx +0 -1
- package/dist/ai/trace.jsx +0 -11
- package/dist/ai/unified-diff.jsx +0 -4
- package/dist/auth/AuthScreen.jsx +0 -5
- package/dist/auth/GoogleSignInButton.jsx +0 -3
- package/dist/auth/SecondFactorScreen.jsx +0 -2
- package/dist/auth/SignInScreen.jsx +0 -17
- package/dist/auth/authErrors.js +0 -4
- package/dist/auth/clerkCore3.js +0 -7
- package/dist/auth/index.js +0 -4
- package/dist/auth/totp.js +0 -2
- package/dist/brand/GoogleMark.jsx +0 -1
- package/dist/brand/ProviderIcon.jsx +0 -2
- package/dist/brand/index.js +0 -3
- package/dist/brand/svg.js +0 -6
- package/dist/configureTheme.js +0 -9
- package/dist/controlStyles.js +0 -14
- package/dist/crash/lastCrash.js +3 -24
- package/dist/entries/ai.js +0 -3
- package/dist/entries/ambient.js +0 -2
- package/dist/entries/app-root.js +0 -5
- package/dist/entries/auth.js +0 -4
- package/dist/entries/bottom-sheet.js +0 -2
- package/dist/entries/brand.js +0 -1
- package/dist/entries/button.js +0 -1
- package/dist/entries/crash.js +0 -3
- package/dist/entries/date-time.js +0 -2
- package/dist/entries/expo-router.js +0 -3
- package/dist/entries/expo-web-root.js +0 -2
- package/dist/entries/floating.js +0 -2
- package/dist/entries/generative-ui.js +0 -4
- package/dist/entries/gesture-handler.js +0 -3
- package/dist/entries/keyboard-controller.js +0 -3
- package/dist/entries/layout.js +0 -2
- package/dist/entries/markdown.js +0 -3
- package/dist/entries/marketing.js +0 -1
- package/dist/entries/page-title.js +0 -5
- package/dist/entries/password-input.js +0 -2
- package/dist/entries/paste-input.js +0 -3
- package/dist/entries/primitives.js +0 -6
- package/dist/entries/search-input.js +0 -2
- package/dist/entries/tab-bar.js +0 -2
- package/dist/entries/theme.js +1 -2
- package/dist/entries/toast.js +0 -3
- package/dist/entries/video.js +0 -2
- package/dist/entries/webview.js +0 -2
- package/dist/examples/AiChatGallery.jsx +0 -11
- package/dist/examples/ParityGallery.jsx +0 -12
- package/dist/floating.js +0 -8
- package/dist/generative-ui/GenerativeUiPanel.jsx +0 -2
- package/dist/generative-ui/components.jsx +0 -8
- package/dist/glass.js +55 -0
- package/dist/glassBlur.jsx +0 -12
- package/dist/highlight.js +0 -26
- package/dist/index.js +1 -2
- package/dist/loadingGrid.js +0 -13
- package/dist/markdown/Markdown.jsx +0 -59
- package/dist/markdown/MarkdownTable.jsx +0 -18
- package/dist/markdown/tableText.js +0 -5
- package/dist/marketing/UpgradeToProCard.jsx +0 -5
- package/dist/marketing/pricing.js +0 -3
- package/dist/media/ImageGallery.jsx +0 -16
- package/dist/media/imageZoom.js +0 -4
- package/dist/media/zoom-image-gesture.jsx +0 -8
- package/dist/media/zoomImage.js +0 -3
- package/dist/motion.js +0 -3
- package/dist/neutralTheme.js +0 -5
- package/dist/pagerSwipe.js +0 -16
- package/dist/palette.js +0 -10
- package/dist/primitives/button.jsx +0 -5
- package/dist/primitives/keyboard-controller.jsx +0 -27
- package/dist/primitives/native-only-animated-view.jsx +0 -5
- package/dist/primitives/overlay.jsx +0 -2
- package/dist/primitives/pager-gesture.jsx +3 -29
- package/dist/primitives/paste-input.jsx +0 -5
- package/dist/primitives/select.jsx +0 -8
- package/dist/primitives/sheet-drag.jsx +0 -3
- package/dist/primitives/sheet-gesture.jsx +0 -8
- package/dist/primitives/swipe-row-gesture.jsx +3 -45
- package/dist/primitives/text.jsx +0 -5
- package/dist/primitives/toast-drag-gesture.jsx +4 -24
- package/dist/primitives/web-click-guard.js +0 -3
- package/dist/primitives/window-layer.jsx +0 -14
- package/dist/push.js +0 -6
- package/dist/relativeTime.js +0 -13
- package/dist/settings/MoreFromProjectV.jsx +0 -5
- package/dist/settings/ThemeModePicker.jsx +0 -4
- package/dist/settings/projectVMobileApps.js +1 -6
- package/dist/sheetDrag.js +0 -10
- package/dist/swipeRow.js +0 -15
- package/dist/tabBarRoutes.js +0 -4
- package/dist/tabIndicator.js +0 -4
- package/dist/tailwind-preset.cjs +0 -54
- package/dist/tailwind-preset.d.cts +0 -8
- package/dist/theme.jsx +29 -21
- package/dist/themeModeStore.js +0 -5
- package/dist/toastChrome.js +0 -6
- package/dist/toastDrag.js +0 -14
- package/dist/toastStore.js +0 -4
- package/dist/updateCheck.js +0 -7
- package/dist/video/InlineVideo.jsx +0 -2
- package/dist/webview/htmlView.js +0 -5
- package/package.json +3 -3
- package/src/ArtifactList.tsx +0 -2
- package/src/Avatar.tsx +3 -3
- package/src/Badge.tsx +0 -1
- package/src/BottomSheetContainer.tsx +0 -11
- package/src/BulkActionBar.tsx +0 -66
- package/src/Button.tsx +4 -40
- package/src/CaptureButton.tsx +0 -1
- package/src/Card.tsx +3 -15
- package/src/Checkbox.tsx +0 -2
- package/src/ColorSwatches.tsx +0 -9
- package/src/ConfirmDialog.tsx +0 -7
- package/src/DateTimeField.tsx +0 -5
- package/src/Dialog.tsx +0 -27
- package/src/DividedList.tsx +0 -1
- package/src/DropdownMenu.tsx +0 -51
- package/src/EmptyState.tsx +0 -5
- package/src/ExpoWebRoot.tsx +0 -10
- package/src/Field.tsx +0 -14
- package/src/FloatingFAB.tsx +0 -3
- package/src/FloatingSurface.tsx +11 -8
- package/src/FloatingTabBar.tsx +0 -25
- package/src/IconButton.tsx +0 -5
- package/src/Input.tsx +0 -1
- package/src/Label.tsx +0 -1
- package/src/LabeledSwitchRow.tsx +0 -2
- package/src/ListRow.tsx +0 -12
- package/src/LoadingState.tsx +0 -12
- package/src/MenuSheet.tsx +0 -2
- package/src/PageIndicator.tsx +0 -2
- package/src/PageTitle.tsx +0 -15
- package/src/Pager.tsx +0 -9
- package/src/PasswordInput.tsx +0 -24
- package/src/PillTabs.tsx +3 -11
- package/src/PinnedBotTile.tsx +0 -6
- package/src/Progress.tsx +0 -3
- package/src/ReactionRow.tsx +0 -8
- package/src/ScreenContainer.tsx +0 -4
- package/src/SearchInput.tsx +0 -25
- package/src/SectionLabel.tsx +0 -2
- package/src/Select.tsx +0 -6
- package/src/Separator.tsx +0 -2
- package/src/SharedTransition.tsx +0 -7
- package/src/Sheet.tsx +0 -3
- package/src/SheetRow.tsx +0 -12
- package/src/Skeleton.tsx +0 -10
- package/src/Spinner.tsx +0 -6
- package/src/StackPageHeader.tsx +0 -16
- package/src/StatGrid.tsx +0 -1
- package/src/StatusDot.tsx +0 -6
- package/src/SurfaceRow.tsx +0 -12
- package/src/SwipeableRow.tsx +0 -4
- package/src/Switch.tsx +3 -4
- package/src/Tabs.tsx +3 -27
- package/src/Textarea.tsx +0 -2
- package/src/ThemeToggle.tsx +0 -1
- package/src/Toast.tsx +3 -19
- package/src/UpdateChecker.tsx +0 -46
- package/src/ai/activity-question.tsx +0 -8
- package/src/ai/activity-step-detail.tsx +0 -5
- package/src/ai/activity-step-label.ts +0 -5
- package/src/ai/activity-step-types.ts +0 -24
- package/src/ai/activity-step.tsx +0 -4
- package/src/ai/activity-tasks-utils.ts +0 -13
- package/src/ai/activity-timeline.ts +0 -6
- package/src/ai/attachments.tsx +0 -13
- package/src/ai/chain-of-thought.tsx +0 -5
- package/src/ai/chat-jump-rail.tsx +0 -2
- package/src/ai/chat-text.ts +0 -1
- package/src/ai/chat-thread.tsx +0 -9
- package/src/ai/choice-question.tsx +0 -36
- package/src/ai/code-block.tsx +0 -52
- package/src/ai/collapsible.tsx +0 -12
- package/src/ai/conversation-context.ts +0 -14
- package/src/ai/conversation.tsx +0 -58
- package/src/ai/file-chip.tsx +0 -1
- package/src/ai/icon-button.tsx +0 -17
- package/src/ai/index.ts +0 -5
- package/src/ai/message-action-sheet.tsx +0 -8
- package/src/ai/message-context-menu.tsx +0 -22
- package/src/ai/message-quote.tsx +0 -4
- package/src/ai/message.tsx +0 -66
- package/src/ai/prompt-input-menu.tsx +0 -19
- package/src/ai/prompt-input.tsx +0 -97
- package/src/ai/reasoning.tsx +0 -6
- package/src/ai/reply-quote-chip.tsx +0 -5
- package/src/ai/response-text.tsx +0 -8
- package/src/ai/shimmer.tsx +0 -2
- package/src/ai/sources.tsx +0 -3
- package/src/ai/subagent-cards.tsx +0 -13
- package/src/ai/suggestion.tsx +0 -4
- package/src/ai/tool-approval-card.tsx +0 -14
- package/src/ai/trace.tsx +0 -23
- package/src/ai/unified-diff.tsx +0 -16
- package/src/ai/use-streaming-disclosure.ts +0 -4
- package/src/app-root/AuthGroupGate.tsx +0 -8
- package/src/app-root/SsoCallbackScreen.tsx +0 -10
- package/src/app-root/fonts.ts +0 -2
- package/src/auth/AccountScreens.tsx +0 -16
- package/src/auth/AuthProviders.tsx +0 -13
- package/src/auth/AuthScreen.tsx +0 -12
- package/src/auth/GoogleSignInButton.tsx +0 -12
- package/src/auth/SecondFactorScreen.tsx +0 -16
- package/src/auth/SignInScreen.tsx +0 -68
- package/src/auth/authErrors.ts +0 -6
- package/src/auth/clerkCore3.ts +0 -6
- package/src/auth/index.ts +0 -4
- package/src/auth/totp.ts +0 -13
- package/src/brand/AppIcons.tsx +0 -6
- package/src/brand/AppMark.tsx +0 -5
- package/src/brand/AppWordmark.tsx +0 -7
- package/src/brand/GoogleMark.tsx +0 -4
- package/src/brand/ProviderIcon.tsx +0 -6
- package/src/brand/familyApps.ts +0 -2
- package/src/brand/index.ts +0 -3
- package/src/brand/svg.ts +0 -9
- package/src/configureTheme.ts +0 -10
- package/src/controlStyles.ts +0 -12
- package/src/crash/LastCrashDialog.tsx +0 -6
- package/src/crash/lastCrash.ts +0 -21
- package/src/entries/ai.ts +0 -3
- package/src/entries/ambient.ts +0 -2
- package/src/entries/app-root.ts +0 -5
- package/src/entries/auth.ts +0 -4
- package/src/entries/bottom-sheet.ts +0 -2
- package/src/entries/brand.ts +0 -1
- package/src/entries/button.ts +0 -1
- package/src/entries/crash.ts +0 -3
- package/src/entries/date-time.ts +0 -2
- package/src/entries/expo-router.ts +0 -3
- package/src/entries/expo-web-root.ts +0 -2
- package/src/entries/floating.ts +0 -2
- package/src/entries/generative-ui.ts +0 -4
- package/src/entries/gesture-handler.ts +0 -3
- package/src/entries/keyboard-controller.ts +0 -3
- package/src/entries/layout.ts +0 -2
- package/src/entries/markdown.ts +0 -3
- package/src/entries/marketing.ts +0 -1
- package/src/entries/page-title.ts +0 -5
- package/src/entries/password-input.ts +0 -2
- package/src/entries/paste-input.ts +0 -3
- package/src/entries/primitives.ts +0 -6
- package/src/entries/search-input.ts +0 -2
- package/src/entries/tab-bar.ts +0 -2
- package/src/entries/theme.ts +2 -2
- package/src/entries/toast.ts +0 -3
- package/src/entries/video.ts +0 -2
- package/src/entries/webview.ts +0 -2
- package/src/examples/AiChatGallery.tsx +0 -11
- package/src/examples/ParityGallery.tsx +0 -25
- package/src/floating.ts +0 -6
- package/src/generative-ui/GenerativeUiPanel.tsx +0 -15
- package/src/generative-ui/components.tsx +0 -9
- package/src/generative-ui/context.ts +0 -2
- package/src/glass.ts +31 -0
- package/src/glassBlur.tsx +0 -15
- package/src/highlight.ts +0 -20
- package/src/index.ts +2 -2
- package/src/loadingGrid.ts +0 -12
- package/src/markdown/Markdown.tsx +0 -71
- package/src/markdown/MarkdownTable.tsx +0 -23
- package/src/markdown/tableText.ts +0 -3
- package/src/marketing/PricingModal.tsx +0 -13
- package/src/marketing/UpgradeToProCard.tsx +0 -14
- package/src/marketing/pricing.ts +0 -12
- package/src/media/ImageGallery.tsx +0 -18
- package/src/media/MediaCard.tsx +0 -8
- package/src/media/imageZoom.ts +0 -4
- package/src/media/zoom-image-gesture.tsx +0 -9
- package/src/media/zoomImage.ts +0 -5
- package/src/motion.ts +0 -3
- package/src/neutralTheme.ts +0 -3
- package/src/pagerSwipe.ts +0 -13
- package/src/palette.ts +0 -10
- package/src/pressScale.ts +0 -7
- package/src/primitives/button.tsx +0 -4
- package/src/primitives/card.tsx +0 -1
- package/src/primitives/input.tsx +0 -4
- package/src/primitives/keyboard-controller.tsx +0 -25
- package/src/primitives/keyboard-parts.tsx +0 -27
- package/src/primitives/native-only-animated-view.tsx +0 -5
- package/src/primitives/overlay.tsx +0 -25
- package/src/primitives/pager-gesture.tsx +0 -20
- package/src/primitives/paste-input.tsx +0 -4
- package/src/primitives/paste-parts.tsx +0 -1
- package/src/primitives/select.tsx +0 -16
- package/src/primitives/sheet-drag.tsx +0 -19
- package/src/primitives/sheet-gesture.tsx +0 -22
- package/src/primitives/swipe-row-gesture.tsx +0 -33
- package/src/primitives/switch.tsx +0 -4
- package/src/primitives/text.tsx +0 -4
- package/src/primitives/toast-drag-gesture.tsx +0 -13
- package/src/primitives/web-click-guard.ts +0 -2
- package/src/primitives/window-layer.tsx +0 -18
- package/src/push.ts +0 -15
- package/src/relativeTime.ts +0 -21
- package/src/router/RouterStackPageHeader.tsx +0 -1
- package/src/settings/MoreFromProjectV.tsx +0 -8
- package/src/settings/SettingsEmptyState.tsx +0 -2
- package/src/settings/SettingsSection.tsx +0 -3
- package/src/settings/SettingsToggleRow.tsx +0 -4
- package/src/settings/ThemeModePicker.tsx +0 -11
- package/src/settings/projectVMobileApps.ts +0 -8
- package/src/sheetDrag.ts +0 -9
- package/src/swipeRow.ts +0 -23
- package/src/tabBarRoutes.ts +0 -13
- package/src/tabIndicator.ts +0 -5
- package/src/tailwind-preset.cjs +0 -54
- package/src/tailwind-preset.d.cts +0 -8
- package/src/theme.tsx +11 -2
- package/src/themeModeStore.ts +0 -9
- package/src/toastChrome.ts +0 -6
- package/src/toastDrag.ts +0 -13
- package/src/toastStore.ts +0 -7
- package/src/updateCheck.ts +0 -15
- package/src/video/InlineVideo.tsx +0 -5
- package/src/webview/HtmlView.tsx +0 -23
- package/src/webview/HtmlView.web.tsx +0 -1
- package/src/webview/htmlView.ts +0 -5
package/dist/Dialog.jsx
CHANGED
|
@@ -54,16 +54,12 @@ export function DialogClose(props) {
|
|
|
54
54
|
}
|
|
55
55
|
return t0;
|
|
56
56
|
}
|
|
57
|
-
/** Web `rounded-t-2xl` (16) on the compact sheet. */
|
|
58
57
|
const SHEET_RADIUS = tokens.radius.lg;
|
|
59
|
-
|
|
60
|
-
/** The centred panel: at most 480 wide. */
|
|
61
58
|
const PANEL = {
|
|
62
59
|
width: "100%",
|
|
63
60
|
maxWidth: 480,
|
|
64
61
|
alignSelf: "center"
|
|
65
62
|
};
|
|
66
|
-
/** The compact sheet: its bottom corners sit below the screen edge, and it shrinks to the room, as `SheetContent`. */
|
|
67
63
|
const SHEET = {
|
|
68
64
|
marginBottom: -SHEET_RADIUS,
|
|
69
65
|
flexShrink: 1
|
|
@@ -275,11 +271,6 @@ export function DialogContent(t0) {
|
|
|
275
271
|
}
|
|
276
272
|
return t23;
|
|
277
273
|
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* The web compact handle: an `h-1 w-12` pill in `surface-tertiary`, in a
|
|
281
|
-
* 44-high row. The whole sheet drags (`SheetDragView`), the handle with it.
|
|
282
|
-
*/
|
|
283
274
|
function DialogHandle() {
|
|
284
275
|
const $ = _c(2);
|
|
285
276
|
const scheme = useScheme();
|
|
@@ -361,9 +352,6 @@ export function DialogHeader(t0) {
|
|
|
361
352
|
return t2;
|
|
362
353
|
}
|
|
363
354
|
|
|
364
|
-
// Text colours are styles (`textStyle`), so they follow the colour scheme in
|
|
365
|
-
// apps whose `text-foreground` does not. Recolour with `style`, not `className`.
|
|
366
|
-
|
|
367
355
|
/** Web `text-lg font-medium`. */
|
|
368
356
|
export function DialogTitle(t0) {
|
|
369
357
|
const $ = _c(17);
|
package/dist/DropdownMenu.jsx
CHANGED
|
@@ -113,14 +113,10 @@ export function DropdownMenu(t0) {
|
|
|
113
113
|
export function isMeasuredRect(rect) {
|
|
114
114
|
return rect.width > 0 && rect.height > 0;
|
|
115
115
|
}
|
|
116
|
-
/** The wrapper shrink-wraps the trigger in a flex row (such as the PromptInput `leading` slot). */
|
|
117
116
|
const TRIGGER_HOST = {
|
|
118
117
|
alignSelf: "flex-start"
|
|
119
118
|
};
|
|
120
|
-
|
|
121
|
-
/** Frames to wait for layout to settle, when a view reads empty. */
|
|
122
119
|
const MEASURE_RETRIES = 2;
|
|
123
|
-
/** Last-resort trigger size when a press has a touch point but no `onLayout` size and no style size: a 44 point touch target. */
|
|
124
120
|
const FALLBACK_SIZE = {
|
|
125
121
|
width: 44,
|
|
126
122
|
height: 44
|
|
@@ -420,12 +416,8 @@ export function dropdownMenuPosition({
|
|
|
420
416
|
const above = trigger.y - sideOffset;
|
|
421
417
|
const roomBelow = maxBottom - below;
|
|
422
418
|
const roomAbove = above - minTop;
|
|
423
|
-
// Not measured yet (0): flip only when almost no room is below, so a bottom
|
|
424
|
-
// trigger never gets a first layout with a tiny `maxHeight`.
|
|
425
419
|
const tooTight = contentHeight > 0 ? contentHeight > roomBelow : roomBelow < DROPDOWN_MENU.itemHeight;
|
|
426
420
|
if (tooTight && roomAbove > roomBelow) {
|
|
427
|
-
// `top` only: `bottom` is ignored inside `WindowLayerHost` on Android. The menu's
|
|
428
|
-
// bottom edge lands on `above`; before measure, a two-row estimate stands in.
|
|
429
421
|
const height = contentHeight > 0 ? contentHeight : Math.min(roomAbove, DROPDOWN_MENU.itemHeight * 2 + DROPDOWN_MENU.padding * 2);
|
|
430
422
|
return {
|
|
431
423
|
...horizontal,
|
|
@@ -790,8 +782,6 @@ export function DropdownMenuContent(t0) {
|
|
|
790
782
|
}
|
|
791
783
|
return t32;
|
|
792
784
|
}
|
|
793
|
-
|
|
794
|
-
/** Item type and icon size: the web `text-sm` with a 16 icon in 48 rows, or `text-lg` with a 22 icon and 56 rows with larger text. */
|
|
795
785
|
function itemMetrics(largerText) {
|
|
796
786
|
return largerText ? {
|
|
797
787
|
text: sizeStyle("text-lg"),
|
package/dist/EmptyState.jsx
CHANGED
|
@@ -111,9 +111,6 @@ function EmptyStateView(t0) {
|
|
|
111
111
|
return t15;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
// Composable parts with the web names (`EmptyState.Root`, `.Icon`, `.Title`,
|
|
115
|
-
// `.Description`, `.Actions`). `Root` sets the variant, the parts read it.
|
|
116
|
-
|
|
117
114
|
/** `default`: open centred block with a large bare icon. `panel`: filled rounded block, icon in a tile. */
|
|
118
115
|
|
|
119
116
|
const EmptyStateContext = createContext("default");
|
package/dist/ExpoWebRoot.jsx
CHANGED
|
@@ -4,12 +4,6 @@ import { tokens } from "./tokens";
|
|
|
4
4
|
const {
|
|
5
5
|
ScrollViewStyleReset
|
|
6
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
7
|
const emptyDocument = {};
|
|
14
8
|
const useServerDocument = expoRouterHtml.useServerDocumentContext ?? (() => emptyDocument);
|
|
15
9
|
|
package/dist/Field.jsx
CHANGED
|
@@ -16,11 +16,6 @@ function useField(part) {
|
|
|
16
16
|
}
|
|
17
17
|
return value;
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* A labelled control: a `gap-2` column. It generates the `nativeID` that
|
|
21
|
-
* `FieldLabel` sets and `FieldControl` points at with `accessibilityLabelledBy`.
|
|
22
|
-
* A plain `Input` does not need it.
|
|
23
|
-
*/
|
|
24
19
|
function Field(t0) {
|
|
25
20
|
const $ = _c(15);
|
|
26
21
|
let className;
|
|
@@ -86,8 +81,6 @@ function Field(t0) {
|
|
|
86
81
|
}
|
|
87
82
|
return t4;
|
|
88
83
|
}
|
|
89
|
-
|
|
90
|
-
/** `Label` with the `nativeID` of the nearest `Field`. */
|
|
91
84
|
function FieldLabel(props) {
|
|
92
85
|
const $ = _c(6);
|
|
93
86
|
const field = useField("FieldLabel");
|
|
@@ -121,12 +114,6 @@ function FieldLabel(props) {
|
|
|
121
114
|
}
|
|
122
115
|
return t2;
|
|
123
116
|
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* `Input` that names itself from the `FieldLabel` of the nearest `Field`
|
|
127
|
-
* (`accessibilityLabelledBy`, Android). With no `FieldLabel` rendered it
|
|
128
|
-
* keeps the `accessibilityLabel` you pass, which is the fallback on iOS too.
|
|
129
|
-
*/
|
|
130
117
|
function FieldControl(props) {
|
|
131
118
|
const $ = _c(6);
|
|
132
119
|
const field = useField("FieldControl");
|
|
@@ -152,8 +139,6 @@ function FieldControl(props) {
|
|
|
152
139
|
}
|
|
153
140
|
return t1;
|
|
154
141
|
}
|
|
155
|
-
|
|
156
|
-
/** Muted hint under the control. */
|
|
157
142
|
function FieldDescription(t0) {
|
|
158
143
|
const $ = _c(19);
|
|
159
144
|
let className;
|
|
@@ -224,8 +209,6 @@ function FieldDescription(t0) {
|
|
|
224
209
|
}
|
|
225
210
|
return t5;
|
|
226
211
|
}
|
|
227
|
-
|
|
228
|
-
/** Error message under the control, read out when it appears. */
|
|
229
212
|
function FieldError(t0) {
|
|
230
213
|
const $ = _c(20);
|
|
231
214
|
let className;
|
package/dist/FloatingSurface.jsx
CHANGED
|
@@ -4,11 +4,13 @@ import { glassMode, loadBlur } from "./blur";
|
|
|
4
4
|
import { cn } from "./cn";
|
|
5
5
|
import { hasDefiniteHeight } from "./definiteSize";
|
|
6
6
|
import { floatingFill, floatingHairline, floatingShadow, floatingSolidFill, FLOATING_RADIUS } from "./floating";
|
|
7
|
+
import { useGlass } from "./glass";
|
|
7
8
|
import { useGlassBlurTarget } from "./glassBlur";
|
|
9
|
+
import { useSurface } from "./theme";
|
|
8
10
|
import { useReduceTransparency } from "./useReduceTransparency";
|
|
9
11
|
import { useScheme } from "./useScheme";
|
|
10
12
|
export function FloatingSurface(t0) {
|
|
11
|
-
const $ = _c(
|
|
13
|
+
const $ = _c(54);
|
|
12
14
|
let children;
|
|
13
15
|
let className;
|
|
14
16
|
let props;
|
|
@@ -48,150 +50,165 @@ export function FloatingSurface(t0) {
|
|
|
48
50
|
const elevated = t3 === undefined ? true : t3;
|
|
49
51
|
const colorScheme = useScheme();
|
|
50
52
|
const reduceTransparency = useReduceTransparency();
|
|
53
|
+
const flat = useSurface() === "flat";
|
|
54
|
+
const glass = useGlass("surface");
|
|
51
55
|
const blurTarget = useGlassBlurTarget();
|
|
52
56
|
const BlurView = loadBlur()?.BlurView;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
const t4 = reduceTransparency || flat;
|
|
58
|
+
let t5;
|
|
59
|
+
if ($[8] !== blur || $[9] !== t4) {
|
|
60
|
+
t5 = glassMode({
|
|
56
61
|
os: Platform.OS,
|
|
57
62
|
blur,
|
|
58
|
-
reduceTransparency,
|
|
63
|
+
reduceTransparency: t4,
|
|
59
64
|
hasBlurView: BlurView != null
|
|
60
65
|
});
|
|
61
66
|
$[8] = blur;
|
|
62
|
-
$[9] =
|
|
63
|
-
$[10] =
|
|
67
|
+
$[9] = t4;
|
|
68
|
+
$[10] = t5;
|
|
64
69
|
} else {
|
|
65
|
-
|
|
70
|
+
t5 = $[10];
|
|
66
71
|
}
|
|
67
|
-
const mode =
|
|
72
|
+
const mode = t5;
|
|
68
73
|
const isDark = colorScheme === "dark";
|
|
69
74
|
const opaqueFill = isDark ? floatingSolidFill.dark : floatingSolidFill.light;
|
|
70
75
|
const translucentFill = isDark ? floatingFill.dark : floatingFill.light;
|
|
71
76
|
const border = isDark ? floatingHairline.dark : floatingHairline.light;
|
|
72
77
|
const fill = mode === "solid" ? opaqueFill : translucentFill;
|
|
73
|
-
let
|
|
78
|
+
let t6;
|
|
74
79
|
if ($[11] !== className) {
|
|
75
|
-
|
|
80
|
+
t6 = cn(className);
|
|
76
81
|
$[11] = className;
|
|
77
|
-
$[12] =
|
|
82
|
+
$[12] = t6;
|
|
78
83
|
} else {
|
|
79
|
-
|
|
84
|
+
t6 = $[12];
|
|
80
85
|
}
|
|
81
|
-
let
|
|
86
|
+
let t7;
|
|
82
87
|
if ($[13] !== radius) {
|
|
83
|
-
|
|
88
|
+
t7 = {
|
|
84
89
|
borderRadius: radius
|
|
85
90
|
};
|
|
86
91
|
$[13] = radius;
|
|
87
|
-
$[14] =
|
|
92
|
+
$[14] = t7;
|
|
88
93
|
} else {
|
|
89
|
-
|
|
94
|
+
t7 = $[14];
|
|
90
95
|
}
|
|
91
|
-
const
|
|
92
|
-
let
|
|
96
|
+
const t8 = elevated ? floatingShadow : null;
|
|
97
|
+
let t9;
|
|
93
98
|
if ($[15] !== fill) {
|
|
94
|
-
|
|
99
|
+
t9 = {
|
|
95
100
|
backgroundColor: fill
|
|
96
101
|
};
|
|
97
102
|
$[15] = fill;
|
|
98
|
-
$[16] =
|
|
103
|
+
$[16] = t9;
|
|
99
104
|
} else {
|
|
100
|
-
|
|
105
|
+
t9 = $[16];
|
|
101
106
|
}
|
|
102
|
-
let
|
|
103
|
-
if ($[17] !== style || $[18] !==
|
|
104
|
-
|
|
107
|
+
let t10;
|
|
108
|
+
if ($[17] !== style || $[18] !== t7 || $[19] !== t8 || $[20] !== t9) {
|
|
109
|
+
t10 = [t7, t8, style, t9];
|
|
105
110
|
$[17] = style;
|
|
106
|
-
$[18] =
|
|
107
|
-
$[19] =
|
|
108
|
-
$[20] =
|
|
109
|
-
$[21] =
|
|
111
|
+
$[18] = t7;
|
|
112
|
+
$[19] = t8;
|
|
113
|
+
$[20] = t9;
|
|
114
|
+
$[21] = t10;
|
|
110
115
|
} else {
|
|
111
|
-
|
|
116
|
+
t10 = $[21];
|
|
112
117
|
}
|
|
113
|
-
const
|
|
114
|
-
let
|
|
115
|
-
if ($[22] !== border || $[23] !== radius || $[24] !==
|
|
116
|
-
|
|
118
|
+
const t11 = mode === "blur" ? "transparent" : fill;
|
|
119
|
+
let t12;
|
|
120
|
+
if ($[22] !== border || $[23] !== radius || $[24] !== t11) {
|
|
121
|
+
t12 = {
|
|
117
122
|
borderRadius: radius,
|
|
118
123
|
borderWidth: StyleSheet.hairlineWidth,
|
|
119
124
|
borderColor: border,
|
|
120
|
-
backgroundColor:
|
|
125
|
+
backgroundColor: t11
|
|
121
126
|
};
|
|
122
127
|
$[22] = border;
|
|
123
128
|
$[23] = radius;
|
|
124
|
-
$[24] =
|
|
125
|
-
$[25] =
|
|
126
|
-
} else {
|
|
127
|
-
t11 = $[25];
|
|
128
|
-
}
|
|
129
|
-
const t12 = hasDefiniteHeight(style) ? styles.fill : null;
|
|
130
|
-
let t13;
|
|
131
|
-
if ($[26] !== t11 || $[27] !== t12) {
|
|
132
|
-
t13 = [styles.clip, t11, Platform.OS === "ios" ? styles.continuous : null, t12];
|
|
133
|
-
$[26] = t11;
|
|
134
|
-
$[27] = t12;
|
|
135
|
-
$[28] = t13;
|
|
129
|
+
$[24] = t11;
|
|
130
|
+
$[25] = t12;
|
|
136
131
|
} else {
|
|
137
|
-
|
|
132
|
+
t12 = $[25];
|
|
138
133
|
}
|
|
134
|
+
const t13 = hasDefiniteHeight(style) ? styles.fill : null;
|
|
139
135
|
let t14;
|
|
136
|
+
if ($[26] !== t12 || $[27] !== t13) {
|
|
137
|
+
t14 = [styles.clip, t12, Platform.OS === "ios" ? styles.continuous : null, t13];
|
|
138
|
+
$[26] = t12;
|
|
139
|
+
$[27] = t13;
|
|
140
|
+
$[28] = t14;
|
|
141
|
+
} else {
|
|
142
|
+
t14 = $[28];
|
|
143
|
+
}
|
|
144
|
+
let t15;
|
|
140
145
|
if ($[29] !== blurTarget || $[30] !== isDark || $[31] !== mode) {
|
|
141
|
-
|
|
146
|
+
t15 = mode === "blur" && BlurView ? <BlurView pointerEvents="none" tint={isDark ? "systemMaterialDark" : "systemMaterialLight"} intensity={70} experimentalBlurMethod={Platform.OS === "android" ? "dimezisBlurView" : undefined} blurMethod="dimezisBlurView" blurReductionFactor={3} blurTarget={blurTarget ?? undefined} style={StyleSheet.absoluteFill} /> : null;
|
|
142
147
|
$[29] = blurTarget;
|
|
143
148
|
$[30] = isDark;
|
|
144
149
|
$[31] = mode;
|
|
145
|
-
$[32] =
|
|
150
|
+
$[32] = t15;
|
|
146
151
|
} else {
|
|
147
|
-
|
|
152
|
+
t15 = $[32];
|
|
148
153
|
}
|
|
149
|
-
let
|
|
154
|
+
let t16;
|
|
150
155
|
if ($[33] !== mode || $[34] !== translucentFill) {
|
|
151
|
-
|
|
156
|
+
t16 = mode === "blur" && Platform.OS === "android" ? <View pointerEvents="none" style={[StyleSheet.absoluteFill, {
|
|
152
157
|
backgroundColor: translucentFill
|
|
153
158
|
}]} /> : null;
|
|
154
159
|
$[33] = mode;
|
|
155
160
|
$[34] = translucentFill;
|
|
156
|
-
$[35] =
|
|
161
|
+
$[35] = t16;
|
|
157
162
|
} else {
|
|
158
|
-
|
|
163
|
+
t16 = $[35];
|
|
159
164
|
}
|
|
160
|
-
let
|
|
165
|
+
let t17;
|
|
161
166
|
if ($[36] !== mode || $[37] !== translucentFill) {
|
|
162
|
-
|
|
167
|
+
t17 = mode === "backdrop" ? <View pointerEvents="none" className="absolute inset-0 backdrop-blur-xl" style={{
|
|
163
168
|
backgroundColor: translucentFill
|
|
164
169
|
}} /> : null;
|
|
165
170
|
$[36] = mode;
|
|
166
171
|
$[37] = translucentFill;
|
|
167
|
-
$[38] =
|
|
172
|
+
$[38] = t17;
|
|
168
173
|
} else {
|
|
169
|
-
|
|
174
|
+
t17 = $[38];
|
|
170
175
|
}
|
|
171
|
-
let
|
|
172
|
-
if ($[39] !==
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[44] = t17;
|
|
176
|
+
let t18;
|
|
177
|
+
if ($[39] !== glass || $[40] !== radius) {
|
|
178
|
+
t18 = glass ? <View pointerEvents="none" style={[StyleSheet.absoluteFill, {
|
|
179
|
+
borderRadius: radius
|
|
180
|
+
}, glass]} /> : null;
|
|
181
|
+
$[39] = glass;
|
|
182
|
+
$[40] = radius;
|
|
183
|
+
$[41] = t18;
|
|
180
184
|
} else {
|
|
181
|
-
|
|
185
|
+
t18 = $[41];
|
|
182
186
|
}
|
|
183
|
-
let
|
|
184
|
-
if ($[
|
|
185
|
-
|
|
186
|
-
$[
|
|
187
|
+
let t19;
|
|
188
|
+
if ($[42] !== children || $[43] !== t14 || $[44] !== t15 || $[45] !== t16 || $[46] !== t17 || $[47] !== t18) {
|
|
189
|
+
t19 = <View style={t14}>{t15}{t16}{t17}{children}{t18}</View>;
|
|
190
|
+
$[42] = children;
|
|
191
|
+
$[43] = t14;
|
|
192
|
+
$[44] = t15;
|
|
193
|
+
$[45] = t16;
|
|
187
194
|
$[46] = t17;
|
|
188
|
-
$[47] =
|
|
189
|
-
$[48] =
|
|
190
|
-
|
|
195
|
+
$[47] = t18;
|
|
196
|
+
$[48] = t19;
|
|
197
|
+
} else {
|
|
198
|
+
t19 = $[48];
|
|
199
|
+
}
|
|
200
|
+
let t20;
|
|
201
|
+
if ($[49] !== props || $[50] !== t10 || $[51] !== t19 || $[52] !== t6) {
|
|
202
|
+
t20 = <View className={t6} {...props} style={t10}>{t19}</View>;
|
|
203
|
+
$[49] = props;
|
|
204
|
+
$[50] = t10;
|
|
205
|
+
$[51] = t19;
|
|
206
|
+
$[52] = t6;
|
|
207
|
+
$[53] = t20;
|
|
191
208
|
} else {
|
|
192
|
-
|
|
209
|
+
t20 = $[53];
|
|
193
210
|
}
|
|
194
|
-
return
|
|
211
|
+
return t20;
|
|
195
212
|
}
|
|
196
213
|
export function GlassSheetBackground(t0) {
|
|
197
214
|
const $ = _c(3);
|
|
@@ -213,8 +230,6 @@ export function GlassSheetBackground(t0) {
|
|
|
213
230
|
const styles = StyleSheet.create({
|
|
214
231
|
clip: {
|
|
215
232
|
overflow: "hidden",
|
|
216
|
-
// A surface held shorter than its content (a sheet in a short window)
|
|
217
|
-
// shrinks the clip with it, so a scroll view inside can scroll.
|
|
218
233
|
flexShrink: 1
|
|
219
234
|
},
|
|
220
235
|
fill: {
|
package/dist/FloatingTabBar.jsx
CHANGED
|
@@ -12,14 +12,7 @@ import { useReduceMotion } from "./useReduceMotion";
|
|
|
12
12
|
import { useScheme } from "./useScheme";
|
|
13
13
|
import { FLOATING_PILL_RADIUS, tabBarHeight, tabBarSlotStyle } from "./floating";
|
|
14
14
|
import { usePressed } from "./usePressed";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Space between the bar edge and the tabs, on every side of the active pill,
|
|
18
|
-
* in points. The same all round, so the pill follows the bar's curve.
|
|
19
|
-
*/
|
|
20
15
|
const TAB_BAR_PADDING = 4;
|
|
21
|
-
|
|
22
|
-
/** The web `--tabs-dur` (200ms) and `--tabs-ease` (`tokens.css`). */
|
|
23
16
|
const PILL_SLIDE = {
|
|
24
17
|
duration: 200,
|
|
25
18
|
easing: Easing.bezier(0.22, 1, 0.36, 1)
|
|
@@ -190,12 +183,6 @@ export function FloatingTabBar(t0) {
|
|
|
190
183
|
}
|
|
191
184
|
return t9;
|
|
192
185
|
}
|
|
193
|
-
/**
|
|
194
|
-
* One tab. React Compiler (the package build) memoises it, so a switch
|
|
195
|
-
* renders only the two tabs whose focus changed. Its props are stable between
|
|
196
|
-
* switches: `route`, `emitter` and `navigateToTab` keep their identity, and
|
|
197
|
-
* `tabBarIcon` is the caller's function.
|
|
198
|
-
*/
|
|
199
186
|
function TabBarItem(t0) {
|
|
200
187
|
const $ = _c(33);
|
|
201
188
|
const {
|
|
@@ -325,16 +312,6 @@ function TabBarItem(t0) {
|
|
|
325
312
|
}
|
|
326
313
|
return t13;
|
|
327
314
|
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* The pill behind tab `index` of `count` drawn tabs: one tab wide (they share
|
|
331
|
-
* the row equally), `TAB_BAR_PADDING` inside the bar, in
|
|
332
|
-
* `floatingTabPillColors` (the muted `--default` in light, `--segment` in
|
|
333
|
-
* dark, so it shows on the glass bar) and the `TabsTrigger` pills outline.
|
|
334
|
-
* It slides to a newly focused tab, as the web segmented pill does,
|
|
335
|
-
* and moves at once with Reduce Motion. Behind the tablist, so assistive tech
|
|
336
|
-
* reads only the tabs.
|
|
337
|
-
*/
|
|
338
315
|
function ActiveTabPill(t0) {
|
|
339
316
|
const $ = _c(14);
|
|
340
317
|
const {
|
package/dist/IconButton.jsx
CHANGED
|
@@ -7,7 +7,6 @@ import { withAlpha } from "./palette";
|
|
|
7
7
|
import { useLargerText } from "./theme";
|
|
8
8
|
import { tokens } from "./tokens";
|
|
9
9
|
import { useScheme } from "./useScheme";
|
|
10
|
-
/** Diameter and icon size per size, a step up with larger text. */
|
|
11
10
|
const METRICS = {
|
|
12
11
|
regular: {
|
|
13
12
|
sm: [32, 16],
|
package/dist/LoadingState.jsx
CHANGED
|
@@ -76,10 +76,6 @@ export function LoadingState(t0) {
|
|
|
76
76
|
}
|
|
77
77
|
return t8;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
/** Column colours, left to right. */
|
|
81
|
-
|
|
82
|
-
/** Owns the clock, so unmounting it (Reduce Motion, `paused`) stops the frame callback. */
|
|
83
79
|
function RunningDriveGrid(t0) {
|
|
84
80
|
const $ = _c(4);
|
|
85
81
|
const {
|
|
@@ -104,8 +100,6 @@ function RunningDriveGrid(t0) {
|
|
|
104
100
|
}
|
|
105
101
|
return t1;
|
|
106
102
|
}
|
|
107
|
-
|
|
108
|
-
/** The nine cells. No `elapsed`: the still frame. */
|
|
109
103
|
function DriveGrid(t0) {
|
|
110
104
|
const $ = _c(11);
|
|
111
105
|
const {
|
package/dist/PasswordInput.jsx
CHANGED
|
@@ -8,7 +8,6 @@ import { fieldStyle, fieldTextStyle, touchSlop, typeStyle } from "./controlStyle
|
|
|
8
8
|
import { tokens } from "./tokens";
|
|
9
9
|
import { useLargerText } from "./theme";
|
|
10
10
|
import { useScheme } from "./useScheme";
|
|
11
|
-
/** Toggle metrics: painted 24 (32 with larger text), 44 with its hit slop. */
|
|
12
11
|
function passwordToggleSize(largerText) {
|
|
13
12
|
return largerText ? {
|
|
14
13
|
button: 32,
|
|
@@ -22,20 +21,6 @@ function passwordToggleSize(largerText) {
|
|
|
22
21
|
paddingRight: 44
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* `Input` for a password, with a show/hide eye button at the end. The text is
|
|
28
|
-
* hidden at first. The toggle flips `secureTextEntry` on the same mounted
|
|
29
|
-
* field, so focus and the cursor stay where they were. The `secureTextEntry`
|
|
30
|
-
* prop is not accepted: the toggle owns it. Every other `Input` prop, `ref`
|
|
31
|
-
* and `testID` pass through. The toggle is labelled "Show password" while the
|
|
32
|
-
* text is hidden and "Hide password" while it shows, has the test ID
|
|
33
|
-
* `${testID}-toggle` (`password-input-toggle` without a `testID`), is painted
|
|
34
|
-
* at 24 and reaches 44 with its hit slop (`touchSlop`). It is hidden when the
|
|
35
|
-
* field is not editable. Inside a `ScrollView`, set
|
|
36
|
-
* `keyboardShouldPersistTaps="handled"` so the first tap toggles while the
|
|
37
|
-
* keyboard is up.
|
|
38
|
-
*/
|
|
39
24
|
const PasswordInput = React.forwardRef((t0, ref) => {
|
|
40
25
|
const $ = _c(21);
|
|
41
26
|
let className;
|
package/dist/PillTabs.jsx
CHANGED
|
@@ -6,6 +6,7 @@ import { selectionHaptic } from "./haptics";
|
|
|
6
6
|
import { MIN_TOUCH_TARGET, tabColors, tabTriggerSize, touchSlop, typeStyle } from "./controlStyles";
|
|
7
7
|
import { centredTabScroll } from "./pagerSwipe";
|
|
8
8
|
import { useTabIndicator, useTabLabelStyle } from "./tabIndicator";
|
|
9
|
+
import { useGlass } from "./glass";
|
|
9
10
|
import { useLargerText } from "./theme";
|
|
10
11
|
import { useScheme } from "./useScheme";
|
|
11
12
|
|
|
@@ -22,7 +23,7 @@ import { useScheme } from "./useScheme";
|
|
|
22
23
|
* a press still changes `value` at once.
|
|
23
24
|
*/
|
|
24
25
|
export function PillTabs(t0) {
|
|
25
|
-
const $ = _c(
|
|
26
|
+
const $ = _c(36);
|
|
26
27
|
const {
|
|
27
28
|
options,
|
|
28
29
|
value,
|
|
@@ -31,6 +32,7 @@ export function PillTabs(t0) {
|
|
|
31
32
|
} = t0;
|
|
32
33
|
const largerText = useLargerText();
|
|
33
34
|
const scheme = useScheme();
|
|
35
|
+
const glass = useGlass("control");
|
|
34
36
|
let t1;
|
|
35
37
|
let trigger;
|
|
36
38
|
if ($[0] !== largerText) {
|
|
@@ -90,60 +92,61 @@ export function PillTabs(t0) {
|
|
|
90
92
|
t5 = $[8];
|
|
91
93
|
}
|
|
92
94
|
let t6;
|
|
93
|
-
if ($[9] !== indicator.measured || $[
|
|
95
|
+
if ($[9] !== glass || $[10] !== indicator.measured || $[11] !== indicator.style || $[12] !== scheme) {
|
|
94
96
|
t6 = indicator.measured ? <Animated.View pointerEvents="none" style={[{
|
|
95
97
|
position: "absolute",
|
|
96
98
|
left: 0,
|
|
97
99
|
borderRadius: 9999
|
|
98
100
|
}, {
|
|
99
101
|
backgroundColor: tabColors("pills", true, scheme).backgroundColor
|
|
100
|
-
}, indicator.style]} /> : null;
|
|
101
|
-
$[9] =
|
|
102
|
-
$[10] = indicator.
|
|
103
|
-
$[11] =
|
|
104
|
-
$[12] =
|
|
102
|
+
}, glass, indicator.style]} /> : null;
|
|
103
|
+
$[9] = glass;
|
|
104
|
+
$[10] = indicator.measured;
|
|
105
|
+
$[11] = indicator.style;
|
|
106
|
+
$[12] = scheme;
|
|
107
|
+
$[13] = t6;
|
|
105
108
|
} else {
|
|
106
|
-
t6 = $[
|
|
109
|
+
t6 = $[13];
|
|
107
110
|
}
|
|
108
111
|
let t7;
|
|
109
|
-
if ($[
|
|
112
|
+
if ($[14] !== indicator || $[15] !== onChange || $[16] !== options || $[17] !== progress || $[18] !== slop || $[19] !== trigger || $[20] !== value) {
|
|
110
113
|
let t8;
|
|
111
|
-
if ($[
|
|
114
|
+
if ($[22] !== indicator || $[23] !== onChange || $[24] !== progress || $[25] !== slop || $[26] !== trigger || $[27] !== value) {
|
|
112
115
|
t8 = (tab_0, index) => <PillTab key={tab_0.id} label={tab_0.label} testID={tab_0.testID} index={index} selected={value === tab_0.id} filled={!indicator.measured} progress={progress} trigger={trigger} hitSlop={slop} onLayout={indicator.onLayout(index)} onPress={() => onChange(tab_0.id)} />;
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
116
|
+
$[22] = indicator;
|
|
117
|
+
$[23] = onChange;
|
|
118
|
+
$[24] = progress;
|
|
119
|
+
$[25] = slop;
|
|
120
|
+
$[26] = trigger;
|
|
121
|
+
$[27] = value;
|
|
122
|
+
$[28] = t8;
|
|
120
123
|
} else {
|
|
121
|
-
t8 = $[
|
|
124
|
+
t8 = $[28];
|
|
122
125
|
}
|
|
123
126
|
t7 = options.map(t8);
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
127
|
+
$[14] = indicator;
|
|
128
|
+
$[15] = onChange;
|
|
129
|
+
$[16] = options;
|
|
130
|
+
$[17] = progress;
|
|
131
|
+
$[18] = slop;
|
|
132
|
+
$[19] = trigger;
|
|
133
|
+
$[20] = value;
|
|
134
|
+
$[21] = t7;
|
|
132
135
|
} else {
|
|
133
|
-
t7 = $[
|
|
136
|
+
t7 = $[21];
|
|
134
137
|
}
|
|
135
138
|
let t8;
|
|
136
|
-
if ($[
|
|
139
|
+
if ($[29] !== scroll || $[30] !== t2 || $[31] !== t4 || $[32] !== t5 || $[33] !== t6 || $[34] !== t7) {
|
|
137
140
|
t8 = <Animated.ScrollView ref={scroll} horizontal={true} accessibilityRole="tablist" showsHorizontalScrollIndicator={false} fadingEdgeLength={16} onLayout={t2} style={t4} contentContainerStyle={t5}>{t6}{t7}</Animated.ScrollView>;
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
141
|
+
$[29] = scroll;
|
|
142
|
+
$[30] = t2;
|
|
143
|
+
$[31] = t4;
|
|
144
|
+
$[32] = t5;
|
|
145
|
+
$[33] = t6;
|
|
146
|
+
$[34] = t7;
|
|
147
|
+
$[35] = t8;
|
|
145
148
|
} else {
|
|
146
|
-
t8 = $[
|
|
149
|
+
t8 = $[35];
|
|
147
150
|
}
|
|
148
151
|
return t8;
|
|
149
152
|
}
|
package/dist/SearchInput.jsx
CHANGED
|
@@ -17,19 +17,6 @@ export function searchChange(onChange, onClear) {
|
|
|
17
17
|
if (onClear && next.length === 0) onClear();
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Search field, the web `SearchInput`: a 16 search icon at the start and,
|
|
23
|
-
* while there is text, a clear button (a 14 cross labelled "Clear search") at
|
|
24
|
-
* the end. Controlled with `value` and `onChange(text)`, as on the web. The
|
|
25
|
-
* field has the `Input` look (`fieldStyle`) at the web sizes from
|
|
26
|
-
* `searchInputSize`. The clear button is painted at the web 24 and reaches 44
|
|
27
|
-
* with its hit slop (`touchSlop`). It clears at once and leaves focus where it
|
|
28
|
-
* was, as the default web clear does after its dissolve. It is hidden when the
|
|
29
|
-
* field is not editable. Inside a `ScrollView`, set
|
|
30
|
-
* `keyboardShouldPersistTaps="handled"` so the first tap clears while the
|
|
31
|
-
* keyboard is up. The web `shortcut` hint and `toolbar` variant are not ported.
|
|
32
|
-
*/
|
|
33
20
|
const SearchInput = React.forwardRef((t0, ref) => {
|
|
34
21
|
const $ = _c(108);
|
|
35
22
|
let className;
|
package/dist/SectionLabel.jsx
CHANGED
|
@@ -4,7 +4,6 @@ import { cn } from "./cn";
|
|
|
4
4
|
import { sizeStyle, textStyle, typeStyle } from "./controlStyles";
|
|
5
5
|
import { useLargerText } from "./theme";
|
|
6
6
|
import { useScheme } from "./useScheme";
|
|
7
|
-
/** Letter spacing in em: slightly open, or the web `tracking-widest` (0.1em) in capitals. */
|
|
8
7
|
const TRACKING = {
|
|
9
8
|
regular: 0.02,
|
|
10
9
|
uppercase: 0.1
|