@anker-in/ui 0.1.5 → 0.1.8

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/dist/index.d.mts CHANGED
@@ -1,8 +1,109 @@
1
- export { D as DemoRoom, a as DemoRoomProps } from './DemoRoom-CZyrsxWe.mjs';
1
+ export { D as DemoRoom, a as DemoRoomProps } from './DemoRoom-Dx3PluHP.mjs';
2
2
  import React from 'react';
3
3
  export { ThemeProvider, useTheme } from './theme.mjs';
4
4
  import { ClassValue } from 'clsx';
5
5
 
6
+ /**
7
+ * BookingForm 页面的可配置数据类型
8
+ */
9
+ interface BookingFormPageData {
10
+ /**
11
+ * DemoRoomDetail 相关文案
12
+ */
13
+ demoRoomDetail?: {
14
+ loadingText?: string;
15
+ errorTitle?: string;
16
+ openInGoogleMaps?: string;
17
+ demoRoomImages?: string;
18
+ };
19
+ /**
20
+ * DateTimePicker 相关文案
21
+ */
22
+ dateTimePicker?: {
23
+ scheduleYourVisit?: string;
24
+ timeSlot?: string;
25
+ loadingTimeSlots?: string;
26
+ failedToLoadTimeSlots?: string;
27
+ noAvailableTimeSlots?: string;
28
+ full?: string;
29
+ spotsLeft?: string;
30
+ fillOutForm?: string;
31
+ loadingQuestionnaire?: string;
32
+ bookingFailed?: string;
33
+ };
34
+ /**
35
+ * QuestionnaireForm 相关文案
36
+ */
37
+ questionnaireForm?: {
38
+ submit?: string;
39
+ submitting?: string;
40
+ agrees?: string[];
41
+ };
42
+ }
43
+ /**
44
+ * BookingSuccess 页面的可配置数据类型
45
+ */
46
+ interface BookingSuccessPageData {
47
+ /**
48
+ * 页面标题
49
+ */
50
+ yourAppointment?: string;
51
+ /**
52
+ * 取消状态横幅文案
53
+ */
54
+ appointmentCanceled?: string;
55
+ /**
56
+ * 重新预约按钮
57
+ */
58
+ scheduleAgain?: string;
59
+ /**
60
+ * 位置标题
61
+ */
62
+ location?: string;
63
+ /**
64
+ * 地图链接文案
65
+ */
66
+ openInGoogleMaps?: string;
67
+ /**
68
+ * 日期时间标题
69
+ */
70
+ dateAndTime?: string;
71
+ /**
72
+ * 活动标题
73
+ */
74
+ event?: string;
75
+ /**
76
+ * Demo Room 标题
77
+ */
78
+ demoRoom?: string;
79
+ /**
80
+ * 访客信息标题
81
+ */
82
+ visitorInfo?: string;
83
+ /**
84
+ * 没有提供电话
85
+ */
86
+ noPhoneProvided?: string;
87
+ /**
88
+ * 取消预约按钮
89
+ */
90
+ cancelAppointment?: string;
91
+ /**
92
+ * 取消确认对话框
93
+ */
94
+ cancelDialog?: {
95
+ title?: string;
96
+ description?: string;
97
+ backButton?: string;
98
+ confirmButton?: string;
99
+ canceling?: string;
100
+ };
101
+ /**
102
+ * 取消错误信息
103
+ */
104
+ cancelError?: string;
105
+ }
106
+
6
107
  interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
7
108
  layoutClassName?: string;
8
109
  handleBookingSuccess?: (token?: string) => void;
@@ -22,7 +123,10 @@ interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
22
123
  * 时区(可选)
23
124
  */
24
125
  timezone?: string;
25
- pageData?: any;
126
+ /**
127
+ * 页面可配置数据(文案、图标等)
128
+ */
129
+ pageData?: BookingFormPageData;
26
130
  }
27
131
  declare const BookingForm: React.FC<BookingFormProps>;
28
132
 
@@ -45,11 +149,17 @@ interface Timeslot {
45
149
  booked_count: number;
46
150
  status: TimeslotStatus;
47
151
  }
