@sikka/hawa 0.7.2-next → 0.7.4-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 +34 -11
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +36 -24
- package/dist/index.mjs +30 -24
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1012,6 +1012,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1012
1012
|
.hawa-h-\[130px\] {
|
|
1013
1013
|
height: 130px;
|
|
1014
1014
|
}
|
|
1015
|
+
.hawa-h-\[15px\] {
|
|
1016
|
+
height: 15px;
|
|
1017
|
+
}
|
|
1015
1018
|
.hawa-h-\[16px\] {
|
|
1016
1019
|
height: 16px;
|
|
1017
1020
|
}
|
|
@@ -1119,9 +1122,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1119
1122
|
.hawa-w-32 {
|
|
1120
1123
|
width: 8rem;
|
|
1121
1124
|
}
|
|
1122
|
-
.hawa-w-36 {
|
|
1123
|
-
width: 9rem;
|
|
1124
|
-
}
|
|
1125
1125
|
.hawa-w-4 {
|
|
1126
1126
|
width: 1rem;
|
|
1127
1127
|
}
|
|
@@ -1671,10 +1671,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1671
1671
|
--tw-bg-opacity: 1;
|
|
1672
1672
|
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
|
|
1673
1673
|
}
|
|
1674
|
-
.hawa-bg-blue-200 {
|
|
1675
|
-
--tw-bg-opacity: 1;
|
|
1676
|
-
background-color: rgb(191 219 254 / var(--tw-bg-opacity));
|
|
1677
|
-
}
|
|
1678
1674
|
.hawa-bg-blue-50 {
|
|
1679
1675
|
--tw-bg-opacity: 1;
|
|
1680
1676
|
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
|
|
@@ -1689,6 +1685,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1689
1685
|
.hawa-bg-card {
|
|
1690
1686
|
background-color: hsl(var(--card));
|
|
1691
1687
|
}
|
|
1688
|
+
.hawa-bg-cyan-100 {
|
|
1689
|
+
--tw-bg-opacity: 1;
|
|
1690
|
+
background-color: rgb(207 250 254 / var(--tw-bg-opacity));
|
|
1691
|
+
}
|
|
1692
1692
|
.hawa-bg-destructive {
|
|
1693
1693
|
--tw-bg-opacity: 1;
|
|
1694
1694
|
background-color: hsl(var(--destructive) / var(--tw-bg-opacity));
|
|
@@ -1748,6 +1748,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1748
1748
|
.hawa-bg-muted\/60 {
|
|
1749
1749
|
background-color: hsl(var(--muted) / 0.6);
|
|
1750
1750
|
}
|
|
1751
|
+
.hawa-bg-orange-100 {
|
|
1752
|
+
--tw-bg-opacity: 1;
|
|
1753
|
+
background-color: rgb(255 237 213 / var(--tw-bg-opacity));
|
|
1754
|
+
}
|
|
1751
1755
|
.hawa-bg-popover {
|
|
1752
1756
|
background-color: hsl(var(--popover));
|
|
1753
1757
|
}
|
|
@@ -1772,6 +1776,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1772
1776
|
.hawa-bg-primary\/90 {
|
|
1773
1777
|
background-color: hsl(var(--primary) / 0.9);
|
|
1774
1778
|
}
|
|
1779
|
+
.hawa-bg-purple-100 {
|
|
1780
|
+
--tw-bg-opacity: 1;
|
|
1781
|
+
background-color: rgb(243 232 255 / var(--tw-bg-opacity));
|
|
1782
|
+
}
|
|
1775
1783
|
.hawa-bg-red-100 {
|
|
1776
1784
|
--tw-bg-opacity: 1;
|
|
1777
1785
|
background-color: rgb(254 226 226 / var(--tw-bg-opacity));
|
|
@@ -1805,6 +1813,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1805
1813
|
.hawa-bg-opacity-80 {
|
|
1806
1814
|
--tw-bg-opacity: 0.8;
|
|
1807
1815
|
}
|
|
1816
|
+
.hawa-bg-none {
|
|
1817
|
+
background-image: none;
|
|
1818
|
+
}
|
|
1808
1819
|
.hawa-bg-cover {
|
|
1809
1820
|
background-size: cover;
|
|
1810
1821
|
}
|
|
@@ -2104,16 +2115,16 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2104
2115
|
--tw-text-opacity: 1;
|
|
2105
2116
|
color: rgb(29 78 216 / var(--tw-text-opacity));
|
|
2106
2117
|
}
|
|
2107
|
-
.hawa-text-blue-800 {
|
|
2108
|
-
--tw-text-opacity: 1;
|
|
2109
|
-
color: rgb(30 64 175 / var(--tw-text-opacity));
|
|
2110
|
-
}
|
|
2111
2118
|
.hawa-text-card-foreground {
|
|
2112
2119
|
color: hsl(var(--card-foreground));
|
|
2113
2120
|
}
|
|
2114
2121
|
.hawa-text-current {
|
|
2115
2122
|
color: currentColor;
|
|
2116
2123
|
}
|
|
2124
|
+
.hawa-text-cyan-500 {
|
|
2125
|
+
--tw-text-opacity: 1;
|
|
2126
|
+
color: rgb(6 182 212 / var(--tw-text-opacity));
|
|
2127
|
+
}
|
|
2117
2128
|
.hawa-text-destructive-foreground {
|
|
2118
2129
|
--tw-text-opacity: 1;
|
|
2119
2130
|
color: hsl(var(--destructive-foreground) / var(--tw-text-opacity));
|
|
@@ -2178,6 +2189,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2178
2189
|
--tw-text-opacity: 1;
|
|
2179
2190
|
color: rgb(23 23 23 / var(--tw-text-opacity));
|
|
2180
2191
|
}
|
|
2192
|
+
.hawa-text-orange-500 {
|
|
2193
|
+
--tw-text-opacity: 1;
|
|
2194
|
+
color: rgb(249 115 22 / var(--tw-text-opacity));
|
|
2195
|
+
}
|
|
2181
2196
|
.hawa-text-popover-foreground {
|
|
2182
2197
|
color: hsl(var(--popover-foreground));
|
|
2183
2198
|
}
|
|
@@ -2190,6 +2205,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2190
2205
|
.hawa-text-primary\/70 {
|
|
2191
2206
|
color: hsl(var(--primary) / 0.7);
|
|
2192
2207
|
}
|
|
2208
|
+
.hawa-text-purple-500 {
|
|
2209
|
+
--tw-text-opacity: 1;
|
|
2210
|
+
color: rgb(168 85 247 / var(--tw-text-opacity));
|
|
2211
|
+
}
|
|
2193
2212
|
.hawa-text-red-500 {
|
|
2194
2213
|
--tw-text-opacity: 1;
|
|
2195
2214
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
@@ -2217,6 +2236,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2217
2236
|
--tw-text-opacity: 1;
|
|
2218
2237
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2219
2238
|
}
|
|
2239
|
+
.hawa-text-yellow-500 {
|
|
2240
|
+
--tw-text-opacity: 1;
|
|
2241
|
+
color: rgb(234 179 8 / var(--tw-text-opacity));
|
|
2242
|
+
}
|
|
2220
2243
|
.hawa-text-yellow-700 {
|
|
2221
2244
|
--tw-text-opacity: 1;
|
|
2222
2245
|
color: rgb(161 98 7 / var(--tw-text-opacity));
|
package/dist/index.d.mts
CHANGED
|
@@ -40,6 +40,7 @@ type AdCardTypes = {
|
|
|
40
40
|
imageURL: string;
|
|
41
41
|
handleHide?: any;
|
|
42
42
|
handleCantHide?: () => void;
|
|
43
|
+
handleClick?: () => void;
|
|
43
44
|
canHide: boolean;
|
|
44
45
|
};
|
|
45
46
|
declare const AdCard: FC<AdCardTypes>;
|
|
@@ -167,8 +168,8 @@ type TCheckBoxTypes = {
|
|
|
167
168
|
sublabel?: any;
|
|
168
169
|
helperText?: any;
|
|
169
170
|
};
|
|
170
|
-
type
|
|
171
|
-
declare const Checkbox: React$1.FC<
|
|
171
|
+
type CheckboxProps = TCheckBoxTypes & React$1.ComponentProps<typeof CheckboxElement>;
|
|
172
|
+
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
172
173
|
declare const CheckboxElement: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
173
174
|
|
|
174
175
|
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
@@ -235,7 +236,6 @@ type TChipTypes = {
|
|
|
235
236
|
dot?: boolean;
|
|
236
237
|
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
|
237
238
|
dotType?: "available" | "unavailable";
|
|
238
|
-
variant?: "default" | "outline";
|
|
239
239
|
};
|
|
240
240
|
declare const Chip: FC<TChipTypes>;
|
|
241
241
|
|
|
@@ -1391,4 +1391,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1391
1391
|
handleTabChange: (index: any) => void;
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
|
-
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, 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, 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 };
|
|
1394
|
+
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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ type AdCardTypes = {
|
|
|
40
40
|
imageURL: string;
|
|
41
41
|
handleHide?: any;
|
|
42
42
|
handleCantHide?: () => void;
|
|
43
|
+
handleClick?: () => void;
|
|
43
44
|
canHide: boolean;
|
|
44
45
|
};
|
|
45
46
|
declare const AdCard: FC<AdCardTypes>;
|
|
@@ -167,8 +168,8 @@ type TCheckBoxTypes = {
|
|
|
167
168
|
sublabel?: any;
|
|
168
169
|
helperText?: any;
|
|
169
170
|
};
|
|
170
|
-
type
|
|
171
|
-
declare const Checkbox: React$1.FC<
|
|
171
|
+
type CheckboxProps = TCheckBoxTypes & React$1.ComponentProps<typeof CheckboxElement>;
|
|
172
|
+
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
172
173
|
declare const CheckboxElement: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
173
174
|
|
|
174
175
|
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
@@ -235,7 +236,6 @@ type TChipTypes = {
|
|
|
235
236
|
dot?: boolean;
|
|
236
237
|
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
|
237
238
|
dotType?: "available" | "unavailable";
|
|
238
|
-
variant?: "default" | "outline";
|
|
239
239
|
};
|
|
240
240
|
declare const Chip: FC<TChipTypes>;
|
|
241
241
|
|
|
@@ -1391,4 +1391,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1391
1391
|
handleTabChange: (index: any) => void;
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
|
-
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, 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, 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 };
|
|
1394
|
+
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -815,9 +815,11 @@ var AdCard = function(_param) {
|
|
|
815
815
|
};
|
|
816
816
|
return /* @__PURE__ */ import_react2.default.createElement("div", {
|
|
817
817
|
ref: adRef
|
|
818
|
-
}, /* @__PURE__ */ import_react2.default.createElement("div", _object_spread({
|
|
818
|
+
}, /* @__PURE__ */ import_react2.default.createElement("div", _object_spread_props(_object_spread({
|
|
819
819
|
className: (0, import_clsx.default)(cardStyles[orientation], "dark:hawa-text-white")
|
|
820
|
-
}, props),
|
|
820
|
+
}, props), {
|
|
821
|
+
onClick: props.handleClick
|
|
822
|
+
}), /* @__PURE__ */ import_react2.default.createElement("div", {
|
|
821
823
|
className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start "
|
|
822
824
|
}, /* @__PURE__ */ import_react2.default.createElement("img", {
|
|
823
825
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
|
@@ -829,7 +831,8 @@ var AdCard = function(_param) {
|
|
|
829
831
|
}, props.title), /* @__PURE__ */ import_react2.default.createElement("div", {
|
|
830
832
|
className: "hawa-text-[12px]"
|
|
831
833
|
}, props.description)), props.canHide && /* @__PURE__ */ import_react2.default.createElement("span", {
|
|
832
|
-
onClick: function() {
|
|
834
|
+
onClick: function(e) {
|
|
835
|
+
e.stopPropagation();
|
|
833
836
|
if (props.canHide) {
|
|
834
837
|
setClosed(true);
|
|
835
838
|
setTimeout(function() {
|
|
@@ -1391,15 +1394,12 @@ var Checkbox = function(_param) {
|
|
|
1391
1394
|
}, checkboxProps)), (label || helperText) && /* @__PURE__ */ React11.createElement("div", {
|
|
1392
1395
|
className: "hawa-grid hawa-gap-1.5 hawa-leading-none"
|
|
1393
1396
|
}, label && /* @__PURE__ */ React11.createElement("label", {
|
|
1394
|
-
role: "checkbox",
|
|
1395
1397
|
htmlFor: id,
|
|
1396
1398
|
className: cn("hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-font-medium hawa-leading-none hawa-pt-0.5", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70 ")
|
|
1397
1399
|
}, label), sublabel && /* @__PURE__ */ React11.createElement("label", {
|
|
1398
|
-
role: "checkbox",
|
|
1399
1400
|
htmlFor: id,
|
|
1400
1401
|
className: cn("hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-text-muted-foreground", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70")
|
|
1401
1402
|
}, sublabel), helperText && !checkboxProps.disabled && /* @__PURE__ */ React11.createElement("label", {
|
|
1402
|
-
role: "checkbox",
|
|
1403
1403
|
htmlFor: id,
|
|
1404
1404
|
className: cn("hawa-select-none hawa-text-xs hawa-text-red-500", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-opacity-70")
|
|
1405
1405
|
}, helperText)));
|
|
@@ -1865,12 +1865,12 @@ function Skeleton(_param) {
|
|
|
1865
1865
|
var import_react12 = __toESM(require("react"));
|
|
1866
1866
|
var import_clsx5 = __toESM(require("clsx"));
|
|
1867
1867
|
var Chip = function(param) {
|
|
1868
|
-
var label = param.label, _param_size = param.size, size = _param_size === void 0 ? "normal" : _param_size, icon = param.icon, color = param.color,
|
|
1869
|
-
var defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-rounded hawa-px-2.5 hawa-py-
|
|
1868
|
+
var label = param.label, _param_size = param.size, size = _param_size === void 0 ? "normal" : _param_size, icon = param.icon, color = param.color, dotType = param.dotType;
|
|
1869
|
+
var defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-rounded hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
|
1870
1870
|
var sizeStyles = {
|
|
1871
|
-
small: "hawa-h-
|
|
1871
|
+
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
1872
1872
|
normal: "hawa-h-fit hawa-text-xs",
|
|
1873
|
-
large: ""
|
|
1873
|
+
large: "hawa-text-base"
|
|
1874
1874
|
};
|
|
1875
1875
|
var dotStyles = {
|
|
1876
1876
|
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
@@ -1881,9 +1881,18 @@ var Chip = function(param) {
|
|
|
1881
1881
|
available: "hawa-bg-green-500",
|
|
1882
1882
|
unavailable: "hawa-bg-red-500"
|
|
1883
1883
|
};
|
|
1884
|
+
var colorStyles = {
|
|
1885
|
+
green: "hawa-bg-green-100 hawa-text-green-500",
|
|
1886
|
+
blue: "hawa-bg-blue-100 hawa-text-blue-500",
|
|
1887
|
+
red: "hawa-bg-red-100 hawa-text-red-500",
|
|
1888
|
+
yellow: "hawa-bg-yellow-100 hawa-text-yellow-500",
|
|
1889
|
+
orange: "hawa-bg-orange-100 hawa-text-orange-500",
|
|
1890
|
+
purple: "hawa-bg-purple-100 hawa-text-purple-500",
|
|
1891
|
+
cyan: "hawa-bg-cyan-100 hawa-text-cyan-500"
|
|
1892
|
+
};
|
|
1884
1893
|
return /* @__PURE__ */ import_react12.default.createElement("span", {
|
|
1885
|
-
className: (0, import_clsx5.default)(defaultStyles, sizeStyles[size], color ?
|
|
1886
|
-
},
|
|
1894
|
+
className: (0, import_clsx5.default)(defaultStyles, sizeStyles[size], color ? colorStyles[color] : "hawa-border hawa-bg-none")
|
|
1895
|
+
}, dotType && /* @__PURE__ */ import_react12.default.createElement("span", {
|
|
1887
1896
|
className: (0, import_clsx5.default)(dotStyles[size], dotTypeStyles[dotType])
|
|
1888
1897
|
}), icon && icon, label);
|
|
1889
1898
|
};
|
|
@@ -2089,7 +2098,7 @@ var DropdownMenuSubTrigger = React24.forwardRef(function(_param, ref) /* @__PURE
|
|
|
2089
2098
|
]);
|
|
2090
2099
|
return React24.createElement(DropdownMenuPrimitive.SubTrigger, _object_spread({
|
|
2091
2100
|
ref: ref,
|
|
2092
|
-
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-
|
|
2101
|
+
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent", inset && "hawa-pl-8", className)
|
|
2093
2102
|
}, props), /* @__PURE__ */ React24.createElement("div", {
|
|
2094
2103
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
2095
2104
|
}, children), " ", /* @__PURE__ */ React24.createElement("svg", {
|
|
@@ -2113,7 +2122,7 @@ var DropdownMenuSubContent = React24.forwardRef(function(_param, ref) /* @__PURE
|
|
|
2113
2122
|
]);
|
|
2114
2123
|
return React24.createElement(DropdownMenuPrimitive.SubContent, _object_spread({
|
|
2115
2124
|
ref: ref,
|
|
2116
|
-
className: cn("hawa-z-50 hawa-min-w-[8rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2", className)
|
|
2125
|
+
className: cn("hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2", className)
|
|
2117
2126
|
}, props));
|
|
2118
2127
|
});
|
|
2119
2128
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
@@ -2238,7 +2247,7 @@ var DropdownMenu = function(param) {
|
|
|
2238
2247
|
};
|
|
2239
2248
|
var sizeStyles = {
|
|
2240
2249
|
default: "hawa-px-2 hawa-py-3 ",
|
|
2241
|
-
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5"
|
|
2250
|
+
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
|
2242
2251
|
};
|
|
2243
2252
|
return /* @__PURE__ */ React24.createElement(DropdownMenuRoot, {
|
|
2244
2253
|
dir: direction
|
|
@@ -2248,7 +2257,7 @@ var DropdownMenu = function(param) {
|
|
|
2248
2257
|
}, trigger), /* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(DropdownMenuContent, {
|
|
2249
2258
|
side: side,
|
|
2250
2259
|
sideOffset: sideOffset,
|
|
2251
|
-
className: cn(className, widthStyles[width], "hawa-flex hawa-flex-col hawa-gap-
|
|
2260
|
+
className: cn(className, widthStyles[width], "hawa-flex hawa-flex-col hawa-gap-1"),
|
|
2252
2261
|
align: align,
|
|
2253
2262
|
alignOffset: alignOffset
|
|
2254
2263
|
}, items && items.map(function(item, index) {
|
|
@@ -2443,7 +2452,8 @@ var FileDropzone = function(param) {
|
|
|
2443
2452
|
setFiles(acceptedFiles);
|
|
2444
2453
|
}, [
|
|
2445
2454
|
acceptedFiles,
|
|
2446
|
-
cmp
|
|
2455
|
+
cmp,
|
|
2456
|
+
setFiles
|
|
2447
2457
|
]);
|
|
2448
2458
|
onClearFiles = function() {
|
|
2449
2459
|
acceptedFiles.length = 0;
|
|
@@ -4335,7 +4345,7 @@ var Input = function(_param) {
|
|
|
4335
4345
|
}, props.icon && /* @__PURE__ */ import_react17.default.createElement("div", {
|
|
4336
4346
|
className: "hawa-absolute hawa-left-3 hawa-top-1/2 hawa--translate-y-1/2"
|
|
4337
4347
|
}, props.icon), /* @__PURE__ */ import_react17.default.createElement("input", {
|
|
4338
|
-
className: cn(defaultInputStyle, "
|
|
4348
|
+
className: cn(defaultInputStyle, " dark:hawa-text-white", props.icon && "hawa-pl-10", "focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0", preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0", (_props_inputProps = props.inputProps) === null || _props_inputProps === void 0 ? void 0 : _props_inputProps.className),
|
|
4339
4349
|
onChange: props.onChange,
|
|
4340
4350
|
autoComplete: props.autoComplete,
|
|
4341
4351
|
value: props.value,
|
|
@@ -4977,6 +4987,7 @@ var Accordion = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
4977
4987
|
}, /* @__PURE__ */ React36.createElement(AccordionTrigger, null, item.trigger), /* @__PURE__ */ React36.createElement(AccordionContent, null, item.content));
|
|
4978
4988
|
}));
|
|
4979
4989
|
});
|
|
4990
|
+
Accordion.displayName = "Accordion";
|
|
4980
4991
|
var AccordionItem = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4981
4992
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4982
4993
|
"className"
|
|
@@ -5298,7 +5309,10 @@ var BackToTop = function(_param) {
|
|
|
5298
5309
|
(_props_anchor_current = props.anchor.current) === null || _props_anchor_current === void 0 ? void 0 : _props_anchor_current.removeEventListener("scroll", onScroll);
|
|
5299
5310
|
clearInterval(interval);
|
|
5300
5311
|
};
|
|
5301
|
-
}, [
|
|
5312
|
+
}, [
|
|
5313
|
+
onScroll,
|
|
5314
|
+
props.anchor
|
|
5315
|
+
]);
|
|
5302
5316
|
var getStyles = function() {
|
|
5303
5317
|
var _self_current;
|
|
5304
5318
|
if (!props.anchor.current || !self.current) return {};
|
|
@@ -6204,10 +6218,8 @@ var AppLayout = function(_param) {
|
|
|
6204
6218
|
var isRTL = direction === "rtl";
|
|
6205
6219
|
var _ref = _sliced_to_array((0, import_react31.useState)(""), 2), openedSidebarItem = _ref[0], setOpenedSidebarItem = _ref[1];
|
|
6206
6220
|
var _ref1 = _sliced_to_array((0, import_react31.useState)(currentPage), 2), selectedItem = _ref1[0], setSelectedItem = _ref1[1];
|
|
6207
|
-
var size;
|
|
6208
|
-
if (typeof window
|
|
6209
|
-
size = useBreakpoint_default();
|
|
6210
|
-
} else {
|
|
6221
|
+
var size = useBreakpoint_default();
|
|
6222
|
+
if (typeof window == "undefined") {
|
|
6211
6223
|
size = 1200;
|
|
6212
6224
|
}
|
|
6213
6225
|
var _ref2 = _sliced_to_array((0, import_react31.useState)(function() {
|
|
@@ -7922,7 +7934,7 @@ var NotFound = function(param) {
|
|
|
7922
7934
|
className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold "
|
|
7923
7935
|
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
7924
7936
|
className: "hawa-mb-4 hawa-text-center"
|
|
7925
|
-
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, "If you're lost please contact us
|
|
7937
|
+
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react49.default.createElement("span", {
|
|
7926
7938
|
className: "clickable-link"
|
|
7927
7939
|
}, "help@sikka.io"))), /* @__PURE__ */ import_react49.default.createElement(Button, {
|
|
7928
7940
|
className: "hawa-w-full"
|
package/dist/index.mjs
CHANGED
|
@@ -73,7 +73,8 @@ var AdCard = ({ orientation, ...props }) => {
|
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
className: clsx(cardStyles[orientation], "dark:hawa-text-white"),
|
|
76
|
-
...props
|
|
76
|
+
...props,
|
|
77
|
+
onClick: props.handleClick
|
|
77
78
|
},
|
|
78
79
|
/* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ React2.createElement(
|
|
79
80
|
"img",
|
|
@@ -86,7 +87,8 @@ var AdCard = ({ orientation, ...props }) => {
|
|
|
86
87
|
props.canHide && /* @__PURE__ */ React2.createElement(
|
|
87
88
|
"span",
|
|
88
89
|
{
|
|
89
|
-
onClick: () => {
|
|
90
|
+
onClick: (e) => {
|
|
91
|
+
e.stopPropagation();
|
|
90
92
|
if (props.canHide) {
|
|
91
93
|
setClosed(true);
|
|
92
94
|
setTimeout(() => {
|
|
@@ -749,7 +751,6 @@ var Checkbox = ({
|
|
|
749
751
|
return /* @__PURE__ */ React11.createElement("div", { className: "hawa-items-top hawa-flex hawa-gap-2 " }, /* @__PURE__ */ React11.createElement(CheckboxElement, { id, ...checkboxProps }), (label || helperText) && /* @__PURE__ */ React11.createElement("div", { className: "hawa-grid hawa-gap-1.5 hawa-leading-none" }, label && /* @__PURE__ */ React11.createElement(
|
|
750
752
|
"label",
|
|
751
753
|
{
|
|
752
|
-
role: "checkbox",
|
|
753
754
|
htmlFor: id,
|
|
754
755
|
className: cn(
|
|
755
756
|
"hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-font-medium hawa-leading-none hawa-pt-0.5",
|
|
@@ -760,7 +761,6 @@ var Checkbox = ({
|
|
|
760
761
|
), sublabel && /* @__PURE__ */ React11.createElement(
|
|
761
762
|
"label",
|
|
762
763
|
{
|
|
763
|
-
role: "checkbox",
|
|
764
764
|
htmlFor: id,
|
|
765
765
|
className: cn(
|
|
766
766
|
"hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-text-muted-foreground",
|
|
@@ -771,7 +771,6 @@ var Checkbox = ({
|
|
|
771
771
|
), helperText && !checkboxProps.disabled && /* @__PURE__ */ React11.createElement(
|
|
772
772
|
"label",
|
|
773
773
|
{
|
|
774
|
-
role: "checkbox",
|
|
775
774
|
htmlFor: id,
|
|
776
775
|
className: cn(
|
|
777
776
|
"hawa-select-none hawa-text-xs hawa-text-red-500",
|
|
@@ -1314,14 +1313,13 @@ var Chip = ({
|
|
|
1314
1313
|
size = "normal",
|
|
1315
1314
|
icon,
|
|
1316
1315
|
color,
|
|
1317
|
-
|
|
1318
|
-
dotType = "available"
|
|
1316
|
+
dotType
|
|
1319
1317
|
}) => {
|
|
1320
|
-
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-rounded hawa-px-2.5 hawa-py-
|
|
1318
|
+
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-rounded hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
|
1321
1319
|
let sizeStyles = {
|
|
1322
|
-
small: "hawa-h-
|
|
1320
|
+
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
1323
1321
|
normal: "hawa-h-fit hawa-text-xs",
|
|
1324
|
-
large: ""
|
|
1322
|
+
large: "hawa-text-base"
|
|
1325
1323
|
};
|
|
1326
1324
|
let dotStyles = {
|
|
1327
1325
|
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
@@ -1332,16 +1330,25 @@ var Chip = ({
|
|
|
1332
1330
|
available: "hawa-bg-green-500",
|
|
1333
1331
|
unavailable: "hawa-bg-red-500"
|
|
1334
1332
|
};
|
|
1333
|
+
let colorStyles = {
|
|
1334
|
+
green: "hawa-bg-green-100 hawa-text-green-500",
|
|
1335
|
+
blue: "hawa-bg-blue-100 hawa-text-blue-500",
|
|
1336
|
+
red: "hawa-bg-red-100 hawa-text-red-500",
|
|
1337
|
+
yellow: "hawa-bg-yellow-100 hawa-text-yellow-500",
|
|
1338
|
+
orange: "hawa-bg-orange-100 hawa-text-orange-500",
|
|
1339
|
+
purple: "hawa-bg-purple-100 hawa-text-purple-500",
|
|
1340
|
+
cyan: "hawa-bg-cyan-100 hawa-text-cyan-500"
|
|
1341
|
+
};
|
|
1335
1342
|
return /* @__PURE__ */ React18.createElement(
|
|
1336
1343
|
"span",
|
|
1337
1344
|
{
|
|
1338
1345
|
className: clsx5(
|
|
1339
1346
|
defaultStyles,
|
|
1340
1347
|
sizeStyles[size],
|
|
1341
|
-
color ?
|
|
1348
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
1342
1349
|
)
|
|
1343
1350
|
},
|
|
1344
|
-
|
|
1351
|
+
dotType && /* @__PURE__ */ React18.createElement("span", { className: clsx5(dotStyles[size], dotTypeStyles[dotType]) }),
|
|
1345
1352
|
icon && icon,
|
|
1346
1353
|
label
|
|
1347
1354
|
);
|
|
@@ -1577,7 +1584,7 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
|
|
|
1577
1584
|
{
|
|
1578
1585
|
ref,
|
|
1579
1586
|
className: cn(
|
|
1580
|
-
"hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-
|
|
1587
|
+
"hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent",
|
|
1581
1588
|
inset && "hawa-pl-8",
|
|
1582
1589
|
className
|
|
1583
1590
|
),
|
|
@@ -1612,7 +1619,7 @@ var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) =
|
|
|
1612
1619
|
{
|
|
1613
1620
|
ref,
|
|
1614
1621
|
className: cn(
|
|
1615
|
-
"hawa-z-50 hawa-min-w-[8rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
|
1622
|
+
"hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
|
1616
1623
|
className
|
|
1617
1624
|
),
|
|
1618
1625
|
...props
|
|
@@ -1769,7 +1776,7 @@ var DropdownMenu = ({
|
|
|
1769
1776
|
};
|
|
1770
1777
|
const sizeStyles = {
|
|
1771
1778
|
default: "hawa-px-2 hawa-py-3 ",
|
|
1772
|
-
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5"
|
|
1779
|
+
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
|
1773
1780
|
};
|
|
1774
1781
|
return /* @__PURE__ */ React24.createElement(DropdownMenuRoot, { dir: direction }, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger), /* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(
|
|
1775
1782
|
DropdownMenuContent,
|
|
@@ -1779,7 +1786,7 @@ var DropdownMenu = ({
|
|
|
1779
1786
|
className: cn(
|
|
1780
1787
|
className,
|
|
1781
1788
|
widthStyles[width],
|
|
1782
|
-
"hawa-flex hawa-flex-col hawa-gap-
|
|
1789
|
+
"hawa-flex hawa-flex-col hawa-gap-1"
|
|
1783
1790
|
),
|
|
1784
1791
|
align,
|
|
1785
1792
|
alignOffset
|
|
@@ -2026,7 +2033,7 @@ var FileDropzone = ({
|
|
|
2026
2033
|
);
|
|
2027
2034
|
useEffect8(() => {
|
|
2028
2035
|
setFiles(acceptedFiles);
|
|
2029
|
-
}, [acceptedFiles, cmp]);
|
|
2036
|
+
}, [acceptedFiles, cmp, setFiles]);
|
|
2030
2037
|
onClearFiles = () => {
|
|
2031
2038
|
acceptedFiles.length = 0;
|
|
2032
2039
|
acceptedFiles.splice(0, acceptedFiles.length);
|
|
@@ -3933,7 +3940,7 @@ var Input = ({
|
|
|
3933
3940
|
{
|
|
3934
3941
|
className: cn(
|
|
3935
3942
|
defaultInputStyle,
|
|
3936
|
-
"
|
|
3943
|
+
" dark:hawa-text-white",
|
|
3937
3944
|
props.icon && "hawa-pl-10",
|
|
3938
3945
|
"focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0",
|
|
3939
3946
|
preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
|
|
@@ -4607,6 +4614,7 @@ var SimpleTable = ({
|
|
|
4607
4614
|
import * as React36 from "react";
|
|
4608
4615
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
4609
4616
|
var Accordion = React36.forwardRef(({ items, className, ...props }, ref) => /* @__PURE__ */ React36.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, items.map((item, index) => /* @__PURE__ */ React36.createElement(AccordionItem, { key: index, value: `item-${index}` }, /* @__PURE__ */ React36.createElement(AccordionTrigger, null, item.trigger), /* @__PURE__ */ React36.createElement(AccordionContent, null, item.content)))));
|
|
4617
|
+
Accordion.displayName = "Accordion";
|
|
4610
4618
|
var AccordionItem = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
|
|
4611
4619
|
AccordionItem.displayName = "AccordionItem";
|
|
4612
4620
|
var AccordionTrigger = React36.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React36.createElement(AccordionPrimitive.Header, { className: "hawa-flex" }, /* @__PURE__ */ React36.createElement(
|
|
@@ -4939,7 +4947,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
4939
4947
|
props.anchor.current?.removeEventListener("scroll", onScroll);
|
|
4940
4948
|
clearInterval(interval);
|
|
4941
4949
|
};
|
|
4942
|
-
}, []);
|
|
4950
|
+
}, [onScroll, props.anchor]);
|
|
4943
4951
|
const getStyles = () => {
|
|
4944
4952
|
if (!props.anchor.current || !self.current)
|
|
4945
4953
|
return {};
|
|
@@ -5926,10 +5934,8 @@ var AppLayout = ({
|
|
|
5926
5934
|
const isRTL = direction === "rtl";
|
|
5927
5935
|
const [openedSidebarItem, setOpenedSidebarItem] = useState18("");
|
|
5928
5936
|
const [selectedItem, setSelectedItem] = useState18(currentPage);
|
|
5929
|
-
let size;
|
|
5930
|
-
if (typeof window
|
|
5931
|
-
size = useBreakpoint_default();
|
|
5932
|
-
} else {
|
|
5937
|
+
let size = useBreakpoint_default();
|
|
5938
|
+
if (typeof window == "undefined") {
|
|
5933
5939
|
size = 1200;
|
|
5934
5940
|
}
|
|
5935
5941
|
const [keepOpen, setKeepOpen] = useState18(() => {
|
|
@@ -7739,7 +7745,7 @@ var NotFound = ({
|
|
|
7739
7745
|
variant = "contained",
|
|
7740
7746
|
texts
|
|
7741
7747
|
}) => {
|
|
7742
|
-
return /* @__PURE__ */ React68.createElement(Card, null, /* @__PURE__ */ React68.createElement(CardContent, { headless: true }, /* @__PURE__ */ React68.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React68.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React68.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React68.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, texts?.ifLost ?? /* @__PURE__ */ React68.createElement(React68.Fragment, null, "If you're lost please contact us
|
|
7748
|
+
return /* @__PURE__ */ React68.createElement(Card, null, /* @__PURE__ */ React68.createElement(CardContent, { headless: true }, /* @__PURE__ */ React68.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React68.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React68.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React68.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, texts?.ifLost ?? /* @__PURE__ */ React68.createElement(React68.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React68.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React68.createElement(Button, { className: "hawa-w-full" }, texts?.home ?? "Home"))));
|
|
7743
7749
|
};
|
|
7744
7750
|
|
|
7745
7751
|
// components/blocks/misc/NoPermission.tsx
|