@vvedantb/native-ui 0.37.1 → 0.38.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/README.md +8 -7
- package/dist/AmbientBackground.jsx +16 -28
- package/dist/Avatar.jsx +2 -2
- package/dist/BottomSheetContainer.jsx +1 -1
- package/dist/BulkActionBar.jsx +1 -1
- package/dist/Card.jsx +4 -4
- package/dist/Chip.jsx +2 -2
- package/dist/DateTimeField.jsx +1 -1
- package/dist/Dialog.jsx +3 -3
- package/dist/DropdownMenu.jsx +3 -3
- package/dist/EmptyState.jsx +4 -4
- package/dist/FloatingTabBar.jsx +2 -2
- package/dist/LabeledSwitchRow.jsx +2 -2
- package/dist/ListRow.jsx +2 -2
- package/dist/PinnedBotTile.jsx +2 -2
- package/dist/StatGrid.jsx +1 -1
- package/dist/Stepper.jsx +2 -2
- package/dist/Toast.jsx +1 -1
- package/dist/ai/activity-question.jsx +2 -2
- package/dist/ai/card-button.jsx +2 -2
- package/dist/ai/choice-question.jsx +8 -8
- package/dist/ai/message-action-sheet.jsx +2 -2
- package/dist/ai/message-quote.jsx +2 -2
- package/dist/ai/message.jsx +2 -2
- package/dist/ai/reply-quote-chip.jsx +2 -2
- package/dist/ai/subagent-cards.jsx +6 -6
- package/dist/ai/tool-approval-card.jsx +1 -1
- package/dist/app-root/AuthGroupGate.jsx +65 -0
- package/dist/app-root/SsoCallbackScreen.jsx +97 -0
- package/dist/app-root/fonts.js +88 -0
- package/dist/app-root/index.js +3 -0
- package/dist/auth/AuthScreen.jsx +252 -74
- package/dist/auth/SecondFactorScreen.jsx +18 -12
- package/dist/auth/SignInScreen.jsx +40 -17
- package/dist/crash/LastCrashDialog.jsx +56 -0
- package/dist/crash/lastCrash.js +213 -0
- package/dist/entries/app-root.js +6 -0
- package/dist/entries/crash.js +5 -0
- package/dist/entries/theme.js +3 -0
- package/dist/examples/ParityGallery.jsx +2 -2
- package/dist/generative-ui/components.jsx +2 -2
- package/dist/index.js +3 -0
- package/dist/marketing/UpgradeToProCard.jsx +2 -2
- package/dist/media/ImageGallery.jsx +2 -2
- package/dist/motion.js +3 -2
- package/dist/neutralTheme.js +163 -0
- package/dist/primitives/card.jsx +2 -2
- package/dist/primitives/icon.jsx +0 -4
- package/dist/primitives/select.jsx +0 -2
- package/dist/primitives/text.jsx +13 -13
- package/dist/primitives/toast-drag-gesture.jsx +3 -2
- package/dist/settings/MoreFromProjectV.jsx +2 -2
- package/dist/settings/SettingsSection.jsx +1 -1
- package/dist/settings/ThemeModePicker.jsx +8 -11
- package/dist/themeModeStore.js +67 -0
- package/dist/themeModes.js +9 -0
- package/package.json +47 -19
- package/src/AmbientBackground.tsx +8 -26
- package/src/Avatar.tsx +2 -2
- package/src/BottomSheetContainer.tsx +1 -1
- package/src/BulkActionBar.tsx +2 -2
- package/src/Card.tsx +5 -5
- package/src/Chip.tsx +2 -2
- package/src/DateTimeField.tsx +2 -2
- package/src/Dialog.tsx +3 -3
- package/src/DropdownMenu.tsx +3 -3
- package/src/EmptyState.tsx +4 -4
- package/src/FloatingTabBar.tsx +2 -2
- package/src/LabeledSwitchRow.tsx +2 -2
- package/src/ListRow.tsx +2 -2
- package/src/PinnedBotTile.tsx +2 -2
- package/src/StatGrid.tsx +2 -2
- package/src/Stepper.tsx +2 -2
- package/src/Toast.tsx +2 -2
- package/src/ai/activity-question.tsx +1 -1
- package/src/ai/card-button.tsx +1 -1
- package/src/ai/choice-question.tsx +10 -10
- package/src/ai/message-action-sheet.tsx +2 -2
- package/src/ai/message-quote.tsx +2 -2
- package/src/ai/message.tsx +2 -2
- package/src/ai/reply-quote-chip.tsx +2 -2
- package/src/ai/subagent-cards.tsx +5 -5
- package/src/ai/tool-approval-card.tsx +4 -4
- package/src/app-root/AuthGroupGate.tsx +46 -0
- package/src/app-root/SsoCallbackScreen.tsx +62 -0
- package/src/app-root/fonts.ts +55 -0
- package/src/app-root/index.ts +6 -0
- package/src/auth/AuthScreen.tsx +104 -3
- package/src/auth/SecondFactorScreen.tsx +20 -2
- package/src/auth/SignInScreen.tsx +119 -53
- package/src/crash/LastCrashDialog.tsx +42 -0
- package/src/crash/lastCrash.ts +239 -0
- package/src/entries/app-root.ts +6 -0
- package/src/entries/crash.ts +16 -0
- package/src/entries/theme.ts +6 -0
- package/src/examples/ParityGallery.tsx +2 -2
- package/src/generative-ui/components.tsx +3 -3
- package/src/highlight.ts +1 -1
- package/src/index.ts +5 -0
- package/src/marketing/UpgradeToProCard.tsx +2 -2
- package/src/media/ImageGallery.tsx +1 -1
- package/src/motion.ts +3 -2
- package/src/neutralTheme.ts +130 -0
- package/src/primitives/card.tsx +3 -3
- package/src/primitives/icon.tsx +0 -2
- package/src/primitives/select.tsx +0 -2
- package/src/primitives/text.tsx +13 -13
- package/src/primitives/toast-drag-gesture.tsx +2 -2
- package/src/settings/MoreFromProjectV.tsx +2 -2
- package/src/settings/SettingsSection.tsx +3 -3
- package/src/settings/ThemeModePicker.tsx +11 -19
- package/src/themeModeStore.ts +94 -0
- package/src/themeModes.ts +10 -0
- package/types/prism-react-renderer.d.ts +22 -0
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Peers the app must already have (Expo SDK 57 / RN 0.76+):
|
|
|
16
16
|
- `nativewind` `>=4`
|
|
17
17
|
- `react-native-reanimated`, `react-native-safe-area-context`, `react-native-screens`
|
|
18
18
|
- `@rn-primitives/slot`, `@rn-primitives/switch`, `@rn-primitives/select`
|
|
19
|
-
- `@expo/vector-icons`, `@tabler/icons-react-native
|
|
19
|
+
- `@expo/vector-icons`, `@tabler/icons-react-native`
|
|
20
20
|
- `class-variance-authority`, `clsx`, `tailwind-merge`
|
|
21
21
|
|
|
22
22
|
Optional, only if you import those components:
|
|
@@ -27,7 +27,7 @@ Optional, only if you import those components:
|
|
|
27
27
|
- `@clerk/expo`, `convex`, `expo-auth-session`, `expo-web-browser` and `expo-router` — `@vvedantb/native-ui/auth` (0.7.0). `expo-router` also for `@vvedantb/native-ui/expo-web-root`.
|
|
28
28
|
- `react-native-gesture-handler` (`>=2.0.0`) — `@vvedantb/native-ui/gesture-handler` (Unreleased). Wrap the app in `GestureHandlerRootView`, and put `GestureHandlerProvider` from that entry inside it: the sheet drags (`SheetContent`, the compact `DialogContent`) then run on Gesture Handler, on the UI thread, and each overlay's `Modal` gets its own root view (Android needs one in every `Modal`). It also turns on the `SwipeableRow` swipe. Without the provider, the sheets drag with `PanResponder`, with the same rules, and a `SwipeableRow` does not swipe. Only that entry imports the peer, so an app without it bundles as before. In a Metro monorepo, resolve the peer from the app (one copy), as for `react`.
|
|
29
29
|
- `react-native-keyboard-controller` (`>=1.21.0`) — `@vvedantb/native-ui/keyboard-controller` (Unreleased). Put `KeyboardControllerProvider` from that entry inside the app's `KeyboardProvider`: the chat transcript (`ConversationList`), the dock (`ConversationDock`) and its scroll button then follow the keyboard frame by frame, a drag down on the transcript moves the keyboard with the finger (iOS, Android 11+; Android 10 and below lower it at once), and `PromptInput`, `ChatThread`, the overlays and `KeyboardAvoidingView` pad frame by frame. The dock moves by the keyboard less the bottom inset: its content pads that inset, as `PromptInput` does. Without the provider, every part keeps React Native's `KeyboardAvoidingView`. Only that entry imports the peer. In a Metro monorepo, resolve the peer from the app (one copy): the parts read its provider's context.
|
|
30
|
-
- `react-native-svg` — the app marks (`APP_ICONS`, `Icon*`, `AppMark`, `AppWordmark`), `GoogleMark` and `PricingModal`. Apps with the icon peers above already have it:
|
|
30
|
+
- `react-native-svg` — the app marks (`APP_ICONS`, `Icon*`, `AppMark`, `AppWordmark`), `GoogleMark` and `PricingModal`. Apps with the icon peers above already have it: `@tabler/icons-react-native` requires it.
|
|
31
31
|
|
|
32
32
|
Optional and loaded only when installed, so the package imports and runs without them:
|
|
33
33
|
|
|
@@ -69,7 +69,7 @@ pnpm --filter native-gallery start
|
|
|
69
69
|
# or cd apps/native-gallery && npx expo start
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
`tests/galleryRegistry.test.ts` fails when a React component export has no entry in `apps/native-gallery/src/galleryRegistry.ts`. Maestro flows in `apps/native-gallery/.maestro/` drive the dropdown, composer, sheets and select.
|
|
72
|
+
`tests/galleryRegistry.test.ts` fails when a React component export has no entry in `apps/native-gallery/src/galleryRegistry.ts`. Maestro flows in `apps/native-gallery/.maestro/` drive the dropdown, composer, sheets and select. No workflow runs them on a pull request: run `pnpm --filter native-gallery maestro` on an emulator and report the result in the pull request body. The pre-push hook runs the typecheck, lint and tests of this package. A new or changed component needs a gallery entry, a Maestro flow and a hand test on an Android emulator.
|
|
73
73
|
|
|
74
74
|
The `Select` note stays: mount one `<PortalHost />` from `@rn-primitives/portal` at the app root, outside any `Modal`. The gallery does so in `app/_layout.tsx`.
|
|
75
75
|
|
|
@@ -89,7 +89,7 @@ The root entry exports everything. It still imports `BottomSheetContainer` and `
|
|
|
89
89
|
| `@vvedantb/native-ui/toast` | `toast`, `Toaster`, `ToastOptions`, `ToastVariant` | none (from 0.3.12) |
|
|
90
90
|
| `@vvedantb/native-ui/theme` | `NativeUiProvider`, `useNativeUi`, `useLargerText`, `useAccentColor`, `DEFAULT_ACCENT`, `tokens`, `palette`, `withAlpha`, `configureTheme` (with the `ThemeConfig`, `ThemeColors` and `ThemePalette` types), `fontClass`, `fontFamily` (with the `ThemeFonts` type), `cn`, `Colors` and the colour constants | none |
|
|
91
91
|
| `@vvedantb/native-ui/floating` | `FloatingSurface`, `GlassSheetBackground`, `LiquidGlass`, `GlassBlurProvider`, `GlassBlurTarget`, `FloatingFAB`, `useReduceTransparency`, the floating metrics and styles | `expo-blur` (loader) |
|
|
92
|
-
| `@vvedantb/native-ui/layout` | `ScreenContainer`, `SafeAreaContainer`, `PageTitle`, `PageHeader`, `StackPageHeader` (0.5.0) and their props types, `SectionLabel` (0.5.0), `SettingsSection`, `SettingsField`, `SettingsToggleRow`, `SettingsStack`, `MoreFromProjectV` and `FromProjectV` (0.8.0), `ScreenContainerProps`, `SettingsEmptyState`, `PinnedBotTile`, `BotPinGrid`, `ArtifactList` (0.12.0).
|
|
92
|
+
| `@vvedantb/native-ui/layout` | `ScreenContainer`, `SafeAreaContainer`, `PageTitle`, `PageHeader`, `StackPageHeader` (0.5.0) and their props types, `SectionLabel` (0.5.0), `SettingsSection`, `SettingsField`, `SettingsToggleRow`, `SettingsStack`, `MoreFromProjectV` and `FromProjectV` (0.8.0), `ScreenContainerProps`, `SettingsEmptyState`, `PinnedBotTile`, `BotPinGrid`, `ArtifactList` (0.12.0). From 0.35.0: `ThemeModePicker`, `THEME_MODES` and `ThemeMode`, the web theme tiles for an Appearance section (needs `react-native-svg`). The Neutral store, `paintDarkFamily` and `createThemeModeStore` live on `@vvedantb/native-ui/theme`. `ScreenContainer` takes `refreshing`, `onRefresh` and `refreshControl` (0.12.0). `StackPageHeader` takes `centre` (0.12.0) | `expo-blur` (loader) |
|
|
93
93
|
| `@vvedantb/native-ui/marketing` | `UpgradeToProCard`, `PricingModal` and the pricing types | none |
|
|
94
94
|
| `@vvedantb/native-ui/ambient` | `AmbientBackground` | `expo-linear-gradient` (loader) |
|
|
95
95
|
| `@vvedantb/native-ui/blur`, `/haptics` | the loaders | `expo-blur`, `expo-haptics` (loaders) |
|
|
@@ -102,6 +102,7 @@ The root entry exports everything. It still imports `BottomSheetContainer` and `
|
|
|
102
102
|
| `@vvedantb/native-ui/ai-gallery` | `AiChatGallery`, `AiChatSamples` (from 0.4.0) | none |
|
|
103
103
|
| `@vvedantb/native-ui/auth` | From 0.7.0: `AuthProviders`, `SignInScreen`, `SignUpScreen`, `ChangePasswordScreen`, `DeleteAccountScreen` (0.32.0), `GoogleSignInButton`, `useGoogleSignIn`, `AuthScreen`, `OrDivider`, `FieldError`, `authErrorMessage`, `SecondFactorScreen`, `useSecondFactor`, `submitTotpSecondFactor`, `submitSecondFactor`, `prepareSecondFactorIfNeeded`, `prepareFirstFactorIfNeeded`, `submitFirstFactor`, `pickFirstFactorStrategy`, `TOTP_MESSAGES` and their props types. See [Auth](#auth-070). Not on the root entry. | `@clerk/expo`, `convex`, `expo-auth-session`, `expo-web-browser`, `expo-router` (import) |
|
|
104
104
|
| `@vvedantb/native-ui/expo-router` | From 0.12.0: `RouterStackPageHeader`, `RouterStackPageHeaderProps`, `goBackOrReplace`. Not on the root, `/layout` or `/page-title` entries. | `expo-router` (import) |
|
|
105
|
+
| `@vvedantb/native-ui/app-root` | `instrumentSansFontMap`, `useInstrumentSansFonts`, `useHideSplashWhenReady`, `AuthGroupGate`, `SsoCallbackScreen` and their props types. Apps keep their own provider trees. Not on the root entry. | `@clerk/expo`, `expo-router`, `expo-font`, `expo-splash-screen`, `@expo-google-fonts/instrument-sans` (import) |
|
|
105
106
|
| `@vvedantb/native-ui/expo-web-root` | From 0.7.0: `ExpoWebRoot`, `ExpoWebRootProps`, `ExpoWebRootViewport`, `EXPO_WEB_VIEWPORT`, `expoWebBackgroundCss`. Not on the root entry. | `expo-router` (import of `expo-router/html`) |
|
|
106
107
|
| `@vvedantb/native-ui/tailwind-preset` | From 0.7.0, CommonJS for `tailwind.config.js`: `nativeUiPreset`, `nativeUiContent`, `cssVar`, `hslVar`, `rgbAlpha`, `cssVariables`, `schemeColors` and a default preset. See [Expo / NativeWind](#expo--nativewind). | `nativewind` (`require`, when installed) |
|
|
107
108
|
|
|
@@ -384,7 +385,7 @@ configureTheme({ font: { regular: "Inter_400Regular", medium: "Inter_500Medium",
|
|
|
384
385
|
|
|
385
386
|
**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
387
|
|
|
387
|
-
**`Button` aliases and `Field` (
|
|
388
|
+
**`Button` aliases and `Field` (0.36.0).** `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
|
|
|
389
390
|
`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
|
|
|
@@ -772,7 +773,7 @@ The components keep the web sizes on screen and reach a 44 pt touch target with
|
|
|
772
773
|
|
|
773
774
|
Text scales with the system font size. Labelled controls have minimum heights, so a large Dynamic Type size grows them instead of clipping the label (the `SearchInput` lock grows with the font scale); only the `FloatingTabBar` labels are capped (1.5×), to fit the fixed bar. With Reduce Motion on, dialogs, sheets, toasts, the `Select` popover, `PricingModal`, `Progress`, `Skeleton` and the `FloatingTabBar` pill do not animate. Dialogs, sheets, toasts, `FloatingTabBar` and `FloatingFAB` stay inside the safe-area insets, and dialog and sheet fields stay above the keyboard on iOS and Android.
|
|
774
775
|
|
|
775
|
-
The brand marks (`APP_ICONS`, the `Icon*` exports, `AppMark` and `GoogleMark`) are images named by `title`, and hidden from assistive tech without one. From 0.3.14 they set the props each platform reads: `accessibilityRole="image"` and `accessibilityLabel` on iOS and Android, `role="img"` and `aria-label` on web. Without a title they set `accessibilityElementsHidden` and `importantForAccessibility="no-hide-descendants"` on native and `aria-hidden` on web. `testID` is `data-testid` on web. On web `react-native-svg` passes its props straight to the DOM `<svg>`, and React Native Web does not map `accessible`, the `accessibility*` props or `testID` there. So do not put them on an `Svg` or on a Tabler icon: put them on the parent `View` or `Pressable`.
|
|
776
|
+
The brand marks (`APP_ICONS`, the `Icon*` exports, `AppMark` and `GoogleMark`) are images named by `title`, and hidden from assistive tech without one. From 0.3.14 they set the props each platform reads: `accessibilityRole="image"` and `accessibilityLabel` on iOS and Android, `role="img"` and `aria-label` on web. Without a title they set `accessibilityElementsHidden` and `importantForAccessibility="no-hide-descendants"` on native and `aria-hidden` on web. `testID` is `data-testid` on web. On web `react-native-svg` passes its props straight to the DOM `<svg>`, and React Native Web does not map `accessible`, the `accessibility*` props or `testID` there. So do not put them on an `Svg` or on a Tabler icon: put them on the parent `View` or `Pressable`. On web the `Select` options are Radix DOM nodes, so from 0.3.14 they take their name and test id as `aria-label` and `data-testid` there, and as `accessibilityLabel` and `testID` on iOS and Android.
|
|
776
777
|
|
|
777
778
|
`ThemeToggle` (from 0.3.16) is a `HeaderIconButton` that switches between light and dark with NativeWind's `setColorScheme`, the scheme every component reads through `useColorScheme`. It shows and names the scheme it switches to: a moon and "Switch to dark mode" in light, a sun and "Switch to light mode" in dark. It stores nothing: to restore the choice on the next launch, store `useColorScheme().colorScheme` in the app. It takes `testID`. It needs `darkMode: "class"` (see [Theme](#theme)). Without it, from 0.5.0, a press logs that fix with `console.error` and leaves the scheme as it is, instead of throwing from the press handler.
|
|
778
779
|
|
|
@@ -819,7 +820,7 @@ The brand files `src/brand/svg.ts`, `familyApps.ts` and `vProAppBenefits.ts` are
|
|
|
819
820
|
|
|
820
821
|
## Type checking
|
|
821
822
|
|
|
822
|
-
`pnpm --filter @vvedantb/native-ui typecheck` runs `tsc` against `types/peers.d.ts`, local declarations of the React Native peers, because they are not installed in this repository. The declarations are looser than the real types. Apps type-check the source against the real packages.
|
|
823
|
+
`pnpm --filter @vvedantb/native-ui typecheck` runs `tsc` against `types/peers.d.ts`, local declarations of the React Native peers, because they are not installed in this repository. The declarations are looser than the real types. Apps type-check the source against the real packages. `types/peers.d.ts` is not published: its `declare module "react-native"` would replace an app's real types. The one optional peer that apps may not install, `prism-react-renderer`, has a published module file instead (`types/prism-react-renderer.d.ts`, in `files`). `src/highlight.ts` imports it by relative path, so no `exports` or `typesVersions` entry is needed.
|
|
823
824
|
|
|
824
825
|
## Publish
|
|
825
826
|
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { StyleSheet, View } from "react-native";
|
|
3
3
|
import { cn } from "./cn";
|
|
4
|
-
import { loadLinearGradient } from "./gradient";
|
|
5
4
|
import { tokens } from "./tokens";
|
|
6
5
|
import { useScheme } from "./useScheme";
|
|
7
|
-
const LIGHT = ["#f6f6f7", "#fde8f0", "#f4f5f7"];
|
|
8
|
-
const DARK = ["#1c1c1e", "#2a1820", "#1a1a1c"];
|
|
9
6
|
|
|
10
|
-
/**
|
|
11
|
-
* A soft gradient behind the screen. Without the optional
|
|
12
|
-
* `expo-linear-gradient` peer it draws the solid `tokens.color.background`.
|
|
13
|
-
*/
|
|
7
|
+
/** A flat `tokens.color.background` layer behind the screen. */
|
|
14
8
|
export function AmbientBackground(t0) {
|
|
15
9
|
const $ = _c(13);
|
|
16
10
|
let children;
|
|
@@ -32,7 +26,6 @@ export function AmbientBackground(t0) {
|
|
|
32
26
|
props = $[3];
|
|
33
27
|
}
|
|
34
28
|
const scheme = useScheme();
|
|
35
|
-
const LinearGradient = loadLinearGradient()?.LinearGradient;
|
|
36
29
|
let t1;
|
|
37
30
|
if ($[4] !== className) {
|
|
38
31
|
t1 = cn("flex-1", className);
|
|
@@ -41,33 +34,28 @@ export function AmbientBackground(t0) {
|
|
|
41
34
|
} else {
|
|
42
35
|
t1 = $[5];
|
|
43
36
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
y: 0
|
|
49
|
-
}} end={{
|
|
50
|
-
x: 0.95,
|
|
51
|
-
y: 1
|
|
52
|
-
}} style={StyleSheet.absoluteFill} /> : <View pointerEvents="none" style={{
|
|
37
|
+
const t2 = tokens.color.background[scheme];
|
|
38
|
+
let t3;
|
|
39
|
+
if ($[6] !== t2) {
|
|
40
|
+
t3 = <View pointerEvents="none" style={{
|
|
53
41
|
...StyleSheet.absoluteFill,
|
|
54
|
-
backgroundColor:
|
|
42
|
+
backgroundColor: t2
|
|
55
43
|
}} />;
|
|
56
|
-
$[6] =
|
|
57
|
-
$[7] =
|
|
44
|
+
$[6] = t2;
|
|
45
|
+
$[7] = t3;
|
|
58
46
|
} else {
|
|
59
|
-
|
|
47
|
+
t3 = $[7];
|
|
60
48
|
}
|
|
61
|
-
let
|
|
62
|
-
if ($[8] !== children || $[9] !== props || $[10] !== t1 || $[11] !==
|
|
63
|
-
|
|
49
|
+
let t4;
|
|
50
|
+
if ($[8] !== children || $[9] !== props || $[10] !== t1 || $[11] !== t3) {
|
|
51
|
+
t4 = <View className={t1} {...props}>{t3}{children}</View>;
|
|
64
52
|
$[8] = children;
|
|
65
53
|
$[9] = props;
|
|
66
54
|
$[10] = t1;
|
|
67
|
-
$[11] =
|
|
68
|
-
$[12] =
|
|
55
|
+
$[11] = t3;
|
|
56
|
+
$[12] = t4;
|
|
69
57
|
} else {
|
|
70
|
-
|
|
58
|
+
t4 = $[12];
|
|
71
59
|
}
|
|
72
|
-
return
|
|
60
|
+
return t4;
|
|
73
61
|
}
|
package/dist/Avatar.jsx
CHANGED
|
@@ -258,10 +258,10 @@ export function AvatarFallback(t0) {
|
|
|
258
258
|
}
|
|
259
259
|
let t5;
|
|
260
260
|
if ($[13] !== children || $[14] !== scheme || $[15] !== size || $[16] !== textClassName) {
|
|
261
|
-
t5 = typeof children === "string" ? <Text numberOfLines={1} className={cn("font-instrument-sans-
|
|
261
|
+
t5 = typeof children === "string" ? <Text numberOfLines={1} className={cn("font-instrument-sans-medium", textClassName)} style={[{
|
|
262
262
|
fontSize: Math.round(size * 0.4),
|
|
263
263
|
color: palette.defaultForeground[scheme]
|
|
264
|
-
}, typeStyle("
|
|
264
|
+
}, typeStyle("medium")]}>{children}</Text> : children;
|
|
265
265
|
$[13] = children;
|
|
266
266
|
$[14] = scheme;
|
|
267
267
|
$[15] = size;
|
package/dist/BulkActionBar.jsx
CHANGED
|
@@ -246,7 +246,7 @@ export function BulkActionBar(t0) {
|
|
|
246
246
|
paddingHorizontal: 8,
|
|
247
247
|
paddingVertical: 2,
|
|
248
248
|
backgroundColor: tokens.color.surfaceSecondary[scheme]
|
|
249
|
-
}}><Text className="font-instrument-sans-
|
|
249
|
+
}}><Text className="font-instrument-sans-medium" style={[metrics.caption, typeStyle("medium"), {
|
|
250
250
|
fontVariant: ["tabular-nums"],
|
|
251
251
|
color: tokens.color.foreground[scheme]
|
|
252
252
|
}]}>{selectedCount}</Text></View>{labelled ? <Text className="font-instrument-sans-medium" style={[metrics.text, typeStyle("medium"), {
|
package/dist/Card.jsx
CHANGED
|
@@ -42,7 +42,7 @@ export function Card(t0) {
|
|
|
42
42
|
}
|
|
43
43
|
let t4;
|
|
44
44
|
if ($[4] !== Icon || $[5] !== accentColor || $[6] !== action || $[7] !== description || $[8] !== hasHeader || $[9] !== largerText || $[10] !== scheme || $[11] !== title || $[12] !== titleSize) {
|
|
45
|
-
t4 = hasHeader && <PrimitiveCardHeader className="px-4 py-0"><View className="flex-row items-center justify-between"><View className="flex-row items-center gap-2">{Icon && <Icon size={largerText ? 28 : 24} color={accentColor} />}{title ? <PrimitiveCardTitle className={cn("font-instrument-sans-
|
|
45
|
+
t4 = hasHeader && <PrimitiveCardHeader className="px-4 py-0"><View className="flex-row items-center justify-between"><View className="flex-row items-center gap-2">{Icon && <Icon size={largerText ? 28 : 24} color={accentColor} />}{title ? <PrimitiveCardTitle className={cn("font-instrument-sans-medium leading-tight", titleSize)} style={[textStyle("foreground", scheme), sizeStyle(titleSize, "tight"), typeStyle("medium")]}>{title}</PrimitiveCardTitle> : null}</View>{action}</View>{description ? <CardDescription>{description}</CardDescription> : null}</PrimitiveCardHeader>;
|
|
46
46
|
$[4] = Icon;
|
|
47
47
|
$[5] = accentColor;
|
|
48
48
|
$[6] = action;
|
|
@@ -146,7 +146,7 @@ export function CardHeader(t0) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* Web `font-
|
|
149
|
+
* Web `font-medium leading-none` at the inherited 16. The line height is
|
|
150
150
|
* `leading-tight` (20), not 16: below the face's ascent and descent, iOS and
|
|
151
151
|
* Android can clip the glyphs.
|
|
152
152
|
*/
|
|
@@ -175,7 +175,7 @@ export function CardTitle(t0) {
|
|
|
175
175
|
const size = largerText ? "text-2xl" : "text-base";
|
|
176
176
|
let t1;
|
|
177
177
|
if ($[4] !== className || $[5] !== size) {
|
|
178
|
-
t1 = cn("font-instrument-sans-
|
|
178
|
+
t1 = cn("font-instrument-sans-medium leading-tight", size, className);
|
|
179
179
|
$[4] = className;
|
|
180
180
|
$[5] = size;
|
|
181
181
|
$[6] = t1;
|
|
@@ -200,7 +200,7 @@ export function CardTitle(t0) {
|
|
|
200
200
|
}
|
|
201
201
|
let t4;
|
|
202
202
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
203
|
-
t4 = typeStyle("
|
|
203
|
+
t4 = typeStyle("medium");
|
|
204
204
|
$[11] = t4;
|
|
205
205
|
} else {
|
|
206
206
|
t4 = $[11];
|
package/dist/Chip.jsx
CHANGED
|
@@ -32,7 +32,7 @@ export function Chip(t0) {
|
|
|
32
32
|
const t4 = press.onPressOut;
|
|
33
33
|
const t5 = press.style;
|
|
34
34
|
const t6 = `items-center justify-center rounded-full border border-white/40 dark:border-white/10 ${size} ${selected ? "bg-pink-100 dark:bg-pink-900/40" : "bg-secondary"}`;
|
|
35
|
-
const t7 = `font-instrument-sans-
|
|
35
|
+
const t7 = `font-instrument-sans-medium ${largerText ? "text-xl" : "text-lg"} ${selected ? "text-pink-700 dark:text-pink-300" : ""}`;
|
|
36
36
|
let t8;
|
|
37
37
|
if ($[2] !== scheme || $[3] !== selected) {
|
|
38
38
|
t8 = selected ? null : textStyle("muted", scheme);
|
|
@@ -44,7 +44,7 @@ export function Chip(t0) {
|
|
|
44
44
|
}
|
|
45
45
|
let t9;
|
|
46
46
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
47
|
-
t9 = typeStyle("
|
|
47
|
+
t9 = typeStyle("medium");
|
|
48
48
|
$[5] = t9;
|
|
49
49
|
} else {
|
|
50
50
|
t9 = $[5];
|
package/dist/DateTimeField.jsx
CHANGED
|
@@ -141,7 +141,7 @@ export function DateTimeField(t0) {
|
|
|
141
141
|
if ($[20] !== buttons || $[21] !== largerText || $[22] !== scheme || $[23] !== testID || $[24] !== textColor) {
|
|
142
142
|
t10 = buttons.map(button_0 => <Pressable key={button_0.mode} testID={testID ? `${testID}-${button_0.mode}` : undefined} accessibilityRole="button" accessibilityLabel={button_0.label} onPress={() => setPicker(current => current === button_0.mode ? null : button_0.mode)} className={`${largerText ? "min-h-16" : "min-h-14"} flex-1 justify-center rounded-lg px-4 py-2 active:opacity-70`} style={{
|
|
143
143
|
backgroundColor: palette.default[scheme]
|
|
144
|
-
}}><Text className={`${largerText ? "text-xl" : "text-lg"} font-instrument-sans-
|
|
144
|
+
}}><Text className={`${largerText ? "text-xl" : "text-lg"} font-instrument-sans-medium`} style={[textColor, typeStyle("medium")]}>{button_0.label}</Text></Pressable>);
|
|
145
145
|
$[20] = buttons;
|
|
146
146
|
$[21] = largerText;
|
|
147
147
|
$[22] = scheme;
|
package/dist/Dialog.jsx
CHANGED
|
@@ -364,7 +364,7 @@ export function DialogHeader(t0) {
|
|
|
364
364
|
// Text colours are styles (`textStyle`), so they follow the colour scheme in
|
|
365
365
|
// apps whose `text-foreground` does not. Recolour with `style`, not `className`.
|
|
366
366
|
|
|
367
|
-
/** Web `text-lg font-
|
|
367
|
+
/** Web `text-lg font-medium`. */
|
|
368
368
|
export function DialogTitle(t0) {
|
|
369
369
|
const $ = _c(17);
|
|
370
370
|
let className;
|
|
@@ -390,7 +390,7 @@ export function DialogTitle(t0) {
|
|
|
390
390
|
const t1 = largerText ? "text-2xl" : "text-lg";
|
|
391
391
|
let t2;
|
|
392
392
|
if ($[4] !== className || $[5] !== t1) {
|
|
393
|
-
t2 = cn("font-instrument-sans-
|
|
393
|
+
t2 = cn("font-instrument-sans-medium", t1, className);
|
|
394
394
|
$[4] = className;
|
|
395
395
|
$[5] = t1;
|
|
396
396
|
$[6] = t2;
|
|
@@ -407,7 +407,7 @@ export function DialogTitle(t0) {
|
|
|
407
407
|
}
|
|
408
408
|
let t4;
|
|
409
409
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
410
|
-
t4 = typeStyle("
|
|
410
|
+
t4 = typeStyle("medium");
|
|
411
411
|
$[9] = t4;
|
|
412
412
|
} else {
|
|
413
413
|
t4 = $[9];
|
package/dist/DropdownMenu.jsx
CHANGED
|
@@ -1105,7 +1105,7 @@ export function DropdownMenuRadioItem(t0) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return t5;
|
|
1107
1107
|
}
|
|
1108
|
-
/** A group heading: the web `text-xs font-
|
|
1108
|
+
/** A group heading: the web `text-xs font-medium uppercase tracking-widest text-muted-foreground`, `px-2.5 py-1.5`. */
|
|
1109
1109
|
export function DropdownMenuLabel(t0) {
|
|
1110
1110
|
const $ = _c(15);
|
|
1111
1111
|
const {
|
|
@@ -1125,7 +1125,7 @@ export function DropdownMenuLabel(t0) {
|
|
|
1125
1125
|
const text = t2;
|
|
1126
1126
|
let t3;
|
|
1127
1127
|
if ($[2] !== className) {
|
|
1128
|
-
t3 = cn("font-instrument-sans-
|
|
1128
|
+
t3 = cn("font-instrument-sans-medium uppercase", className);
|
|
1129
1129
|
$[2] = className;
|
|
1130
1130
|
$[3] = t3;
|
|
1131
1131
|
} else {
|
|
@@ -1133,7 +1133,7 @@ export function DropdownMenuLabel(t0) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
let t4;
|
|
1135
1135
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1136
|
-
t4 = typeStyle("
|
|
1136
|
+
t4 = typeStyle("medium");
|
|
1137
1137
|
$[4] = t4;
|
|
1138
1138
|
} else {
|
|
1139
1139
|
t4 = $[4];
|
package/dist/EmptyState.jsx
CHANGED
|
@@ -38,7 +38,7 @@ function EmptyStateView(t0) {
|
|
|
38
38
|
const t7 = largerText ? "text-xl" : "text-lg";
|
|
39
39
|
let t8;
|
|
40
40
|
if ($[4] !== t7) {
|
|
41
|
-
t8 = cn("mt-4 text-center font-instrument-sans-
|
|
41
|
+
t8 = cn("mt-4 text-center font-instrument-sans-medium", t7);
|
|
42
42
|
$[4] = t7;
|
|
43
43
|
$[5] = t8;
|
|
44
44
|
} else {
|
|
@@ -54,7 +54,7 @@ function EmptyStateView(t0) {
|
|
|
54
54
|
}
|
|
55
55
|
let t10;
|
|
56
56
|
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
57
|
-
t10 = typeStyle("
|
|
57
|
+
t10 = typeStyle("medium");
|
|
58
58
|
$[8] = t10;
|
|
59
59
|
} else {
|
|
60
60
|
t10 = $[8];
|
|
@@ -281,7 +281,7 @@ function Title(t0) {
|
|
|
281
281
|
const t1 = largerText ? "text-xl" : "text-lg";
|
|
282
282
|
let t2;
|
|
283
283
|
if ($[4] !== className || $[5] !== t1) {
|
|
284
|
-
t2 = cn("text-center font-instrument-sans-
|
|
284
|
+
t2 = cn("text-center font-instrument-sans-medium", t1, className);
|
|
285
285
|
$[4] = className;
|
|
286
286
|
$[5] = t1;
|
|
287
287
|
$[6] = t2;
|
|
@@ -298,7 +298,7 @@ function Title(t0) {
|
|
|
298
298
|
}
|
|
299
299
|
let t4;
|
|
300
300
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
301
|
-
t4 = typeStyle("
|
|
301
|
+
t4 = typeStyle("medium");
|
|
302
302
|
$[9] = t4;
|
|
303
303
|
} else {
|
|
304
304
|
t4 = $[9];
|
package/dist/FloatingTabBar.jsx
CHANGED
|
@@ -271,7 +271,7 @@ function TabBarItem(t0) {
|
|
|
271
271
|
} else {
|
|
272
272
|
t7 = $[13];
|
|
273
273
|
}
|
|
274
|
-
const t8 = `font-instrument-sans-
|
|
274
|
+
const t8 = `font-instrument-sans-medium ${largerText ? "text-base" : "text-sm"}`;
|
|
275
275
|
let t9;
|
|
276
276
|
if ($[14] !== color) {
|
|
277
277
|
t9 = {
|
|
@@ -284,7 +284,7 @@ function TabBarItem(t0) {
|
|
|
284
284
|
}
|
|
285
285
|
let t10;
|
|
286
286
|
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
287
|
-
t10 = typeStyle("
|
|
287
|
+
t10 = typeStyle("medium");
|
|
288
288
|
$[16] = t10;
|
|
289
289
|
} else {
|
|
290
290
|
t10 = $[16];
|
|
@@ -70,7 +70,7 @@ export function LabeledSwitchRow(t0) {
|
|
|
70
70
|
const t8 = disabled && "opacity-70";
|
|
71
71
|
let t9;
|
|
72
72
|
if ($[11] !== t7 || $[12] !== t8) {
|
|
73
|
-
t9 = cn("font-instrument-sans-
|
|
73
|
+
t9 = cn("font-instrument-sans-medium", t7, t8);
|
|
74
74
|
$[11] = t7;
|
|
75
75
|
$[12] = t8;
|
|
76
76
|
$[13] = t9;
|
|
@@ -87,7 +87,7 @@ export function LabeledSwitchRow(t0) {
|
|
|
87
87
|
}
|
|
88
88
|
let t11;
|
|
89
89
|
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
90
|
-
t11 = typeStyle("
|
|
90
|
+
t11 = typeStyle("medium");
|
|
91
91
|
$[16] = t11;
|
|
92
92
|
} else {
|
|
93
93
|
t11 = $[16];
|
package/dist/ListRow.jsx
CHANGED
|
@@ -39,7 +39,7 @@ export function ListRow(t0) {
|
|
|
39
39
|
const t4 = titleEnd != null && "min-w-0 flex-1";
|
|
40
40
|
let t5;
|
|
41
41
|
if ($[0] !== t3 || $[1] !== t4) {
|
|
42
|
-
t5 = cn("font-instrument-sans-
|
|
42
|
+
t5 = cn("font-instrument-sans-medium", t3, t4);
|
|
43
43
|
$[0] = t3;
|
|
44
44
|
$[1] = t4;
|
|
45
45
|
$[2] = t5;
|
|
@@ -56,7 +56,7 @@ export function ListRow(t0) {
|
|
|
56
56
|
}
|
|
57
57
|
let t7;
|
|
58
58
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59
|
-
t7 = typeStyle("
|
|
59
|
+
t7 = typeStyle("medium");
|
|
60
60
|
$[5] = t7;
|
|
61
61
|
} else {
|
|
62
62
|
t7 = $[5];
|
package/dist/PinnedBotTile.jsx
CHANGED
|
@@ -74,7 +74,7 @@ export function PinnedBotTile(t0) {
|
|
|
74
74
|
const t13 = largerText ? "text-lg" : "text-base";
|
|
75
75
|
let t14;
|
|
76
76
|
if ($[10] !== t13) {
|
|
77
|
-
t14 = cn("text-center font-instrument-sans-
|
|
77
|
+
t14 = cn("text-center font-instrument-sans-medium", t13);
|
|
78
78
|
$[10] = t13;
|
|
79
79
|
$[11] = t14;
|
|
80
80
|
} else {
|
|
@@ -90,7 +90,7 @@ export function PinnedBotTile(t0) {
|
|
|
90
90
|
}
|
|
91
91
|
let t16;
|
|
92
92
|
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
93
|
-
t16 = typeStyle("
|
|
93
|
+
t16 = typeStyle("medium");
|
|
94
94
|
$[14] = t16;
|
|
95
95
|
} else {
|
|
96
96
|
t16 = $[14];
|
package/dist/StatGrid.jsx
CHANGED
|
@@ -41,7 +41,7 @@ export function StatGrid(t0) {
|
|
|
41
41
|
if ($[0] !== columns || $[1] !== items || $[2] !== labelSize || $[3] !== scheme || $[4] !== valueSize) {
|
|
42
42
|
let t3;
|
|
43
43
|
if ($[6] !== labelSize || $[7] !== scheme || $[8] !== valueSize) {
|
|
44
|
-
t3 = (row, rowIndex) => <View key={rowIndex} className="flex-row gap-3">{row.map((item, index) => item ? <View key={index} testID={item.testID} accessible={true} accessibilityLabel={`${item.label}, ${item.value}`} className="min-w-0 flex-1 gap-1 p-4" style={cardStyle(scheme)}><Text className={cn("font-instrument-sans", labelSize)} style={[textStyle("muted", scheme), sizeStyle(labelSize)]}>{item.label}</Text><Text className={cn("font-instrument-sans-
|
|
44
|
+
t3 = (row, rowIndex) => <View key={rowIndex} className="flex-row gap-3">{row.map((item, index) => item ? <View key={index} testID={item.testID} accessible={true} accessibilityLabel={`${item.label}, ${item.value}`} className="min-w-0 flex-1 gap-1 p-4" style={cardStyle(scheme)}><Text className={cn("font-instrument-sans", labelSize)} style={[textStyle("muted", scheme), sizeStyle(labelSize)]}>{item.label}</Text><Text className={cn("font-instrument-sans-medium", valueSize)} style={[textStyle("foreground", scheme), sizeStyle(valueSize, "tight"), typeStyle("medium"), {
|
|
45
45
|
fontVariant: ["tabular-nums"]
|
|
46
46
|
}]}>{item.value}</Text></View> : <View key={index} className="flex-1" />)}</View>;
|
|
47
47
|
$[6] = labelSize;
|
package/dist/Stepper.jsx
CHANGED
|
@@ -64,7 +64,7 @@ export function Stepper(t0) {
|
|
|
64
64
|
const t7 = largerText ? "text-3xl" : "text-2xl";
|
|
65
65
|
let t8;
|
|
66
66
|
if ($[13] !== t7) {
|
|
67
|
-
t8 = cn("min-w-8 text-center font-instrument-sans-
|
|
67
|
+
t8 = cn("min-w-8 text-center font-instrument-sans-medium", t7);
|
|
68
68
|
$[13] = t7;
|
|
69
69
|
$[14] = t8;
|
|
70
70
|
} else {
|
|
@@ -80,7 +80,7 @@ export function Stepper(t0) {
|
|
|
80
80
|
}
|
|
81
81
|
let t10;
|
|
82
82
|
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
83
|
-
t10 = typeStyle("
|
|
83
|
+
t10 = typeStyle("medium");
|
|
84
84
|
$[17] = t10;
|
|
85
85
|
} else {
|
|
86
86
|
t10 = $[17];
|
package/dist/Toast.jsx
CHANGED
|
@@ -351,7 +351,7 @@ function ToastCard(t0) {
|
|
|
351
351
|
t20 = item.action ? <Pressable accessibilityRole="button" hitSlop={8} onPress={() => {
|
|
352
352
|
item.action?.onPress();
|
|
353
353
|
toast.dismiss(item.id);
|
|
354
|
-
}} className="rounded-full bg-secondary px-3 py-1.5 active:opacity-70"><Text className="font-instrument-sans-
|
|
354
|
+
}} 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
355
|
$[38] = item.action;
|
|
356
356
|
$[39] = item.id;
|
|
357
357
|
$[40] = scheme;
|
|
@@ -179,10 +179,10 @@ function RecordRow(t0) {
|
|
|
179
179
|
}
|
|
180
180
|
let t12;
|
|
181
181
|
if ($[21] !== glyph || $[22] !== largerText || $[23] !== mark || $[24] !== markColor) {
|
|
182
|
-
t12 = mark === "check" ? <IconCheck size={glyph} strokeWidth={3} color={markColor} /> : mark === "other" ? <IconPencil size={glyph} strokeWidth={3} color={markColor} /> : <Text className="font-instrument-sans-
|
|
182
|
+
t12 = mark === "check" ? <IconCheck size={glyph} strokeWidth={3} color={markColor} /> : mark === "other" ? <IconPencil size={glyph} strokeWidth={3} color={markColor} /> : <Text className="font-instrument-sans-medium" style={[{
|
|
183
183
|
fontSize: largerText ? 13 : 10,
|
|
184
184
|
color: markColor
|
|
185
|
-
}, typeStyle("
|
|
185
|
+
}, typeStyle("medium")]}>{mark}</Text>;
|
|
186
186
|
$[21] = glyph;
|
|
187
187
|
$[22] = largerText;
|
|
188
188
|
$[23] = mark;
|
package/dist/ai/card-button.jsx
CHANGED
|
@@ -96,11 +96,11 @@ export function CardButton(t0) {
|
|
|
96
96
|
t14 = $[14];
|
|
97
97
|
}
|
|
98
98
|
const T1 = Text;
|
|
99
|
-
const t15 = cn(size, "font-instrument-sans-
|
|
99
|
+
const t15 = cn(size, "font-instrument-sans-medium");
|
|
100
100
|
const t16 = sizeStyle(size);
|
|
101
101
|
let t17;
|
|
102
102
|
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
103
|
-
t17 = typeStyle("
|
|
103
|
+
t17 = typeStyle("medium");
|
|
104
104
|
$[15] = t17;
|
|
105
105
|
} else {
|
|
106
106
|
t17 = $[15];
|
|
@@ -59,7 +59,7 @@ export function ChoiceQuestion(t0) {
|
|
|
59
59
|
const buttonText = largerText ? "text-xl" : "text-sm";
|
|
60
60
|
let t6;
|
|
61
61
|
if ($[0] !== buttonText || $[1] !== buttonWeight || $[2] !== scheme) {
|
|
62
|
-
t6 = (text, variant) => buttonWeight === "medium" ? text : <Text className={`${buttonText} font-instrument-sans-
|
|
62
|
+
t6 = (text, variant) => buttonWeight === "medium" ? text : <Text className={`${buttonText} font-instrument-sans-medium`} style={[sizeStyle(buttonText), typeStyle("medium"), {
|
|
63
63
|
color: buttonColors(variant, scheme)?.color
|
|
64
64
|
}]}>{text}</Text>;
|
|
65
65
|
$[0] = buttonText;
|
|
@@ -214,7 +214,7 @@ export function ChoiceQuestion(t0) {
|
|
|
214
214
|
}
|
|
215
215
|
let t20;
|
|
216
216
|
if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
|
|
217
|
-
t20 = typeStyle("
|
|
217
|
+
t20 = typeStyle("medium");
|
|
218
218
|
$[38] = t20;
|
|
219
219
|
} else {
|
|
220
220
|
t20 = $[38];
|
|
@@ -230,7 +230,7 @@ export function ChoiceQuestion(t0) {
|
|
|
230
230
|
}
|
|
231
231
|
let t22;
|
|
232
232
|
if ($[42] !== question.question || $[43] !== t21) {
|
|
233
|
-
t22 = <Text className="flex-1 font-instrument-sans-
|
|
233
|
+
t22 = <Text className="flex-1 font-instrument-sans-medium" style={t21}>{question.question}</Text>;
|
|
234
234
|
$[42] = question.question;
|
|
235
235
|
$[43] = t21;
|
|
236
236
|
$[44] = t22;
|
|
@@ -512,7 +512,7 @@ export function ChoiceQuestion(t0) {
|
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* The question's topic, the web `Badge variant="secondary"` with Eva's
|
|
515
|
-
* `text-3xs font-
|
|
515
|
+
* `text-3xs font-medium` (10 / 14, 600) in a `px-2.5 py-0.5` pill. Drawn here
|
|
516
516
|
* because `Badge` sets its own size and weight.
|
|
517
517
|
*/
|
|
518
518
|
export function TopicBadge(t0) {
|
|
@@ -553,7 +553,7 @@ export function TopicBadge(t0) {
|
|
|
553
553
|
}
|
|
554
554
|
let t6;
|
|
555
555
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
556
|
-
t6 = typeStyle("
|
|
556
|
+
t6 = typeStyle("medium");
|
|
557
557
|
$[6] = t6;
|
|
558
558
|
} else {
|
|
559
559
|
t6 = $[6];
|
|
@@ -568,7 +568,7 @@ export function TopicBadge(t0) {
|
|
|
568
568
|
}
|
|
569
569
|
let t8;
|
|
570
570
|
if ($[9] !== children || $[10] !== t7) {
|
|
571
|
-
t8 = <Text numberOfLines={1} className="font-instrument-sans-
|
|
571
|
+
t8 = <Text numberOfLines={1} className="font-instrument-sans-medium" style={t7}>{children}</Text>;
|
|
572
572
|
$[9] = children;
|
|
573
573
|
$[10] = t7;
|
|
574
574
|
$[11] = t8;
|
|
@@ -778,11 +778,11 @@ function ChoiceRow(t0) {
|
|
|
778
778
|
}
|
|
779
779
|
let t27;
|
|
780
780
|
if ($[58] !== glyph || $[59] !== largerText || $[60] !== mark || $[61] !== markText || $[62] !== muted || $[63] !== scheme || $[64] !== selected) {
|
|
781
|
-
t27 = selected ? <IconCheck size={glyph} strokeWidth={3} color={palette.primaryForeground[scheme]} /> : mark === "other" ? <IconPencil size={glyph} color={muted} /> : <Text className="font-instrument-sans-
|
|
781
|
+
t27 = selected ? <IconCheck size={glyph} strokeWidth={3} color={palette.primaryForeground[scheme]} /> : mark === "other" ? <IconPencil size={glyph} color={muted} /> : <Text className="font-instrument-sans-medium" style={[{
|
|
782
782
|
fontSize: markText,
|
|
783
783
|
lineHeight: largerText ? 20 : 16,
|
|
784
784
|
color: muted
|
|
785
|
-
}, trackingStyle(markText, "wide"), typeStyle("
|
|
785
|
+
}, trackingStyle(markText, "wide"), typeStyle("medium")]}>{mark}</Text>;
|
|
786
786
|
$[58] = glyph;
|
|
787
787
|
$[59] = largerText;
|
|
788
788
|
$[60] = mark;
|
|
@@ -215,7 +215,7 @@ export function MessageActionSheet(t0) {
|
|
|
215
215
|
t14 = $[59];
|
|
216
216
|
}
|
|
217
217
|
T0 = Text;
|
|
218
|
-
t7 = cn(body, "font-instrument-sans-
|
|
218
|
+
t7 = cn(body, "font-instrument-sans-medium");
|
|
219
219
|
t6 = sizeStyle(body);
|
|
220
220
|
$[3] = actions;
|
|
221
221
|
$[4] = cancelLabel;
|
|
@@ -286,7 +286,7 @@ export function MessageActionSheet(t0) {
|
|
|
286
286
|
}
|
|
287
287
|
let t28;
|
|
288
288
|
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
289
|
-
t28 = typeStyle("
|
|
289
|
+
t28 = typeStyle("medium");
|
|
290
290
|
$[60] = t28;
|
|
291
291
|
} else {
|
|
292
292
|
t28 = $[60];
|
|
@@ -49,11 +49,11 @@ export function MessageQuote(t0) {
|
|
|
49
49
|
if ($[3] !== author || $[4] !== color || $[5] !== largerText) {
|
|
50
50
|
const caption = chatTextSize("caption", largerText);
|
|
51
51
|
const body = chatTextSize("small", largerText);
|
|
52
|
-
const t6 = cn(caption, "font-instrument-sans-
|
|
52
|
+
const t6 = cn(caption, "font-instrument-sans-medium");
|
|
53
53
|
const t7 = sizeStyle(caption);
|
|
54
54
|
let t8;
|
|
55
55
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
56
|
-
t8 = typeStyle("
|
|
56
|
+
t8 = typeStyle("medium");
|
|
57
57
|
$[11] = t8;
|
|
58
58
|
} else {
|
|
59
59
|
t8 = $[11];
|
package/dist/ai/message.jsx
CHANGED
|
@@ -406,7 +406,7 @@ export function MessageBotLabel(t0) {
|
|
|
406
406
|
t9 = avatar;
|
|
407
407
|
T0 = Text;
|
|
408
408
|
t3 = 1;
|
|
409
|
-
t4 = cn(size, "font-instrument-sans-
|
|
409
|
+
t4 = cn(size, "font-instrument-sans-medium");
|
|
410
410
|
t2 = sizeStyle(size);
|
|
411
411
|
$[0] = avatar;
|
|
412
412
|
$[1] = className;
|
|
@@ -437,7 +437,7 @@ export function MessageBotLabel(t0) {
|
|
|
437
437
|
}
|
|
438
438
|
let t10;
|
|
439
439
|
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
440
|
-
t10 = typeStyle("
|
|
440
|
+
t10 = typeStyle("medium");
|
|
441
441
|
$[17] = t10;
|
|
442
442
|
} else {
|
|
443
443
|
t10 = $[17];
|
|
@@ -99,11 +99,11 @@ export function ReplyQuoteChip(t0) {
|
|
|
99
99
|
}
|
|
100
100
|
T1 = View;
|
|
101
101
|
t5 = "min-w-0 flex-1 py-2";
|
|
102
|
-
const t18 = cn(caption, "font-instrument-sans-
|
|
102
|
+
const t18 = cn(caption, "font-instrument-sans-medium");
|
|
103
103
|
const t19 = sizeStyle(caption);
|
|
104
104
|
let t20;
|
|
105
105
|
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
106
|
-
t20 = typeStyle("
|
|
106
|
+
t20 = typeStyle("medium");
|
|
107
107
|
$[33] = t20;
|
|
108
108
|
} else {
|
|
109
109
|
t20 = $[33];
|