tapquest-ui-yeulamvietnam 2.8.0 → 2.10.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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "tapquest-ui-yeulamvietnam",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "main": "./dist/index.js",
8
+ "main": "./dist/index.mjs",
9
9
  "module": "./dist/index.mjs",
10
10
  "types": "./dist/index.d.ts",
11
11
  "scripts": {
package/tsup.config.ts CHANGED
@@ -8,7 +8,8 @@ export default defineConfig((options: Options) => ({
8
8
  banner: {
9
9
  js: "'use client'",
10
10
  },
11
- format: ["cjs", "esm"],
11
+ format: ["esm"],
12
+ outExtension: () => ({ js: '.mjs' }),
12
13
  dts: true,
13
14
  clean: true,
14
15
  external: ["react"],
package/dist/index.d.ts DELETED
@@ -1,471 +0,0 @@
1
- import { RouteStateParams } from '@/contexts/RoutingContext';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import * as antd_es_button from 'antd/es/button';
4
- import * as styled_components_dist_types from 'styled-components/dist/types';
5
- import * as react from 'react';
6
- import { ReactNode, CSSProperties } from 'react';
7
- import * as antd from 'antd';
8
- import { ProgressProps, ModalProps as ModalProps$1, InputProps, Select } from 'antd';
9
- import { BaseButtonProps } from 'antd/es/button/button';
10
- import * as styled_components from 'styled-components';
11
- import * as antd_es_tabs from 'antd/es/tabs';
12
- import * as antd_es_form_FormItem from 'antd/es/form/FormItem';
13
- import * as antd_es_input_OTP from 'antd/es/input/OTP';
14
- import * as antd_es_input_TextArea from 'antd/es/input/TextArea';
15
- import * as antd_es_input from 'antd/es/input';
16
- import * as antd_es_avatar_AvatarGroup from 'antd/es/avatar/AvatarGroup';
17
-
18
- interface AppbarMenuItem {
19
- title: string;
20
- icon?: React.ReactNode;
21
- path: string;
22
- routeParams?: RouteStateParams;
23
- disabled?: boolean;
24
- }
25
-
26
- type type_d_AppbarMenuItem = AppbarMenuItem;
27
- declare namespace type_d {
28
- export type { type_d_AppbarMenuItem as AppbarMenuItem };
29
- }
30
-
31
- declare function Home(): react_jsx_runtime.JSX.Element;
32
-
33
- declare function Exclaimation(): react_jsx_runtime.JSX.Element;
34
-
35
- declare function XIcon(): react_jsx_runtime.JSX.Element;
36
-
37
- declare function ProgressBar(): react_jsx_runtime.JSX.Element;
38
-
39
- declare function ProgressBarInner(): react_jsx_runtime.JSX.Element;
40
-
41
- declare function PinCircle(): react_jsx_runtime.JSX.Element;
42
-
43
- declare function Camera(): react_jsx_runtime.JSX.Element;
44
-
45
- declare function Menu(): react_jsx_runtime.JSX.Element;
46
-
47
- declare function MapMarker(): react_jsx_runtime.JSX.Element;
48
-
49
- declare function Edit(): react_jsx_runtime.JSX.Element;
50
-
51
- declare function ShareMemoryBadge(): react_jsx_runtime.JSX.Element;
52
-
53
- declare function ArrowCircle(): react_jsx_runtime.JSX.Element;
54
-
55
- declare function Pin(): react_jsx_runtime.JSX.Element;
56
-
57
- declare function Gift(): react_jsx_runtime.JSX.Element;
58
-
59
- declare function Share(): react_jsx_runtime.JSX.Element;
60
-
61
- declare function Profile(): react_jsx_runtime.JSX.Element;
62
-
63
- declare function ChevronLeft(): react_jsx_runtime.JSX.Element;
64
-
65
- declare function ChevronRight(): react_jsx_runtime.JSX.Element;
66
-
67
- declare function Facebook(): react_jsx_runtime.JSX.Element;
68
-
69
- declare function Instagram(): react_jsx_runtime.JSX.Element;
70
-
71
- declare function Telegram(): react_jsx_runtime.JSX.Element;
72
-
73
- declare function Zalo(): react_jsx_runtime.JSX.Element;
74
-
75
- declare function Link(): react_jsx_runtime.JSX.Element;
76
-
77
- declare function Gear(): react_jsx_runtime.JSX.Element;
78
-
79
- declare function ProfileGift(): react_jsx_runtime.JSX.Element;
80
-
81
- declare function Moment(): react_jsx_runtime.JSX.Element;
82
-
83
- declare function Mission(): react_jsx_runtime.JSX.Element;
84
-
85
- declare function Logout(): react_jsx_runtime.JSX.Element;
86
-
87
- declare function User(): react_jsx_runtime.JSX.Element;
88
-
89
- declare function Trash(): react_jsx_runtime.JSX.Element;
90
-
91
- declare function CornerUpRight(): react_jsx_runtime.JSX.Element;
92
-
93
- declare function SealCheckIcon(props: any): react_jsx_runtime.JSX.Element;
94
-
95
- declare function ShieldWarningIcon(props: any): react_jsx_runtime.JSX.Element;
96
-
97
- declare function LocationPin(): react_jsx_runtime.JSX.Element;
98
-
99
- declare function Email(): react_jsx_runtime.JSX.Element;
100
-
101
- declare function Phone(): react_jsx_runtime.JSX.Element;
102
-
103
- declare function Globe(): react_jsx_runtime.JSX.Element;
104
-
105
- declare function SendMessage(): react_jsx_runtime.JSX.Element;
106
-
107
- declare function CircleCheck(): react_jsx_runtime.JSX.Element;
108
-
109
- declare function Check(): react_jsx_runtime.JSX.Element;
110
-
111
- declare function CircleAlert(): react_jsx_runtime.JSX.Element;
112
-
113
- declare function PinOutlined(): react_jsx_runtime.JSX.Element;
114
-
115
- declare function Discover(): react_jsx_runtime.JSX.Element;
116
-
117
- declare function Dart(): react_jsx_runtime.JSX.Element;
118
-
119
- declare const index$1_ArrowCircle: typeof ArrowCircle;
120
- declare const index$1_Camera: typeof Camera;
121
- declare const index$1_Check: typeof Check;
122
- declare const index$1_ChevronLeft: typeof ChevronLeft;
123
- declare const index$1_ChevronRight: typeof ChevronRight;
124
- declare const index$1_CircleAlert: typeof CircleAlert;
125
- declare const index$1_CircleCheck: typeof CircleCheck;
126
- declare const index$1_CornerUpRight: typeof CornerUpRight;
127
- declare const index$1_Dart: typeof Dart;
128
- declare const index$1_Discover: typeof Discover;
129
- declare const index$1_Edit: typeof Edit;
130
- declare const index$1_Email: typeof Email;
131
- declare const index$1_Exclaimation: typeof Exclaimation;
132
- declare const index$1_Facebook: typeof Facebook;
133
- declare const index$1_Gear: typeof Gear;
134
- declare const index$1_Gift: typeof Gift;
135
- declare const index$1_Globe: typeof Globe;
136
- declare const index$1_Home: typeof Home;
137
- declare const index$1_Instagram: typeof Instagram;
138
- declare const index$1_Link: typeof Link;
139
- declare const index$1_LocationPin: typeof LocationPin;
140
- declare const index$1_Logout: typeof Logout;
141
- declare const index$1_MapMarker: typeof MapMarker;
142
- declare const index$1_Menu: typeof Menu;
143
- declare const index$1_Mission: typeof Mission;
144
- declare const index$1_Moment: typeof Moment;
145
- declare const index$1_Phone: typeof Phone;
146
- declare const index$1_Pin: typeof Pin;
147
- declare const index$1_PinCircle: typeof PinCircle;
148
- declare const index$1_PinOutlined: typeof PinOutlined;
149
- declare const index$1_Profile: typeof Profile;
150
- declare const index$1_ProfileGift: typeof ProfileGift;
151
- declare const index$1_ProgressBar: typeof ProgressBar;
152
- declare const index$1_ProgressBarInner: typeof ProgressBarInner;
153
- declare const index$1_SealCheckIcon: typeof SealCheckIcon;
154
- declare const index$1_SendMessage: typeof SendMessage;
155
- declare const index$1_Share: typeof Share;
156
- declare const index$1_ShareMemoryBadge: typeof ShareMemoryBadge;
157
- declare const index$1_ShieldWarningIcon: typeof ShieldWarningIcon;
158
- declare const index$1_Telegram: typeof Telegram;
159
- declare const index$1_Trash: typeof Trash;
160
- declare const index$1_User: typeof User;
161
- declare const index$1_XIcon: typeof XIcon;
162
- declare const index$1_Zalo: typeof Zalo;
163
- declare namespace index$1 {
164
- export { index$1_ArrowCircle as ArrowCircle, index$1_Camera as Camera, index$1_Check as Check, index$1_ChevronLeft as ChevronLeft, index$1_ChevronRight as ChevronRight, index$1_CircleAlert as CircleAlert, index$1_CircleCheck as CircleCheck, index$1_CornerUpRight as CornerUpRight, index$1_Dart as Dart, index$1_Discover as Discover, index$1_Edit as Edit, index$1_Email as Email, index$1_Exclaimation as Exclaimation, index$1_Facebook as Facebook, index$1_Gear as Gear, index$1_Gift as Gift, index$1_Globe as Globe, index$1_Home as Home, index$1_Instagram as Instagram, index$1_Link as Link, index$1_LocationPin as LocationPin, index$1_Logout as Logout, index$1_MapMarker as MapMarker, index$1_Menu as Menu, index$1_Mission as Mission, index$1_Moment as Moment, index$1_Phone as Phone, index$1_Pin as Pin, index$1_PinCircle as PinCircle, index$1_PinOutlined as PinOutlined, index$1_Profile as Profile, index$1_ProfileGift as ProfileGift, index$1_ProgressBar as ProgressBar, index$1_ProgressBarInner as ProgressBarInner, index$1_SealCheckIcon as SealCheckIcon, index$1_SendMessage as SendMessage, index$1_Share as Share, index$1_ShareMemoryBadge as ShareMemoryBadge, index$1_ShieldWarningIcon as ShieldWarningIcon, index$1_Telegram as Telegram, index$1_Trash as Trash, index$1_User as User, index$1_XIcon as XIcon, index$1_Zalo as Zalo };
165
- }
166
-
167
- declare function NoResult(): react_jsx_runtime.JSX.Element;
168
-
169
- declare const index_NoResult: typeof NoResult;
170
- declare namespace index {
171
- export { index_NoResult as NoResult };
172
- }
173
-
174
- interface ButtonProps extends Omit<BaseButtonProps, "size"> {
175
- $textColor?: string;
176
- $backgroundColor?: string;
177
- $borderColor?: string;
178
- $borderRadius?: string;
179
- $disabledBackgroundColor?: string;
180
- $fluid?: boolean;
181
- $size?: "xs" | "small" | "middle" | "large";
182
- $padding?: string;
183
- $height?: string;
184
- $width?: string;
185
- }
186
- declare const Button: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<Omit<antd.ButtonProps & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
187
- ref?: react.Ref<HTMLAnchorElement | HTMLButtonElement>;
188
- }, ButtonProps>> & string & Omit<react.ForwardRefExoticComponent<antd.ButtonProps & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
189
- Group: react.FC<antd_es_button.ButtonGroupProps>;
190
- }, keyof react.Component<any, {}, any>>;
191
-
192
- interface TypographyProps {
193
- $type?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subheading-1" | "subheading-1-medium" | "subheading-2" | "subheading-3-bold" | "subheading-3-semibold" | "subheading-4" | "subheading-5-medium" | "subheading-6" | "subheading-6-semibold" | "title-text" | "body-text" | "body-text-2-semibold" | "body-text-2" | "body-text-3-semibold";
194
- $color?: string;
195
- $align?: "left" | "center" | "right";
196
- $fontSize?: number;
197
- $textTransform?: "uppercase" | "lowercase" | "capitalize";
198
- children?: React.ReactNode;
199
- $as?: "h1" | "h2" | "h3" | "h4" | "h5" | "p" | "span";
200
- $fontWeight?: "400" | "500" | "600" | "700";
201
- $textDecoration?: "underline" | "line-through" | "none";
202
- $fontFamily?: "iCielBC Lodestone" | "Kanit" | "Roboto" | "Phudu";
203
- }
204
- declare const Typography: ({ children, $type, $as: as, ...props }: TypographyProps) => react_jsx_runtime.JSX.Element;
205
-
206
- interface ProgressCircularProps extends ProgressProps {
207
- children?: React.ReactNode;
208
- size?: number;
209
- strokeWidth?: number;
210
- innerCircleHeight?: string;
211
- innerCircleWidth?: string;
212
- }
213
- declare const ProgressCircular: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<ProgressCircularProps, never>> & string & Omit<({ children, size, strokeWidth, innerCircleHeight, innerCircleWidth, ...props }: ProgressCircularProps) => react_jsx_runtime.JSX.Element, keyof react.Component<any, {}, any>>;
214
-
215
- declare const Loader: () => react_jsx_runtime.JSX.Element;
216
-
217
- declare const Tabs: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<antd.TabsProps & react.RefAttributes<antd_es_tabs.TabsRef>, "ref"> & {
218
- ref?: react.Ref<antd_es_tabs.TabsRef>;
219
- }, never>> & string & Omit<react.ForwardRefExoticComponent<antd.TabsProps & react.RefAttributes<antd_es_tabs.TabsRef>> & {
220
- TabPane: react.FC<antd.TabPaneProps>;
221
- }, keyof react.Component<any, {}, any>>;
222
-
223
- interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
224
- objectFit?: "cover" | "contain" | "fill";
225
- }
226
- declare const Image: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<ImageProps, never>> & string & Omit<({ src, objectFit, height, width, ...props }: ImageProps) => react_jsx_runtime.JSX.Element, keyof react.Component<any, {}, any>>;
227
-
228
- interface ModalProps extends ModalProps$1 {
229
- $border?: string;
230
- }
231
- declare const Modal: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<ModalProps, never>> & string & Omit<({ children, footer, ...rest }: ModalProps) => react_jsx_runtime.JSX.Element, keyof react.Component<any, {}, any>>;
232
-
233
- declare const FormItem: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<antd.FormItemProps<unknown>, never>> & string & Omit<(<Values = any>(props: antd.FormItemProps<Values>) => React.ReactElement) & {
234
- useStatus: () => {
235
- status?: antd_es_form_FormItem.ValidateStatus;
236
- errors: React.ReactNode[];
237
- warnings: React.ReactNode[];
238
- };
239
- }, keyof react.Component<any, {}, any>>;
240
-
241
- declare const Input: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<antd.InputProps & react.RefAttributes<antd.InputRef>, "ref"> & {
242
- ref?: react.Ref<antd.InputRef>;
243
- }, never>> & string & Omit<react.ForwardRefExoticComponent<antd.InputProps & react.RefAttributes<antd.InputRef>> & {
244
- Group: react.FC<antd_es_input.GroupProps>;
245
- Search: react.ForwardRefExoticComponent<antd_es_input.SearchProps & react.RefAttributes<antd.InputRef>>;
246
- TextArea: react.ForwardRefExoticComponent<antd_es_input.TextAreaProps & react.RefAttributes<antd_es_input_TextArea.TextAreaRef>>;
247
- Password: react.ForwardRefExoticComponent<antd_es_input.PasswordProps & react.RefAttributes<antd.InputRef>>;
248
- OTP: react.ForwardRefExoticComponent<antd_es_input_OTP.OTPProps & react.RefAttributes<antd_es_input_OTP.OTPRef>>;
249
- }, keyof react.Component<any, {}, any>>;
250
-
251
- declare const InputPassword: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<antd_es_input.PasswordProps & react.RefAttributes<antd.InputRef>, "ref"> & {
252
- ref?: react.Ref<antd.InputRef>;
253
- }, never>> & string & Omit<react.ForwardRefExoticComponent<antd_es_input.PasswordProps & react.RefAttributes<antd.InputRef>>, keyof react.Component<any, {}, any>>;
254
-
255
- interface InputSearchProps extends InputProps {
256
- placeholder?: string;
257
- prefix?: React.ReactNode;
258
- style?: React.CSSProperties;
259
- }
260
- declare const InputSearch: (props: InputSearchProps) => react_jsx_runtime.JSX.Element;
261
-
262
- declare const TextArea: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<antd_es_input.TextAreaProps & react.RefAttributes<antd_es_input_TextArea.TextAreaRef>, "ref"> & {
263
- ref?: react.Ref<antd_es_input_TextArea.TextAreaRef>;
264
- }, never>> & string & Omit<react.ForwardRefExoticComponent<antd_es_input.TextAreaProps & react.RefAttributes<antd_es_input_TextArea.TextAreaRef>>, keyof react.Component<any, {}, any>>;
265
-
266
- declare const StyledSelect: typeof Select;
267
-
268
- declare const Avatar: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<antd.AvatarProps & react.RefAttributes<HTMLSpanElement>, "ref"> & {
269
- ref?: react.Ref<HTMLSpanElement>;
270
- }, never>> & string & Omit<react.ForwardRefExoticComponent<antd.AvatarProps & react.RefAttributes<HTMLSpanElement>> & {
271
- Group: react.FC<antd_es_avatar_AvatarGroup.AvatarGroupProps>;
272
- }, keyof react.Component<any, {}, any>>;
273
-
274
- interface CardProps {
275
- $backgroundColor?: string;
276
- $padding?: string;
277
- $borderRadius?: string;
278
- $border?: string;
279
- }
280
- declare const Card: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CardProps>> & string;
281
-
282
- interface AppbarProps {
283
- items: AppbarMenuItem[];
284
- onMenuItemClick: (item: AppbarMenuItem) => void;
285
- currentItem: AppbarMenuItem | null;
286
- }
287
- declare const Appbar: ({ items, onMenuItemClick, currentItem }: AppbarProps) => react_jsx_runtime.JSX.Element;
288
-
289
- interface HeaderProps {
290
- left?: React.ReactNode;
291
- middle?: React.ReactNode;
292
- right?: React.ReactNode;
293
- }
294
- declare function Header({ left, middle, right }: HeaderProps): react_jsx_runtime.JSX.Element;
295
-
296
- interface AppbarPrimaryButtonProps {
297
- icon: any;
298
- isHasBackground?: boolean;
299
- }
300
- declare const AppbarPrimaryButton: ({ icon, isHasBackground }: AppbarPrimaryButtonProps) => react_jsx_runtime.JSX.Element;
301
-
302
- interface ProgressStepProps {
303
- current: number;
304
- total: number;
305
- }
306
- declare function ProgressStep({ current, total }: ProgressStepProps): react_jsx_runtime.JSX.Element;
307
-
308
- interface MemoryCardProps {
309
- borderColor?: string;
310
- backgroundColor?: string;
311
- children?: ReactNode;
312
- }
313
- interface MemoryCardImageProps {
314
- src: string;
315
- alt?: string;
316
- width?: string | number;
317
- height?: string | number;
318
- objectFit?: "cover" | "contain" | "fill";
319
- blur?: boolean;
320
- }
321
- interface MemoryCardStatusProps {
322
- isApproved: boolean;
323
- }
324
- interface MemoryCardTimeProps {
325
- time: string;
326
- color?: string;
327
- }
328
- interface MemoryCardCaptionProps {
329
- text: string;
330
- color?: string;
331
- fontSize?: number;
332
- lineClamp?: number;
333
- }
334
- interface MemoryCardActionsProps {
335
- children: ReactNode;
336
- }
337
- interface MemoryCardDataProps {
338
- image: {
339
- src: string;
340
- alt?: string;
341
- };
342
- isApproved: boolean;
343
- time?: string;
344
- caption?: string;
345
- action?: ReactNode;
346
- borderColor?: string;
347
- backgroundColor?: string;
348
- }
349
- declare const MemoryCard: (({ borderColor, backgroundColor, children }: MemoryCardProps) => react_jsx_runtime.JSX.Element) & {
350
- Image: ({ src, alt, width, objectFit, blur }: MemoryCardImageProps) => react_jsx_runtime.JSX.Element;
351
- Status: ({ isApproved }: MemoryCardStatusProps) => react_jsx_runtime.JSX.Element;
352
- Time: ({ time, color }: MemoryCardTimeProps) => react_jsx_runtime.JSX.Element;
353
- Caption: ({ text, color, fontSize, lineClamp }: MemoryCardCaptionProps) => react_jsx_runtime.JSX.Element;
354
- Actions: ({ children }: MemoryCardActionsProps) => react_jsx_runtime.JSX.Element;
355
- Header: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
356
- Description: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
357
- Default: ({ image, isApproved, time, caption, action, borderColor, backgroundColor, }: MemoryCardDataProps) => react_jsx_runtime.JSX.Element;
358
- };
359
-
360
- interface LocationOverviewCardProps {
361
- backgroundColor?: string;
362
- padding?: string;
363
- children?: ReactNode;
364
- }
365
- interface LocationOverviewTitleProps {
366
- text: string;
367
- color?: string;
368
- borderColor?: string;
369
- padding?: string;
370
- type?: string;
371
- }
372
- interface LocationOverviewDescriptionProps {
373
- text: string;
374
- color?: string;
375
- lineClamp?: number;
376
- type?: string;
377
- }
378
- interface LocationOverviewActionProps {
379
- children: ReactNode;
380
- }
381
- interface LocationOverviewCardDataProps {
382
- title: {
383
- text: string;
384
- color?: string;
385
- borderColor?: string;
386
- padding?: string;
387
- };
388
- description: {
389
- text: string;
390
- color?: string;
391
- lineClamp?: number;
392
- };
393
- action?: ReactNode;
394
- backgroundColor?: string;
395
- padding?: string;
396
- }
397
- declare const LocationOverviewCard: (({ backgroundColor, padding, children }: LocationOverviewCardProps) => react_jsx_runtime.JSX.Element) & {
398
- Title: ({ text, color, borderColor, padding, }: LocationOverviewTitleProps) => react_jsx_runtime.JSX.Element;
399
- Description: ({ text, color, lineClamp, }: LocationOverviewDescriptionProps) => react_jsx_runtime.JSX.Element;
400
- Action: ({ children }: LocationOverviewActionProps) => react_jsx_runtime.JSX.Element;
401
- Default: ({ title, description, action, backgroundColor, padding }: LocationOverviewCardDataProps) => react_jsx_runtime.JSX.Element;
402
- };
403
-
404
- interface SponsorByContainerProps {
405
- logo: string;
406
- }
407
- declare function SponsorByContainer({ logo }: SponsorByContainerProps): react_jsx_runtime.JSX.Element;
408
-
409
- interface useInteractiveMapProps {
410
- mapId: string | null;
411
- mapBackground: string;
412
- mapSvg?: (props: any) => React.ReactElement;
413
- containerStyle: {
414
- width: string;
415
- height: string;
416
- };
417
- provinceData?: Record<string, string>;
418
- }
419
- interface MarkerPosition {
420
- x: number;
421
- y: number;
422
- }
423
- interface MarkerOptions {
424
- id: string;
425
- position: MarkerPosition;
426
- customMarker?: {
427
- svg: string;
428
- style?: CSSProperties;
429
- };
430
- onClick?: () => void;
431
- }
432
- interface LabelOptions {
433
- id: string;
434
- text: string;
435
- position: MarkerPosition;
436
- fontSize?: number;
437
- color?: string;
438
- backgroundColor?: string;
439
- }
440
- interface ProvinceLabelSettings {
441
- fontSize?: number;
442
- color?: string;
443
- backgroundColor?: string;
444
- visible?: boolean;
445
- }
446
- declare function useInteractiveMap({ mapId, mapBackground, mapSvg, containerStyle, provinceData, }: useInteractiveMapProps): {
447
- mapInstance: react_jsx_runtime.JSX.Element;
448
- mapId: string;
449
- fillProvinceColor: (provinceId: string, color: string) => void;
450
- resetAllProvinceColors: (defaultColor?: string) => void;
451
- fillAreaProvinces: (areaId: string, color: string) => void;
452
- fillAllProvinces: (color: string) => void;
453
- applyRandomColors: () => void;
454
- addMarker: (options: MarkerOptions) => () => void;
455
- removeMarker: (id: string) => void;
456
- removeAllMarkers: () => void;
457
- getProvinceCenter: (provinceId: string) => MarkerPosition | null;
458
- addMarkerToProvince: (provinceId: string, markerOptions: Omit<MarkerOptions, "position">) => () => void;
459
- addLabel: (options: LabelOptions) => () => void;
460
- addFixedRatioMarker: (options: MarkerOptions) => () => void;
461
- removeLabel: (id: string) => void;
462
- removeAllLabels: () => void;
463
- addLabelToProvince: (provinceId: string, text?: string, options?: Partial<LabelOptions>) => () => void;
464
- addLabelsToAllProvinces: (options?: Partial<LabelOptions>) => () => void;
465
- toggleProvinceLabels: (settings?: ProvinceLabelSettings) => boolean;
466
- updateProvinceData: () => void;
467
- isProvinceLabelsVisible: boolean;
468
- cleanup: () => void;
469
- };
470
-
471
- export { Appbar, AppbarPrimaryButton, Avatar, Button, Card, FormItem, Header, index$1 as Icons, Image, Input, InputPassword, InputSearch, Loader, LocationOverviewCard, MemoryCard, Modal, ProgressCircular, ProgressStep, index as SVGs, StyledSelect as Select, SponsorByContainer, Tabs, TextArea, Typography, type_d as types, useInteractiveMap };