@anker-in/ui 0.1.4 → 0.1.5

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.css CHANGED
@@ -30,4 +30,7 @@
30
30
  .antd-mobile-isolated-container .antdMobileScope [class*=adm-] {
31
31
  all: revert;
32
32
  }
33
+ .antd-mobile-isolated-container .antdMobileScope .adm-list-item-content-arrow {
34
+ display: none !important;
35
+ }
33
36
  /*# sourceMappingURL=index.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/DemoRoom/components/RoomsList.module.css"],"sourcesContent":["/* antd-mobile 样式隔离 - 使用更强的隔离策略 */\n.antdMobileScope {\n /* 重置所有继承样式,但保持布局相关属性 */\n all: unset;\n\n /* 恢复必要的属性 */\n display: block;\n position: absolute;\n box-sizing: border-box;\n\n /* 阻止继承字体样式 */\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n font-size: 14px;\n line-height: 1.5;\n color: #333;\n\n /* 重置 CSS 变量影响 */\n --adm-color-primary: #1677ff;\n --adm-color-text: #333333;\n --adm-font-size-main: 14px;\n}\n\n/* 确保 antd-mobile 组件内部样式正常工作 */\n.antdMobileScope *,\n.antdMobileScope *::before,\n.antdMobileScope *::after {\n box-sizing: border-box;\n}\n\n/* 阻止全局样式继承 */\n.antd-mobile-isolated-container .antdMobileScope :not([class*=\"adm-\"]) {\n all: unset;\n}\n\n/* 保持 antd-mobile 组件样式 */\n.antd-mobile-isolated-container .antdMobileScope [class*=\"adm-\"] {\n all: revert;\n}\n"],"mappings":";AACA,CAAC;AAEC,OAAK;AAGL,WAAS;AACT,YAAU;AACV,cAAY;AAGZ;AAAA,IAAa,aAAa;AAAA,IAAE,kBAAkB;AAAA,IAAE,UAAU;AAAA,IAAE,MAAM;AAAA,IAAE,gBAAgB;AAAA,IAAE,KAAK;AAAA,IAAE;AAC7F,aAAW;AACX,eAAa;AACb,SAAO;AAGP,uBAAqB;AACrB,oBAAkB;AAClB,wBAAsB;AACxB;AAGA,CAtBC,gBAsBgB;AACjB,CAvBC,gBAuBgB,CAAC;AAClB,CAxBC,gBAwBgB,CAAC;AAChB,cAAY;AACd;AAGA,CAAC,+BAA+B,CA7B/B,gBA6BgD,KAAK,CAAC;AACrD,OAAK;AACP;AAGA,CALC,+BAK+B,CAlC/B,gBAkCgD,CAAC;AAChD,OAAK;AACP;","names":[]}
1
+ {"version":3,"sources":["../src/components/DemoRoom/components/RoomsList.module.css"],"sourcesContent":["/* antd-mobile 样式隔离 - 使用更强的隔离策略 */\n.antdMobileScope {\n /* 重置所有继承样式,但保持布局相关属性 */\n all: unset;\n\n /* 恢复必要的属性 */\n display: block;\n position: absolute;\n box-sizing: border-box;\n\n /* 阻止继承字体样式 */\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n font-size: 14px;\n line-height: 1.5;\n color: #333;\n\n /* 重置 CSS 变量影响 */\n --adm-color-primary: #1677ff;\n --adm-color-text: #333333;\n --adm-font-size-main: 14px;\n}\n\n/* 确保 antd-mobile 组件内部样式正常工作 */\n.antdMobileScope *,\n.antdMobileScope *::before,\n.antdMobileScope *::after {\n box-sizing: border-box;\n}\n\n/* 阻止全局样式继承 */\n.antd-mobile-isolated-container .antdMobileScope :not([class*=\"adm-\"]) {\n all: unset;\n}\n\n/* 保持 antd-mobile 组件样式 */\n.antd-mobile-isolated-container .antdMobileScope [class*=\"adm-\"] {\n all: revert;\n}\n\n/* 隐藏 List.Item 的右侧箭头 */\n.antd-mobile-isolated-container .antdMobileScope .adm-list-item-content-arrow {\n display: none !important;\n}\n"],"mappings":";AACA,CAAC;AAEC,OAAK;AAGL,WAAS;AACT,YAAU;AACV,cAAY;AAGZ;AAAA,IAAa,aAAa;AAAA,IAAE,kBAAkB;AAAA,IAAE,UAAU;AAAA,IAAE,MAAM;AAAA,IAAE,gBAAgB;AAAA,IAAE,KAAK;AAAA,IAAE;AAC7F,aAAW;AACX,eAAa;AACb,SAAO;AAGP,uBAAqB;AACrB,oBAAkB;AAClB,wBAAsB;AACxB;AAGA,CAtBC,gBAsBgB;AACjB,CAvBC,gBAuBgB,CAAC;AAClB,CAxBC,gBAwBgB,CAAC;AAChB,cAAY;AACd;AAGA,CAAC,+BAA+B,CA7B/B,gBA6BgD,KAAK,CAAC;AACrD,OAAK;AACP;AAGA,CALC,+BAK+B,CAlC/B,gBAkCgD,CAAC;AAChD,OAAK;AACP;AAGA,CAVC,+BAU+B,CAvC/B,gBAuCgD,CAAC;AAChD,WAAS;AACX;","names":[]}
package/dist/index.d.mts CHANGED
@@ -22,6 +22,7 @@ interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
22
22
  * 时区(可选)
23
23
  */
24
24
  timezone?: string;
25
+ pageData?: any;
25
26
  }
