@sikka/hawa 0.19.10-next → 0.19.12-next
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 +4 -0
- package/dist/index.d.mts +9 -22
- package/dist/index.d.ts +9 -22
- package/dist/index.js +42 -33
- package/dist/index.mjs +42 -33
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -4246,6 +4246,10 @@ body {
|
|
|
4246
4246
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4247
4247
|
}
|
|
4248
4248
|
|
|
4249
|
+
.md\:hawa-flex-row {
|
|
4250
|
+
flex-direction: row;
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4249
4253
|
.md\:hawa-rounded-t {
|
|
4250
4254
|
border-top-left-radius: var(--radius);
|
|
4251
4255
|
border-top-right-radius: var(--radius);
|
package/dist/index.d.mts
CHANGED
|
@@ -52,7 +52,7 @@ type AdCardTypes = {
|
|
|
52
52
|
};
|
|
53
53
|
declare const AdCard: FC<AdCardTypes>;
|
|
54
54
|
|
|
55
|
-
type
|
|
55
|
+
type PricingCardProps = {
|
|
56
56
|
direction?: DirectionType;
|
|
57
57
|
features: {
|
|
58
58
|
included: boolean;
|
|
@@ -60,20 +60,21 @@ type PricingCardTypes = {
|
|
|
60
60
|
text: string;
|
|
61
61
|
}[];
|
|
62
62
|
price: number;
|
|
63
|
+
id?: string;
|
|
63
64
|
discount?: string;
|
|
64
65
|
onPlanClicked?: () => void;
|
|
65
66
|
currentPlan?: boolean;
|
|
66
|
-
size
|
|
67
|
+
size?: "small" | "medium" | "large";
|
|
67
68
|
isLoading?: boolean;
|
|
68
69
|
texts: {
|
|
69
70
|
title: string;
|
|
70
|
-
subtitle
|
|
71
|
+
subtitle?: string;
|
|
71
72
|
buttonText: string;
|
|
72
73
|
cycleText: string;
|
|
73
74
|
currencyText: string;
|
|
74
75
|
};
|
|
75
76
|
};
|
|
76
|
-
declare const PricingCard: FC<
|
|
77
|
+
declare const PricingCard: FC<PricingCardProps>;
|
|
77
78
|
|
|
78
79
|
declare const DropdownMenuRoot: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
79
80
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1670,23 +1671,7 @@ type NoPermissionProps = {
|
|
|
1670
1671
|
declare const NoPermission: FC<NoPermissionProps>;
|
|
1671
1672
|
|
|
1672
1673
|
type PricingPlansTypes = {
|
|
1673
|
-
plans:
|
|
1674
|
-
id: any;
|
|
1675
|
-
direction?: DirectionType;
|
|
1676
|
-
features: {
|
|
1677
|
-
included: boolean;
|
|
1678
|
-
text: string;
|
|
1679
|
-
}[];
|
|
1680
|
-
price: number;
|
|
1681
|
-
size?: "small" | "medium" | "large";
|
|
1682
|
-
texts: {
|
|
1683
|
-
title: string;
|
|
1684
|
-
subtitle: string;
|
|
1685
|
-
buttonText: string;
|
|
1686
|
-
cycleText: string;
|
|
1687
|
-
currencyText: string;
|
|
1688
|
-
};
|
|
1689
|
-
}[];
|
|
1674
|
+
plans: PricingCardProps[];
|
|
1690
1675
|
currencies: {
|
|
1691
1676
|
label: string;
|
|
1692
1677
|
value: string;
|
|
@@ -1707,6 +1692,8 @@ type PricingPlansTypes = {
|
|
|
1707
1692
|
onCycleChange?: (e: any) => void;
|
|
1708
1693
|
onCurrencyChange?: (e: any) => void;
|
|
1709
1694
|
direction?: DirectionType;
|
|
1695
|
+
mainContainerProps?: InputHTMLAttributes<HTMLDivElement>;
|
|
1696
|
+
cardsContainerProps?: InputHTMLAttributes<HTMLDivElement>;
|
|
1710
1697
|
};
|
|
1711
1698
|
declare const PricingPlans: FC<PricingPlansTypes>;
|
|
1712
1699
|
|
|
@@ -1891,4 +1878,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1891
1878
|
handleTabChange: (index: any) => void;
|
|
1892
1879
|
};
|
|
1893
1880
|
|
|
1894
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
|
1881
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, type PricingCardProps, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ type AdCardTypes = {
|
|
|
52
52
|
};
|
|
53
53
|
declare const AdCard: FC<AdCardTypes>;
|
|
54
54
|
|
|
55
|
-
type
|
|
55
|
+
type PricingCardProps = {
|
|
56
56
|
direction?: DirectionType;
|
|
57
57
|
features: {
|
|
58
58
|
included: boolean;
|
|
@@ -60,20 +60,21 @@ type PricingCardTypes = {
|
|
|
60
60
|
text: string;
|
|
61
61
|
}[];
|
|
62
62
|
price: number;
|
|
63
|
+
id?: string;
|
|
63
64
|
discount?: string;
|
|
64
65
|
onPlanClicked?: () => void;
|
|
65
66
|
currentPlan?: boolean;
|
|
66
|
-
size
|
|
67
|
+
size?: "small" | "medium" | "large";
|
|
67
68
|
isLoading?: boolean;
|
|
68
69
|
texts: {
|
|
69
70
|
title: string;
|
|
70
|
-
subtitle
|
|
71
|
+
subtitle?: string;
|
|
71
72
|
buttonText: string;
|
|
72
73
|
cycleText: string;
|
|
73
74
|
currencyText: string;
|
|
74
75
|
};
|
|
75
76
|
};
|
|
76
|
-
declare const PricingCard: FC<
|
|
77
|
+
declare const PricingCard: FC<PricingCardProps>;
|
|
77
78
|
|
|
78
79
|
declare const DropdownMenuRoot: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
79
80
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1670,23 +1671,7 @@ type NoPermissionProps = {
|
|
|
1670
1671
|
declare const NoPermission: FC<NoPermissionProps>;
|
|
1671
1672
|
|
|
1672
1673
|
type PricingPlansTypes = {
|
|
1673
|
-
plans:
|
|
1674
|
-
id: any;
|
|
1675
|
-
direction?: DirectionType;
|
|
1676
|
-
features: {
|
|
1677
|
-
included: boolean;
|
|
1678
|
-
text: string;
|
|
1679
|
-
}[];
|
|
1680
|
-
price: number;
|
|
1681
|
-
size?: "small" | "medium" | "large";
|
|
1682
|
-
texts: {
|
|
1683
|
-
title: string;
|
|
1684
|
-
subtitle: string;
|
|
1685
|
-
buttonText: string;
|
|
1686
|
-
cycleText: string;
|
|
1687
|
-
currencyText: string;
|
|
1688
|
-
};
|
|
1689
|
-
}[];
|
|
1674
|
+
plans: PricingCardProps[];
|
|
1690
1675
|
currencies: {
|
|
1691
1676
|
label: string;
|
|
1692
1677
|
value: string;
|
|
@@ -1707,6 +1692,8 @@ type PricingPlansTypes = {
|
|
|
1707
1692
|
onCycleChange?: (e: any) => void;
|
|
1708
1693
|
onCurrencyChange?: (e: any) => void;
|
|
1709
1694
|
direction?: DirectionType;
|
|
1695
|
+
mainContainerProps?: InputHTMLAttributes<HTMLDivElement>;
|
|
1696
|
+
cardsContainerProps?: InputHTMLAttributes<HTMLDivElement>;
|
|
1710
1697
|
};
|
|
1711
1698
|
declare const PricingPlans: FC<PricingPlansTypes>;
|
|
1712
1699
|
|
|
@@ -1891,4 +1878,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1891
1878
|
handleTabChange: (index: any) => void;
|
|
1892
1879
|
};
|
|
1893
1880
|
|
|
1894
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
|
1881
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, type PricingCardProps, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -803,9 +803,9 @@ var PricingCard = ({
|
|
|
803
803
|
}) => {
|
|
804
804
|
var _a;
|
|
805
805
|
let cardSizes = {
|
|
806
|
-
small: "hawa-
|
|
807
|
-
medium: "hawa-
|
|
808
|
-
large: "hawa-
|
|
806
|
+
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
807
|
+
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
808
|
+
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
809
809
|
};
|
|
810
810
|
return /* @__PURE__ */ import_react6.default.createElement(
|
|
811
811
|
Card,
|
|
@@ -817,9 +817,7 @@ var PricingCard = ({
|
|
|
817
817
|
"hawa-flex hawa-flex-col hawa-gap-4 hawa-rounded hawa-p-4 "
|
|
818
818
|
)
|
|
819
819
|
},
|
|
820
|
-
props.discount && /* @__PURE__ */ import_react6.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }),
|
|
821
|
-
" ",
|
|
822
|
-
/* @__PURE__ */ import_react6.default.createElement("h5", { className: "hawa-text-md 0 hawa-font-bold hawa-text-primary/70" }, props.texts.title),
|
|
820
|
+
/* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-row hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react6.default.createElement("span", null, props.texts.title), props.discount && /* @__PURE__ */ import_react6.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react6.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))),
|
|
823
821
|
/* @__PURE__ */ import_react6.default.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, props.isLoading ? /* @__PURE__ */ import_react6.default.createElement(Skeleton, { className: "hawa-w-full hawa-max-w-[200px] hawa-h-[48px] hawa-p-0 " }) : /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price), /* @__PURE__ */ import_react6.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ import_react6.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", props.texts.cycleText))),
|
|
824
822
|
/* @__PURE__ */ import_react6.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, props.texts.subtitle),
|
|
825
823
|
props.features && /* @__PURE__ */ import_react6.default.createElement("ul", { role: "list", className: "hawa-space-y-0 " }, (_a = props.features) == null ? void 0 : _a.map((feature, o) => {
|
|
@@ -10918,8 +10916,12 @@ var NoPermission = ({ texts }) => {
|
|
|
10918
10916
|
|
|
10919
10917
|
// components/blocks/pricing/PricingPlans.tsx
|
|
10920
10918
|
var import_react67 = __toESM(require("react"));
|
|
10921
|
-
var PricingPlans = (
|
|
10922
|
-
|
|
10919
|
+
var PricingPlans = ({
|
|
10920
|
+
mainContainerProps,
|
|
10921
|
+
cardsContainerProps,
|
|
10922
|
+
...props
|
|
10923
|
+
}) => {
|
|
10924
|
+
return /* @__PURE__ */ import_react67.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react67.default.createElement(
|
|
10923
10925
|
Radio,
|
|
10924
10926
|
{
|
|
10925
10927
|
design: "tabs",
|
|
@@ -10943,33 +10945,40 @@ var PricingPlans = (props) => {
|
|
|
10943
10945
|
}
|
|
10944
10946
|
}
|
|
10945
10947
|
}
|
|
10946
|
-
)), /* @__PURE__ */ import_react67.default.createElement(
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10948
|
+
)), /* @__PURE__ */ import_react67.default.createElement(
|
|
10949
|
+
"div",
|
|
10950
|
+
{
|
|
10951
|
+
className: "hawa-flex hawa-flex-col hawa-gap-2 md:hawa-flex-row hawa-justify-between",
|
|
10952
|
+
...cardsContainerProps
|
|
10953
|
+
},
|
|
10954
|
+
props.plans.map((plan, index) => {
|
|
10955
|
+
var _a, _b;
|
|
10956
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
|
10957
|
+
PricingCard,
|
|
10958
|
+
{
|
|
10959
|
+
key: index,
|
|
10960
|
+
onPlanClicked: () => {
|
|
10961
|
+
var _a2, _b2;
|
|
10962
|
+
if (props.onPlanClicked) {
|
|
10963
|
+
let clickedData = {
|
|
10964
|
+
// plan: plan.id,
|
|
10965
|
+
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
|
10966
|
+
cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
|
|
10967
|
+
...plan
|
|
10968
|
+
};
|
|
10969
|
+
props.onPlanClicked(clickedData);
|
|
10970
|
+
}
|
|
10971
|
+
},
|
|
10972
|
+
...plan,
|
|
10973
|
+
texts: {
|
|
10974
|
+
...plan.texts,
|
|
10975
|
+
currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
|
|
10976
|
+
cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
|
|
10962
10977
|
}
|
|
10963
|
-
},
|
|
10964
|
-
...plan,
|
|
10965
|
-
texts: {
|
|
10966
|
-
...plan.texts,
|
|
10967
|
-
currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
|
|
10968
|
-
cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
|
|
10969
10978
|
}
|
|
10970
|
-
|
|
10971
|
-
)
|
|
10972
|
-
|
|
10979
|
+
);
|
|
10980
|
+
})
|
|
10981
|
+
));
|
|
10973
10982
|
};
|
|
10974
10983
|
|
|
10975
10984
|
// components/blocks/pricing/ComparingPlans.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -570,9 +570,9 @@ var PricingCard = ({
|
|
|
570
570
|
}) => {
|
|
571
571
|
var _a;
|
|
572
572
|
let cardSizes = {
|
|
573
|
-
small: "hawa-
|
|
574
|
-
medium: "hawa-
|
|
575
|
-
large: "hawa-
|
|
573
|
+
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
574
|
+
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
575
|
+
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
576
576
|
};
|
|
577
577
|
return /* @__PURE__ */ React9.createElement(
|
|
578
578
|
Card,
|
|
@@ -584,9 +584,7 @@ var PricingCard = ({
|
|
|
584
584
|
"hawa-flex hawa-flex-col hawa-gap-4 hawa-rounded hawa-p-4 "
|
|
585
585
|
)
|
|
586
586
|
},
|
|
587
|
-
props.discount && /* @__PURE__ */ React9.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }),
|
|
588
|
-
" ",
|
|
589
|
-
/* @__PURE__ */ React9.createElement("h5", { className: "hawa-text-md 0 hawa-font-bold hawa-text-primary/70" }, props.texts.title),
|
|
587
|
+
/* @__PURE__ */ React9.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-row hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React9.createElement("span", null, props.texts.title), props.discount && /* @__PURE__ */ React9.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React9.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))),
|
|
590
588
|
/* @__PURE__ */ React9.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, props.isLoading ? /* @__PURE__ */ React9.createElement(Skeleton, { className: "hawa-w-full hawa-max-w-[200px] hawa-h-[48px] hawa-p-0 " }) : /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price), /* @__PURE__ */ React9.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React9.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", props.texts.cycleText))),
|
|
591
589
|
/* @__PURE__ */ React9.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, props.texts.subtitle),
|
|
592
590
|
props.features && /* @__PURE__ */ React9.createElement("ul", { role: "list", className: "hawa-space-y-0 " }, (_a = props.features) == null ? void 0 : _a.map((feature, o) => {
|
|
@@ -10702,8 +10700,12 @@ var NoPermission = ({ texts }) => {
|
|
|
10702
10700
|
|
|
10703
10701
|
// components/blocks/pricing/PricingPlans.tsx
|
|
10704
10702
|
import React94 from "react";
|
|
10705
|
-
var PricingPlans = (
|
|
10706
|
-
|
|
10703
|
+
var PricingPlans = ({
|
|
10704
|
+
mainContainerProps,
|
|
10705
|
+
cardsContainerProps,
|
|
10706
|
+
...props
|
|
10707
|
+
}) => {
|
|
10708
|
+
return /* @__PURE__ */ React94.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ React94.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React94.createElement(
|
|
10707
10709
|
Radio,
|
|
10708
10710
|
{
|
|
10709
10711
|
design: "tabs",
|
|
@@ -10727,33 +10729,40 @@ var PricingPlans = (props) => {
|
|
|
10727
10729
|
}
|
|
10728
10730
|
}
|
|
10729
10731
|
}
|
|
10730
|
-
)), /* @__PURE__ */ React94.createElement(
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10732
|
+
)), /* @__PURE__ */ React94.createElement(
|
|
10733
|
+
"div",
|
|
10734
|
+
{
|
|
10735
|
+
className: "hawa-flex hawa-flex-col hawa-gap-2 md:hawa-flex-row hawa-justify-between",
|
|
10736
|
+
...cardsContainerProps
|
|
10737
|
+
},
|
|
10738
|
+
props.plans.map((plan, index) => {
|
|
10739
|
+
var _a, _b;
|
|
10740
|
+
return /* @__PURE__ */ React94.createElement(
|
|
10741
|
+
PricingCard,
|
|
10742
|
+
{
|
|
10743
|
+
key: index,
|
|
10744
|
+
onPlanClicked: () => {
|
|
10745
|
+
var _a2, _b2;
|
|
10746
|
+
if (props.onPlanClicked) {
|
|
10747
|
+
let clickedData = {
|
|
10748
|
+
// plan: plan.id,
|
|
10749
|
+
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
|
10750
|
+
cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
|
|
10751
|
+
...plan
|
|
10752
|
+
};
|
|
10753
|
+
props.onPlanClicked(clickedData);
|
|
10754
|
+
}
|
|
10755
|
+
},
|
|
10756
|
+
...plan,
|
|
10757
|
+
texts: {
|
|
10758
|
+
...plan.texts,
|
|
10759
|
+
currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
|
|
10760
|
+
cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
|
|
10746
10761
|
}
|
|
10747
|
-
},
|
|
10748
|
-
...plan,
|
|
10749
|
-
texts: {
|
|
10750
|
-
...plan.texts,
|
|
10751
|
-
currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
|
|
10752
|
-
cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
|
|
10753
10762
|
}
|
|
10754
|
-
|
|
10755
|
-
)
|
|
10756
|
-
|
|
10763
|
+
);
|
|
10764
|
+
})
|
|
10765
|
+
));
|
|
10757
10766
|
};
|
|
10758
10767
|
|
|
10759
10768
|
// components/blocks/pricing/ComparingPlans.tsx
|