@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/demo-room.css +3 -0
- package/dist/demo-room.css.map +1 -1
- package/dist/demo-room.d.mts +11 -64
- package/dist/demo-room.d.ts +11 -64
- package/dist/demo-room.js +415 -553
- package/dist/demo-room.js.map +1 -1
- package/dist/demo-room.mjs +417 -553
- package/dist/demo-room.mjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +3 -41
- package/dist/index.d.ts +3 -41
- package/dist/index.js +1103 -1238
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1105 -1239
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/demo-room.css
CHANGED
package/dist/demo-room.css.map
CHANGED
|
@@ -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/demo-room.d.mts
CHANGED
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
export { D as DemoRoom, a as DemoRoomProps } from './DemoRoom-CZyrsxWe.mjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
interface HelpNavTab {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
showNewTag?: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface HelpNavProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
/**
|
|
11
|
-
* 标签页数组
|
|
12
|
-
*/
|
|
13
|
-
tabs?: HelpNavTab[];
|
|
14
|
-
/**
|
|
15
|
-
* 当前激活的标签页 ID
|
|
16
|
-
*/
|
|
17
|
-
activeTabId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* 标签页切换回调
|
|
20
|
-
*/
|
|
21
|
-
onTabChange?: (tabId: string) => void;
|
|
22
|
-
/**
|
|
23
|
-
* "New" 标签的背景色
|
|
24
|
-
* @default "#3ADB67"
|
|
25
|
-
*/
|
|
26
|
-
newTagColor?: string;
|
|
27
|
-
/**
|
|
28
|
-
* 激活标签的底部边框色
|
|
29
|
-
* @default "#3ADB67"
|
|
30
|
-
*/
|
|
31
|
-
activeBorderColor?: string;
|
|
32
|
-
}
|
|
33
|
-
declare const HelpNav: React.FC<HelpNavProps>;
|
|
34
|
-
|
|
35
4
|
interface EventCardButton {
|
|
36
5
|
label: string;
|
|
37
6
|
variant?: 'primary' | 'secondary';
|
|
@@ -100,6 +69,7 @@ interface StudioLocation {
|
|
|
100
69
|
lng: number;
|
|
101
70
|
availableTime?: string;
|
|
102
71
|
euifyMakeModel?: string;
|
|
72
|
+
distance?: number;
|
|
103
73
|
}
|
|
104
74
|
interface StudioMapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
105
75
|
/**
|
|
@@ -110,6 +80,10 @@ interface StudioMapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
110
80
|
* 工作室位置数据
|
|
111
81
|
*/
|
|
112
82
|
locations?: StudioLocation[];
|
|
83
|
+
/**
|
|
84
|
+
* 当前 hover 的位置 ID
|
|
85
|
+
*/
|
|
86
|
+
hoveredLocationId?: string | null;
|
|
113
87
|
/**
|
|
114
88
|
* 默认中心点
|
|
115
89
|
*/
|
|
@@ -128,7 +102,7 @@ interface StudioMapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
128
102
|
/**
|
|
129
103
|
* 点击 Schedule Now 的回调
|
|
130
104
|
*/
|
|
131
|
-
onSchedule?: (
|
|
105
|
+
onSchedule?: (demoRoomCode: string) => void;
|
|
132
106
|
}
|
|
133
107
|
declare const StudioMap: React.FC<StudioMapProps>;
|
|
134
108
|
|
|
@@ -157,6 +131,10 @@ interface StudioCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
157
131
|
* Available euifyMake models
|
|
158
132
|
*/
|
|
159
133
|
euifyMakeModel: string;
|
|
134
|
+
/**
|
|
135
|
+
* Distance from user location (optional)
|
|
136
|
+
*/
|
|
137
|
+
distance?: number;
|
|
160
138
|
/**
|
|
161
139
|
* Callback when "Schedule Now" is clicked, receives demo room code
|
|
162
140
|
*/
|
|
@@ -164,35 +142,4 @@ interface StudioCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
164
142
|
}
|
|
165
143
|
declare const StudioCard: React.FC<StudioCardProps>;
|
|
166
144
|
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Step number (1-4)
|
|
170
|
-
*/
|
|
171
|
-
stepNumber: number;
|
|
172
|
-
/**
|
|
173
|
-
* Step title
|
|
174
|
-
*/
|
|
175
|
-
title: string;
|
|
176
|
-
/**
|
|
177
|
-
* Step description
|
|
178
|
-
*/
|
|
179
|
-
description: string;
|
|
180
|
-
/**
|
|
181
|
-
* Map image URL for this step
|
|
182
|
-
*/
|
|
183
|
-
mapImage: string;
|
|
184
|
-
}
|
|
185
|
-
interface EasyStepsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
186
|
-
/**
|
|
187
|
-
* Section title
|
|
188
|
-
* @default "Schedule in 4 Easy Steps"
|
|
189
|
-
*/
|
|
190
|
-
title?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Array of steps to display
|
|
193
|
-
*/
|
|
194
|
-
steps?: EasyStep[];
|
|
195
|
-
}
|
|
196
|
-
declare const EasySteps: React.FC<EasyStepsProps>;
|
|
197
|
-
|
|
198
|
-
export { type EasyStep, EasySteps, type EasyStepsProps, EventCard, type EventCardButton, type EventCardProps, HelpNav, type HelpNavProps, type HelpNavTab, StudioCard, type StudioCardProps, type StudioLocation, StudioMap, type StudioMapProps, UpcomingEvents, type UpcomingEventsProps };
|
|
145
|
+
export { EventCard, type EventCardButton, type EventCardProps, StudioCard, type StudioCardProps, type StudioLocation, StudioMap, type StudioMapProps, UpcomingEvents, type UpcomingEventsProps };
|
package/dist/demo-room.d.ts
CHANGED
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
export { D as DemoRoom, a as DemoRoomProps } from './DemoRoom-CZyrsxWe.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
interface HelpNavTab {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
showNewTag?: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface HelpNavProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
/**
|
|
11
|
-
* 标签页数组
|
|
12
|
-
*/
|
|
13
|
-
tabs?: HelpNavTab[];
|
|
14
|
-
/**
|
|
15
|
-
* 当前激活的标签页 ID
|
|
16
|
-
*/
|
|
17
|
-
activeTabId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* 标签页切换回调
|
|
20
|
-
*/
|
|
21
|
-
onTabChange?: (tabId: string) => void;
|
|
22
|
-
/**
|
|
23
|
-
* "New" 标签的背景色
|
|
24
|
-
* @default "#3ADB67"
|
|
25
|
-
*/
|
|
26
|
-
newTagColor?: string;
|
|
27
|
-
/**
|
|
28
|
-
* 激活标签的底部边框色
|
|
29
|
-
* @default "#3ADB67"
|
|
30
|
-
*/
|
|
31
|
-
activeBorderColor?: string;
|
|
32
|
-
}
|
|
33
|
-
declare const HelpNav: React.FC<HelpNavProps>;
|
|
34
|
-
|
|
35
4
|
interface EventCardButton {
|
|
36
5
|
label: string;
|
|
37
6
|
variant?: 'primary' | 'secondary';
|
|
@@ -100,6 +69,7 @@ interface StudioLocation {
|
|
|
100
69
|
lng: number;
|
|
101
70
|
availableTime?: string;
|
|
102
71
|
euifyMakeModel?: string;
|
|
72
|
+
distance?: number;
|
|
103
73
|
}
|
|
104
74
|
interface StudioMapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
105
75
|
/**
|
|
@@ -110,6 +80,10 @@ interface StudioMapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
110
80
|
* 工作室位置数据
|
|
111
81
|
*/
|
|
112
82
|
locations?: StudioLocation[];
|
|
83
|
+
/**
|
|
84
|
+
* 当前 hover 的位置 ID
|
|
85
|
+
*/
|
|
86
|
+
hoveredLocationId?: string | null;
|
|
113
87
|
/**
|
|
114
88
|
* 默认中心点
|
|
115
89
|
*/
|
|
@@ -128,7 +102,7 @@ interface StudioMapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
128
102
|
/**
|
|
129
103
|
* 点击 Schedule Now 的回调
|
|
130
104
|
*/
|
|
131
|
-
onSchedule?: (
|
|
105
|
+
onSchedule?: (demoRoomCode: string) => void;
|
|
132
106
|
}
|
|
133
107
|
declare const StudioMap: React.FC<StudioMapProps>;
|
|
134
108
|
|
|
@@ -157,6 +131,10 @@ interface StudioCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
157
131
|
* Available euifyMake models
|
|
158
132
|
*/
|
|
159
133
|
euifyMakeModel: string;
|
|
134
|
+
/**
|
|
135
|
+
* Distance from user location (optional)
|
|
136
|
+
*/
|
|
137
|
+
distance?: number;
|
|
160
138
|
/**
|
|
161
139
|
* Callback when "Schedule Now" is clicked, receives demo room code
|
|
162
140
|
*/
|
|
@@ -164,35 +142,4 @@ interface StudioCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
164
142
|
}
|
|
165
143
|
declare const StudioCard: React.FC<StudioCardProps>;
|
|
166
144
|
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Step number (1-4)
|
|
170
|
-
*/
|
|
171
|
-
stepNumber: number;
|
|
172
|
-
/**
|
|
173
|
-
* Step title
|
|
174
|
-
*/
|
|
175
|
-
title: string;
|
|
176
|
-
/**
|
|
177
|
-
* Step description
|
|
178
|
-
*/
|
|
179
|
-
description: string;
|
|
180
|
-
/**
|
|
181
|
-
* Map image URL for this step
|
|
182
|
-
*/
|
|
183
|
-
mapImage: string;
|
|
184
|
-
}
|
|
185
|
-
interface EasyStepsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
186
|
-
/**
|
|
187
|
-
* Section title
|
|
188
|
-
* @default "Schedule in 4 Easy Steps"
|
|
189
|
-
*/
|
|
190
|
-
title?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Array of steps to display
|
|
193
|
-
*/
|
|
194
|
-
steps?: EasyStep[];
|
|
195
|
-
}
|
|
196
|
-
declare const EasySteps: React.FC<EasyStepsProps>;
|
|
197
|
-
|
|
198
|
-
export { type EasyStep, EasySteps, type EasyStepsProps, EventCard, type EventCardButton, type EventCardProps, HelpNav, type HelpNavProps, type HelpNavTab, StudioCard, type StudioCardProps, type StudioLocation, StudioMap, type StudioMapProps, UpcomingEvents, type UpcomingEventsProps };
|
|
145
|
+
export { EventCard, type EventCardButton, type EventCardProps, StudioCard, type StudioCardProps, type StudioLocation, StudioMap, type StudioMapProps, UpcomingEvents, type UpcomingEventsProps };
|