@momo-webplatform/mobase 0.2.49 → 0.2.50

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.
@@ -148,23 +148,81 @@ declare const BreadcrumbEllipsis: {
148
148
  displayName: string;
149
149
  };
150
150
 
151
- type CalendarProps = React$1.ComponentProps<typeof DayPicker> & {
151
+ interface HeadingBlockProps {
152
152
  /**
153
- * Enable show luna date in calendar cell
153
+ * ALign the heading.
154
154
  */
155
- enableLunaDate?: boolean;
155
+ align?: "center" | "left" | "right";
156
156
  /**
157
- * A function custom content for day cell.
157
+ * The tagline content.
158
158
  */
159
- cusContentDay?: (date: Date) => void;
159
+ tagline?: string;
160
160
  /**
161
- * Language for calendar support vi or en. Default is vi.
161
+ * The title content.
162
162
  */
163
- lang?: 'vi' | 'en';
164
- };
165
- declare function Calendar({ className, classNames, showOutsideDays, enableLunaDate, lang, cusContentDay, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
166
- declare namespace Calendar {
167
- var displayName: string;
163
+ title?: string;
164
+ /**
165
+ * The description content.
166
+ */
167
+ description?: string;
168
+ /**
169
+ * HTML Tag heading. Default is "h2".
170
+ */
171
+ tagHeading?: "h1" | "h2";
172
+ /**
173
+ * The color scheme of the heading block.
174
+ */
175
+ colorScheme?: "pink" | "black" | "white";
176
+ /**
177
+ * The size of the heading.
178
+ */
179
+ sizeHeading?: "small" | "large";
180
+ /**
181
+ * CSS class to be appended to the root element heading.
182
+ */
183
+ className?: string;
184
+ }
185
+ interface dataButton extends ActionButtonProps {
186
+ /**
187
+ * Button name.
188
+ */
189
+ btnName: string;
190
+ }
191
+ interface ButtonsBlockProps {
192
+ /**
193
+ * CSS class to be appended to the root element.
194
+ */
195
+ className?: string;
196
+ /**
197
+ * ALign the button.
198
+ */
199
+ align?: "center" | "left" | "right";
200
+ /**
201
+ * Button is full width in mobile.
202
+ */
203
+ isFullInMobile?: boolean;
204
+ /**
205
+ * Button group data.
206
+ */
207
+ buttons?: dataButton[];
208
+ }
209
+ interface SectionBlockProps {
210
+ /**
211
+ * Id of the section.
212
+ */
213
+ idSection?: string | undefined;
214
+ /**
215
+ * CSS class to be appended to the root element.
216
+ */
217
+ className?: string;
218
+ /**
219
+ * Input the color code or image url according to CSS syntax.
220
+ */
221
+ background?: string;
222
+ /**
223
+ * The children of the section.
224
+ */
225
+ children?: React.ReactNode;
168
226
  }
169
227
 
170
228
  declare const iconButtonVariants: (props?: ({
@@ -187,6 +245,152 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
187
245
  }
188
246
  declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
189
247
 
248
+ interface HorizontalScrollProps {
249
+ /**
250
+ * Show gradient overlay on navigation arrows.
251
+ */
252
+ showGradientOverlay?: boolean;
253
+ /**
254
+ * The RGB color for navigation gradient background overlay (format as "R, G, B").
255
+ */
256
+ gradientOverlayColor?: string;
257
+ /**
258
+ * Additional class names for styling the component.
259
+ */
260
+ className?: string;
261
+ children?: React__default.ReactNode;
262
+ }
263
+ declare const HorizontalScroll: ({ showGradientOverlay, gradientOverlayColor, className, children, }: HorizontalScrollProps) => react_jsx_runtime.JSX.Element;
264
+ interface HorizontalContentProps {
265
+ /**
266
+ * Additional class names for styling the component.
267
+ */
268
+ className?: string;
269
+ children: React__default.ReactNode;
270
+ }
271
+ declare const HorizontalContent: ({ className, children }: HorizontalContentProps) => react_jsx_runtime.JSX.Element;
272
+ interface HorizontalNavigationProps extends IconButtonProps {
273
+ children?: React__default.ReactNode;
274
+ }
275
+ declare const HorizontalPrevious: ({ className, children, ...props }: HorizontalNavigationProps) => react_jsx_runtime.JSX.Element | null;
276
+ declare const HorizontalNext: ({ className, children, ...props }: HorizontalNavigationProps) => react_jsx_runtime.JSX.Element | null;
277
+
278
+ interface BlogItemProps {
279
+ /**
280
+ * The id of the blog item.
281
+ */
282
+ id: number;
283
+ /**
284
+ * The title of the blog item.
285
+ */
286
+ title: string;
287
+ /**
288
+ * The total views of the blog item.
289
+ */
290
+ totalViews: string;
291
+ /**
292
+ * The thumbnails of the blog item.
293
+ */
294
+ thumbnailMobile: string;
295
+ /**
296
+ * The thumbnails of the blog item.
297
+ */
298
+ thumbnailDesktop: string;
299
+ /**
300
+ * The url of the blog item.
301
+ */
302
+ url: string;
303
+ /**
304
+ * The category of the blog item.
305
+ */
306
+ category?: string;
307
+ /**
308
+ * The category url of the blog item.
309
+ */
310
+ categoryUrl?: string;
311
+ }
312
+ interface DataBlogProps {
313
+ /**
314
+ * The title of the blog group.
315
+ */
316
+ title: string;
317
+ /**
318
+ * The array of blog items.
319
+ */
320
+ blogList: BlogItemProps[];
321
+ /**
322
+ * The class name of the blog item.
323
+ */
324
+ classNameItem?: string;
325
+ /**
326
+ * The flag to show the button. default is false.
327
+ */
328
+ isShowBtn?: boolean;
329
+ /**
330
+ * The url of the button.
331
+ */
332
+ btnUrl?: string;
333
+ /**
334
+ * The name of the button. default is "Xem thêm".
335
+ */
336
+ btnName?: string;
337
+ /**
338
+ * The flag to open the button in a new tab. default is false.
339
+ */
340
+ isNewTab?: boolean;
341
+ /**
342
+ * The flag to show the loading state. default is false.
343
+ */
344
+ isLoading?: boolean;
345
+ }
346
+ interface BlogSectionProps extends SectionBlockProps {
347
+ /**
348
+ * The template of the blog section.
349
+ */
350
+ template?: 1;
351
+ /**
352
+ * The data heading of the blog section.
353
+ */
354
+ dataHeading: HeadingBlockProps;
355
+ /**
356
+ * The data heading of the blog section.
357
+ */
358
+ dataHorizontalScroll?: HorizontalScrollProps;
359
+ /**
360
+ * The array data blog of the blog section.
361
+ */
362
+ dataBlog: DataBlogProps[];
363
+ /**
364
+ * The function to handle the modal click event.
365
+ */
366
+ onClickModal?: (id: number) => void;
367
+ /**
368
+ * The function to handle the load more click event.
369
+ */
370
+ onClickLoadMore?: (tabIndex: number) => void;
371
+ }
372
+
373
+ declare const BlogSection: ({ dataHeading, dataHorizontalScroll, dataBlog, className, background, template, onClickModal, onClickLoadMore, }: BlogSectionProps) => react_jsx_runtime.JSX.Element;
374
+
375
+ type CalendarProps = React$1.ComponentProps<typeof DayPicker> & {
376
+ /**
377
+ * Enable show luna date in calendar cell
378
+ */
379
+ enableLunaDate?: boolean;
380
+ /**
381
+ * A function custom content for day cell.
382
+ */
383
+ cusContentDay?: (date: Date) => void;
384
+ /**
385
+ * Language for calendar support vi or en. Default is vi.
386
+ */
387
+ lang?: 'vi' | 'en';
388
+ };
389
+ declare function Calendar({ className, classNames, showOutsideDays, enableLunaDate, lang, cusContentDay, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
390
+ declare namespace Calendar {
391
+ var displayName: string;
392
+ }
393
+
190
394
  type CarouselApi = UseEmblaCarouselType[1];
191
395
  type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
192
396
  type CarouselOptions = UseCarouselParameters[0];
@@ -485,7 +689,7 @@ interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
485
689
  declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
486
690
 
487
691
  declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
488
- variant?: "sucess" | "warning" | "error" | null | undefined;
692
+ variant?: "error" | "sucess" | "warning" | null | undefined;
489
693
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
490
694
  declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
491
695
  type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
@@ -775,10 +979,10 @@ interface CalloutProps {
775
979
  icon?: React.ReactNode;
776
980
  }
777
981
  declare const Callout: React$1.ForwardRefExoticComponent<CalloutProps & VariantProps<(props?: ({
778
- typeDiv?: "warning" | "error" | "neutral" | "success" | "info" | null | undefined;
982
+ typeDiv?: "error" | "warning" | "neutral" | "success" | "info" | null | undefined;
779
983
  disabled?: boolean | null | undefined;
780
984
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & VariantProps<(props?: ({
781
- typeIcon?: "warning" | "error" | "neutral" | "success" | "info" | null | undefined;
985
+ typeIcon?: "error" | "warning" | "neutral" | "success" | "info" | null | undefined;
782
986
  disabled?: boolean | null | undefined;
783
987
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
784
988
 
@@ -845,6 +1049,26 @@ declare const AspectRatio: React$1.ForwardRefExoticComponent<AspectRatioPrimitiv
845
1049
 
846
1050
  declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
847
1051
 
1052
+ interface SpinnerProps {
1053
+ /**
1054
+ * The size of the spinner. Can be 'sm', 'md', or 'lg'.
1055
+ */
1056
+ size?: 'sm' | 'md' | 'lg';
1057
+ /**
1058
+ * The color of the spinner. tailwind text color class, ex : text-pink-500
1059
+ */
1060
+ color?: string;
1061
+ /**
1062
+ * Custom class name
1063
+ */
1064
+ className?: string;
1065
+ /**
1066
+ * The template of the spinner. Can be 'default', 'dots'
1067
+ */
1068
+ template?: 'default' | 'dots';
1069
+ }
1070
+ declare function Spinner({ size, color, className, template }: SpinnerProps): react_jsx_runtime.JSX.Element;
1071
+
848
1072
  interface SliderProps extends React$1.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
849
1073
  showIndicatorValue1?: number | string;
850
1074
  showIndicatorValue2?: number | string;
@@ -984,113 +1208,6 @@ declare const DropdownMenuShortcut: {
984
1208
  displayName: string;
985
1209
  };
986
1210
 
987
- interface HorizontalScrollProps {
988
- /**
989
- * Show gradient overlay on navigation arrows.
990
- */
991
- showGradientOverlay?: boolean;
992
- /**
993
- * The RGB color for navigation gradient background overlay (format as "R, G, B").
994
- */
995
- gradientOverlayColor?: string;
996
- /**
997
- * Additional class names for styling the component.
998
- */
999
- className?: string;
1000
- children?: React__default.ReactNode;
1001
- }
1002
- declare const HorizontalScroll: ({ showGradientOverlay, gradientOverlayColor, className, children, }: HorizontalScrollProps) => react_jsx_runtime.JSX.Element;
1003
- interface HorizontalContentProps {
1004
- /**
1005
- * Additional class names for styling the component.
1006
- */
1007
- className?: string;
1008
- children: React__default.ReactNode;
1009
- }
1010
- declare const HorizontalContent: ({ className, children }: HorizontalContentProps) => react_jsx_runtime.JSX.Element;
1011
- interface HorizontalNavigationProps extends IconButtonProps {
1012
- children?: React__default.ReactNode;
1013
- }
1014
- declare const HorizontalPrevious: ({ className, children, ...props }: HorizontalNavigationProps) => react_jsx_runtime.JSX.Element | null;
1015
- declare const HorizontalNext: ({ className, children, ...props }: HorizontalNavigationProps) => react_jsx_runtime.JSX.Element | null;
1016
-
1017
- interface HeadingBlockProps {
1018
- /**
1019
- * ALign the heading.
1020
- */
1021
- align?: "center" | "left" | "right";
1022
- /**
1023
- * The tagline content.
1024
- */
1025
- tagline?: string;
1026
- /**
1027
- * The title content.
1028
- */
1029
- title?: string;
1030
- /**
1031
- * The description content.
1032
- */
1033
- description?: string;
1034
- /**
1035
- * HTML Tag heading. Default is "h2".
1036
- */
1037
- tagHeading?: "h1" | "h2";
1038
- /**
1039
- * The color scheme of the heading block.
1040
- */
1041
- colorScheme?: "pink" | "black" | "white";
1042
- /**
1043
- * The size of the heading.
1044
- */
1045
- sizeHeading?: "small" | "large";
1046
- /**
1047
- * CSS class to be appended to the root element heading.
1048
- */
1049
- className?: string;
1050
- }
1051
- interface dataButton extends ActionButtonProps {
1052
- /**
1053
- * Button name.
1054
- */
1055
- btnName: string;
1056
- }
1057
- interface ButtonsBlockProps {
1058
- /**
1059
- * CSS class to be appended to the root element.
1060
- */
1061
- className?: string;
1062
- /**
1063
- * ALign the button.
1064
- */
1065
- align?: "center" | "left" | "right";
1066
- /**
1067
- * Button is full width in mobile.
1068
- */
1069
- isFullInMobile?: boolean;
1070
- /**
1071
- * Button group data.
1072
- */
1073
- buttons?: dataButton[];
1074
- }
1075
- interface SectionBlockProps {
1076
- /**
1077
- * Id of the section.
1078
- */
1079
- idSection?: string | undefined;
1080
- /**
1081
- * CSS class to be appended to the root element.
1082
- */
1083
- className?: string;
1084
- /**
1085
- * Input the color code or image url according to CSS syntax.
1086
- */
1087
- background?: string;
1088
- /**
1089
- * The children of the section.
1090
- */
1091
- children?: React.ReactNode;
1092
- }
1093
-
1094
1211
  interface HowItWorksData {
1095
1212
  /**
1096
1213
  * Icon of the how it works.
@@ -1516,4 +1633,4 @@ declare const mobaseTW: () => {
1516
1633
 
1517
1634
  declare const SiteMeta: react_jsx_runtime.JSX.Element;
1518
1635
 
1519
- export { Accordion, AccordionContent, type AccordionContentInterface, AccordionItem, type AccordionItemInterface, type AccordionRootInterface, AccordionTrigger, type AccordionTriggerInterface, ActionButton, type ActionButtonProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CTASection, type CTASectionProps, Calendar, type CalendarProps, Callout, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxGroupItem, ChoiceboxMultiItem, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Comment, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FAQSection, FeatureSection, type FeatureSectionProps, Footer, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeaderNavigation, Heading, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, HorizontalContent, HorizontalNext, HorizontalPrevious, HorizontalScroll, type HorizontalScrollProps, HowItWorksSection, type HowItWorksSectionProps, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IContents, type IDataFAQ, type IFAQ, IconButton, type IconButtonProps, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, type NewsSectionProps, Pagination, Popover, PopoverContent, PopoverTrigger, ProgressSteps, ProgressStepsItem, ProgressStepsItemTrigger, Progress as Progressbar, RadioGroup, RadioGroupItem, ReadMoreLite, SearchBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SiteMeta, Skeleton, Slider, SocialProofSection, type SocialProofSectionProps, Stepper, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialSection, type TestimonialSectionProps, TextArea, type TextAreaProps, TextButton, type TextButtonProps, TextInput, type TextInputProps, ToastAction, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, mobaseTW, navigationMenuTriggerStyle, textButtonVariants, toast, useFormField, useToast };
1636
+ export { Accordion, AccordionContent, type AccordionContentInterface, AccordionItem, type AccordionItemInterface, type AccordionRootInterface, AccordionTrigger, type AccordionTriggerInterface, ActionButton, type ActionButtonProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AspectRatio, Badge, BlogSection, type BlogSectionProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CTASection, type CTASectionProps, Calendar, type CalendarProps, Callout, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxGroupItem, ChoiceboxMultiItem, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Comment, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FAQSection, FeatureSection, type FeatureSectionProps, Footer, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeaderNavigation, Heading, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, HorizontalContent, HorizontalNext, HorizontalPrevious, HorizontalScroll, type HorizontalScrollProps, HowItWorksSection, type HowItWorksSectionProps, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IContents, type IDataFAQ, type IFAQ, IconButton, type IconButtonProps, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, type NewsSectionProps, Pagination, Popover, PopoverContent, PopoverTrigger, ProgressSteps, ProgressStepsItem, ProgressStepsItemTrigger, Progress as Progressbar, RadioGroup, RadioGroupItem, ReadMoreLite, SearchBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SiteMeta, Skeleton, Slider, SocialProofSection, type SocialProofSectionProps, Spinner, Stepper, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialSection, type TestimonialSectionProps, TextArea, type TextAreaProps, TextButton, type TextButtonProps, TextInput, type TextInputProps, ToastAction, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, mobaseTW, navigationMenuTriggerStyle, textButtonVariants, toast, useFormField, useToast };