@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
|
@@ -3,9 +3,6 @@ import { Text, View } from "react-native";
|
|
|
3
3
|
import Animated, { ReduceMotion, SharedTransition } from "react-native-reanimated";
|
|
4
4
|
import { useReduceMotion } from "./useReduceMotion";
|
|
5
5
|
|
|
6
|
-
// Shared element transitions (Reanimated 4.8): a view with the same
|
|
7
|
-
// `sharedTransitionTag` on two screens moves and resizes from one to the other
|
|
8
|
-
// as the screens change. Docs:
|
|
9
6
|
// https://docs.swmansion.com/react-native-reanimated/docs/shared-element-transitions/shared-transition/
|
|
10
7
|
// https://docs.swmansion.com/react-native-reanimated/docs/shared-element-transitions/children-of-shared-views/
|
|
11
8
|
|
package/dist/Skeleton.jsx
CHANGED
|
@@ -141,8 +141,6 @@ export function CardSkeleton() {
|
|
|
141
141
|
}
|
|
142
142
|
return t3;
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
/** Title widths, row by row, so a list of placeholders does not read as one block. */
|
|
146
144
|
const TITLE_WIDTHS = ["72%", "54%", "84%", "62%", "46%", "78%"];
|
|
147
145
|
/**
|
|
148
146
|
* A list row's placeholder, shaped like the row it stands for: a round mark,
|
package/dist/Spinner.jsx
CHANGED
|
@@ -3,9 +3,7 @@ import { ActivityIndicator, Platform, View } from "react-native";
|
|
|
3
3
|
import { cn } from "./cn";
|
|
4
4
|
import { tokens } from "./tokens";
|
|
5
5
|
import { useScheme } from "./useScheme";
|
|
6
|
-
/** The system `"small"` spinner box on iOS, Android and React Native Web. */
|
|
7
6
|
const SYSTEM_SMALL = 20;
|
|
8
|
-
/** Web `size-4`. No platform has a 16 spinner, so `sm` is the small one scaled down in a 16 box. */
|
|
9
7
|
const SM = 16;
|
|
10
8
|
function systemSize(size) {
|
|
11
9
|
if (typeof size === "number") {
|
package/dist/StatusDot.jsx
CHANGED
|
@@ -10,11 +10,6 @@ import { useScheme } from "./useScheme";
|
|
|
10
10
|
* such as "synced" or "new", in blue.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* The `info` blue: Tailwind `blue-500` in light and the lighter `blue-400` in
|
|
15
|
-
* dark. Local to the dot: `tokens.css` has no `--info`, so it is not a
|
|
16
|
-
* `palette` key.
|
|
17
|
-
*/
|
|
18
13
|
const INFO = {
|
|
19
14
|
light: "#3b82f6",
|
|
20
15
|
dark: "#60a5fa"
|
package/dist/Switch.jsx
CHANGED
|
@@ -4,10 +4,11 @@ import { Switch as PrimitiveSwitch } from "./primitives/switch";
|
|
|
4
4
|
import { cn } from "./cn";
|
|
5
5
|
import { selectionHaptic } from "./haptics";
|
|
6
6
|
import { switchColors, switchSize, touchSlop } from "./controlStyles";
|
|
7
|
+
import { useGlass } from "./glass";
|
|
7
8
|
import { useLargerText } from "./theme";
|
|
8
9
|
import { useScheme } from "./useScheme";
|
|
9
10
|
const Switch = React.forwardRef((t0, ref) => {
|
|
10
|
-
const $ = _c(
|
|
11
|
+
const $ = _c(37);
|
|
11
12
|
let checked;
|
|
12
13
|
let offColor;
|
|
13
14
|
let onCheckedChange;
|
|
@@ -58,6 +59,7 @@ const Switch = React.forwardRef((t0, ref) => {
|
|
|
58
59
|
t2 = $[11];
|
|
59
60
|
}
|
|
60
61
|
const colors = t2;
|
|
62
|
+
const glass = useGlass("small");
|
|
61
63
|
const trackColor = resolvedValue ? onColor : offColor;
|
|
62
64
|
const size = switchSize(useLargerText(), sizeName);
|
|
63
65
|
let t3;
|
|
@@ -90,41 +92,49 @@ const Switch = React.forwardRef((t0, ref) => {
|
|
|
90
92
|
} else {
|
|
91
93
|
t7 = $[17];
|
|
92
94
|
}
|
|
93
|
-
|
|
95
|
+
let t8;
|
|
96
|
+
if ($[18] !== colors.thumb || $[19] !== glass) {
|
|
97
|
+
t8 = [colors.thumb, glass];
|
|
98
|
+
$[18] = colors.thumb;
|
|
99
|
+
$[19] = glass;
|
|
100
|
+
$[20] = t8;
|
|
101
|
+
} else {
|
|
102
|
+
t8 = $[20];
|
|
103
|
+
}
|
|
94
104
|
const t9 = cn(size.thumb, resolvedValue ? size.on : size.off);
|
|
95
105
|
const t10 = props.accessibilityState;
|
|
96
106
|
const t11 = Boolean(props.disabled);
|
|
97
107
|
let t12;
|
|
98
|
-
if ($[
|
|
108
|
+
if ($[21] !== props.accessibilityState || $[22] !== resolvedValue || $[23] !== t11) {
|
|
99
109
|
t12 = {
|
|
100
110
|
...t10,
|
|
101
111
|
checked: resolvedValue,
|
|
102
112
|
disabled: t11
|
|
103
113
|
};
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
114
|
+
$[21] = props.accessibilityState;
|
|
115
|
+
$[22] = resolvedValue;
|
|
116
|
+
$[23] = t11;
|
|
117
|
+
$[24] = t12;
|
|
108
118
|
} else {
|
|
109
|
-
t12 = $[
|
|
119
|
+
t12 = $[24];
|
|
110
120
|
}
|
|
111
121
|
let t13;
|
|
112
|
-
if ($[
|
|
122
|
+
if ($[25] !== T0 || $[26] !== handleCheckedChange || $[27] !== props || $[28] !== ref || $[29] !== resolvedValue || $[30] !== t12 || $[31] !== t4 || $[32] !== t6 || $[33] !== t7 || $[34] !== t8 || $[35] !== t9) {
|
|
113
123
|
t13 = <T0 ref={ref} checked={resolvedValue} onCheckedChange={handleCheckedChange} hitSlop={t4} accessibilityRole={t5} className={t6} trackStyle={t7} thumbStyle={t8} thumbClassName={t9} {...props} accessibilityState={t12} />;
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
124
|
+
$[25] = T0;
|
|
125
|
+
$[26] = handleCheckedChange;
|
|
126
|
+
$[27] = props;
|
|
127
|
+
$[28] = ref;
|
|
128
|
+
$[29] = resolvedValue;
|
|
129
|
+
$[30] = t12;
|
|
130
|
+
$[31] = t4;
|
|
131
|
+
$[32] = t6;
|
|
132
|
+
$[33] = t7;
|
|
133
|
+
$[34] = t8;
|
|
134
|
+
$[35] = t9;
|
|
135
|
+
$[36] = t13;
|
|
126
136
|
} else {
|
|
127
|
-
t13 = $[
|
|
137
|
+
t13 = $[36];
|
|
128
138
|
}
|
|
129
139
|
return t13;
|
|
130
140
|
});
|
package/dist/Tabs.jsx
CHANGED
|
@@ -7,6 +7,7 @@ import { MIN_TOUCH_TARGET, tabColors, tabTrackStyle, tabTriggerSize, touchSlop,
|
|
|
7
7
|
import { selectionHaptic } from "./haptics";
|
|
8
8
|
import { useControllableState } from "./primitives/use-controllable-state";
|
|
9
9
|
import { useTabIndicator, useTabLabelStyle } from "./tabIndicator";
|
|
10
|
+
import { useGlass } from "./glass";
|
|
10
11
|
import { useLargerText } from "./theme";
|
|
11
12
|
import { useScheme } from "./useScheme";
|
|
12
13
|
|
|
@@ -17,8 +18,6 @@ const TabsListContext = createContext({
|
|
|
17
18
|
variant: "pills",
|
|
18
19
|
size: "default"
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
/** A trigger's place in its list, for the linked indicator and label colour. */
|
|
22
21
|
const TabIndexContext = createContext(0);
|
|
23
22
|
function useTabs(part) {
|
|
24
23
|
const context = useContext(TabsContext);
|
|
@@ -113,7 +112,7 @@ export function Tabs(t0) {
|
|
|
113
112
|
return t6;
|
|
114
113
|
}
|
|
115
114
|
export function TabsList(t0) {
|
|
116
|
-
const $ = _c(
|
|
115
|
+
const $ = _c(37);
|
|
117
116
|
let children;
|
|
118
117
|
let className;
|
|
119
118
|
let progress;
|
|
@@ -151,6 +150,7 @@ export function TabsList(t0) {
|
|
|
151
150
|
const variant = t1 === undefined ? "pills" : t1;
|
|
152
151
|
const size = t2 === undefined ? "default" : t2;
|
|
153
152
|
const scheme = useScheme();
|
|
153
|
+
const glass = useGlass("control");
|
|
154
154
|
const triggers = Children.toArray(children);
|
|
155
155
|
const indicator = useTabIndicator(progress, triggers.length);
|
|
156
156
|
const t3 = TabsListContext;
|
|
@@ -193,45 +193,46 @@ export function TabsList(t0) {
|
|
|
193
193
|
t8 = $[19];
|
|
194
194
|
}
|
|
195
195
|
let t9;
|
|
196
|
-
if ($[20] !== indicator.measured || $[
|
|
196
|
+
if ($[20] !== glass || $[21] !== indicator.measured || $[22] !== indicator.style || $[23] !== scheme || $[24] !== variant) {
|
|
197
197
|
t9 = indicator.measured ? <Animated.View pointerEvents="none" style={[{
|
|
198
198
|
position: "absolute",
|
|
199
199
|
left: 0,
|
|
200
200
|
borderRadius: 9999
|
|
201
201
|
}, {
|
|
202
202
|
backgroundColor: tabColors(variant, true, scheme).backgroundColor
|
|
203
|
-
}, indicator.style]} /> : null;
|
|
204
|
-
$[20] =
|
|
205
|
-
$[21] = indicator.
|
|
206
|
-
$[22] =
|
|
207
|
-
$[23] =
|
|
208
|
-
$[24] =
|
|
203
|
+
}, glass, indicator.style]} /> : null;
|
|
204
|
+
$[20] = glass;
|
|
205
|
+
$[21] = indicator.measured;
|
|
206
|
+
$[22] = indicator.style;
|
|
207
|
+
$[23] = scheme;
|
|
208
|
+
$[24] = variant;
|
|
209
|
+
$[25] = t9;
|
|
209
210
|
} else {
|
|
210
|
-
t9 = $[
|
|
211
|
+
t9 = $[25];
|
|
211
212
|
}
|
|
212
213
|
const t10 = triggers.map(_temp);
|
|
213
214
|
let t11;
|
|
214
|
-
if ($[
|
|
215
|
+
if ($[26] !== T0 || $[27] !== props || $[28] !== t10 || $[29] !== t7 || $[30] !== t8 || $[31] !== t9) {
|
|
215
216
|
t11 = <T0 accessibilityRole={t5} className={t7} style={t8} {...props}>{t9}{t10}</T0>;
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
217
|
+
$[26] = T0;
|
|
218
|
+
$[27] = props;
|
|
219
|
+
$[28] = t10;
|
|
220
|
+
$[29] = t7;
|
|
221
|
+
$[30] = t8;
|
|
222
|
+
$[31] = t9;
|
|
223
|
+
$[32] = t11;
|
|
223
224
|
} else {
|
|
224
|
-
t11 = $[
|
|
225
|
+
t11 = $[32];
|
|
225
226
|
}
|
|
226
227
|
let t12;
|
|
227
|
-
if ($[
|
|
228
|
+
if ($[33] !== t11 || $[34] !== t3.Provider || $[35] !== t4) {
|
|
228
229
|
t12 = <t3.Provider value={t4}>{t11}</t3.Provider>;
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
230
|
+
$[33] = t11;
|
|
231
|
+
$[34] = t3.Provider;
|
|
232
|
+
$[35] = t4;
|
|
233
|
+
$[36] = t12;
|
|
233
234
|
} else {
|
|
234
|
-
t12 = $[
|
|
235
|
+
t12 = $[36];
|
|
235
236
|
}
|
|
236
237
|
return t12;
|
|
237
238
|
}
|
package/dist/Textarea.jsx
CHANGED
|
@@ -6,7 +6,6 @@ import { fieldStyle, fieldTextStyle, typeStyle } from "./controlStyles";
|
|
|
6
6
|
import { palette } from "./palette";
|
|
7
7
|
import { useLargerText } from "./theme";
|
|
8
8
|
import { useScheme } from "./useScheme";
|
|
9
|
-
/** Multiline `Input`: same fill, border, radius and type. Grows from 4 lines. */
|
|
10
9
|
const Textarea = React.forwardRef((t0, ref) => {
|
|
11
10
|
const $ = _c(27);
|
|
12
11
|
let className;
|
package/dist/ThemeToggle.jsx
CHANGED
|
@@ -5,7 +5,6 @@ import { HeaderIconButton } from "./HeaderIconButton";
|
|
|
5
5
|
import { useLargerText } from "./theme";
|
|
6
6
|
import { tokens } from "./tokens";
|
|
7
7
|
import { useScheme } from "./useScheme";
|
|
8
|
-
/** Logged when NativeWind's `setColorScheme` throws. */
|
|
9
8
|
const DARK_MODE_CLASS_HINT = 'ThemeToggle could not set the colour scheme. NativeWind throws while Tailwind darkMode is "media" (the default): set darkMode: "class" in tailwind.config.js. See the @vvedantb/native-ui README, Theme.';
|
|
10
9
|
|
|
11
10
|
/**
|
package/dist/Toast.jsx
CHANGED
|
@@ -12,19 +12,14 @@ import { sizeStyle, textStyle, typeStyle } from "./controlStyles";
|
|
|
12
12
|
import { FLOATING_INSET } from "./floating";
|
|
13
13
|
import { TOAST_ICON_SIZE, TOAST_ICONS, toastIconColor, toastShadowStyle, toastSurfaceStyle } from "./toastChrome";
|
|
14
14
|
import { tokens } from "./tokens";
|
|
15
|
+
import { useGlass } from "./glass";
|
|
15
16
|
import { useLargerText } from "./theme";
|
|
16
17
|
import { useScheme } from "./useScheme";
|
|
17
18
|
import { NativeOnlyAnimatedView } from "./primitives/native-only-animated-view";
|
|
18
19
|
import { ToastDragContext } from "./toastDrag";
|
|
19
20
|
import { getToasts, subscribeToasts, toast } from "./toastStore";
|
|
20
|
-
|
|
21
|
-
// On iOS the overlay draws above RN `Modal`s, so toasts show over dialogs (as
|
|
22
|
-
// sonner does on the web). On Android a `Modal` still covers them.
|
|
23
21
|
const FullWindowOverlay = Platform.OS === "ios" ? RNFullWindowOverlay : Fragment;
|
|
24
22
|
const toastShadow = toastShadowStyle(Platform.OS);
|
|
25
|
-
|
|
26
|
-
// Down from the top edge and back up the way it came, the exit 20% quicker:
|
|
27
|
-
// the reader is done with it.
|
|
28
23
|
const TOAST_ENTER = FadeInUp.duration(200).easing(EASE_OUT);
|
|
29
24
|
const TOAST_EXIT = FadeOutUp.duration(160).easing(EASE_OUT);
|
|
30
25
|
|
|
@@ -81,8 +76,6 @@ export function Toaster(t0) {
|
|
|
81
76
|
}
|
|
82
77
|
return t7;
|
|
83
78
|
}
|
|
84
|
-
|
|
85
|
-
/** The web filled 24 icons (`toastChrome`), or a spinner while loading. */
|
|
86
79
|
function _temp(item) {
|
|
87
80
|
return <ToastCard key={item.id} item={item} />;
|
|
88
81
|
}
|
|
@@ -143,12 +136,6 @@ function ToastIcon(t0) {
|
|
|
143
136
|
}
|
|
144
137
|
return t3;
|
|
145
138
|
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Closes `item` after its `duration`, counting only while it is not `held`:
|
|
149
|
-
* a finger on the toast pauses the time left, and lifting it resumes. A
|
|
150
|
-
* toast replaced in place (same id, new item) starts its own time afresh.
|
|
151
|
-
*/
|
|
152
139
|
function useToastTimer(item, held) {
|
|
153
140
|
const $ = _c(6);
|
|
154
141
|
let t0;
|
|
@@ -195,12 +182,13 @@ function useToastTimer(item, held) {
|
|
|
195
182
|
useEffect(t1, t2);
|
|
196
183
|
}
|
|
197
184
|
function ToastCard(t0) {
|
|
198
|
-
const $ = _c(
|
|
185
|
+
const $ = _c(57);
|
|
199
186
|
const {
|
|
200
187
|
item
|
|
201
188
|
} = t0;
|
|
202
189
|
const largerText = useLargerText();
|
|
203
190
|
const scheme = useScheme();
|
|
191
|
+
const glass = useGlass("surface");
|
|
204
192
|
const Drag = useContext(ToastDragContext);
|
|
205
193
|
const [held, setHeld] = useState(false);
|
|
206
194
|
useToastTimer(item, held);
|
|
@@ -251,146 +239,147 @@ function ToastCard(t0) {
|
|
|
251
239
|
t5 = $[10];
|
|
252
240
|
}
|
|
253
241
|
let t6;
|
|
254
|
-
if ($[11] !== t5) {
|
|
255
|
-
t6 = [t5, toastShadow];
|
|
256
|
-
$[11] =
|
|
257
|
-
$[12] =
|
|
242
|
+
if ($[11] !== glass || $[12] !== t5) {
|
|
243
|
+
t6 = [t5, toastShadow, glass];
|
|
244
|
+
$[11] = glass;
|
|
245
|
+
$[12] = t5;
|
|
246
|
+
$[13] = t6;
|
|
258
247
|
} else {
|
|
259
|
-
t6 = $[
|
|
248
|
+
t6 = $[13];
|
|
260
249
|
}
|
|
261
250
|
const t7 = `toast-${item.id}`;
|
|
262
251
|
const t8 = !item.action;
|
|
263
252
|
let t9;
|
|
264
|
-
if ($[
|
|
253
|
+
if ($[14] !== item.id) {
|
|
265
254
|
t9 = () => toast.dismiss(item.id);
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
255
|
+
$[14] = item.id;
|
|
256
|
+
$[15] = t9;
|
|
268
257
|
} else {
|
|
269
|
-
t9 = $[
|
|
258
|
+
t9 = $[15];
|
|
270
259
|
}
|
|
271
260
|
let t10;
|
|
272
|
-
if ($[
|
|
261
|
+
if ($[16] !== item) {
|
|
273
262
|
t10 = <ToastIcon item={item} />;
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
263
|
+
$[16] = item;
|
|
264
|
+
$[17] = t10;
|
|
276
265
|
} else {
|
|
277
|
-
t10 = $[
|
|
266
|
+
t10 = $[17];
|
|
278
267
|
}
|
|
279
268
|
const t11 = largerText ? "text-lg" : "text-sm";
|
|
280
269
|
let t12;
|
|
281
|
-
if ($[
|
|
270
|
+
if ($[18] !== t11) {
|
|
282
271
|
t12 = cn("font-instrument-sans-medium", t11);
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
272
|
+
$[18] = t11;
|
|
273
|
+
$[19] = t12;
|
|
285
274
|
} else {
|
|
286
|
-
t12 = $[
|
|
275
|
+
t12 = $[19];
|
|
287
276
|
}
|
|
288
277
|
let t13;
|
|
289
|
-
if ($[
|
|
278
|
+
if ($[20] !== scheme) {
|
|
290
279
|
t13 = textStyle("foreground", scheme);
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
280
|
+
$[20] = scheme;
|
|
281
|
+
$[21] = t13;
|
|
293
282
|
} else {
|
|
294
|
-
t13 = $[
|
|
283
|
+
t13 = $[21];
|
|
295
284
|
}
|
|
296
285
|
let t14;
|
|
297
|
-
if ($[
|
|
286
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
298
287
|
t14 = typeStyle("medium");
|
|
299
|
-
$[
|
|
288
|
+
$[22] = t14;
|
|
300
289
|
} else {
|
|
301
|
-
t14 = $[
|
|
290
|
+
t14 = $[22];
|
|
302
291
|
}
|
|
303
292
|
let t15;
|
|
304
|
-
if ($[
|
|
293
|
+
if ($[23] !== largerText) {
|
|
305
294
|
t15 = largerText ? sizeStyle("text-lg") : sizeStyle("text-sm", "snug");
|
|
306
|
-
$[
|
|
307
|
-
$[
|
|
295
|
+
$[23] = largerText;
|
|
296
|
+
$[24] = t15;
|
|
308
297
|
} else {
|
|
309
|
-
t15 = $[
|
|
298
|
+
t15 = $[24];
|
|
310
299
|
}
|
|
311
300
|
let t16;
|
|
312
|
-
if ($[
|
|
301
|
+
if ($[25] !== t13 || $[26] !== t15) {
|
|
313
302
|
t16 = [t13, t14, t15];
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
303
|
+
$[25] = t13;
|
|
304
|
+
$[26] = t15;
|
|
305
|
+
$[27] = t16;
|
|
317
306
|
} else {
|
|
318
|
-
t16 = $[
|
|
307
|
+
t16 = $[27];
|
|
319
308
|
}
|
|
320
309
|
let t17;
|
|
321
|
-
if ($[
|
|
310
|
+
if ($[28] !== item.title || $[29] !== t12 || $[30] !== t16) {
|
|
322
311
|
t17 = <Text className={t12} style={t16}>{item.title}</Text>;
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
312
|
+
$[28] = item.title;
|
|
313
|
+
$[29] = t12;
|
|
314
|
+
$[30] = t16;
|
|
315
|
+
$[31] = t17;
|
|
327
316
|
} else {
|
|
328
|
-
t17 = $[
|
|
317
|
+
t17 = $[31];
|
|
329
318
|
}
|
|
330
319
|
let t18;
|
|
331
|
-
if ($[
|
|
320
|
+
if ($[32] !== item.description || $[33] !== largerText || $[34] !== scheme) {
|
|
332
321
|
t18 = item.description ? <Text className={cn("font-instrument-sans", largerText ? "text-base" : "text-sm")} style={textStyle("muted", scheme)}>{item.description}</Text> : null;
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
$[
|
|
336
|
-
$[
|
|
322
|
+
$[32] = item.description;
|
|
323
|
+
$[33] = largerText;
|
|
324
|
+
$[34] = scheme;
|
|
325
|
+
$[35] = t18;
|
|
337
326
|
} else {
|
|
338
|
-
t18 = $[
|
|
327
|
+
t18 = $[35];
|
|
339
328
|
}
|
|
340
329
|
let t19;
|
|
341
|
-
if ($[
|
|
330
|
+
if ($[36] !== t17 || $[37] !== t18) {
|
|
342
331
|
t19 = <View className="min-w-0 flex-1">{t17}{t18}</View>;
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
332
|
+
$[36] = t17;
|
|
333
|
+
$[37] = t18;
|
|
334
|
+
$[38] = t19;
|
|
346
335
|
} else {
|
|
347
|
-
t19 = $[
|
|
336
|
+
t19 = $[38];
|
|
348
337
|
}
|
|
349
338
|
let t20;
|
|
350
|
-
if ($[
|
|
339
|
+
if ($[39] !== item.action || $[40] !== item.id || $[41] !== scheme) {
|
|
351
340
|
t20 = item.action ? <Pressable accessibilityRole="button" hitSlop={8} onPress={() => {
|
|
352
341
|
item.action?.onPress();
|
|
353
342
|
toast.dismiss(item.id);
|
|
354
343
|
}} className="rounded-full bg-secondary px-3 py-1.5 active:opacity-70"><Text className="font-instrument-sans-medium text-sm" style={[textStyle("foreground", scheme), typeStyle("medium")]}>{item.action.label}</Text></Pressable> : null;
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
358
|
-
$[
|
|
344
|
+
$[39] = item.action;
|
|
345
|
+
$[40] = item.id;
|
|
346
|
+
$[41] = scheme;
|
|
347
|
+
$[42] = t20;
|
|
359
348
|
} else {
|
|
360
|
-
t20 = $[
|
|
349
|
+
t20 = $[42];
|
|
361
350
|
}
|
|
362
351
|
let t21;
|
|
363
|
-
if ($[
|
|
352
|
+
if ($[43] !== t10 || $[44] !== t19 || $[45] !== t20 || $[46] !== t7 || $[47] !== t8 || $[48] !== t9) {
|
|
364
353
|
t21 = <Pressable testID={t7} accessible={t8} accessibilityRole="button" accessibilityHint="Closes the message" onPress={t9} className="flex-row items-center gap-3 px-4 py-3">{t10}{t19}{t20}</Pressable>;
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
354
|
+
$[43] = t10;
|
|
355
|
+
$[44] = t19;
|
|
356
|
+
$[45] = t20;
|
|
357
|
+
$[46] = t7;
|
|
358
|
+
$[47] = t8;
|
|
359
|
+
$[48] = t9;
|
|
360
|
+
$[49] = t21;
|
|
372
361
|
} else {
|
|
373
|
-
t21 = $[
|
|
362
|
+
t21 = $[49];
|
|
374
363
|
}
|
|
375
364
|
let t22;
|
|
376
|
-
if ($[
|
|
365
|
+
if ($[50] !== t21 || $[51] !== t6) {
|
|
377
366
|
t22 = <View style={t6}>{t21}</View>;
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
367
|
+
$[50] = t21;
|
|
368
|
+
$[51] = t6;
|
|
369
|
+
$[52] = t22;
|
|
381
370
|
} else {
|
|
382
|
-
t22 = $[
|
|
371
|
+
t22 = $[52];
|
|
383
372
|
}
|
|
384
373
|
const surface = t22;
|
|
385
374
|
let t23;
|
|
386
|
-
if ($[
|
|
375
|
+
if ($[53] !== Drag || $[54] !== item.id || $[55] !== surface) {
|
|
387
376
|
t23 = <NativeOnlyAnimatedView entering={TOAST_ENTER} exiting={TOAST_EXIT} layout={LinearTransition}>{Drag ? <Drag onDismiss={() => toast.dismiss(item.id)} onHoldChange={setHeld}>{surface}</Drag> : surface}</NativeOnlyAnimatedView>;
|
|
388
|
-
$[
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
377
|
+
$[53] = Drag;
|
|
378
|
+
$[54] = item.id;
|
|
379
|
+
$[55] = surface;
|
|
380
|
+
$[56] = t23;
|
|
392
381
|
} else {
|
|
393
|
-
t23 = $[
|
|
382
|
+
t23 = $[56];
|
|
394
383
|
}
|
|
395
384
|
return t23;
|
|
396
385
|
}
|
package/dist/UpdateChecker.jsx
CHANGED
|
@@ -209,7 +209,6 @@ export function UpdatePrompt(t0) {
|
|
|
209
209
|
|
|
210
210
|
/** Where "Later" is remembered, for example `expo-secure-store` or AsyncStorage. */
|
|
211
211
|
function _temp() {}
|
|
212
|
-
/** The version Later hid. An unreadable store means nothing was dismissed. */
|
|
213
212
|
async function readDismissed(storage, key) {
|
|
214
213
|
try {
|
|
215
214
|
return await storage.getItem(key);
|
|
@@ -109,12 +109,6 @@ export function ActivityQuestionCard(t0) {
|
|
|
109
109
|
}
|
|
110
110
|
return t1;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* One option as recorded (web `OptionRow`): a 20 rounded mark (the letter, a
|
|
115
|
-
* check when picked, a pencil for "Other"), the label and its description.
|
|
116
|
-
* Picked: the row on the tertiary fill, the mark on primary, the label medium.
|
|
117
|
-
*/
|
|
118
112
|
function RecordRow(t0) {
|
|
119
113
|
const $ = _c(56);
|
|
120
114
|
const {
|
|
@@ -636,11 +636,6 @@ function joinCommandText(verb, target) {
|
|
|
636
636
|
}
|
|
637
637
|
return `${verb} ${target}`;
|
|
638
638
|
}
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Past-tense phrase used when a step type is folded into a group summary line.
|
|
642
|
-
* Deliberately plural/vague — the exact call is one click away in the fold.
|
|
643
|
-
*/
|
|
644
639
|
const GROUP_PHRASES = {
|
|
645
640
|
read: "read files",
|
|
646
641
|
edit: "edited files",
|
|
@@ -667,7 +662,6 @@ function groupPhraseForStep(step) {
|
|
|
667
662
|
if (step.type !== "tool") {
|
|
668
663
|
return GROUP_PHRASES[step.type];
|
|
669
664
|
}
|
|
670
|
-
// Codex reports edits as a `file_change` tool call, not an edit step.
|
|
671
665
|
if (isFileChangeTool(step)) {
|
|
672
666
|
return GROUP_PHRASES.edit;
|
|
673
667
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// Pure step types for the activity timeline: no React, so `@vvedantb/native-ui`
|
|
2
|
-
// keeps a byte-identical copy (`src/ai/activity-step-types.ts`), with the step
|
|
3
|
-
// labels and grouping that read them.
|
|
4
|
-
|
|
5
1
|
/** One item in a todo checklist step (type "todos"). */
|
|
6
2
|
|
|
7
3
|
/** One choice offered by an AskUserQuestion prompt. */
|
|
@@ -3,17 +3,8 @@
|
|
|
3
3
|
* inside that agent (keyed by parentToolUseId → toolUseId).
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Status-filler thinking labels emitted by older callback versions (and by
|
|
8
|
-
* prod until the current callback deploys). The response/reasoning text is
|
|
9
|
-
* shown directly, so these narration rows are pure noise — hide them.
|
|
10
|
-
*/
|
|
11
6
|
const LEGACY_NOISE_LABELS = new Set(["Generating response...", "Generated response", "Streaming response...", "Streamed response", "Finalizing response..."]);
|
|
12
|
-
|
|
13
|
-
/** Thinking labels that mark model reasoning rather than status narration. */
|
|
14
7
|
const REASONING_LABELS = new Set(["Thinking...", "Thought"]);
|
|
15
|
-
|
|
16
|
-
/** Placeholder details older callbacks attached to reasoning-label steps. */
|
|
17
8
|
const FILLER_DETAILS = new Set(["Claude is reasoning...", "Codex is reasoning...", "Opencode is reasoning...", "Cursor is reasoning...", "Receiving reply..."]);
|
|
18
9
|
|
|
19
10
|
/**
|
|
@@ -35,8 +26,6 @@ export function normalizeStep(step) {
|
|
|
35
26
|
}
|
|
36
27
|
return step;
|
|
37
28
|
}
|
|
38
|
-
|
|
39
|
-
/** Builds one row per normalized step (no consecutive-type merging). */
|
|
40
29
|
function stepsToRows(steps) {
|
|
41
30
|
const rows = [];
|
|
42
31
|
for (const raw of steps) {
|
|
@@ -48,11 +37,6 @@ function stepsToRows(steps) {
|
|
|
48
37
|
}
|
|
49
38
|
return rows;
|
|
50
39
|
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Row types that read as narration rather than work: they already summarise
|
|
54
|
-
* themselves, so folding them into an action group would hide their only text.
|
|
55
|
-
*/
|
|
56
40
|
const STANDALONE_TYPES = new Set(["todos", "notice", "status", "question", "steer"]);
|
|
57
41
|
|
|
58
42
|
/** One block in the activity timeline: prose, a lone row, or a folded run. */
|
|
@@ -73,7 +57,6 @@ export function groupActivityRows(rows) {
|
|
|
73
57
|
});
|
|
74
58
|
continue;
|
|
75
59
|
}
|
|
76
|
-
// Mid-turn reply text: it ends the tool run before it, like reasoning.
|
|
77
60
|
if (row.step.type === "response") {
|
|
78
61
|
segments.push({
|
|
79
62
|
kind: "response",
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
// The folded (Codex-style) rules of the web `ActivityTasks`
|
|
2
|
-
// (`@vvedantb/ui` `activity-tasks.tsx`), as pure logic for an app that draws
|
|
3
|
-
// the rows with the `AgentTrace` parts. The row text, the grouping and the
|
|
4
|
-
// step types are byte-identical copies of the web files
|
|
5
|
-
// (`activity-step-label.ts`, `activity-tasks-utils.ts`, `activity-step-types.ts`).
|
|
6
|
-
|
|
7
1
|
import { buildActivityRows, groupActivityRows } from "./activity-tasks-utils";
|
|
8
2
|
/** Blocks a settled timeline shows before "Show N more" (web `MAX_VISIBLE_ROWS`). */
|
|
9
3
|
export const ACTIVITY_MAX_VISIBLE_BLOCKS = 8;
|
|
10
4
|
|
|
11
5
|
/** Child rows a subagent step shows before "+N more" (web `MAX_VISIBLE_CHILDREN`). */
|
|
12
6
|
export const ACTIVITY_MAX_VISIBLE_CHILDREN = 8;
|
|
13
|
-
|
|
14
|
-
/** Step types the folded layout hides: the reply text and the status thinking lines. */
|
|
15
7
|
const HIDDEN_TYPES = new Set(["thinking", "response"]);
|
|
16
8
|
|
|
17
9
|
/**
|
package/dist/ai/attachments.jsx
CHANGED
|
@@ -97,8 +97,6 @@ export function Attachments(t0) {
|
|
|
97
97
|
}
|
|
98
98
|
/** The hit target of a pressable chip, in points, on each axis. */
|
|
99
99
|
export const ATTACHMENT_PRESS_TARGET = 48;
|
|
100
|
-
|
|
101
|
-
/** A remove cross of 20 in a 32 row: the slop brings it to 44. */
|
|
102
100
|
const REMOVE_SIZE = 20;
|
|
103
101
|
|
|
104
102
|
/**
|