@gaozh1024/rn-kit 0.3.0 → 0.3.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/README.md +24 -7
- package/dist/index.d.mts +43 -7
- package/dist/index.d.ts +43 -7
- package/dist/index.js +207 -140
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -38
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -34,6 +34,7 @@ yarn add @gaozh1024/rn-kit
|
|
|
34
34
|
npm install react react-native
|
|
35
35
|
npm install react-native-screens react-native-safe-area-context
|
|
36
36
|
npm install react-native-gesture-handler react-native-reanimated
|
|
37
|
+
npx expo install @expo/vector-icons
|
|
37
38
|
npx expo install expo-linear-gradient
|
|
38
39
|
npm install react-native-svg
|
|
39
40
|
```
|
|
@@ -170,6 +171,25 @@ import {
|
|
|
170
171
|
} from '@gaozh1024/rn-kit';
|
|
171
172
|
```
|
|
172
173
|
|
|
174
|
+
#### 可本地化文案参数(i18n 推荐)
|
|
175
|
+
|
|
176
|
+
- `AppList`
|
|
177
|
+
- `errorTitle`:错误标题(默认 `加载失败`)
|
|
178
|
+
- `errorDescription`:错误描述兜底(默认 `请检查网络后重试`)
|
|
179
|
+
- `retryText`:重试按钮文案(默认 `重新加载`)
|
|
180
|
+
- `Select`
|
|
181
|
+
- `singleSelectTitle` / `multipleSelectTitle`:弹窗标题
|
|
182
|
+
- `searchPlaceholder`:搜索占位文案
|
|
183
|
+
- `emptyText`:空状态文案
|
|
184
|
+
- `selectedCountText`:多选计数模板,支持 `{{count}}`
|
|
185
|
+
- `confirmText`:多选确认按钮文案
|
|
186
|
+
- `DatePicker`
|
|
187
|
+
- `cancelText` / `confirmText`:弹窗操作按钮文案
|
|
188
|
+
- `pickerTitle`:弹窗标题文案
|
|
189
|
+
- `pickerDateFormat`:弹窗顶部日期格式
|
|
190
|
+
- `yearLabel` / `monthLabel` / `dayLabel`:列标题文案
|
|
191
|
+
- `todayText` / `minDateText` / `maxDateText`:快捷按钮文案
|
|
192
|
+
|
|
173
193
|
### 🪝 Hooks
|
|
174
194
|
|
|
175
195
|
```tsx
|
|
@@ -290,10 +310,7 @@ function FilterPanel() {
|
|
|
290
310
|
```tsx
|
|
291
311
|
import { GradientView, AppText } from '@gaozh1024/rn-kit';
|
|
292
312
|
|
|
293
|
-
<GradientView
|
|
294
|
-
colors={['#f38b32', '#fb923c']}
|
|
295
|
-
style={{ padding: 24, borderRadius: 16 }}
|
|
296
|
-
>
|
|
313
|
+
<GradientView colors={['#f38b32', '#fb923c']} style={{ padding: 24, borderRadius: 16 }}>
|
|
297
314
|
<AppText color="white" weight="bold">
|
|
298
315
|
渐变卡片
|
|
299
316
|
</AppText>
|
|
@@ -451,19 +468,19 @@ export function HeroScreen() {
|
|
|
451
468
|
|
|
452
469
|
1. 当前页面没有单独覆盖 `AppStatusBar`
|
|
453
470
|
2. 页面容器本身是白底
|
|
454
|
-
3. 使用了 `
|
|
471
|
+
3. 使用了 `AppScreen` / `SafeScreen`,但没有设置 `bg`
|
|
455
472
|
4. 顶部安全区没有和页面背景统一
|
|
456
473
|
|
|
457
474
|
如果你用的是:
|
|
458
475
|
|
|
459
476
|
```tsx
|
|
460
|
-
<
|
|
477
|
+
<AppScreen>
|
|
461
478
|
```
|
|
462
479
|
|
|
463
480
|
那它默认不适合登录页这类全屏品牌色场景。请改成:
|
|
464
481
|
|
|
465
482
|
```tsx
|
|
466
|
-
<
|
|
483
|
+
<AppScreen bg="primary-500">
|
|
467
484
|
```
|
|
468
485
|
|
|
469
486
|
或者直接用:
|
package/dist/index.d.mts
CHANGED
|
@@ -1436,15 +1436,15 @@ declare function SafeScreen({ top, bottom, left, right, bg, flex, className, chi
|
|
|
1436
1436
|
*
|
|
1437
1437
|
* @example
|
|
1438
1438
|
* ```tsx
|
|
1439
|
-
* <
|
|
1439
|
+
* <AppScreen>
|
|
1440
1440
|
* <AppHeader title="首页" />
|
|
1441
1441
|
* <AppView flex p={4}>
|
|
1442
1442
|
* <AppText>页面内容</AppText>
|
|
1443
1443
|
* </AppView>
|
|
1444
|
-
* </
|
|
1444
|
+
* </AppScreen>
|
|
1445
1445
|
* ```
|
|
1446
1446
|
*/
|
|
1447
|
-
declare function
|
|
1447
|
+
declare function AppScreen({ children, className, ...props }: Omit<SafeScreenProps, 'top' | 'bottom' | 'left' | 'right'>): react_jsx_runtime.JSX.Element;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* 底部安全区域组件 - 只在底部添加安全距离
|
|
1450
1450
|
* 注意:此组件不会铺满全屏,只占据内容高度
|
|
@@ -1914,6 +1914,9 @@ interface AppListProps<T = any> {
|
|
|
1914
1914
|
onEndReachedThreshold?: number;
|
|
1915
1915
|
error?: Error | null;
|
|
1916
1916
|
onRetry?: () => void;
|
|
1917
|
+
errorTitle?: string;
|
|
1918
|
+
errorDescription?: string;
|
|
1919
|
+
retryText?: string;
|
|
1917
1920
|
emptyTitle?: string;
|
|
1918
1921
|
emptyDescription?: string;
|
|
1919
1922
|
emptyIcon?: string;
|
|
@@ -1932,7 +1935,7 @@ interface AppListProps<T = any> {
|
|
|
1932
1935
|
showsVerticalScrollIndicator?: boolean;
|
|
1933
1936
|
showsHorizontalScrollIndicator?: boolean;
|
|
1934
1937
|
}
|
|
1935
|
-
declare function AppList<T = any>({ data, renderItem, keyExtractor, loading, refreshing, onRefresh, hasMore, onEndReached, onEndReachedThreshold, error, onRetry, emptyTitle, emptyDescription, emptyIcon, EmptyComponent, divider, dividerStyle, skeletonCount, skeletonRender, ListHeaderComponent, ListFooterComponent, contentContainerStyle, style, numColumns, columnWrapperStyle, horizontal, showsVerticalScrollIndicator, showsHorizontalScrollIndicator, }: AppListProps<T>): react_jsx_runtime.JSX.Element;
|
|
1938
|
+
declare function AppList<T = any>({ data, renderItem, keyExtractor, loading, refreshing, onRefresh, hasMore, onEndReached, onEndReachedThreshold, error, onRetry, errorTitle, errorDescription, retryText, emptyTitle, emptyDescription, emptyIcon, EmptyComponent, divider, dividerStyle, skeletonCount, skeletonRender, ListHeaderComponent, ListFooterComponent, contentContainerStyle, style, numColumns, columnWrapperStyle, horizontal, showsVerticalScrollIndicator, showsHorizontalScrollIndicator, }: AppListProps<T>): react_jsx_runtime.JSX.Element;
|
|
1936
1939
|
|
|
1937
1940
|
interface PageDrawerProps {
|
|
1938
1941
|
/** 是否显示 */
|
|
@@ -2134,13 +2137,25 @@ interface SelectProps {
|
|
|
2134
2137
|
disabled?: boolean;
|
|
2135
2138
|
/** 是否可清空 */
|
|
2136
2139
|
clearable?: boolean;
|
|
2140
|
+
/** 单选弹窗标题 */
|
|
2141
|
+
singleSelectTitle?: string;
|
|
2142
|
+
/** 多选弹窗标题 */
|
|
2143
|
+
multipleSelectTitle?: string;
|
|
2144
|
+
/** 搜索占位文字 */
|
|
2145
|
+
searchPlaceholder?: string;
|
|
2146
|
+
/** 空状态文案 */
|
|
2147
|
+
emptyText?: string;
|
|
2148
|
+
/** 多选已选数量文案模板,使用 {{count}} 作为占位符 */
|
|
2149
|
+
selectedCountText?: string;
|
|
2150
|
+
/** 多选确认按钮文案 */
|
|
2151
|
+
confirmText?: string;
|
|
2137
2152
|
/** 自定义样式 */
|
|
2138
2153
|
className?: string;
|
|
2139
2154
|
}
|
|
2140
2155
|
/**
|
|
2141
2156
|
* 底部弹出选择器组件,支持浅色/深色主题
|
|
2142
2157
|
*/
|
|
2143
|
-
declare function Select({ value, onChange, options, placeholder, multiple, searchable, onSearch, disabled, clearable, className, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
2158
|
+
declare function Select({ value, onChange, options, placeholder, multiple, searchable, onSearch, disabled, clearable, singleSelectTitle, multipleSelectTitle, searchPlaceholder, emptyText, selectedCountText, confirmText, className, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
2144
2159
|
|
|
2145
2160
|
/**
|
|
2146
2161
|
* DatePicker 组件属性接口
|
|
@@ -2162,11 +2177,31 @@ interface DatePickerProps {
|
|
|
2162
2177
|
maxDate?: Date;
|
|
2163
2178
|
/** 自定义样式 */
|
|
2164
2179
|
className?: string;
|
|
2180
|
+
/** 弹窗取消按钮文案 */
|
|
2181
|
+
cancelText?: string;
|
|
2182
|
+
/** 弹窗确认按钮文案 */
|
|
2183
|
+
confirmText?: string;
|
|
2184
|
+
/** 弹窗标题文案 */
|
|
2185
|
+
pickerTitle?: string;
|
|
2186
|
+
/** 弹窗日期展示格式 */
|
|
2187
|
+
pickerDateFormat?: string;
|
|
2188
|
+
/** 年列标题 */
|
|
2189
|
+
yearLabel?: string;
|
|
2190
|
+
/** 月列标题 */
|
|
2191
|
+
monthLabel?: string;
|
|
2192
|
+
/** 日列标题 */
|
|
2193
|
+
dayLabel?: string;
|
|
2194
|
+
/** 快捷按钮“今天”文案 */
|
|
2195
|
+
todayText?: string;
|
|
2196
|
+
/** 快捷按钮“最早”文案 */
|
|
2197
|
+
minDateText?: string;
|
|
2198
|
+
/** 快捷按钮“最晚”文案 */
|
|
2199
|
+
maxDateText?: string;
|
|
2165
2200
|
}
|
|
2166
2201
|
/**
|
|
2167
2202
|
* DatePicker - 日期选择器组件,支持浅色/深色主题
|
|
2168
2203
|
*/
|
|
2169
|
-
declare function DatePicker({ value, onChange, placeholder, disabled, format, minDate, maxDate, className, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2204
|
+
declare function DatePicker({ value, onChange, placeholder, disabled, format, minDate, maxDate, className, cancelText, confirmText, pickerTitle, pickerDateFormat, yearLabel, monthLabel, dayLabel, todayText, minDateText, maxDateText, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2170
2205
|
|
|
2171
2206
|
interface FormItemProps {
|
|
2172
2207
|
name: string;
|
|
@@ -3236,6 +3271,7 @@ interface AppStatusBarProps extends Omit<StatusBarProps, 'barStyle' | 'backgroun
|
|
|
3236
3271
|
* - 页面可通过手动渲染该组件进行局部覆盖
|
|
3237
3272
|
*/
|
|
3238
3273
|
declare function AppStatusBar({ barStyle, backgroundColor, translucent, ...props }: AppStatusBarProps): react_jsx_runtime.JSX.Element;
|
|
3274
|
+
declare function AppFocusedStatusBar(props: AppStatusBarProps): react_jsx_runtime.JSX.Element | null;
|
|
3239
3275
|
|
|
3240
3276
|
/**
|
|
3241
3277
|
* AppProvider Props
|
|
@@ -3548,4 +3584,4 @@ interface AlertContextType {
|
|
|
3548
3584
|
*/
|
|
3549
3585
|
declare function useAlert(): AlertContextType;
|
|
3550
3586
|
|
|
3551
|
-
export { ActionIcons, Alert, type AlertContextType, type AlertOptions, type AlertProps, type ApiBusinessErrorParser, type ApiConfig, type ApiEndpointConfig, type ApiErrorContext, type ApiErrorHandler, type ApiMethod, AppButton, type AppButtonProps, type AppError, AppHeader, type AppHeaderProps, AppImage, type AppImageProps, AppInput, type AppInputProps, AppList, type AppListProps, type AppNavigation, AppPressable, type AppPressableProps, AppProvider, type AppProviderProps, AppScrollView, type AppScrollViewProps, AppStatusBar, type AppStatusBarProps, AppText, type AppTextProps, AppView, type AppViewProps, BottomTabBar, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Col, type ColProps, type ColorPalette$1 as ColorPalette, type ColorToken, type CustomBottomTabBarProps, DatePicker, type DatePickerProps, DrawerContent, type DrawerContentProps, type DrawerItem, type DrawerNavigation, DrawerNavigator, type DrawerNavigatorProps, type DrawerOptions, type DrawerParamList, type DrawerRouteConfig, type DrawerScreenOptions, type DrawerScreenProps, ErrorCode, FileIcons, type FormErrors, type FormGroupOption, FormItem, type FormItemProps, GradientView, type GradientViewProps, Icon, type IconProps, type IconSize, type InfiniteFetchParams, type InfiniteFetchResult, type LinkingConfig, Loading, type LoadingContextType, type LoadingProps, type LoadingState, MemoryStorage, NavigationIcons, NavigationProvider, type NavigationProviderProps, type Orientation, OverlayProvider, type OverlayProviderProps,
|
|
3587
|
+
export { ActionIcons, Alert, type AlertContextType, type AlertOptions, type AlertProps, type ApiBusinessErrorParser, type ApiConfig, type ApiEndpointConfig, type ApiErrorContext, type ApiErrorHandler, type ApiMethod, AppButton, type AppButtonProps, type AppError, AppFocusedStatusBar, AppHeader, type AppHeaderProps, AppImage, type AppImageProps, AppInput, type AppInputProps, AppList, type AppListProps, type AppNavigation, AppPressable, type AppPressableProps, AppProvider, type AppProviderProps, AppScreen, AppScrollView, type AppScrollViewProps, AppStatusBar, type AppStatusBarProps, AppText, type AppTextProps, AppView, type AppViewProps, BottomTabBar, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Col, type ColProps, type ColorPalette$1 as ColorPalette, type ColorToken, type CustomBottomTabBarProps, DatePicker, type DatePickerProps, DrawerContent, type DrawerContentProps, type DrawerItem, type DrawerNavigation, DrawerNavigator, type DrawerNavigatorProps, type DrawerOptions, type DrawerParamList, type DrawerRouteConfig, type DrawerScreenOptions, type DrawerScreenProps, ErrorCode, FileIcons, type FormErrors, type FormGroupOption, FormItem, type FormItemProps, GradientView, type GradientViewProps, Icon, type IconProps, type IconSize, type InfiniteFetchParams, type InfiniteFetchResult, type LinkingConfig, Loading, type LoadingContextType, type LoadingProps, type LoadingState, MemoryStorage, NavigationIcons, NavigationProvider, type NavigationProviderProps, type Orientation, OverlayProvider, type OverlayProviderProps, PageDrawer, type PageDrawerProps, type PaginationParams, type PaginationResult, type ParamListBase, type PathConfig, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RgbObject, type RouteConfig, Row, type RowProps, SafeBottom, SafeScreen, type SafeScreenProps, Select, type SelectOption, type SelectProps, Slider, type SliderProps, type StackNavigation, StackNavigator, type StackNavigatorProps, type StackParamList, type StackRouteConfig, type StackScreenOptions, type StackScreenProps, StatusIcons, Switch, type SwitchProps, type TabBarOptions, type TabNavigation, TabNavigator, type TabNavigatorProps, type TabParamList, type TabRouteConfig, type TabScreenOptions, type TabScreenProps, type Theme, type ColorPalette as ThemeColorPalette, type ThemeConfig, ThemeProvider, Toast, type ToastContextType, type ToastItem, type ToastProps, type ToastType, type UseAsyncState, type UseDimensionsReturn, type UseFormOptions, type UseInfiniteOptions, type UseInfiniteReturn, type UseKeyboardReturn, type UseOrientationReturn, type UsePageDrawerReturn, type UsePaginationOptions, type UsePaginationReturn, type UseRefreshReturn, type UseToggleActions, adjustBrightness, capitalize, clamp, cn, createAPI, createDrawerScreens, createNavigationTheme, createStackScreens, createTabScreens, createTheme, deepMerge, enhanceError, formatCurrency, formatDate, formatNumber, formatPercent, formatRelativeTime, generateColorPalette, getThemeColors, getValidationErrors, hexToRgb, isDevelopment, isValidEmail, isValidPhone, mapHttpStatus, omit, pick, rgbToHex, slugify, storage, truncate, useAlert, useAsyncState, useBackHandler, useDebounce, useDimensions, useDrawerNavigation, useForm, useInfinite, useKeyboard, useLoading, useMemoizedFn, useNavigation, useNavigationState, useOrientation, usePageDrawer, usePagination, usePrevious, useRefresh, useRequest, useRoute, useSetState, useStackNavigation, useStorage, useTabNavigation, useTheme, useThemeColors, useThrottle, useToast, useToggle, useUpdateEffect };
|
package/dist/index.d.ts
CHANGED
|
@@ -1436,15 +1436,15 @@ declare function SafeScreen({ top, bottom, left, right, bg, flex, className, chi
|
|
|
1436
1436
|
*
|
|
1437
1437
|
* @example
|
|
1438
1438
|
* ```tsx
|
|
1439
|
-
* <
|
|
1439
|
+
* <AppScreen>
|
|
1440
1440
|
* <AppHeader title="首页" />
|
|
1441
1441
|
* <AppView flex p={4}>
|
|
1442
1442
|
* <AppText>页面内容</AppText>
|
|
1443
1443
|
* </AppView>
|
|
1444
|
-
* </
|
|
1444
|
+
* </AppScreen>
|
|
1445
1445
|
* ```
|
|
1446
1446
|
*/
|
|
1447
|
-
declare function
|
|
1447
|
+
declare function AppScreen({ children, className, ...props }: Omit<SafeScreenProps, 'top' | 'bottom' | 'left' | 'right'>): react_jsx_runtime.JSX.Element;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* 底部安全区域组件 - 只在底部添加安全距离
|
|
1450
1450
|
* 注意:此组件不会铺满全屏,只占据内容高度
|
|
@@ -1914,6 +1914,9 @@ interface AppListProps<T = any> {
|
|
|
1914
1914
|
onEndReachedThreshold?: number;
|
|
1915
1915
|
error?: Error | null;
|
|
1916
1916
|
onRetry?: () => void;
|
|
1917
|
+
errorTitle?: string;
|
|
1918
|
+
errorDescription?: string;
|
|
1919
|
+
retryText?: string;
|
|
1917
1920
|
emptyTitle?: string;
|
|
1918
1921
|
emptyDescription?: string;
|
|
1919
1922
|
emptyIcon?: string;
|
|
@@ -1932,7 +1935,7 @@ interface AppListProps<T = any> {
|
|
|
1932
1935
|
showsVerticalScrollIndicator?: boolean;
|
|
1933
1936
|
showsHorizontalScrollIndicator?: boolean;
|
|
1934
1937
|
}
|
|
1935
|
-
declare function AppList<T = any>({ data, renderItem, keyExtractor, loading, refreshing, onRefresh, hasMore, onEndReached, onEndReachedThreshold, error, onRetry, emptyTitle, emptyDescription, emptyIcon, EmptyComponent, divider, dividerStyle, skeletonCount, skeletonRender, ListHeaderComponent, ListFooterComponent, contentContainerStyle, style, numColumns, columnWrapperStyle, horizontal, showsVerticalScrollIndicator, showsHorizontalScrollIndicator, }: AppListProps<T>): react_jsx_runtime.JSX.Element;
|
|
1938
|
+
declare function AppList<T = any>({ data, renderItem, keyExtractor, loading, refreshing, onRefresh, hasMore, onEndReached, onEndReachedThreshold, error, onRetry, errorTitle, errorDescription, retryText, emptyTitle, emptyDescription, emptyIcon, EmptyComponent, divider, dividerStyle, skeletonCount, skeletonRender, ListHeaderComponent, ListFooterComponent, contentContainerStyle, style, numColumns, columnWrapperStyle, horizontal, showsVerticalScrollIndicator, showsHorizontalScrollIndicator, }: AppListProps<T>): react_jsx_runtime.JSX.Element;
|
|
1936
1939
|
|
|
1937
1940
|
interface PageDrawerProps {
|
|
1938
1941
|
/** 是否显示 */
|
|
@@ -2134,13 +2137,25 @@ interface SelectProps {
|
|
|
2134
2137
|
disabled?: boolean;
|
|
2135
2138
|
/** 是否可清空 */
|
|
2136
2139
|
clearable?: boolean;
|
|
2140
|
+
/** 单选弹窗标题 */
|
|
2141
|
+
singleSelectTitle?: string;
|
|
2142
|
+
/** 多选弹窗标题 */
|
|
2143
|
+
multipleSelectTitle?: string;
|
|
2144
|
+
/** 搜索占位文字 */
|
|
2145
|
+
searchPlaceholder?: string;
|
|
2146
|
+
/** 空状态文案 */
|
|
2147
|
+
emptyText?: string;
|
|
2148
|
+
/** 多选已选数量文案模板,使用 {{count}} 作为占位符 */
|
|
2149
|
+
selectedCountText?: string;
|
|
2150
|
+
/** 多选确认按钮文案 */
|
|
2151
|
+
confirmText?: string;
|
|
2137
2152
|
/** 自定义样式 */
|
|
2138
2153
|
className?: string;
|
|
2139
2154
|
}
|
|
2140
2155
|
/**
|
|
2141
2156
|
* 底部弹出选择器组件,支持浅色/深色主题
|
|
2142
2157
|
*/
|
|
2143
|
-
declare function Select({ value, onChange, options, placeholder, multiple, searchable, onSearch, disabled, clearable, className, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
2158
|
+
declare function Select({ value, onChange, options, placeholder, multiple, searchable, onSearch, disabled, clearable, singleSelectTitle, multipleSelectTitle, searchPlaceholder, emptyText, selectedCountText, confirmText, className, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
2144
2159
|
|
|
2145
2160
|
/**
|
|
2146
2161
|
* DatePicker 组件属性接口
|
|
@@ -2162,11 +2177,31 @@ interface DatePickerProps {
|
|
|
2162
2177
|
maxDate?: Date;
|
|
2163
2178
|
/** 自定义样式 */
|
|
2164
2179
|
className?: string;
|
|
2180
|
+
/** 弹窗取消按钮文案 */
|
|
2181
|
+
cancelText?: string;
|
|
2182
|
+
/** 弹窗确认按钮文案 */
|
|
2183
|
+
confirmText?: string;
|
|
2184
|
+
/** 弹窗标题文案 */
|
|
2185
|
+
pickerTitle?: string;
|
|
2186
|
+
/** 弹窗日期展示格式 */
|
|
2187
|
+
pickerDateFormat?: string;
|
|
2188
|
+
/** 年列标题 */
|
|
2189
|
+
yearLabel?: string;
|
|
2190
|
+
/** 月列标题 */
|
|
2191
|
+
monthLabel?: string;
|
|
2192
|
+
/** 日列标题 */
|
|
2193
|
+
dayLabel?: string;
|
|
2194
|
+
/** 快捷按钮“今天”文案 */
|
|
2195
|
+
todayText?: string;
|
|
2196
|
+
/** 快捷按钮“最早”文案 */
|
|
2197
|
+
minDateText?: string;
|
|
2198
|
+
/** 快捷按钮“最晚”文案 */
|
|
2199
|
+
maxDateText?: string;
|
|
2165
2200
|
}
|
|
2166
2201
|
/**
|
|
2167
2202
|
* DatePicker - 日期选择器组件,支持浅色/深色主题
|
|
2168
2203
|
*/
|
|
2169
|
-
declare function DatePicker({ value, onChange, placeholder, disabled, format, minDate, maxDate, className, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2204
|
+
declare function DatePicker({ value, onChange, placeholder, disabled, format, minDate, maxDate, className, cancelText, confirmText, pickerTitle, pickerDateFormat, yearLabel, monthLabel, dayLabel, todayText, minDateText, maxDateText, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2170
2205
|
|
|
2171
2206
|
interface FormItemProps {
|
|
2172
2207
|
name: string;
|
|
@@ -3236,6 +3271,7 @@ interface AppStatusBarProps extends Omit<StatusBarProps, 'barStyle' | 'backgroun
|
|
|
3236
3271
|
* - 页面可通过手动渲染该组件进行局部覆盖
|
|
3237
3272
|
*/
|
|
3238
3273
|
declare function AppStatusBar({ barStyle, backgroundColor, translucent, ...props }: AppStatusBarProps): react_jsx_runtime.JSX.Element;
|
|
3274
|
+
declare function AppFocusedStatusBar(props: AppStatusBarProps): react_jsx_runtime.JSX.Element | null;
|
|
3239
3275
|
|
|
3240
3276
|
/**
|
|
3241
3277
|
* AppProvider Props
|
|
@@ -3548,4 +3584,4 @@ interface AlertContextType {
|
|
|
3548
3584
|
*/
|
|
3549
3585
|
declare function useAlert(): AlertContextType;
|
|
3550
3586
|
|
|
3551
|
-
export { ActionIcons, Alert, type AlertContextType, type AlertOptions, type AlertProps, type ApiBusinessErrorParser, type ApiConfig, type ApiEndpointConfig, type ApiErrorContext, type ApiErrorHandler, type ApiMethod, AppButton, type AppButtonProps, type AppError, AppHeader, type AppHeaderProps, AppImage, type AppImageProps, AppInput, type AppInputProps, AppList, type AppListProps, type AppNavigation, AppPressable, type AppPressableProps, AppProvider, type AppProviderProps, AppScrollView, type AppScrollViewProps, AppStatusBar, type AppStatusBarProps, AppText, type AppTextProps, AppView, type AppViewProps, BottomTabBar, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Col, type ColProps, type ColorPalette$1 as ColorPalette, type ColorToken, type CustomBottomTabBarProps, DatePicker, type DatePickerProps, DrawerContent, type DrawerContentProps, type DrawerItem, type DrawerNavigation, DrawerNavigator, type DrawerNavigatorProps, type DrawerOptions, type DrawerParamList, type DrawerRouteConfig, type DrawerScreenOptions, type DrawerScreenProps, ErrorCode, FileIcons, type FormErrors, type FormGroupOption, FormItem, type FormItemProps, GradientView, type GradientViewProps, Icon, type IconProps, type IconSize, type InfiniteFetchParams, type InfiniteFetchResult, type LinkingConfig, Loading, type LoadingContextType, type LoadingProps, type LoadingState, MemoryStorage, NavigationIcons, NavigationProvider, type NavigationProviderProps, type Orientation, OverlayProvider, type OverlayProviderProps,
|
|
3587
|
+
export { ActionIcons, Alert, type AlertContextType, type AlertOptions, type AlertProps, type ApiBusinessErrorParser, type ApiConfig, type ApiEndpointConfig, type ApiErrorContext, type ApiErrorHandler, type ApiMethod, AppButton, type AppButtonProps, type AppError, AppFocusedStatusBar, AppHeader, type AppHeaderProps, AppImage, type AppImageProps, AppInput, type AppInputProps, AppList, type AppListProps, type AppNavigation, AppPressable, type AppPressableProps, AppProvider, type AppProviderProps, AppScreen, AppScrollView, type AppScrollViewProps, AppStatusBar, type AppStatusBarProps, AppText, type AppTextProps, AppView, type AppViewProps, BottomTabBar, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Col, type ColProps, type ColorPalette$1 as ColorPalette, type ColorToken, type CustomBottomTabBarProps, DatePicker, type DatePickerProps, DrawerContent, type DrawerContentProps, type DrawerItem, type DrawerNavigation, DrawerNavigator, type DrawerNavigatorProps, type DrawerOptions, type DrawerParamList, type DrawerRouteConfig, type DrawerScreenOptions, type DrawerScreenProps, ErrorCode, FileIcons, type FormErrors, type FormGroupOption, FormItem, type FormItemProps, GradientView, type GradientViewProps, Icon, type IconProps, type IconSize, type InfiniteFetchParams, type InfiniteFetchResult, type LinkingConfig, Loading, type LoadingContextType, type LoadingProps, type LoadingState, MemoryStorage, NavigationIcons, NavigationProvider, type NavigationProviderProps, type Orientation, OverlayProvider, type OverlayProviderProps, PageDrawer, type PageDrawerProps, type PaginationParams, type PaginationResult, type ParamListBase, type PathConfig, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RgbObject, type RouteConfig, Row, type RowProps, SafeBottom, SafeScreen, type SafeScreenProps, Select, type SelectOption, type SelectProps, Slider, type SliderProps, type StackNavigation, StackNavigator, type StackNavigatorProps, type StackParamList, type StackRouteConfig, type StackScreenOptions, type StackScreenProps, StatusIcons, Switch, type SwitchProps, type TabBarOptions, type TabNavigation, TabNavigator, type TabNavigatorProps, type TabParamList, type TabRouteConfig, type TabScreenOptions, type TabScreenProps, type Theme, type ColorPalette as ThemeColorPalette, type ThemeConfig, ThemeProvider, Toast, type ToastContextType, type ToastItem, type ToastProps, type ToastType, type UseAsyncState, type UseDimensionsReturn, type UseFormOptions, type UseInfiniteOptions, type UseInfiniteReturn, type UseKeyboardReturn, type UseOrientationReturn, type UsePageDrawerReturn, type UsePaginationOptions, type UsePaginationReturn, type UseRefreshReturn, type UseToggleActions, adjustBrightness, capitalize, clamp, cn, createAPI, createDrawerScreens, createNavigationTheme, createStackScreens, createTabScreens, createTheme, deepMerge, enhanceError, formatCurrency, formatDate, formatNumber, formatPercent, formatRelativeTime, generateColorPalette, getThemeColors, getValidationErrors, hexToRgb, isDevelopment, isValidEmail, isValidPhone, mapHttpStatus, omit, pick, rgbToHex, slugify, storage, truncate, useAlert, useAsyncState, useBackHandler, useDebounce, useDimensions, useDrawerNavigation, useForm, useInfinite, useKeyboard, useLoading, useMemoizedFn, useNavigation, useNavigationState, useOrientation, usePageDrawer, usePagination, usePrevious, useRefresh, useRequest, useRoute, useSetState, useStackNavigation, useStorage, useTabNavigation, useTheme, useThemeColors, useThrottle, useToast, useToggle, useUpdateEffect };
|