26
27
  declare const BookingForm: React.FC<BookingFormProps>;
27
28
 
@@ -204,51 +205,12 @@ declare class DemoRoomApiClient {
204
205
  }
205
206
  declare function createDemoRoomApi(config: DemoRoomApiConfig): DemoRoomApiClient;
206
207
 
207
- interface DemoRoomDetailProps extends React.HTMLAttributes<HTMLDivElement> {
208
- /**
209
- * API client for fetching demo room details
210
- */
211
- apiClient?: DemoRoomApiClient;
212
- /**
213
- * Demo room code to fetch details
214
- */
215
- demoRoomCode?: string;
216
- /**
217
- * Locale for API request
218
- */
219
- locale?: string;
220
- /**
221
- * Room title (fallback if not using API)
222
- */
223
- title?: string;
224
- /**
225
- * Room description paragraphs (fallback if not using API)
226
- */
227
- descriptions?: string[];
228
- /**
229
- * Device models available (fallback if not using API)
230
- */
231
- devices?: string;
232
- /**
233
- * Room address (fallback if not using API)
234
- */
235
- address?: string;
236
- /**
237
- * Google Maps link
238
- */
239
- mapsLink?: string;
240
- /**
241
- * Room images (fallback if not using API)
242
- */
243
- images?: string[];
244
- }
245
- declare const DemoRoomDetail: React.FC<DemoRoomDetailProps>;
246
-
247
208
  interface BookingSuccessProps {
248
209
  bookingData?: Booking;
249
210
  token?: string;
250
211
  apiConfig?: DemoRoomApiConfig;
251
212
  onScheduleAgain?: () => void;
213
+ onCancelSuccess?: (booking: Booking) => void;
252
214
  className?: string;
253
215
  }
254
216
  declare const BookingSuccess: React.FC<BookingSuccessProps>;
@@ -317,4 +279,4 @@ declare function useCancelBooking(client: DemoRoomApiClient): {
317
279
 
318
280
  declare function cn(...inputs: ClassValue[]): string;
319
281
 
320
- export { ApiError, ApiErrorCode, type ApiResponse, type Booking, BookingForm, type BookingFormProps, type BookingStatus, BookingSuccess, type BookingSuccessProps, type CancelBookingResponse, type CreateBookingRequest, DemoRoomApiClient, type DemoRoomApiConfig, type DemoRoom as DemoRoomData, DemoRoomDetail, type DemoRoomDetailProps, type DemoRoomStatus, type DemoRoomType, type GetBookingResponse, type GetDemoRoomsResponse, type GetTimeslotsResponse, type Question, type QuestionOption, type QuestionType, type Questionnaire, type Timeslot, type TimeslotStatus, cn, createDemoRoomApi, useBooking, useCancelBooking, useCreateBooking, useDemoRoom, useDemoRooms, useQuestionnaire, useTimeslots };
282
+ export { ApiError, ApiErrorCode, type ApiResponse, type Booking, BookingForm, type BookingFormProps, type BookingStatus, BookingSuccess, type BookingSuccessProps, type CancelBookingResponse, type CreateBookingRequest, DemoRoomApiClient, type DemoRoomApiConfig, type DemoRoom as DemoRoomData, type DemoRoomStatus, type DemoRoomType, type GetBookingResponse, type GetDemoRoomsResponse, type GetTimeslotsResponse, type Question, type QuestionOption, type QuestionType, type Questionnaire, type Timeslot, type TimeslotStatus, cn, createDemoRoomApi, useBooking, useCancelBooking, useCreateBooking, useDemoRoom, useDemoRooms, useQuestionnaire, useTimeslots };
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
22
22
  * 时区(可选)
23
23
  */
24
24
  timezone?: string;
25
+ pageData?: any;
25
26
  }
