@webority/mobile-ui 0.130.0 → 0.130.2
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/canvas-kit.json +2 -1
- package/dist/canvas-kit/kit.js +4443 -3958
- package/dist/canvas-kit/manifest.json +585 -3
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/commonjs/components/ListSection/ListSection.js +1 -1
- package/lib/commonjs/components/OnboardingPager/OnboardingPager.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
- package/lib/module/components/ListSection/ListSection.js +1 -1
- package/lib/module/components/OnboardingPager/OnboardingPager.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -1
- package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +4 -1
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +4 -1
- package/lib/typescript/commonjs/components/Screen/Screen.d.ts +3 -1
- package/lib/typescript/commonjs/index.d.ts +3 -3
- package/lib/typescript/commonjs/utils/index.d.ts +1 -1
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -1
- package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +4 -1
- package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +4 -1
- package/lib/typescript/module/components/Screen/Screen.d.ts +3 -1
- package/lib/typescript/module/index.d.ts +3 -3
- package/lib/typescript/module/utils/index.d.ts +1 -1
- package/package.json +8 -9
|
@@ -207,7 +207,7 @@ export interface BottomNavigationProps {
|
|
|
207
207
|
paddingHorizontal?: number;
|
|
208
208
|
/**
|
|
209
209
|
* Air inside the bar surface above and below the tab row, in pixels.
|
|
210
|
-
* Default
|
|
210
|
+
* Default 8 (`theme.space.sm`). On a docked bar that is not lifted
|
|
211
211
|
* by `marginVertical`, the bottom takes the safe-area inset instead when
|
|
212
212
|
* that is larger. The `underline` line sits on this padding's outer edge.
|
|
213
213
|
*/
|
|
@@ -3,7 +3,10 @@ import type { HapticType } from "../../utils/hapticUtils.js";
|
|
|
3
3
|
export interface OnboardingPage {
|
|
4
4
|
/** Stable identity of the page; also the list key. */
|
|
5
5
|
key: string;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The picture or illustration above the text. A fixed-size node (an `Image`) is centred;
|
|
8
|
+
* block content that should span the page width sets `alignSelf: "stretch"` on its root.
|
|
9
|
+
*/
|
|
7
10
|
art?: React.ReactNode;
|
|
8
11
|
title: string;
|
|
9
12
|
body: string;
|
|
@@ -4,6 +4,7 @@ import type { FlatListProps, NativeScrollEvent, NativeSyntheticEvent, ScrollView
|
|
|
4
4
|
import { FlatList } from "react-native";
|
|
5
5
|
import type { AppBarAction } from "../AppBar/index.js";
|
|
6
6
|
import type { EmptyStateProps } from "../EmptyState/index.js";
|
|
7
|
+
import type { FloatingActionButtonPosition } from "../FloatingActionButton/index.js";
|
|
7
8
|
import type { SafeAreaEdge } from "../KeyboardAwareScrollView/KeyboardAwareScrollView.js";
|
|
8
9
|
export interface ScreenListState {
|
|
9
10
|
/** First load: draws `skeleton` (or a Spinner) instead of the list. */
|
|
@@ -25,6 +26,7 @@ export interface ScreenListProps<ItemT> extends Omit<FlatListProps<ItemT>, "onSc
|
|
|
25
26
|
export interface FloatingActionSlotProps {
|
|
26
27
|
bottomOffset?: number;
|
|
27
28
|
size?: "sm" | "md" | "lg";
|
|
29
|
+
position?: FloatingActionButtonPosition;
|
|
28
30
|
}
|
|
29
31
|
export interface ScreenProps<ItemT = unknown> {
|
|
30
32
|
title?: string;
|
|
@@ -50,7 +52,7 @@ export interface ScreenProps<ItemT = unknown> {
|
|
|
50
52
|
bottomInset?: number;
|
|
51
53
|
/** Side margin of the content from the theme's screen gutter (16). Default true in scroll and fixed modes, false in list mode, where rows carry their own padding. The footer always has it. */
|
|
52
54
|
gutter?: boolean;
|
|
53
|
-
/** A FloatingActionButton or FloatingActionButtonGroup. The screen draws it above the tab bar and the footer and leaves room under the content so the last row is never covered. */
|
|
55
|
+
/** A FloatingActionButton or FloatingActionButtonGroup. The screen draws it above the tab bar and the footer and leaves room under the content so the last row is never covered. Floats bottomRight unless its own `position` is set. */
|
|
54
56
|
floatingAction?: React.ReactElement<FloatingActionSlotProps>;
|
|
55
57
|
/** Default true. */
|
|
56
58
|
keyboardToolbar?: boolean;
|
|
@@ -6,12 +6,12 @@ export { AppIcon } from "./components/AppIcon/index.js";
|
|
|
6
6
|
export type { FormCompletion, HookFieldProps, HookFormFieldProps, UseFormCompletionOptions } from "./form/index.js";
|
|
7
7
|
export { HookFormField, useHookFormField } from "./form/index.js";
|
|
8
8
|
export type { FieldChain, FieldChainProps, FieldErrorRegistry, MotionDurationKey, PresenceMotion, PressAnimationPreset, ScrollDirection, UseControllableStateOptions, UseFieldErrorScrollOptions, UseFieldErrorScrollResult, UsePressAnimationOptions, UsePressAnimationResult, UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, UseResendCountdownOptions, UseResendCountdownResult, UseScrollDirectionOptions, UseScrollDirectionResult, UseToggleResult, } from "./hooks/index.js";
|
|
9
|
-
export { useDebounce, useFieldChain, useRefreshControl, useScrollDirection } from "./hooks/index.js";
|
|
9
|
+
export { useDebounce, useFieldChain, useReducedMotion, useRefreshControl, useScrollDirection } from "./hooks/index.js";
|
|
10
10
|
export type { NetworkStatusBannerProps } from "./network/index.js";
|
|
11
11
|
export { NetworkStatusBanner } from "./network/index.js";
|
|
12
12
|
export type { BrandOverrides, ColorMode, ColorName, ColorSchemePreference, ComponentName, ComponentSettings, ComponentSizeTokens, ComponentTokens, DurationName, EaseName, FontFaces, FontName, FontWeightValue, GradientDefinition, GradientScale, IconRegistry, IconRenderer, KitThemeBridgeProps, LeadingName, LetterSpacingName, PhoneShadow, RadiusName, Resolved, ShadowName, SizeName, SpaceName, Spring, SpringScale, TextName, TextVariantSpec, Theme, ThemeProviderProps, ThemeSettings, TokenSet, WeightName, } from "./theme/index.js";
|
|
13
|
-
export { KitThemeBridge, lightTheme, makeStyles, ThemeProvider, useTheme, useThemeMode } from "./theme/index.js";
|
|
13
|
+
export { KitThemeBridge, lightTheme, makeStyles, radiusOf, ThemeProvider, useTheme, useThemeMode } from "./theme/index.js";
|
|
14
14
|
export type { FieldVariant, FillVariant, SelectionMode, Size, Tone, } from "./types/vocabulary.js";
|
|
15
15
|
export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SquirclePathParams, } from "./utils/index.js";
|
|
16
|
-
export { setHapticImplementation, triggerHaptic } from "./utils/index.js";
|
|
16
|
+
export { announce, isHapticsEnabled, setHapticImplementation, setHapticsEnabled, triggerHaptic } from "./utils/index.js";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,7 +5,7 @@ export { smoothCorners } from "./corners.js";
|
|
|
5
5
|
export type { FeedbackIntent } from "./feedback.js";
|
|
6
6
|
export { configureFeedback, feedback, hapticForIntent, isFeedbackEnabled } from "./feedback.js";
|
|
7
7
|
export type { HapticType } from "./hapticUtils.js";
|
|
8
|
-
export { resolveHaptic, setHapticImplementation, triggerHaptic } from "./hapticUtils.js";
|
|
8
|
+
export { isHapticsEnabled, resolveHaptic, setHapticImplementation, setHapticsEnabled, triggerHaptic, } from "./hapticUtils.js";
|
|
9
9
|
export { mergeRefs } from "./mergeRefs.js";
|
|
10
10
|
export type { BreakpointKey, ResponsiveScales, ScreenInfo } from "./responsive.js";
|
|
11
11
|
export { Breakpoints, isScreenSize, isTablet, Responsive, ScreenDimensions, useScreenDimensions, } from "./responsive.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-ui",
|
|
3
|
-
"version": "0.130.
|
|
3
|
+
"version": "0.130.2",
|
|
4
4
|
"description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -115,13 +115,13 @@
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@webority/markdown-core": "0.130.
|
|
118
|
+
"@webority/markdown-core": "0.130.2"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@react-navigation/bottom-tabs": ">=7.0.0",
|
|
122
122
|
"@react-navigation/native": ">=7.0.0",
|
|
123
|
-
"@webority/canvas-kit": "0.130.
|
|
124
|
-
"@webority/mobile-core": "0.130.
|
|
123
|
+
"@webority/canvas-kit": "0.130.2",
|
|
124
|
+
"@webority/mobile-core": "0.130.2",
|
|
125
125
|
"expo": ">=57.0.0",
|
|
126
126
|
"expo-file-system": ">=57.0.0",
|
|
127
127
|
"expo-haptics": ">=57.0.0",
|
|
@@ -185,10 +185,10 @@
|
|
|
185
185
|
"@types/node": "25.6.0",
|
|
186
186
|
"@types/react": "19.2.18",
|
|
187
187
|
"@types/react-test-renderer": "19.1.0",
|
|
188
|
-
"@webority/canvas-kit": "0.130.
|
|
189
|
-
"@webority/mobile-core": "0.130.
|
|
188
|
+
"@webority/canvas-kit": "0.130.2",
|
|
189
|
+
"@webority/mobile-core": "0.130.2",
|
|
190
190
|
"@webority/mobile-dev": "0.0.0",
|
|
191
|
-
"@webority/tokens": "0.130.
|
|
191
|
+
"@webority/tokens": "0.130.2",
|
|
192
192
|
"expo": "57.0.31",
|
|
193
193
|
"expo-file-system": "57.0.7",
|
|
194
194
|
"expo-haptics": "57.0.3",
|
|
@@ -205,12 +205,11 @@
|
|
|
205
205
|
"react-native-svg": "15.15.5",
|
|
206
206
|
"react-native-worklets": "0.10.4",
|
|
207
207
|
"react-test-renderer": "19.2.8",
|
|
208
|
-
"rimraf": "6.1.3",
|
|
209
208
|
"typescript": "5.9.3"
|
|
210
209
|
},
|
|
211
210
|
"scripts": {
|
|
212
211
|
"build": "bob build && node ../mobile-dev/scripts/minify-lib.mjs && node -e \"require('node:fs').rmSync('dist/canvas-kit',{recursive:true,force:true})\" && node ../canvas-kit/dist/cli.js build --config canvas-kit.json --out dist/canvas-kit",
|
|
213
|
-
"clean": "
|
|
212
|
+
"clean": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\"",
|
|
214
213
|
"lint": "biome lint ./src",
|
|
215
214
|
"lint:fix": "biome lint --write ./src",
|
|
216
215
|
"test": "jest",
|