@sikka/hawa 0.7.11 → 0.7.13-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.d.mts +28 -31
- package/dist/index.d.ts +28 -31
- package/dist/index.js +11 -3
- package/dist/index.mjs +8 -3
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1200,36 +1200,31 @@ type TNoPermission = {
|
|
|
1200
1200
|
declare const NoPermission: FC<TNoPermission>;
|
|
1201
1201
|
|
|
1202
1202
|
type PricingPlansTypes = {
|
|
1203
|
-
plans:
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
{
|
|
1229
|
-
label: string;
|
|
1230
|
-
value: string;
|
|
1231
|
-
}
|
|
1232
|
-
];
|
|
1203
|
+
plans: {
|
|
1204
|
+
id: any;
|
|
1205
|
+
direction: "rtl" | "ltr";
|
|
1206
|
+
features: [{
|
|
1207
|
+
included: boolean;
|
|
1208
|
+
text: string;
|
|
1209
|
+
}];
|
|
1210
|
+
price: number;
|
|
1211
|
+
size: "small" | "medium" | "large";
|
|
1212
|
+
texts: {
|
|
1213
|
+
title: string;
|
|
1214
|
+
subtitle: string;
|
|
1215
|
+
buttonText: string;
|
|
1216
|
+
cycleText: string;
|
|
1217
|
+
currencyText: string;
|
|
1218
|
+
};
|
|
1219
|
+
}[];
|
|
1220
|
+
currencies: {
|
|
1221
|
+
label: string;
|
|
1222
|
+
value: string;
|
|
1223
|
+
}[];
|
|
1224
|
+
billingCycles: {
|
|
1225
|
+
label: string;
|
|
1226
|
+
value: string;
|
|
1227
|
+
}[];
|
|
1233
1228
|
onPlanClicked?: (e: any) => void;
|
|
1234
1229
|
currentCycle: {
|
|
1235
1230
|
label: string;
|
|
@@ -1381,6 +1376,8 @@ declare function useClipboard({ timeout }?: {
|
|
|
1381
1376
|
copied: boolean;
|
|
1382
1377
|
};
|
|
1383
1378
|
|
|
1379
|
+
declare const useBreakpoint: () => number;
|
|
1380
|
+
|
|
1384
1381
|
interface UseFocusWithinOptions {
|
|
1385
1382
|
onFocus?(event: FocusEvent): void;
|
|
1386
1383
|
onBlur?(event: FocusEvent): void;
|
|
@@ -1400,4 +1397,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1400
1397
|
handleTabChange: (index: any) => void;
|
|
1401
1398
|
};
|
|
1402
1399
|
|
|
1403
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
|
1400
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1200,36 +1200,31 @@ type TNoPermission = {
|
|
|
1200
1200
|
declare const NoPermission: FC<TNoPermission>;
|
|
1201
1201
|
|
|
1202
1202
|
type PricingPlansTypes = {
|
|
1203
|
-
plans:
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
{
|
|
1229
|
-
label: string;
|
|
1230
|
-
value: string;
|
|
1231
|
-
}
|
|
1232
|
-
];
|
|
1203
|
+
plans: {
|
|
1204
|
+
id: any;
|
|
1205
|
+
direction: "rtl" | "ltr";
|
|
1206
|
+
features: [{
|
|
1207
|
+
included: boolean;
|
|
1208
|
+
text: string;
|
|
1209
|
+
}];
|
|
1210
|
+
price: number;
|
|
1211
|
+
size: "small" | "medium" | "large";
|
|
1212
|
+
texts: {
|
|
1213
|
+
title: string;
|
|
1214
|
+
subtitle: string;
|
|
1215
|
+
buttonText: string;
|
|
1216
|
+
cycleText: string;
|
|
1217
|
+
currencyText: string;
|
|
1218
|
+
};
|
|
1219
|
+
}[];
|
|
1220
|
+
currencies: {
|
|
1221
|
+
label: string;
|
|
1222
|
+
value: string;
|
|
1223
|
+
}[];
|
|
1224
|
+
billingCycles: {
|
|
1225
|
+
label: string;
|
|
1226
|
+
value: string;
|
|
1227
|
+
}[];
|
|
1233
1228
|
onPlanClicked?: (e: any) => void;
|
|
1234
1229
|
currentCycle: {
|
|
1235
1230
|
label: string;
|
|
@@ -1381,6 +1376,8 @@ declare function useClipboard({ timeout }?: {
|
|
|
1381
1376
|
copied: boolean;
|
|
1382
1377
|
};
|
|
1383
1378
|
|
|
1379
|
+
declare const useBreakpoint: () => number;
|
|
1380
|
+
|
|
1384
1381
|
interface UseFocusWithinOptions {
|
|
1385
1382
|
onFocus?(event: FocusEvent): void;
|
|
1386
1383
|
onBlur?(event: FocusEvent): void;
|
|
@@ -1400,4 +1397,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1400
1397
|
handleTabChange: (index: any) => void;
|
|
1401
1398
|
};
|
|
1402
1399
|
|
|
1403
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
|
1400
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
package/dist/index.js
CHANGED
|
@@ -715,6 +715,9 @@ __export(components_exports, {
|
|
|
715
715
|
toast: function() {
|
|
716
716
|
return toast;
|
|
717
717
|
},
|
|
718
|
+
useBreakpoint: function() {
|
|
719
|
+
return useBreakpoint;
|
|
720
|
+
},
|
|
718
721
|
useClipboard: function() {
|
|
719
722
|
return useClipboard;
|
|
720
723
|
},
|
|
@@ -6294,7 +6297,6 @@ var useBreakpoint = function() {
|
|
|
6294
6297
|
}, []);
|
|
6295
6298
|
return breakpoint;
|
|
6296
6299
|
};
|
|
6297
|
-
var useBreakpoint_default = useBreakpoint;
|
|
6298
6300
|
// components/layout/AppLayout.tsx
|
|
6299
6301
|
var AppLayout = function(_param) {
|
|
6300
6302
|
var _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_drawerSize = _param.drawerSize, drawerSize = _param_drawerSize === void 0 ? "md" : _param_drawerSize, onSettingsClick = _param.onSettingsClick, DrawerFooterActions = _param.DrawerFooterActions, currentPage = _param.currentPage, clickedItem = _param.clickedItem, _param_design = _param.design, design = _param_design === void 0 ? "default" : _param_design, props = _object_without_properties(_param, [
|
|
@@ -6325,7 +6327,7 @@ var AppLayout = function(_param) {
|
|
|
6325
6327
|
var isRTL = direction === "rtl";
|
|
6326
6328
|
var _ref = _sliced_to_array((0, import_react31.useState)(""), 2), openedSidebarItem = _ref[0], setOpenedSidebarItem = _ref[1];
|
|
6327
6329
|
var _ref1 = _sliced_to_array((0, import_react31.useState)(currentPage), 2), selectedItem = _ref1[0], setSelectedItem = _ref1[1];
|
|
6328
|
-
var size =
|
|
6330
|
+
var size = useBreakpoint();
|
|
6329
6331
|
if (typeof window == "undefined") {
|
|
6330
6332
|
size = 1200;
|
|
6331
6333
|
}
|
|
@@ -8101,7 +8103,12 @@ var PricingPlans = function(props) {
|
|
|
8101
8103
|
key: index,
|
|
8102
8104
|
onPlanClicked: function() {
|
|
8103
8105
|
if (props.onPlanClicked) {
|
|
8104
|
-
|
|
8106
|
+
var clickedData = {
|
|
8107
|
+
plan: plan.id,
|
|
8108
|
+
currency: props.currentCurrency,
|
|
8109
|
+
cycle: props.currentCycle
|
|
8110
|
+
};
|
|
8111
|
+
props.onPlanClicked(clickedData);
|
|
8105
8112
|
}
|
|
8106
8113
|
}
|
|
8107
8114
|
}, plan), {
|
|
@@ -8596,6 +8603,7 @@ function useTabs() {
|
|
|
8596
8603
|
buttonVariants: buttonVariants,
|
|
8597
8604
|
reducer: reducer,
|
|
8598
8605
|
toast: toast,
|
|
8606
|
+
useBreakpoint: useBreakpoint,
|
|
8599
8607
|
useClipboard: useClipboard,
|
|
8600
8608
|
useFocusWithin: useFocusWithin,
|
|
8601
8609
|
useFormField: useFormField,
|
package/dist/index.mjs
CHANGED
|
@@ -6028,7 +6028,6 @@ var useBreakpoint = () => {
|
|
|
6028
6028
|
}, []);
|
|
6029
6029
|
return breakpoint;
|
|
6030
6030
|
};
|
|
6031
|
-
var useBreakpoint_default = useBreakpoint;
|
|
6032
6031
|
|
|
6033
6032
|
// components/layout/AppLayout.tsx
|
|
6034
6033
|
var AppLayout = ({
|
|
@@ -6059,7 +6058,7 @@ var AppLayout = ({
|
|
|
6059
6058
|
const isRTL = direction === "rtl";
|
|
6060
6059
|
const [openedSidebarItem, setOpenedSidebarItem] = useState18("");
|
|
6061
6060
|
const [selectedItem, setSelectedItem] = useState18(currentPage);
|
|
6062
|
-
let size =
|
|
6061
|
+
let size = useBreakpoint();
|
|
6063
6062
|
if (typeof window == "undefined") {
|
|
6064
6063
|
size = 1200;
|
|
6065
6064
|
}
|
|
@@ -7924,7 +7923,12 @@ var PricingPlans = (props) => {
|
|
|
7924
7923
|
key: index,
|
|
7925
7924
|
onPlanClicked: () => {
|
|
7926
7925
|
if (props.onPlanClicked) {
|
|
7927
|
-
|
|
7926
|
+
let clickedData = {
|
|
7927
|
+
plan: plan.id,
|
|
7928
|
+
currency: props.currentCurrency,
|
|
7929
|
+
cycle: props.currentCycle
|
|
7930
|
+
};
|
|
7931
|
+
props.onPlanClicked(clickedData);
|
|
7928
7932
|
}
|
|
7929
7933
|
},
|
|
7930
7934
|
...plan,
|
|
@@ -8396,6 +8400,7 @@ export {
|
|
|
8396
8400
|
buttonVariants,
|
|
8397
8401
|
reducer,
|
|
8398
8402
|
toast,
|
|
8403
|
+
useBreakpoint,
|
|
8399
8404
|
useClipboard,
|
|
8400
8405
|
useFocusWithin,
|
|
8401
8406
|
useFormField,
|
package/package.json
CHANGED