26
27
  declare const BookingForm: React.FC<BookingFormProps>;
27
28
 
@@ -204,51 +205,12 @@ declare class DemoRoomApiClient {
204
205
  }
205
206
  declare function createDemoRoomApi(config: DemoRoomApiConfig): DemoRoomApiClient;
206
207
 
207
- interface DemoRoomDetailProps extends React.HTMLAttributes<HTMLDivElement> {
208
- /**
209
- * API client for fetching demo room details
210
- */
211
- apiClient?: DemoRoomApiClient;
212
- /**
213
- * Demo room code to fetch details
214
- */
215
- demoRoomCode?: string;
216
- /**
217
- * Locale for API request
218
- */
219
- locale?: string;
220
- /**
221
- * Room title (fallback if not using API)
222
- */
223
- title?: string;
224
- /**
225
- * Room description paragraphs (fallback if not using API)
226
- */
227
- descriptions?: string[];
228
- /**
229
- * Device models available (fallback if not using API)
230
- */
231
- devices?: string;
232
- /**
233
- * Room address (fallback if not using API)
234
- */
235
- address?: string;
236
- /**
237
- * Google Maps link
238
- */
239
- mapsLink?: string;
240
- /**
241
- * Room images (fallback if not using API)
242
- */
243
- images?: string[];
244
- }
245
- declare const DemoRoomDetail: React.FC<DemoRoomDetailProps>;
246
-
247
208
  interface BookingSuccessProps {
248
209
  bookingData?: Booking;
249
210
  token?: string;
250
211
  apiConfig?: DemoRoomApiConfig;
251
212
  onScheduleAgain?: () => void;
213
+ onCancelSuccess?: (booking: Booking) => void;
252
214
  className?: string;
253
215
  }
254
216
  declare const BookingSuccess: React.FC<BookingSuccessProps>;
@@ -317,4 +279,4 @@ declare function useCancelBooking(client: DemoRoomApiClient): {
317
279
 
318
280
  declare function cn(...inputs: ClassValue[]): string;
319
281
 
320
- export { ApiError, ApiErrorCode, type ApiResponse, type Booking, BookingForm, type BookingFormProps, type BookingStatus, BookingSuccess, type BookingSuccessProps, type CancelBookingResponse, type CreateBookingRequest, DemoRoomApiClient, type DemoRoomApiConfig, type DemoRoom as DemoRoomData, DemoRoomDetail, type DemoRoomDetailProps, type DemoRoomStatus, type DemoRoomType, type GetBookingResponse, type GetDemoRoomsResponse, type GetTimeslotsResponse, type Question, type QuestionOption, type QuestionType, type Questionnaire, type Timeslot, type TimeslotStatus, cn, createDemoRoomApi, useBooking, useCancelBooking, useCreateBooking, useDemoRoom, useDemoRooms, useQuestionnaire, useTimeslots };
282
+ export { ApiError, ApiErrorCode, type ApiResponse, type Booking, BookingForm, type BookingFormProps, type BookingStatus, BookingSuccess, type BookingSuccessProps, type CancelBookingResponse, type CreateBookingRequest, DemoRoomApiClient, type DemoRoomApiConfig, type DemoRoom as DemoRoomData, type DemoRoomStatus, type DemoRoomType, type GetBookingResponse, type GetDemoRoomsResponse, type GetTimeslotsResponse, type Question, type QuestionOption, type QuestionType, type Questionnaire, type Timeslot, type TimeslotStatus, cn, createDemoRoomApi, useBooking, useCancelBooking, useCreateBooking, useDemoRoom, useDemoRooms, useQuestionnaire, useTimeslots };