@sikka/hawa 0.19.9-next → 0.19.11-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 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 PricingCardTypes = {
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: "small" | "medium" | "large";
67
+ size?: "small" | "medium" | "large";
67
68
  isLoading?: boolean;
68
69
  texts: {
69
70
  title: string;
70
- subtitle: string;
71
+ subtitle?: string;
71
72
  buttonText: string;
72
73
  cycleText: string;
73
74
  currencyText: string;
74
75
  };
75
76
  };
76
- declare const PricingCard: FC<PricingCardTypes>;
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;
@@ -1891,4 +1876,4 @@ declare function useTabs(initialTab?: string): {
1891
1876
  handleTabChange: (index: any) => void;
1892
1877
  };
1893
1878
 
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 };
1879
+ 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 PricingCardTypes = {
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: "small" | "medium" | "large";
67
+ size?: "small" | "medium" | "large";
67
68
  isLoading?: boolean;
68
69
  texts: {
69
70
  title: string;
70
- subtitle: string;
71
+ subtitle?: string;
71
72
  buttonText: string;
72
73
  cycleText: string;
73
74
  currencyText: string;
74
75
  };
75
76
  };
76
- declare const PricingCard: FC<PricingCardTypes>;
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;
@@ -1891,4 +1876,4 @@ declare function useTabs(initialTab?: string): {
1891
1876
  handleTabChange: (index: any) => void;
1892
1877
  };
1893
1878
 
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 };
1879
+ 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
@@ -10943,17 +10943,19 @@ var PricingPlans = (props) => {
10943
10943
  }
10944
10944
  }
10945
10945
  }
10946
- )), /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.plans.map((plan, index) => {
10946
+ )), /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-col md:hawa-flex-row hawa-justify-between" }, props.plans.map((plan, index) => {
10947
+ var _a, _b;
10947
10948
  return /* @__PURE__ */ import_react67.default.createElement(
10948
10949
  PricingCard,
10949
10950
  {
10950
10951
  key: index,
10951
10952
  onPlanClicked: () => {
10953
+ var _a2, _b2;
10952
10954
  if (props.onPlanClicked) {
10953
10955
  let clickedData = {
10954
10956
  // plan: plan.id,
10955
- currency: props.currentCurrency,
10956
- cycle: props.currentCycle,
10957
+ currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
10958
+ cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
10957
10959
  ...plan
10958
10960
  };
10959
10961
  props.onPlanClicked(clickedData);
@@ -10962,8 +10964,8 @@ var PricingPlans = (props) => {
10962
10964
  ...plan,
10963
10965
  texts: {
10964
10966
  ...plan.texts,
10965
- currencyText: props.currentCurrency,
10966
- cycleText: props.currentCycle
10967
+ currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
10968
+ cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
10967
10969
  }
10968
10970
  }
10969
10971
  );
package/dist/index.mjs CHANGED
@@ -10727,17 +10727,19 @@ var PricingPlans = (props) => {
10727
10727
  }
10728
10728
  }
10729
10729
  }
10730
- )), /* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.plans.map((plan, index) => {
10730
+ )), /* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-flex-col md:hawa-flex-row hawa-justify-between" }, props.plans.map((plan, index) => {
10731
+ var _a, _b;
10731
10732
  return /* @__PURE__ */ React94.createElement(
10732
10733
  PricingCard,
10733
10734
  {
10734
10735
  key: index,
10735
10736
  onPlanClicked: () => {
10737
+ var _a2, _b2;
10736
10738
  if (props.onPlanClicked) {
10737
10739
  let clickedData = {
10738
10740
  // plan: plan.id,
10739
- currency: props.currentCurrency,
10740
- cycle: props.currentCycle,
10741
+ currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
10742
+ cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
10741
10743
  ...plan
10742
10744
  };
10743
10745
  props.onPlanClicked(clickedData);
@@ -10746,8 +10748,8 @@ var PricingPlans = (props) => {
10746
10748
  ...plan,
10747
10749
  texts: {
10748
10750
  ...plan.texts,
10749
- currencyText: props.currentCurrency,
10750
- cycleText: props.currentCycle
10751
+ currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
10752
+ cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
10751
10753
  }
10752
10754
  }
10753
10755
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.9-next",
3
+ "version": "0.19.11-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",