@vvedantb/native-ui 0.37.2 → 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/README.md +8 -7
- 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/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 +250 -77
- package/dist/auth/GoogleSignInButton.jsx +0 -3
- package/dist/auth/SecondFactorScreen.jsx +18 -14
- package/dist/auth/SignInScreen.jsx +40 -34
- 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/LastCrashDialog.jsx +56 -0
- package/dist/crash/lastCrash.js +192 -0
- package/dist/entries/ai.js +0 -3
- package/dist/entries/ambient.js +0 -2
- package/dist/entries/app-root.js +1 -0
- 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 +2 -0
- 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 +4 -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 +4 -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 +158 -0
- package/dist/pagerSwipe.js +0 -16
- package/dist/palette.js +0 -10
- package/dist/primitives/button.jsx +0 -5
- package/dist/primitives/icon.jsx +0 -4
- 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 -10
- 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 +2 -9
- 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 +62 -0
- package/dist/themeModes.js +9 -0
- 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 +47 -19
- 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 +38 -0
- package/src/app-root/SsoCallbackScreen.tsx +52 -0
- package/src/app-root/fonts.ts +53 -0
- package/src/app-root/index.ts +6 -0
- package/src/auth/AccountScreens.tsx +0 -16
- package/src/auth/AuthProviders.tsx +0 -13
- package/src/auth/AuthScreen.tsx +95 -6
- package/src/auth/GoogleSignInButton.tsx +0 -12
- package/src/auth/SecondFactorScreen.tsx +17 -15
- package/src/auth/SignInScreen.tsx +103 -105
- 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 +36 -0
- package/src/crash/lastCrash.ts +218 -0
- package/src/entries/ai.ts +0 -3
- package/src/entries/ambient.ts +0 -2
- package/src/entries/app-root.ts +1 -0
- 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 +13 -0
- 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 +8 -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 +1 -21
- package/src/index.ts +7 -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 +127 -0
- 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/icon.tsx +0 -2
- 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 -18
- 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 +2 -16
- 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 +85 -0
- package/src/themeModes.ts +10 -0
- 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/types/prism-react-renderer.d.ts +22 -0
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
|
|
@@ -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
|
/**
|