@momo-webplatform/mobase 0.2.40 → 0.2.41
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/cjs/index.cjs +14 -91
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +125 -16
- package/dist/esm/index.d.ts +125 -16
- package/dist/esm/index.js +13 -90
- package/dist/esm/index.js.map +1 -1
- package/package.json +9 -6
package/dist/cjs/index.d.cts
CHANGED
|
@@ -23,6 +23,10 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
23
23
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
24
24
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
25
25
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
26
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
27
|
+
import * as react_hook_form from 'react-hook-form';
|
|
28
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
29
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
26
30
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
|
27
31
|
|
|
28
32
|
type AccordionRootInterface = AccordionSingleProps | AccordionMultipleProps;
|
|
@@ -913,20 +917,24 @@ interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
913
917
|
}
|
|
914
918
|
declare const SearchBar: React$1.ForwardRefExoticComponent<SearchBarProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
915
919
|
|
|
920
|
+
declare const LightboxGallery: ({ children, open, onOpenChange, className, }: React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & {
|
|
921
|
+
children: ReactNode;
|
|
922
|
+
className: string;
|
|
923
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
916
924
|
interface LightboxThumbnailProps extends React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger> {
|
|
917
925
|
children?: ReactNode;
|
|
918
|
-
onClick?: () => void;
|
|
919
926
|
src?: string;
|
|
920
927
|
alt?: string;
|
|
921
928
|
className?: string;
|
|
922
929
|
classNameImage?: string;
|
|
930
|
+
onClick?: () => void;
|
|
931
|
+
ratio?: number;
|
|
923
932
|
}
|
|
924
|
-
declare const LightboxThumbnail: ({ children, src, alt, className, classNameImage, onClick, }: LightboxThumbnailProps) => react_jsx_runtime.JSX.Element;
|
|
925
|
-
interface
|
|
933
|
+
declare const LightboxThumbnail: ({ children, src, alt, className, classNameImage, onClick, ratio, }: LightboxThumbnailProps) => react_jsx_runtime.JSX.Element;
|
|
934
|
+
interface LightBoxGalleryContentProps {
|
|
926
935
|
images: {
|
|
927
936
|
url: string;
|
|
928
937
|
titleImage?: string;
|
|
929
|
-
idx?: number;
|
|
930
938
|
}[];
|
|
931
939
|
activeSlideIndex?: number;
|
|
932
940
|
withSideBar?: boolean;
|
|
@@ -934,15 +942,7 @@ interface LightBoxContentProps extends React__default.ComponentPropsWithoutRef<t
|
|
|
934
942
|
classNameSubHtmSideBar?: string;
|
|
935
943
|
isPagination?: boolean;
|
|
936
944
|
}
|
|
937
|
-
declare const
|
|
938
|
-
interface LightboxGalleryProps extends React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Dialog> {
|
|
939
|
-
className?: string;
|
|
940
|
-
open?: boolean;
|
|
941
|
-
onOpenChange?: (open: boolean) => void;
|
|
942
|
-
}
|
|
943
|
-
declare const LightboxGallery: ({ children, className, open, onOpenChange, }: LightboxGalleryProps & {
|
|
944
|
-
children: ReactNode;
|
|
945
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
945
|
+
declare const LightBoxGalleryContent: ({ images, activeSlideIndex, withSideBar, subHtmlSideBar, classNameSubHtmSideBar, }: LightBoxGalleryContentProps) => react_jsx_runtime.JSX.Element;
|
|
946
946
|
|
|
947
947
|
declare const ChoiceboxGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
948
948
|
/**
|
|
@@ -1145,6 +1145,64 @@ interface SocialProofSectionProps extends SectionBlockProps {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
declare const SocialProofSection: ({ template, background, className, idSection, dataHeading, dataBrands, dataButtons, spaceX, isScrollSnap, }: SocialProofSectionProps) => react_jsx_runtime.JSX.Element;
|
|
1147
1147
|
|
|
1148
|
+
interface ICommentThumbnails {
|
|
1149
|
+
url: string;
|
|
1150
|
+
titleImage?: string;
|
|
1151
|
+
}
|
|
1152
|
+
interface IRating {
|
|
1153
|
+
point: number;
|
|
1154
|
+
max: 5 | 10;
|
|
1155
|
+
className?: string;
|
|
1156
|
+
}
|
|
1157
|
+
interface IComment {
|
|
1158
|
+
avatar?: string;
|
|
1159
|
+
author?: string;
|
|
1160
|
+
time?: string;
|
|
1161
|
+
ratingPoint?: IRating;
|
|
1162
|
+
content?: string;
|
|
1163
|
+
tags?: string[];
|
|
1164
|
+
thumbnails?: ICommentThumbnails[];
|
|
1165
|
+
actions?: React.ReactNode[];
|
|
1166
|
+
statusMessage?: string;
|
|
1167
|
+
repliesComment?: number;
|
|
1168
|
+
likesComment?: number;
|
|
1169
|
+
children?: React.ReactNode;
|
|
1170
|
+
isReply?: boolean;
|
|
1171
|
+
commentSideBar?: React.ReactNode;
|
|
1172
|
+
isOutStanding?: boolean;
|
|
1173
|
+
limitContent?: number;
|
|
1174
|
+
}
|
|
1175
|
+
interface ICommentHeader {
|
|
1176
|
+
avatar?: IComment["avatar"];
|
|
1177
|
+
author?: IComment["author"];
|
|
1178
|
+
time?: IComment["time"];
|
|
1179
|
+
statusMessage?: IComment["statusMessage"];
|
|
1180
|
+
isOutStanding?: IComment["isOutStanding"];
|
|
1181
|
+
}
|
|
1182
|
+
interface ICommentContent {
|
|
1183
|
+
content: IComment["content"];
|
|
1184
|
+
thumbnails: IComment["thumbnails"];
|
|
1185
|
+
tags: IComment["tags"];
|
|
1186
|
+
commentSideBar?: React.ReactNode;
|
|
1187
|
+
rating: IComment["ratingPoint"];
|
|
1188
|
+
limitContent?: IComment["limitContent"];
|
|
1189
|
+
}
|
|
1190
|
+
interface ICommentFooter {
|
|
1191
|
+
actions?: IComment["actions"];
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
declare const Comment: React$1.ForwardRefExoticComponent<IComment & React$1.RefAttributes<HTMLDivElement>>;
|
|
1195
|
+
|
|
1196
|
+
interface ReadMoreLiteProps {
|
|
1197
|
+
children: string;
|
|
1198
|
+
maxChar?: number;
|
|
1199
|
+
textMore?: string;
|
|
1200
|
+
textLess?: string;
|
|
1201
|
+
btnClass?: string;
|
|
1202
|
+
className?: string;
|
|
1203
|
+
}
|
|
1204
|
+
declare const ReadMoreLite: React.FC<ReadMoreLiteProps>;
|
|
1205
|
+
|
|
1148
1206
|
type StepState = "active" | "disabled" | "default" | "completed";
|
|
1149
1207
|
type StepSize = "default" | "small";
|
|
1150
1208
|
interface ProgressStepsProps {
|
|
@@ -1175,13 +1233,13 @@ interface ProgressStepsItemProps {
|
|
|
1175
1233
|
declare const ProgressStepsItem: React$1.FC<ProgressStepsItemProps>;
|
|
1176
1234
|
declare const ProgressSteps: React$1.FC<ProgressStepsProps>;
|
|
1177
1235
|
|
|
1178
|
-
interface IContents {
|
|
1236
|
+
interface IContents$1 {
|
|
1179
1237
|
title: string;
|
|
1180
1238
|
description: string;
|
|
1181
1239
|
}
|
|
1182
1240
|
interface IDataFAQ {
|
|
1183
1241
|
title: string;
|
|
1184
|
-
contents: IContents[];
|
|
1242
|
+
contents: IContents$1[];
|
|
1185
1243
|
}
|
|
1186
1244
|
interface IFAQ extends SectionBlockProps {
|
|
1187
1245
|
dataHeading: HeadingBlockProps;
|
|
@@ -1190,6 +1248,57 @@ interface IFAQ extends SectionBlockProps {
|
|
|
1190
1248
|
|
|
1191
1249
|
declare const FAQSection: ({ dataHeading, dataFAQ, className, background, }: IFAQ) => react_jsx_runtime.JSX.Element;
|
|
1192
1250
|
|
|
1251
|
+
interface IContents {
|
|
1252
|
+
id: number;
|
|
1253
|
+
title: string;
|
|
1254
|
+
dateTime: string;
|
|
1255
|
+
thumbnails: {
|
|
1256
|
+
thumbnailMobile: string;
|
|
1257
|
+
thumbnailDesktop: string;
|
|
1258
|
+
};
|
|
1259
|
+
url: string;
|
|
1260
|
+
}
|
|
1261
|
+
interface IDataNews {
|
|
1262
|
+
title: string;
|
|
1263
|
+
contents: IContents[];
|
|
1264
|
+
}
|
|
1265
|
+
interface IButtonLoadMore {
|
|
1266
|
+
isShow: boolean;
|
|
1267
|
+
url: string;
|
|
1268
|
+
isNewTab: boolean;
|
|
1269
|
+
content: string;
|
|
1270
|
+
icon?: React.ReactNode;
|
|
1271
|
+
}
|
|
1272
|
+
interface INewsSection extends SectionBlockProps {
|
|
1273
|
+
dataHeading: HeadingBlockProps;
|
|
1274
|
+
dataNews: IDataNews[];
|
|
1275
|
+
buttonLoadMore?: IButtonLoadMore;
|
|
1276
|
+
cols?: number;
|
|
1277
|
+
onClickModal?: (id: number) => void;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
declare const NewsSection: ({ dataHeading, dataNews, className, background, buttonLoadMore, cols, onClickModal, }: INewsSection) => react_jsx_runtime.JSX.Element;
|
|
1281
|
+
|
|
1282
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
1283
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
1284
|
+
declare const useFormField: () => {
|
|
1285
|
+
invalid: boolean;
|
|
1286
|
+
isDirty: boolean;
|
|
1287
|
+
isTouched: boolean;
|
|
1288
|
+
isValidating: boolean;
|
|
1289
|
+
error?: react_hook_form.FieldError;
|
|
1290
|
+
id: string;
|
|
1291
|
+
name: string;
|
|
1292
|
+
formItemId: string;
|
|
1293
|
+
formDescriptionId: string;
|
|
1294
|
+
formMessageId: string;
|
|
1295
|
+
};
|
|
1296
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1297
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1298
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
1299
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1300
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1301
|
+
|
|
1193
1302
|
/**
|
|
1194
1303
|
* This Tailwind plugin is based and inspired on "tw-colors" and "NextUI".
|
|
1195
1304
|
*
|
|
@@ -1203,4 +1312,4 @@ declare const mobaseTW: () => {
|
|
|
1203
1312
|
|
|
1204
1313
|
declare const SiteMeta: react_jsx_runtime.JSX.Element;
|
|
1205
1314
|
|
|
1206
|
-
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, 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, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, FAQSection, FeatureSection, type FeatureSectionProps, Footer, HeaderNavigation, Heading, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, type IContents, type IDataFAQ, type IFAQ, IconButton, type IconButtonProps,
|
|
1315
|
+
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, 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, FAQSection, FeatureSection, type FeatureSectionProps, Footer, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeaderNavigation, Heading, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IContents$1 as IContents, type IDataFAQ, type IFAQ, type INewsSection, IconButton, type IconButtonProps, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, 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, 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 };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
23
23
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
24
24
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
25
25
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
26
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
27
|
+
import * as react_hook_form from 'react-hook-form';
|
|
28
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
29
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
26
30
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
|
27
31
|
|
|
28
32
|
type AccordionRootInterface = AccordionSingleProps | AccordionMultipleProps;
|
|
@@ -913,20 +917,24 @@ interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
913
917
|
}
|
|
914
918
|
declare const SearchBar: React$1.ForwardRefExoticComponent<SearchBarProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
915
919
|
|
|
920
|
+
declare const LightboxGallery: ({ children, open, onOpenChange, className, }: React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & {
|
|
921
|
+
children: ReactNode;
|
|
922
|
+
className: string;
|
|
923
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
916
924
|
interface LightboxThumbnailProps extends React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger> {
|
|
917
925
|
children?: ReactNode;
|
|
918
|
-
onClick?: () => void;
|
|
919
926
|
src?: string;
|
|
920
927
|
alt?: string;
|
|
921
928
|
className?: string;
|
|
922
929
|
classNameImage?: string;
|
|
930
|
+
onClick?: () => void;
|
|
931
|
+
ratio?: number;
|
|
923
932
|
}
|
|
924
|
-
declare const LightboxThumbnail: ({ children, src, alt, className, classNameImage, onClick, }: LightboxThumbnailProps) => react_jsx_runtime.JSX.Element;
|
|
925
|
-
interface
|
|
933
|
+
declare const LightboxThumbnail: ({ children, src, alt, className, classNameImage, onClick, ratio, }: LightboxThumbnailProps) => react_jsx_runtime.JSX.Element;
|
|
934
|
+
interface LightBoxGalleryContentProps {
|
|
926
935
|
images: {
|
|
927
936
|
url: string;
|
|
928
937
|
titleImage?: string;
|
|
929
|
-
idx?: number;
|
|
930
938
|
}[];
|
|
931
939
|
activeSlideIndex?: number;
|
|
932
940
|
withSideBar?: boolean;
|
|
@@ -934,15 +942,7 @@ interface LightBoxContentProps extends React__default.ComponentPropsWithoutRef<t
|
|
|
934
942
|
classNameSubHtmSideBar?: string;
|
|
935
943
|
isPagination?: boolean;
|
|
936
944
|
}
|
|
937
|
-
declare const
|
|
938
|
-
interface LightboxGalleryProps extends React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Dialog> {
|
|
939
|
-
className?: string;
|
|
940
|
-
open?: boolean;
|
|
941
|
-
onOpenChange?: (open: boolean) => void;
|
|
942
|
-
}
|
|
943
|
-
declare const LightboxGallery: ({ children, className, open, onOpenChange, }: LightboxGalleryProps & {
|
|
944
|
-
children: ReactNode;
|
|
945
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
945
|
+
declare const LightBoxGalleryContent: ({ images, activeSlideIndex, withSideBar, subHtmlSideBar, classNameSubHtmSideBar, }: LightBoxGalleryContentProps) => react_jsx_runtime.JSX.Element;
|
|
946
946
|
|
|
947
947
|
declare const ChoiceboxGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
948
948
|
/**
|
|
@@ -1145,6 +1145,64 @@ interface SocialProofSectionProps extends SectionBlockProps {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
declare const SocialProofSection: ({ template, background, className, idSection, dataHeading, dataBrands, dataButtons, spaceX, isScrollSnap, }: SocialProofSectionProps) => react_jsx_runtime.JSX.Element;
|
|
1147
1147
|
|
|
1148
|
+
interface ICommentThumbnails {
|
|
1149
|
+
url: string;
|
|
1150
|
+
titleImage?: string;
|
|
1151
|
+
}
|
|
1152
|
+
interface IRating {
|
|
1153
|
+
point: number;
|
|
1154
|
+
max: 5 | 10;
|
|
1155
|
+
className?: string;
|
|
1156
|
+
}
|
|
1157
|
+
interface IComment {
|
|
1158
|
+
avatar?: string;
|
|
1159
|
+
author?: string;
|
|
1160
|
+
time?: string;
|
|
1161
|
+
ratingPoint?: IRating;
|
|
1162
|
+
content?: string;
|
|
1163
|
+
tags?: string[];
|
|
1164
|
+
thumbnails?: ICommentThumbnails[];
|
|
1165
|
+
actions?: React.ReactNode[];
|
|
1166
|
+
statusMessage?: string;
|
|
1167
|
+
repliesComment?: number;
|
|
1168
|
+
likesComment?: number;
|
|
1169
|
+
children?: React.ReactNode;
|
|
1170
|
+
isReply?: boolean;
|
|
1171
|
+
commentSideBar?: React.ReactNode;
|
|
1172
|
+
isOutStanding?: boolean;
|
|
1173
|
+
limitContent?: number;
|
|
1174
|
+
}
|
|
1175
|
+
interface ICommentHeader {
|
|
1176
|
+
avatar?: IComment["avatar"];
|
|
1177
|
+
author?: IComment["author"];
|
|
1178
|
+
time?: IComment["time"];
|
|
1179
|
+
statusMessage?: IComment["statusMessage"];
|
|
1180
|
+
isOutStanding?: IComment["isOutStanding"];
|
|
1181
|
+
}
|
|
1182
|
+
interface ICommentContent {
|
|
1183
|
+
content: IComment["content"];
|
|
1184
|
+
thumbnails: IComment["thumbnails"];
|
|
1185
|
+
tags: IComment["tags"];
|
|
1186
|
+
commentSideBar?: React.ReactNode;
|
|
1187
|
+
rating: IComment["ratingPoint"];
|
|
1188
|
+
limitContent?: IComment["limitContent"];
|
|
1189
|
+
}
|
|
1190
|
+
interface ICommentFooter {
|
|
1191
|
+
actions?: IComment["actions"];
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
declare const Comment: React$1.ForwardRefExoticComponent<IComment & React$1.RefAttributes<HTMLDivElement>>;
|
|
1195
|
+
|
|
1196
|
+
interface ReadMoreLiteProps {
|
|
1197
|
+
children: string;
|
|
1198
|
+
maxChar?: number;
|
|
1199
|
+
textMore?: string;
|
|
1200
|
+
textLess?: string;
|
|
1201
|
+
btnClass?: string;
|
|
1202
|
+
className?: string;
|
|
1203
|
+
}
|
|
1204
|
+
declare const ReadMoreLite: React.FC<ReadMoreLiteProps>;
|
|
1205
|
+
|
|
1148
1206
|
type StepState = "active" | "disabled" | "default" | "completed";
|
|
1149
1207
|
type StepSize = "default" | "small";
|
|
1150
1208
|
interface ProgressStepsProps {
|
|
@@ -1175,13 +1233,13 @@ interface ProgressStepsItemProps {
|
|
|
1175
1233
|
declare const ProgressStepsItem: React$1.FC<ProgressStepsItemProps>;
|
|
1176
1234
|
declare const ProgressSteps: React$1.FC<ProgressStepsProps>;
|
|
1177
1235
|
|
|
1178
|
-
interface IContents {
|
|
1236
|
+
interface IContents$1 {
|
|
1179
1237
|
title: string;
|
|
1180
1238
|
description: string;
|
|
1181
1239
|
}
|
|
1182
1240
|
interface IDataFAQ {
|
|
1183
1241
|
title: string;
|
|
1184
|
-
contents: IContents[];
|
|
1242
|
+
contents: IContents$1[];
|
|
1185
1243
|
}
|
|
1186
1244
|
interface IFAQ extends SectionBlockProps {
|
|
1187
1245
|
dataHeading: HeadingBlockProps;
|
|
@@ -1190,6 +1248,57 @@ interface IFAQ extends SectionBlockProps {
|
|
|
1190
1248
|
|
|
1191
1249
|
declare const FAQSection: ({ dataHeading, dataFAQ, className, background, }: IFAQ) => react_jsx_runtime.JSX.Element;
|
|
1192
1250
|
|
|
1251
|
+
interface IContents {
|
|
1252
|
+
id: number;
|
|
1253
|
+
title: string;
|
|
1254
|
+
dateTime: string;
|
|
1255
|
+
thumbnails: {
|
|
1256
|
+
thumbnailMobile: string;
|
|
1257
|
+
thumbnailDesktop: string;
|
|
1258
|
+
};
|
|
1259
|
+
url: string;
|
|
1260
|
+
}
|
|
1261
|
+
interface IDataNews {
|
|
1262
|
+
title: string;
|
|
1263
|
+
contents: IContents[];
|
|
1264
|
+
}
|
|
1265
|
+
interface IButtonLoadMore {
|
|
1266
|
+
isShow: boolean;
|
|
1267
|
+
url: string;
|
|
1268
|
+
isNewTab: boolean;
|
|
1269
|
+
content: string;
|
|
1270
|
+
icon?: React.ReactNode;
|
|
1271
|
+
}
|
|
1272
|
+
interface INewsSection extends SectionBlockProps {
|
|
1273
|
+
dataHeading: HeadingBlockProps;
|
|
1274
|
+
dataNews: IDataNews[];
|
|
1275
|
+
buttonLoadMore?: IButtonLoadMore;
|
|
1276
|
+
cols?: number;
|
|
1277
|
+
onClickModal?: (id: number) => void;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
declare const NewsSection: ({ dataHeading, dataNews, className, background, buttonLoadMore, cols, onClickModal, }: INewsSection) => react_jsx_runtime.JSX.Element;
|
|
1281
|
+
|
|
1282
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
1283
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
1284
|
+
declare const useFormField: () => {
|
|
1285
|
+
invalid: boolean;
|
|
1286
|
+
isDirty: boolean;
|
|
1287
|
+
isTouched: boolean;
|
|
1288
|
+
isValidating: boolean;
|
|
1289
|
+
error?: react_hook_form.FieldError;
|
|
1290
|
+
id: string;
|
|
1291
|
+
name: string;
|
|
1292
|
+
formItemId: string;
|
|
1293
|
+
formDescriptionId: string;
|
|
1294
|
+
formMessageId: string;
|
|
1295
|
+
};
|
|
1296
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1297
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1298
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
1299
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1300
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1301
|
+
|
|
1193
1302
|
/**
|
|
1194
1303
|
* This Tailwind plugin is based and inspired on "tw-colors" and "NextUI".
|
|
1195
1304
|
*
|
|
@@ -1203,4 +1312,4 @@ declare const mobaseTW: () => {
|
|
|
1203
1312
|
|
|
1204
1313
|
declare const SiteMeta: react_jsx_runtime.JSX.Element;
|
|
1205
1314
|
|
|
1206
|
-
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, 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, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, FAQSection, FeatureSection, type FeatureSectionProps, Footer, HeaderNavigation, Heading, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, type IContents, type IDataFAQ, type IFAQ, IconButton, type IconButtonProps,
|
|
1315
|
+
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, 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, FAQSection, FeatureSection, type FeatureSectionProps, Footer, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeaderNavigation, Heading, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IContents$1 as IContents, type IDataFAQ, type IFAQ, type INewsSection, IconButton, type IconButtonProps, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, 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, 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 };
|