zkit-ui 1.0.6 → 2.0.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 +25 -11
- package/dist/ZKitCoreProvider.d.ts +13 -0
- package/dist/ZKitCoreProvider.d.ts.map +1 -0
- package/dist/ZKitCoreProvider.js +10 -0
- package/dist/ZKitProvider.d.ts +2 -10
- package/dist/ZKitProvider.d.ts.map +1 -1
- package/dist/ZKitProvider.js +4 -5
- package/dist/all.d.ts +59 -0
- package/dist/all.d.ts.map +1 -0
- package/dist/all.js +92 -0
- package/dist/index.d.ts +2 -46
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -73
- package/dist/services/PermissionPurposeDialogService/index.d.ts +1 -1
- package/dist/services/PermissionPurposeDialogService/index.js +1 -1
- package/dist/services/PickerService/index.d.ts +1 -1
- package/dist/services/PickerService/index.js +1 -1
- package/package.json +164 -2
- package/src/ZKitCoreProvider.tsx +34 -0
- package/src/ZKitProvider.tsx +25 -33
- package/src/all.ts +397 -0
- package/src/index.ts +5 -374
- package/src/services/ActionDialogService/README.md +3 -2
- package/src/services/CardToastService/README.md +2 -2
- package/src/services/ImagePreviewService/README.md +2 -2
- package/src/services/LoadingService/README.md +1 -1
- package/src/services/PermissionPurposeDialogService/README.md +2 -2
- package/src/services/PermissionPurposeDialogService/index.tsx +1 -1
- package/src/services/PickerService/README.md +2 -2
- package/src/services/PickerService/index.tsx +1 -1
- package/src/ui/Accordion/README.md +2 -2
- package/src/ui/AddressCascader/README.md +4 -2
- package/src/ui/BetweenTime/README.md +12 -12
- package/src/ui/Button/README.md +7 -7
- package/src/ui/Checkbox/README.md +2 -2
- package/src/ui/DatePicker/README.md +2 -1
- package/src/ui/LinkedScroll/README.md +2 -1
- package/src/ui/Picker/README.md +2 -1
- package/src/ui/Radio/README.md +2 -1
- package/src/ui/Sheet/README.md +3 -1
- package/src/ui/SliderCaptcha/README.md +1 -1
- package/src/ui/Switch/README.md +1 -1
- package/src/ui/Text/README.md +2 -2
- package/src/ui/TextInput/README.md +6 -6
- package/src/ui/WheelColumn/README.md +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,171 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zkit-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"source": "src/index.ts",
|
|
8
8
|
"react-native": "dist/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"react-native": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./all": {
|
|
16
|
+
"types": "./dist/all.d.ts",
|
|
17
|
+
"react-native": "./dist/all.js",
|
|
18
|
+
"default": "./dist/all.js"
|
|
19
|
+
},
|
|
20
|
+
"./provider": {
|
|
21
|
+
"types": "./dist/ZKitProvider.d.ts",
|
|
22
|
+
"react-native": "./dist/ZKitProvider.js",
|
|
23
|
+
"default": "./dist/ZKitProvider.js"
|
|
24
|
+
},
|
|
25
|
+
"./core-provider": {
|
|
26
|
+
"types": "./dist/ZKitCoreProvider.d.ts",
|
|
27
|
+
"react-native": "./dist/ZKitCoreProvider.js",
|
|
28
|
+
"default": "./dist/ZKitCoreProvider.js"
|
|
29
|
+
},
|
|
30
|
+
"./config": {
|
|
31
|
+
"types": "./dist/config.d.ts",
|
|
32
|
+
"react-native": "./dist/config.js",
|
|
33
|
+
"default": "./dist/config.js"
|
|
34
|
+
},
|
|
35
|
+
"./theme/*": {
|
|
36
|
+
"types": "./dist/theme/*.d.ts",
|
|
37
|
+
"react-native": "./dist/theme/*.js",
|
|
38
|
+
"default": "./dist/theme/*.js"
|
|
39
|
+
},
|
|
40
|
+
"./i18n/locales": {
|
|
41
|
+
"types": "./dist/i18n/locales/index.d.ts",
|
|
42
|
+
"react-native": "./dist/i18n/locales/index.js",
|
|
43
|
+
"default": "./dist/i18n/locales/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./i18n/locales/*": {
|
|
46
|
+
"types": "./dist/i18n/locales/*.d.ts",
|
|
47
|
+
"react-native": "./dist/i18n/locales/*.js",
|
|
48
|
+
"default": "./dist/i18n/locales/*.js"
|
|
49
|
+
},
|
|
50
|
+
"./i18n/*": {
|
|
51
|
+
"types": "./dist/i18n/*.d.ts",
|
|
52
|
+
"react-native": "./dist/i18n/*.js",
|
|
53
|
+
"default": "./dist/i18n/*.js"
|
|
54
|
+
},
|
|
55
|
+
"./accordion": {
|
|
56
|
+
"types": "./dist/ui/Accordion/index.d.ts",
|
|
57
|
+
"react-native": "./dist/ui/Accordion/index.js",
|
|
58
|
+
"default": "./dist/ui/Accordion/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./address-cascader": {
|
|
61
|
+
"types": "./dist/ui/AddressCascader/index.d.ts",
|
|
62
|
+
"react-native": "./dist/ui/AddressCascader/index.js",
|
|
63
|
+
"default": "./dist/ui/AddressCascader/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./between-time": {
|
|
66
|
+
"types": "./dist/ui/BetweenTime/index.d.ts",
|
|
67
|
+
"react-native": "./dist/ui/BetweenTime/index.js",
|
|
68
|
+
"default": "./dist/ui/BetweenTime/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./button": {
|
|
71
|
+
"types": "./dist/ui/Button/index.d.ts",
|
|
72
|
+
"react-native": "./dist/ui/Button/index.js",
|
|
73
|
+
"default": "./dist/ui/Button/index.js"
|
|
74
|
+
},
|
|
75
|
+
"./checkbox": {
|
|
76
|
+
"types": "./dist/ui/Checkbox/index.d.ts",
|
|
77
|
+
"react-native": "./dist/ui/Checkbox/index.js",
|
|
78
|
+
"default": "./dist/ui/Checkbox/index.js"
|
|
79
|
+
},
|
|
80
|
+
"./date-picker": {
|
|
81
|
+
"types": "./dist/ui/DatePicker/index.d.ts",
|
|
82
|
+
"react-native": "./dist/ui/DatePicker/index.js",
|
|
83
|
+
"default": "./dist/ui/DatePicker/index.js"
|
|
84
|
+
},
|
|
85
|
+
"./linked-scroll": {
|
|
86
|
+
"types": "./dist/ui/LinkedScroll/index.d.ts",
|
|
87
|
+
"react-native": "./dist/ui/LinkedScroll/index.js",
|
|
88
|
+
"default": "./dist/ui/LinkedScroll/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./loading-spinner": {
|
|
91
|
+
"types": "./dist/ui/LoadingSpinner/index.d.ts",
|
|
92
|
+
"react-native": "./dist/ui/LoadingSpinner/index.js",
|
|
93
|
+
"default": "./dist/ui/LoadingSpinner/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./picker": {
|
|
96
|
+
"types": "./dist/ui/Picker/index.d.ts",
|
|
97
|
+
"react-native": "./dist/ui/Picker/index.js",
|
|
98
|
+
"default": "./dist/ui/Picker/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./radio": {
|
|
101
|
+
"types": "./dist/ui/Radio/index.d.ts",
|
|
102
|
+
"react-native": "./dist/ui/Radio/index.js",
|
|
103
|
+
"default": "./dist/ui/Radio/index.js"
|
|
104
|
+
},
|
|
105
|
+
"./sheet": {
|
|
106
|
+
"types": "./dist/ui/Sheet/index.d.ts",
|
|
107
|
+
"react-native": "./dist/ui/Sheet/index.js",
|
|
108
|
+
"default": "./dist/ui/Sheet/index.js"
|
|
109
|
+
},
|
|
110
|
+
"./slider-captcha": {
|
|
111
|
+
"types": "./dist/ui/SliderCaptcha/index.d.ts",
|
|
112
|
+
"react-native": "./dist/ui/SliderCaptcha/index.js",
|
|
113
|
+
"default": "./dist/ui/SliderCaptcha/index.js"
|
|
114
|
+
},
|
|
115
|
+
"./switch": {
|
|
116
|
+
"types": "./dist/ui/Switch/index.d.ts",
|
|
117
|
+
"react-native": "./dist/ui/Switch/index.js",
|
|
118
|
+
"default": "./dist/ui/Switch/index.js"
|
|
119
|
+
},
|
|
120
|
+
"./text": {
|
|
121
|
+
"types": "./dist/ui/Text/index.d.ts",
|
|
122
|
+
"react-native": "./dist/ui/Text/index.js",
|
|
123
|
+
"default": "./dist/ui/Text/index.js"
|
|
124
|
+
},
|
|
125
|
+
"./text-input": {
|
|
126
|
+
"types": "./dist/ui/TextInput/index.d.ts",
|
|
127
|
+
"react-native": "./dist/ui/TextInput/index.js",
|
|
128
|
+
"default": "./dist/ui/TextInput/index.js"
|
|
129
|
+
},
|
|
130
|
+
"./wheel-column": {
|
|
131
|
+
"types": "./dist/ui/WheelColumn/index.d.ts",
|
|
132
|
+
"react-native": "./dist/ui/WheelColumn/index.js",
|
|
133
|
+
"default": "./dist/ui/WheelColumn/index.js"
|
|
134
|
+
},
|
|
135
|
+
"./action-dialog": {
|
|
136
|
+
"types": "./dist/services/ActionDialogService/index.d.ts",
|
|
137
|
+
"react-native": "./dist/services/ActionDialogService/index.js",
|
|
138
|
+
"default": "./dist/services/ActionDialogService/index.js"
|
|
139
|
+
},
|
|
140
|
+
"./image-preview": {
|
|
141
|
+
"types": "./dist/services/ImagePreviewService/index.d.ts",
|
|
142
|
+
"react-native": "./dist/services/ImagePreviewService/index.js",
|
|
143
|
+
"default": "./dist/services/ImagePreviewService/index.js"
|
|
144
|
+
},
|
|
145
|
+
"./loading": {
|
|
146
|
+
"types": "./dist/services/LoadingService/index.d.ts",
|
|
147
|
+
"react-native": "./dist/services/LoadingService/index.js",
|
|
148
|
+
"default": "./dist/services/LoadingService/index.js"
|
|
149
|
+
},
|
|
150
|
+
"./permission-purpose-dialog": {
|
|
151
|
+
"types": "./dist/services/PermissionPurposeDialogService/index.d.ts",
|
|
152
|
+
"react-native": "./dist/services/PermissionPurposeDialogService/index.js",
|
|
153
|
+
"default": "./dist/services/PermissionPurposeDialogService/index.js"
|
|
154
|
+
},
|
|
155
|
+
"./picker-service": {
|
|
156
|
+
"types": "./dist/services/PickerService/index.d.ts",
|
|
157
|
+
"react-native": "./dist/services/PickerService/index.js",
|
|
158
|
+
"default": "./dist/services/PickerService/index.js"
|
|
159
|
+
},
|
|
160
|
+
"./toast": {
|
|
161
|
+
"types": "./dist/services/CardToastService/index.d.ts",
|
|
162
|
+
"react-native": "./dist/services/CardToastService/index.js",
|
|
163
|
+
"default": "./dist/services/CardToastService/index.js"
|
|
164
|
+
},
|
|
165
|
+
"./assets/*": "./dist/assets/*",
|
|
166
|
+
"./package.json": "./package.json"
|
|
167
|
+
},
|
|
168
|
+
"sideEffects": false,
|
|
9
169
|
"repository": {
|
|
10
170
|
"type": "git",
|
|
11
171
|
"url": "git+https://github.com/Concur-max/zkit.git",
|
|
@@ -30,7 +190,7 @@
|
|
|
30
190
|
"@vant/area-data": "^2.1.0",
|
|
31
191
|
"dayjs": "^1.11.13",
|
|
32
192
|
"react-native-toast-message": "^2.3.3",
|
|
33
|
-
"zkit-tools": "1.0.
|
|
193
|
+
"zkit-tools": "1.0.1"
|
|
34
194
|
},
|
|
35
195
|
"peerDependencies": {
|
|
36
196
|
"@expo/vector-icons": "*",
|
|
@@ -70,6 +230,8 @@
|
|
|
70
230
|
},
|
|
71
231
|
"scripts": {
|
|
72
232
|
"build": "node scripts/build.cjs",
|
|
233
|
+
"verify:entrypoints": "node scripts/verify-entrypoints.cjs",
|
|
234
|
+
"verify": "pnpm run build && pnpm run verify:entrypoints",
|
|
73
235
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
74
236
|
}
|
|
75
237
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { I18nProvider } from './i18n/I18nProvider';
|
|
3
|
+
import type { I18nMessages, I18nMissingKeyPolicy } from './i18n/types';
|
|
4
|
+
import { ThemeProvider } from './theme/ThemeProvider';
|
|
5
|
+
import type { Theme, ThemeOverride } from './theme/types';
|
|
6
|
+
|
|
7
|
+
export type ZKitCoreProviderProps = {
|
|
8
|
+
// baseTheme 用于传入完整主题作为基线(例如品牌主题)
|
|
9
|
+
baseTheme?: Theme;
|
|
10
|
+
// theme 用于对 baseTheme 做局部覆盖(例如只改 primary)
|
|
11
|
+
theme?: ThemeOverride;
|
|
12
|
+
locale?: string;
|
|
13
|
+
messages?: I18nMessages;
|
|
14
|
+
missingKeyPolicy?: I18nMissingKeyPolicy;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// ZKitCoreProvider 只提供轻量核心上下文,不挂载任何全局浮层或选择器服务。
|
|
19
|
+
export function ZKitCoreProvider({
|
|
20
|
+
baseTheme,
|
|
21
|
+
theme,
|
|
22
|
+
locale,
|
|
23
|
+
messages,
|
|
24
|
+
missingKeyPolicy,
|
|
25
|
+
children,
|
|
26
|
+
}: ZKitCoreProviderProps) {
|
|
27
|
+
return (
|
|
28
|
+
<ThemeProvider baseTheme={baseTheme} theme={theme}>
|
|
29
|
+
<I18nProvider locale={locale} messages={messages} missingKeyPolicy={missingKeyPolicy}>
|
|
30
|
+
{children}
|
|
31
|
+
</I18nProvider>
|
|
32
|
+
</ThemeProvider>
|
|
33
|
+
);
|
|
34
|
+
}
|
package/src/ZKitProvider.tsx
CHANGED
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import { I18nProvider } from './i18n/I18nProvider';
|
|
3
|
-
import type { I18nMessages, I18nMissingKeyPolicy } from './i18n/types';
|
|
4
1
|
import { ActionDialogProvider } from './services/ActionDialogService/index';
|
|
5
2
|
import { ToastProvider } from './services/CardToastService/index';
|
|
6
3
|
import { ImagePreviewProvider } from './services/ImagePreviewService/index';
|
|
7
4
|
import { LoadingProvider, type LoadingDefaults } from './services/LoadingService/index';
|
|
8
5
|
import { PermissionPurposeDialogProvider } from './services/PermissionPurposeDialogService/index';
|
|
9
6
|
import { PickerServiceProvider } from './services/PickerService/index';
|
|
10
|
-
import {
|
|
11
|
-
import type { Theme, ThemeOverride } from './theme/types';
|
|
7
|
+
import { ZKitCoreProvider, type ZKitCoreProviderProps } from './ZKitCoreProvider';
|
|
12
8
|
|
|
13
|
-
export type ZKitProviderProps = {
|
|
14
|
-
// baseTheme 用于传入完整主题作为基线(例如品牌主题)
|
|
15
|
-
baseTheme?: Theme;
|
|
16
|
-
// theme 用于对 baseTheme 做局部覆盖(例如只改 primary)
|
|
17
|
-
theme?: ThemeOverride;
|
|
18
|
-
locale?: string;
|
|
19
|
-
messages?: I18nMessages;
|
|
20
|
-
missingKeyPolicy?: I18nMissingKeyPolicy;
|
|
9
|
+
export type ZKitProviderProps = ZKitCoreProviderProps & {
|
|
21
10
|
loading?: LoadingDefaults;
|
|
22
|
-
children: React.ReactNode;
|
|
23
11
|
};
|
|
24
12
|
|
|
25
|
-
// ZKitProvider
|
|
13
|
+
// ZKitProvider 是完整应用 Provider:
|
|
26
14
|
// - 同时提供 Theme 与 i18n
|
|
27
|
-
// -
|
|
15
|
+
// - 挂载 Picker / Toast / Dialog / Loading / Permission / ImagePreview 等全局服务
|
|
28
16
|
export function ZKitProvider({
|
|
29
17
|
baseTheme,
|
|
30
18
|
theme,
|
|
@@ -35,22 +23,26 @@ export function ZKitProvider({
|
|
|
35
23
|
children,
|
|
36
24
|
}: ZKitProviderProps) {
|
|
37
25
|
return (
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
26
|
+
<ZKitCoreProvider
|
|
27
|
+
baseTheme={baseTheme}
|
|
28
|
+
theme={theme}
|
|
29
|
+
locale={locale}
|
|
30
|
+
messages={messages}
|
|
31
|
+
missingKeyPolicy={missingKeyPolicy}
|
|
32
|
+
>
|
|
33
|
+
<PickerServiceProvider>
|
|
34
|
+
<ToastProvider>
|
|
35
|
+
<ActionDialogProvider>
|
|
36
|
+
<LoadingProvider defaults={loading}>
|
|
37
|
+
<PermissionPurposeDialogProvider>
|
|
38
|
+
<ImagePreviewProvider>
|
|
39
|
+
{children}
|
|
40
|
+
</ImagePreviewProvider>
|
|
41
|
+
</PermissionPurposeDialogProvider>
|
|
42
|
+
</LoadingProvider>
|
|
43
|
+
</ActionDialogProvider>
|
|
44
|
+
</ToastProvider>
|
|
45
|
+
</PickerServiceProvider>
|
|
46
|
+
</ZKitCoreProvider>
|
|
55
47
|
);
|
|
56
48
|
}
|
package/src/all.ts
ADDED
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
export { Button } from './ui/Button/index';
|
|
2
|
+
export type {
|
|
3
|
+
ButtonBorder,
|
|
4
|
+
ButtonBorderStyle,
|
|
5
|
+
ButtonColors,
|
|
6
|
+
ButtonGradient,
|
|
7
|
+
ButtonGradientDirection,
|
|
8
|
+
ButtonGradientPoint,
|
|
9
|
+
ButtonIconPlacement,
|
|
10
|
+
ButtonLayout,
|
|
11
|
+
ButtonLoadingMode,
|
|
12
|
+
ButtonPressEffect,
|
|
13
|
+
ButtonProps,
|
|
14
|
+
ButtonRef,
|
|
15
|
+
ButtonShape,
|
|
16
|
+
ButtonShadow,
|
|
17
|
+
ButtonShadowConfig,
|
|
18
|
+
ButtonShadowSize,
|
|
19
|
+
ButtonSize,
|
|
20
|
+
ButtonTone,
|
|
21
|
+
ButtonVariant,
|
|
22
|
+
} from './ui/Button/index';
|
|
23
|
+
export { LoadingSpinner } from './ui/LoadingSpinner/index';
|
|
24
|
+
export type { LoadingSpinnerProps } from './ui/LoadingSpinner/index';
|
|
25
|
+
export { Checkbox, CheckboxGroup, CheckboxIndicator } from './ui/Checkbox/index';
|
|
26
|
+
export type {
|
|
27
|
+
CheckboxCheckedState,
|
|
28
|
+
CheckboxColors,
|
|
29
|
+
CheckboxGroupAlign,
|
|
30
|
+
CheckboxGroupOrientation,
|
|
31
|
+
CheckboxGroupProps,
|
|
32
|
+
CheckboxIndicatorProps,
|
|
33
|
+
CheckboxLabelPlacement,
|
|
34
|
+
CheckboxLayout,
|
|
35
|
+
CheckboxProps,
|
|
36
|
+
CheckboxRef,
|
|
37
|
+
CheckboxShape,
|
|
38
|
+
CheckboxSize,
|
|
39
|
+
CheckboxSlotProps,
|
|
40
|
+
CheckboxTone,
|
|
41
|
+
CheckboxValue,
|
|
42
|
+
CheckboxVariant,
|
|
43
|
+
} from './ui/Checkbox/index';
|
|
44
|
+
export { Text } from './ui/Text/index';
|
|
45
|
+
export type {
|
|
46
|
+
TextProps,
|
|
47
|
+
TextRef,
|
|
48
|
+
TextSize,
|
|
49
|
+
TextSizeValue,
|
|
50
|
+
TextTone,
|
|
51
|
+
TextTruncate,
|
|
52
|
+
TextVariant,
|
|
53
|
+
TextWeight,
|
|
54
|
+
} from './ui/Text/index';
|
|
55
|
+
export { TextInput, TextInputPrimitive } from './ui/TextInput/index';
|
|
56
|
+
export type {
|
|
57
|
+
TextInputColors,
|
|
58
|
+
TextInputLayout,
|
|
59
|
+
TextInputPrimitiveProps,
|
|
60
|
+
TextInputPrimitiveRef,
|
|
61
|
+
TextInputProps,
|
|
62
|
+
TextInputRef,
|
|
63
|
+
TextInputSize,
|
|
64
|
+
TextInputStatus,
|
|
65
|
+
TextInputTone,
|
|
66
|
+
TextInputVariant,
|
|
67
|
+
} from './ui/TextInput/index';
|
|
68
|
+
export {
|
|
69
|
+
Sheet,
|
|
70
|
+
SheetContent,
|
|
71
|
+
SheetFooter,
|
|
72
|
+
SheetHeader,
|
|
73
|
+
} from './ui/Sheet/index';
|
|
74
|
+
export type {
|
|
75
|
+
SheetAnimationConfig,
|
|
76
|
+
SheetBackdropConfig,
|
|
77
|
+
SheetCloseCompleteDetails,
|
|
78
|
+
SheetCloseOptions,
|
|
79
|
+
SheetCloseReason,
|
|
80
|
+
SheetContentProps,
|
|
81
|
+
SheetDetent,
|
|
82
|
+
SheetDetentChangePayload,
|
|
83
|
+
SheetFooterProps,
|
|
84
|
+
SheetHandleConfig,
|
|
85
|
+
SheetHeaderProps,
|
|
86
|
+
SheetNativeProps,
|
|
87
|
+
SheetOpenChangeDetails,
|
|
88
|
+
SheetOpenChangeReason,
|
|
89
|
+
SheetOpenCompleteDetails,
|
|
90
|
+
SheetOpenOptions,
|
|
91
|
+
SheetOpenReason,
|
|
92
|
+
SheetPlacement,
|
|
93
|
+
SheetProps,
|
|
94
|
+
SheetRef,
|
|
95
|
+
SheetRenderContext,
|
|
96
|
+
SheetSafeAreaEdges,
|
|
97
|
+
SheetSize,
|
|
98
|
+
SheetState,
|
|
99
|
+
} from './ui/Sheet/index';
|
|
100
|
+
export {
|
|
101
|
+
Accordion,
|
|
102
|
+
AccordionContent,
|
|
103
|
+
AccordionIndicator,
|
|
104
|
+
AccordionItem,
|
|
105
|
+
AccordionTrigger,
|
|
106
|
+
} from './ui/Accordion/index';
|
|
107
|
+
export type {
|
|
108
|
+
AccordionAnimationConfig,
|
|
109
|
+
AccordionContentProps,
|
|
110
|
+
AccordionIndicatorProps,
|
|
111
|
+
AccordionItemState,
|
|
112
|
+
AccordionItemProps,
|
|
113
|
+
AccordionMountStrategy,
|
|
114
|
+
AccordionMultipleProps,
|
|
115
|
+
AccordionPressEffect,
|
|
116
|
+
AccordionProps,
|
|
117
|
+
AccordionSingleProps,
|
|
118
|
+
AccordionSize,
|
|
119
|
+
AccordionSlot,
|
|
120
|
+
AccordionTone,
|
|
121
|
+
AccordionTriggerProps,
|
|
122
|
+
AccordionTriggerRenderState,
|
|
123
|
+
AccordionType,
|
|
124
|
+
AccordionValue,
|
|
125
|
+
AccordionVariant,
|
|
126
|
+
} from './ui/Accordion/index';
|
|
127
|
+
export { BetweenTime } from './ui/BetweenTime/index';
|
|
128
|
+
export type { BetweenTimeProps } from './ui/BetweenTime/index';
|
|
129
|
+
export { Picker } from './ui/Picker/index';
|
|
130
|
+
export type {
|
|
131
|
+
PickerChangePayload,
|
|
132
|
+
PickerColumnHeaderContext,
|
|
133
|
+
PickerConfirmPayload,
|
|
134
|
+
PickerDraftChangePayload,
|
|
135
|
+
PickerHandle,
|
|
136
|
+
PickerOption,
|
|
137
|
+
PickerPrimitiveValue,
|
|
138
|
+
PickerProps,
|
|
139
|
+
PickerSelection,
|
|
140
|
+
PickerTriggerContext,
|
|
141
|
+
PickerValue,
|
|
142
|
+
PickerValueMode,
|
|
143
|
+
} from './ui/Picker/index';
|
|
144
|
+
export {
|
|
145
|
+
WheelColumn,
|
|
146
|
+
WHEEL_AREA_HEIGHT,
|
|
147
|
+
WHEEL_AREA_VERTICAL_INSET,
|
|
148
|
+
WHEEL_ITEM_HEIGHT,
|
|
149
|
+
WHEEL_VIEWPORT_HEIGHT,
|
|
150
|
+
WHEEL_VISIBLE_ITEMS,
|
|
151
|
+
} from './ui/WheelColumn/index';
|
|
152
|
+
export type {
|
|
153
|
+
WheelColumnChangePayload,
|
|
154
|
+
WheelColumnChangeSource,
|
|
155
|
+
WheelColumnHandle,
|
|
156
|
+
WheelColumnOption,
|
|
157
|
+
WheelColumnProps,
|
|
158
|
+
WheelColumnValue,
|
|
159
|
+
WheelOption,
|
|
160
|
+
} from './ui/WheelColumn/index';
|
|
161
|
+
export { AddressCascader } from './ui/AddressCascader/index';
|
|
162
|
+
export type {
|
|
163
|
+
AddressCascaderChangePayload,
|
|
164
|
+
AddressCascaderConfirmPayload,
|
|
165
|
+
AddressCascaderHandle,
|
|
166
|
+
AddressCascaderOption,
|
|
167
|
+
AddressCascaderProps,
|
|
168
|
+
AddressCascaderRenderContext,
|
|
169
|
+
AddressCascaderValue,
|
|
170
|
+
} from './ui/AddressCascader/index';
|
|
171
|
+
export { DatePicker } from './ui/DatePicker/index';
|
|
172
|
+
export type {
|
|
173
|
+
DatePickerChangePayload,
|
|
174
|
+
DatePickerColumn,
|
|
175
|
+
DatePickerColumnHeaderContext,
|
|
176
|
+
DatePickerConfirmPayload,
|
|
177
|
+
DatePickerDisableContext,
|
|
178
|
+
DatePickerDraftChangePayload,
|
|
179
|
+
DatePickerHandle,
|
|
180
|
+
DatePickerInput,
|
|
181
|
+
DatePickerLabelFormat,
|
|
182
|
+
DatePickerOption,
|
|
183
|
+
DatePickerParts,
|
|
184
|
+
DatePickerPrecision,
|
|
185
|
+
DatePickerProps,
|
|
186
|
+
DatePickerRenderContext,
|
|
187
|
+
DatePickerSelection,
|
|
188
|
+
DatePickerValue,
|
|
189
|
+
} from './ui/DatePicker/index';
|
|
190
|
+
export { Switch } from './ui/Switch/index';
|
|
191
|
+
export type {
|
|
192
|
+
SwitchColors,
|
|
193
|
+
SwitchLabelPlacement,
|
|
194
|
+
SwitchLayout,
|
|
195
|
+
SwitchProps,
|
|
196
|
+
SwitchRef,
|
|
197
|
+
SwitchSize,
|
|
198
|
+
SwitchSlotProps,
|
|
199
|
+
SwitchStateText,
|
|
200
|
+
SwitchTone,
|
|
201
|
+
} from './ui/Switch/index';
|
|
202
|
+
export { SliderCaptcha } from './ui/SliderCaptcha/index';
|
|
203
|
+
export type {
|
|
204
|
+
SliderCaptchaChallenge,
|
|
205
|
+
SliderCaptchaErrorInfo,
|
|
206
|
+
SliderCaptchaErrorStage,
|
|
207
|
+
SliderCaptchaLoadReason,
|
|
208
|
+
SliderCaptchaProps,
|
|
209
|
+
SliderCaptchaStatus,
|
|
210
|
+
SliderCaptchaTexts,
|
|
211
|
+
SliderCaptchaVerifyPayload,
|
|
212
|
+
SliderCaptchaVerifyResult,
|
|
213
|
+
} from './ui/SliderCaptcha/index';
|
|
214
|
+
export { Radio, RadioGroup, RadioIndicator } from './ui/Radio/index';
|
|
215
|
+
export type {
|
|
216
|
+
RadioColors,
|
|
217
|
+
RadioGroupAlign,
|
|
218
|
+
RadioGroupOrientation,
|
|
219
|
+
RadioGroupProps,
|
|
220
|
+
RadioIndicatorProps,
|
|
221
|
+
RadioLabelPlacement,
|
|
222
|
+
RadioLayout,
|
|
223
|
+
RadioProps,
|
|
224
|
+
RadioRef,
|
|
225
|
+
RadioSize,
|
|
226
|
+
RadioSlotProps,
|
|
227
|
+
RadioTone,
|
|
228
|
+
RadioValue,
|
|
229
|
+
RadioVariant,
|
|
230
|
+
} from './ui/Radio/index';
|
|
231
|
+
export { LinkedScroll } from './ui/LinkedScroll/index';
|
|
232
|
+
export type {
|
|
233
|
+
LinkedScrollChangeMeta,
|
|
234
|
+
LinkedScrollChangeSource,
|
|
235
|
+
LinkedScrollItem,
|
|
236
|
+
LinkedScrollMenuItemRenderContext,
|
|
237
|
+
LinkedScrollProps,
|
|
238
|
+
LinkedScrollSectionRenderContext,
|
|
239
|
+
LinkedScrollValue,
|
|
240
|
+
} from './ui/LinkedScroll/index';
|
|
241
|
+
export { ThemeProvider } from './theme/ThemeProvider';
|
|
242
|
+
export { useTheme } from './theme/useTheme';
|
|
243
|
+
export type { Theme, ThemeOverride } from './theme/types';
|
|
244
|
+
export { configureZKit } from './config';
|
|
245
|
+
export type { ZKitConfig, ZKitI18nConfig } from './config';
|
|
246
|
+
export {
|
|
247
|
+
BUILTIN_I18N_LOCALES,
|
|
248
|
+
DEFAULT_I18N_LOCALE,
|
|
249
|
+
resolveBuiltinLocale,
|
|
250
|
+
resolveSystemBuiltinLocale,
|
|
251
|
+
} from './i18n/locale';
|
|
252
|
+
export type { BuiltinI18nLocale } from './i18n/locale';
|
|
253
|
+
export { I18nProvider } from './i18n/I18nProvider';
|
|
254
|
+
export { useI18n } from './i18n/useI18n';
|
|
255
|
+
export type {
|
|
256
|
+
I18nContextValue,
|
|
257
|
+
I18nMessages,
|
|
258
|
+
I18nMissingKeyPolicy,
|
|
259
|
+
I18nTranslate,
|
|
260
|
+
I18nTranslateParams,
|
|
261
|
+
} from './i18n/types';
|
|
262
|
+
export { ZKitProvider } from './ZKitProvider';
|
|
263
|
+
export type { ZKitProviderProps } from './ZKitProvider';
|
|
264
|
+
export { ZKitCoreProvider } from './ZKitCoreProvider';
|
|
265
|
+
export type { ZKitCoreProviderProps } from './ZKitCoreProvider';
|
|
266
|
+
export { pickerService, PickerServiceProvider } from './services/PickerService/index';
|
|
267
|
+
export type {
|
|
268
|
+
AddressPickerResult,
|
|
269
|
+
BetweenTimePickerResult,
|
|
270
|
+
DatePickerResult,
|
|
271
|
+
PickOptions,
|
|
272
|
+
PickDateOptions,
|
|
273
|
+
PickAddressOptions,
|
|
274
|
+
PickBetweenTimeOptions,
|
|
275
|
+
PickerResult,
|
|
276
|
+
} from './services/PickerService/index';
|
|
277
|
+
export { toast, ToastProvider } from './services/CardToastService/index';
|
|
278
|
+
export type {
|
|
279
|
+
ToastAction,
|
|
280
|
+
ToastActionContext,
|
|
281
|
+
ToastCustomOptions,
|
|
282
|
+
ToastDefaults,
|
|
283
|
+
ToastDismissReason,
|
|
284
|
+
ToastHandle,
|
|
285
|
+
ToastIconRenderContext,
|
|
286
|
+
ToastItem,
|
|
287
|
+
ToastOpenChangeMeta,
|
|
288
|
+
ToastOpenChangeReason,
|
|
289
|
+
ToastOptions,
|
|
290
|
+
ToastPlacement,
|
|
291
|
+
ToastProviderProps,
|
|
292
|
+
ToastRenderContext,
|
|
293
|
+
ToastService,
|
|
294
|
+
ToastShortcutOptions,
|
|
295
|
+
ToastStrategy,
|
|
296
|
+
ToastTone,
|
|
297
|
+
ToastUpdateOptions,
|
|
298
|
+
} from './services/CardToastService/index';
|
|
299
|
+
export { ActionDialog, actionDialog, ActionDialogProvider } from './services/ActionDialogService/index';
|
|
300
|
+
export type {
|
|
301
|
+
ActionDialogAction,
|
|
302
|
+
ActionDialogActionContext,
|
|
303
|
+
ActionDialogActionPressResult,
|
|
304
|
+
ActionDialogActionResult,
|
|
305
|
+
ActionDialogActionRole,
|
|
306
|
+
ActionDialogActionTone,
|
|
307
|
+
ActionDialogActionVariant,
|
|
308
|
+
ActionDialogAlertOptions,
|
|
309
|
+
ActionDialogCollisionStrategy,
|
|
310
|
+
ActionDialogColors,
|
|
311
|
+
ActionDialogConfirmOptions,
|
|
312
|
+
ActionDialogDismissOptions,
|
|
313
|
+
ActionDialogDismissReason,
|
|
314
|
+
ActionDialogDismissResult,
|
|
315
|
+
ActionDialogFooterLayout,
|
|
316
|
+
ActionDialogFooterOptions,
|
|
317
|
+
ActionDialogFooterRenderContext,
|
|
318
|
+
ActionDialogHandle,
|
|
319
|
+
ActionDialogHostMode,
|
|
320
|
+
ActionDialogKeyboardOptions,
|
|
321
|
+
ActionDialogLabels,
|
|
322
|
+
ActionDialogLayerOptions,
|
|
323
|
+
ActionDialogLayoutOptions,
|
|
324
|
+
ActionDialogMotion,
|
|
325
|
+
ActionDialogOpenChangeMeta,
|
|
326
|
+
ActionDialogOpenChangeReason,
|
|
327
|
+
ActionDialogOpenOptions,
|
|
328
|
+
ActionDialogProps,
|
|
329
|
+
ActionDialogRef,
|
|
330
|
+
ActionDialogResolvedAction,
|
|
331
|
+
ActionDialogResolvedFooterLayout,
|
|
332
|
+
ActionDialogResult,
|
|
333
|
+
ActionDialogSemanticActionOptions,
|
|
334
|
+
ActionDialogService,
|
|
335
|
+
ActionDialogSnapshot,
|
|
336
|
+
} from './services/ActionDialogService/index';
|
|
337
|
+
export { loading, LoadingProvider } from './services/LoadingService/index';
|
|
338
|
+
export type {
|
|
339
|
+
LoadingColors,
|
|
340
|
+
LoadingDefaults,
|
|
341
|
+
LoadingDismissReason,
|
|
342
|
+
LoadingHandle,
|
|
343
|
+
LoadingIconRenderContext,
|
|
344
|
+
LoadingInput,
|
|
345
|
+
LoadingItem,
|
|
346
|
+
LoadingLabels,
|
|
347
|
+
LoadingLiveRegion,
|
|
348
|
+
LoadingOpenChangeMeta,
|
|
349
|
+
LoadingOpenChangeReason,
|
|
350
|
+
LoadingPromiseErrorInput,
|
|
351
|
+
LoadingPromiseOptions,
|
|
352
|
+
LoadingPromiseResultInput,
|
|
353
|
+
LoadingProviderProps,
|
|
354
|
+
LoadingRenderContext,
|
|
355
|
+
LoadingResolvedDefaults,
|
|
356
|
+
LoadingResultInput,
|
|
357
|
+
LoadingResultOptions,
|
|
358
|
+
LoadingService,
|
|
359
|
+
LoadingShowOptions,
|
|
360
|
+
LoadingSnapshot,
|
|
361
|
+
LoadingStatus,
|
|
362
|
+
LoadingUpdateOptions,
|
|
363
|
+
} from './services/LoadingService/index';
|
|
364
|
+
export {
|
|
365
|
+
permissionPurposeDialog,
|
|
366
|
+
PermissionPurposeDialogProvider,
|
|
367
|
+
} from './services/PermissionPurposeDialogService/index';
|
|
368
|
+
export type {
|
|
369
|
+
PermissionPurpose,
|
|
370
|
+
PermissionPurposeDialogHandle,
|
|
371
|
+
PermissionPurposeDialogOptions,
|
|
372
|
+
} from './services/PermissionPurposeDialogService/index';
|
|
373
|
+
export { imagePreview, ImagePreview, ImagePreviewProvider } from './services/ImagePreviewService/index';
|
|
374
|
+
export type {
|
|
375
|
+
ImagePreviewChangeMeta,
|
|
376
|
+
ImagePreviewChangeReason,
|
|
377
|
+
ImagePreviewCloseReason,
|
|
378
|
+
ImagePreviewColors,
|
|
379
|
+
ImagePreviewImage,
|
|
380
|
+
ImagePreviewImageDescriptor,
|
|
381
|
+
ImagePreviewImageProps,
|
|
382
|
+
ImagePreviewInteractions,
|
|
383
|
+
ImagePreviewLabels,
|
|
384
|
+
ImagePreviewOpenChangeMeta,
|
|
385
|
+
ImagePreviewOpenChangeReason,
|
|
386
|
+
ImagePreviewOpenOptions,
|
|
387
|
+
ImagePreviewPrefetchCachePolicy,
|
|
388
|
+
ImagePreviewProps,
|
|
389
|
+
ImagePreviewRef,
|
|
390
|
+
ImagePreviewRenderContext,
|
|
391
|
+
ImagePreviewResolvedImage,
|
|
392
|
+
ImagePreviewResult,
|
|
393
|
+
ImagePreviewServiceHandle,
|
|
394
|
+
ImagePreviewServiceSnapshot,
|
|
395
|
+
ImagePreviewSource,
|
|
396
|
+
ImagePreviewTapBehavior,
|
|
397
|
+
} from './services/ImagePreviewService/index';
|