152
+ interface DemoRoomLocation {
153
+ country: string;
154
+ state: string;
155
+ city: string;
156
+ }
48
157
  interface DemoRoom {
49
158
  code: string;
50
159
  name: string;
51
160
  description: string;
52
161
  address: string;
162
+ location?: DemoRoomLocation;
53
163
  type: DemoRoomType;
54
164
  capacity: number;
55
165
  status: DemoRoomStatus;
@@ -212,6 +322,10 @@ interface BookingSuccessProps {
212
322
  onScheduleAgain?: () => void;
213
323
  onCancelSuccess?: (booking: Booking) => void;
214
324
  className?: string;
325
+ /**
326
+ * 页面可配置数据(文案、图标等)
327
+ */
328
+ pageData?: BookingSuccessPageData;
215
329
  }
216
330
  declare const BookingSuccess: React.FC<BookingSuccessProps>;
217
331
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,109 @@
1
- export { D as DemoRoom, a as DemoRoomProps } from './DemoRoom-CZyrsxWe.js';
1
+ export { D as DemoRoom, a as DemoRoomProps } from './DemoRoom-Dx3PluHP.js';
2
2
  import React from 'react';
3
3
  export { ThemeProvider, useTheme } from './theme.js';
4
4
  import { ClassValue } from 'clsx';
5
5
 
6
+ /**
7
+ * BookingForm 页面的可配置数据类型
8
+ */
9
+ interface BookingFormPageData {
10
+ /**
11
+ * DemoRoomDetail 相关文案
12
+ */
13
+ demoRoomDetail?: {
14
+ loadingText?: string;
15
+ errorTitle?: string;
16
+ openInGoogleMaps?: string;
17
+ demoRoomImages?: string;
18
+ };
19
+ /**
20
+ * DateTimePicker 相关文案
21
+ */
22
+ dateTimePicker?: {
23
+ scheduleYourVisit?: string;
24
+ timeSlot?: string;
25
+ loadingTimeSlots?: string;
26
+ failedToLoadTimeSlots?: string;
27
+ noAvailableTimeSlots?: string;
28
+ full?: string;
29
+ spotsLeft?: string;
30
+ fillOutForm?: string;
31
+ loadingQuestionnaire?: string;
32
+ bookingFailed?: string;
33
+ };
34
+ /**
35
+ * QuestionnaireForm 相关文案
36
+ */
37
+ questionnaireForm?: {
38
+ submit?: string;
39
+ submitting?: string;
40
+ agrees?: string[];
41
+ };
42
+ }
43
+ /**
44
+ * BookingSuccess 页面的可配置数据类型
45
+ */
46
+ interface BookingSuccessPageData {
47
+ /**
48
+ * 页面标题
49
+ */
50
+ yourAppointment?: string;
51
+ /**
52
+ * 取消状态横幅文案
53
+ */
54
+ appointmentCanceled?: string;
55
+ /**
56
+ * 重新预约按钮
57
+ */
58
+ scheduleAgain?: string;
59
+ /**
60
+ * 位置标题
61
+ */
62
+ location?: string;
63
+ /**
64
+ * 地图链接文案
65
+ */
66
+ openInGoogleMaps?: string;
67
+ /**
68
+ * 日期时间标题
69
+ */
70
+ dateAndTime?: string;
71
+ /**
72
+ * 活动标题
73
+ */
74
+ event?: string;
75
+ /**
76
+ * Demo Room 标题
77
+ */
78
+ demoRoom?: string;
79
+ /**
80
+ * 访客信息标题
81
+ */
82
+ visitorInfo?: string;
83
+ /**
84
+ * 没有提供电话
85
+ */
86
+ noPhoneProvided?: string;
87
+ /**
88
+ * 取消预约按钮
89
+ */
90
+ cancelAppointment?: string;
91
+ /**
92
+ * 取消确认对话框
93
+ */
94
+ cancelDialog?: {
95
+ title?: string;
96
+ description?: string;
97
+ backButton?: string;
98
+ confirmButton?: string;
99
+ canceling?: string;
100
+ };
101
+ /**
102
+ * 取消错误信息
103
+ */
104
+ cancelError?: string;
105
+ }
106
+
6
107
  interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
7
108
  layoutClassName?: string;
8
109
  handleBookingSuccess?: (token?: string) => void;
@@ -22,7 +123,10 @@ interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
22
123
  * 时区(可选)
23
124
  */
24
125
  timezone?: string;
25
- pageData?: any;
126
+ /**
127
+ * 页面可配置数据(文案、图标等)
128
+ */
129
+ pageData?: BookingFormPageData;
26
130
  }
27
131
  declare const BookingForm: React.FC<BookingFormProps>;
28
132
 
@@ -45,11 +149,17 @@ interface Timeslot {
45
149
  booked_count: number;
46
150
  status: TimeslotStatus;
47
151
  }
152
+ interface DemoRoomLocation {
153
+ country: string;
154
+ state: string;
155
+ city: string;
156
+ }
48
157
  interface DemoRoom {
49
158
  code: string;
50
159
  name: string;
51
160
  description: string;
52
161
  address: string;
162
+ location?: DemoRoomLocation;
53
163
  type: DemoRoomType;
54
164
  capacity: number;
55
165
  status: DemoRoomStatus;
@@ -212,6 +322,10 @@ interface BookingSuccessProps {
212
322
  onScheduleAgain?: () => void;
213
323
  onCancelSuccess?: (booking: Booking) => void;
214
324
  className?: string;
325
+ /**
326
+ * 页面可配置数据(文案、图标等)
327
+ */
328
+ pageData?: BookingSuccessPageData;
215
329
  }
216
330
  declare const BookingSuccess: React.FC<BookingSuccessProps>;
217
331