@sikka/hawa 0.7.19-next → 0.8.0-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 +9 -5
- package/dist/index.d.mts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +52 -77
- package/dist/index.mjs +96 -115
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1070,6 +1070,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1070
1070
|
.hawa-h-\[36px\] {
|
|
1071
1071
|
height: 36px;
|
|
1072
1072
|
}
|
|
1073
|
+
.hawa-h-\[37\.5px\] {
|
|
1074
|
+
height: 37.5px;
|
|
1075
|
+
}
|
|
1073
1076
|
.hawa-h-\[38px\] {
|
|
1074
1077
|
height: 38px;
|
|
1075
1078
|
}
|
|
@@ -1230,6 +1233,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1230
1233
|
.hawa-w-screen {
|
|
1231
1234
|
width: 100vw;
|
|
1232
1235
|
}
|
|
1236
|
+
.hawa-min-w-\[65px\] {
|
|
1237
|
+
min-width: 65px;
|
|
1238
|
+
}
|
|
1233
1239
|
.hawa-min-w-\[8rem\] {
|
|
1234
1240
|
min-width: 8rem;
|
|
1235
1241
|
}
|
|
@@ -1509,11 +1515,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1509
1515
|
-moz-column-gap: 0.75rem;
|
|
1510
1516
|
column-gap: 0.75rem;
|
|
1511
1517
|
}
|
|
1512
|
-
.hawa-space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1513
|
-
--tw-space-x-reverse: 0;
|
|
1514
|
-
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
1515
|
-
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1516
|
-
}
|
|
1517
1518
|
.hawa-space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1518
1519
|
--tw-space-x-reverse: 0;
|
|
1519
1520
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
@@ -2053,6 +2054,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2053
2054
|
.hawa-pl-8 {
|
|
2054
2055
|
padding-left: 2rem;
|
|
2055
2056
|
}
|
|
2057
|
+
.hawa-pr-0 {
|
|
2058
|
+
padding-right: 0px;
|
|
2059
|
+
}
|
|
2056
2060
|
.hawa-pr-10 {
|
|
2057
2061
|
padding-right: 2.5rem;
|
|
2058
2062
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -613,12 +613,13 @@ declare const CommandShortcut: {
|
|
|
613
613
|
|
|
614
614
|
declare function Combobox(): React$1.JSX.Element;
|
|
615
615
|
|
|
616
|
+
type SelectOptionProps = {
|
|
617
|
+
value: any;
|
|
618
|
+
label: any;
|
|
619
|
+
};
|
|
616
620
|
type SelectTypes = {
|
|
617
621
|
label?: string;
|
|
618
|
-
options?:
|
|
619
|
-
value: any;
|
|
620
|
-
label: any;
|
|
621
|
-
}[];
|
|
622
|
+
options?: SelectOptionProps[];
|
|
622
623
|
isCreatable?: boolean;
|
|
623
624
|
isClearable?: boolean;
|
|
624
625
|
isMulti?: boolean;
|
|
@@ -637,6 +638,8 @@ type SelectTypes = {
|
|
|
637
638
|
defaultValue?: any;
|
|
638
639
|
handleCreateOption?: () => void;
|
|
639
640
|
placeholder?: string;
|
|
641
|
+
hideIndicator?: boolean;
|
|
642
|
+
phoneCode?: boolean;
|
|
640
643
|
isLoading?: any;
|
|
641
644
|
texts?: {
|
|
642
645
|
noOptions?: string;
|
|
@@ -688,6 +691,7 @@ type NavigationMenuTypes = {
|
|
|
688
691
|
}[];
|
|
689
692
|
rootClassNames?: string;
|
|
690
693
|
viewportClassNames?: string;
|
|
694
|
+
direction?: "rtl" | "ltr";
|
|
691
695
|
};
|
|
692
696
|
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
693
697
|
|
|
@@ -939,7 +943,6 @@ type RegisterFormTypes = {
|
|
|
939
943
|
confirmPasswordLabel: string;
|
|
940
944
|
confirmPasswordPlaceholder: string;
|
|
941
945
|
confirmPasswordRequired: string;
|
|
942
|
-
refCodePlaceholder: string;
|
|
943
946
|
subscribeToNewsletter: string;
|
|
944
947
|
forgotPasswordText: string;
|
|
945
948
|
termsText: string;
|
|
@@ -953,7 +956,9 @@ type RegisterFormTypes = {
|
|
|
953
956
|
registerViaGithubLabel: string;
|
|
954
957
|
registerViaTwitterLabel: string;
|
|
955
958
|
refCode: string;
|
|
959
|
+
refCodePlaceholder: string;
|
|
956
960
|
userReferenceLabel: string;
|
|
961
|
+
userReferencePlaceholder: string;
|
|
957
962
|
};
|
|
958
963
|
/** Enables registration via Google when set to true. */
|
|
959
964
|
viaGoogle: boolean;
|
|
@@ -991,6 +996,7 @@ type RegisterFormTypes = {
|
|
|
991
996
|
registerFields: any[];
|
|
992
997
|
/** Indicates whether the form submission is in progress. */
|
|
993
998
|
isLoading?: boolean;
|
|
999
|
+
userReferenceOptions: SelectOptionProps[];
|
|
994
1000
|
};
|
|
995
1001
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
|
996
1002
|
|
|
@@ -1422,4 +1428,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1422
1428
|
handleTabChange: (index: any) => void;
|
|
1423
1429
|
};
|
|
1424
1430
|
|
|
1425
|
-
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, NavMenuItem, NavigationMenu, NavigationMenuLink, 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, useWindowSize };
|
|
1431
|
+
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, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, 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, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -613,12 +613,13 @@ declare const CommandShortcut: {
|
|
|
613
613
|
|
|
614
614
|
declare function Combobox(): React$1.JSX.Element;
|
|
615
615
|
|
|
616
|
+
type SelectOptionProps = {
|
|
617
|
+
value: any;
|
|
618
|
+
label: any;
|
|
619
|
+
};
|
|
616
620
|
type SelectTypes = {
|
|
617
621
|
label?: string;
|
|
618
|
-
options?:
|
|
619
|
-
value: any;
|
|
620
|
-
label: any;
|
|
621
|
-
}[];
|
|
622
|
+
options?: SelectOptionProps[];
|
|
622
623
|
isCreatable?: boolean;
|
|
623
624
|
isClearable?: boolean;
|
|
624
625
|
isMulti?: boolean;
|
|
@@ -637,6 +638,8 @@ type SelectTypes = {
|
|
|
637
638
|
defaultValue?: any;
|
|
638
639
|
handleCreateOption?: () => void;
|
|
639
640
|
placeholder?: string;
|
|
641
|
+
hideIndicator?: boolean;
|
|
642
|
+
phoneCode?: boolean;
|
|
640
643
|
isLoading?: any;
|
|
641
644
|
texts?: {
|
|
642
645
|
noOptions?: string;
|
|
@@ -688,6 +691,7 @@ type NavigationMenuTypes = {
|
|
|
688
691
|
}[];
|
|
689
692
|
rootClassNames?: string;
|
|
690
693
|
viewportClassNames?: string;
|
|
694
|
+
direction?: "rtl" | "ltr";
|
|
691
695
|
};
|
|
692
696
|
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
693
697
|
|
|
@@ -939,7 +943,6 @@ type RegisterFormTypes = {
|
|
|
939
943
|
confirmPasswordLabel: string;
|
|
940
944
|
confirmPasswordPlaceholder: string;
|
|
941
945
|
confirmPasswordRequired: string;
|
|
942
|
-
refCodePlaceholder: string;
|
|
943
946
|
subscribeToNewsletter: string;
|
|
944
947
|
forgotPasswordText: string;
|
|
945
948
|
termsText: string;
|
|
@@ -953,7 +956,9 @@ type RegisterFormTypes = {
|
|
|
953
956
|
registerViaGithubLabel: string;
|
|
954
957
|
registerViaTwitterLabel: string;
|
|
955
958
|
refCode: string;
|
|
959
|
+
refCodePlaceholder: string;
|
|
956
960
|
userReferenceLabel: string;
|
|
961
|
+
userReferencePlaceholder: string;
|
|
957
962
|
};
|
|
958
963
|
/** Enables registration via Google when set to true. */
|
|
959
964
|
viaGoogle: boolean;
|
|
@@ -991,6 +996,7 @@ type RegisterFormTypes = {
|
|
|
991
996
|
registerFields: any[];
|
|
992
997
|
/** Indicates whether the form submission is in progress. */
|
|
993
998
|
isLoading?: boolean;
|
|
999
|
+
userReferenceOptions: SelectOptionProps[];
|
|
994
1000
|
};
|
|
995
1001
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
|
996
1002
|
|
|
@@ -1422,4 +1428,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1422
1428
|
handleTabChange: (index: any) => void;
|
|
1423
1429
|
};
|
|
1424
1430
|
|
|
1425
|
-
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, NavMenuItem, NavigationMenu, NavigationMenuLink, 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, useWindowSize };
|
|
1431
|
+
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, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, 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, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -831,7 +831,7 @@ var AdCard = function(_param) {
|
|
|
831
831
|
return /* @__PURE__ */ import_react2.default.createElement("div", {
|
|
832
832
|
ref: adRef
|
|
833
833
|
}, /* @__PURE__ */ import_react2.default.createElement("div", _object_spread_props(_object_spread({
|
|
834
|
-
className: (0, import_clsx.default)(cardStyles[orientation], "
|
|
834
|
+
className: (0, import_clsx.default)(cardStyles[orientation], "")
|
|
835
835
|
}, props), {
|
|
836
836
|
onClick: props.handleClick
|
|
837
837
|
}), /* @__PURE__ */ import_react2.default.createElement("div", {
|
|
@@ -4387,34 +4387,6 @@ var import_clsx9 = __toESM(require("clsx"));
|
|
|
4387
4387
|
var import_react18 = __toESM(require("react"));
|
|
4388
4388
|
var import_react_select = __toESM(require("react-select"));
|
|
4389
4389
|
var import_creatable = __toESM(require("react-select/creatable"));
|
|
4390
|
-
var Menu = function(_param) {
|
|
4391
|
-
var cx = _param.cx, children = _param.children, getStyles = _param.getStyles, innerProps = _param.innerProps, innerRef = _param.innerRef, props = _object_without_properties(_param, [
|
|
4392
|
-
"cx",
|
|
4393
|
-
"children",
|
|
4394
|
-
"getStyles",
|
|
4395
|
-
"innerProps",
|
|
4396
|
-
"innerRef"
|
|
4397
|
-
]);
|
|
4398
|
-
var menuOpen = props.selectProps.menuIsOpen;
|
|
4399
|
-
return /* @__PURE__ */ import_react18.default.createElement("div", _object_spread({
|
|
4400
|
-
className: cn("hawa-absolute hawa-shadow-md dark:dark-shadow hawa-z-10 hawa-mt-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-start hawa-rounded hawa-border hawa-bg-background hawa-p-1.5", menuOpen && "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "),
|
|
4401
|
-
ref: innerRef
|
|
4402
|
-
}, innerProps), children);
|
|
4403
|
-
};
|
|
4404
|
-
var Option = function(_param) {
|
|
4405
|
-
var cx = _param.cx, children = _param.children, getStyles = _param.getStyles, innerProps = _param.innerProps, innerRef = _param.innerRef, _param_size = _param.size, size = _param_size === void 0 ? "normal" : _param_size, props = _object_without_properties(_param, [
|
|
4406
|
-
"cx",
|
|
4407
|
-
"children",
|
|
4408
|
-
"getStyles",
|
|
4409
|
-
"innerProps",
|
|
4410
|
-
"innerRef",
|
|
4411
|
-
"size"
|
|
4412
|
-
]);
|
|
4413
|
-
return /* @__PURE__ */ import_react18.default.createElement("div", _object_spread({
|
|
4414
|
-
ref: innerRef,
|
|
4415
|
-
className: "hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hover:hawa-bg-primary hawa-transition-all hover:hawa-text-primary-foreground "
|
|
4416
|
-
}, innerProps), children);
|
|
4417
|
-
};
|
|
4418
4390
|
var Select = function(props) {
|
|
4419
4391
|
var Control = function(param) {
|
|
4420
4392
|
var // cx,
|
|
@@ -4431,43 +4403,54 @@ var Select = function(props) {
|
|
|
4431
4403
|
var _props_texts_noOptions;
|
|
4432
4404
|
return /* @__PURE__ */ import_react18.default.createElement("div", null, (_props_texts_noOptions = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.noOptions) !== null && _props_texts_noOptions !== void 0 ? _props_texts_noOptions : "No Items Found");
|
|
4433
4405
|
};
|
|
4406
|
+
var Option = function(param) {
|
|
4407
|
+
var children = param.children, innerProps = param.innerProps, innerRef = param.innerRef;
|
|
4408
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", _object_spread({
|
|
4409
|
+
ref: innerRef,
|
|
4410
|
+
className: cn("hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hover:hawa-bg-primary hawa-transition-all hover:hawa-text-primary-foreground")
|
|
4411
|
+
}, innerProps), children);
|
|
4412
|
+
};
|
|
4413
|
+
var Menu = function(_param) {
|
|
4414
|
+
var cx = _param.cx, children = _param.children, getStyles = _param.getStyles, innerProps = _param.innerProps, innerRef = _param.innerRef, menuProps = _object_without_properties(_param, [
|
|
4415
|
+
"cx",
|
|
4416
|
+
"children",
|
|
4417
|
+
"getStyles",
|
|
4418
|
+
"innerProps",
|
|
4419
|
+
"innerRef"
|
|
4420
|
+
]);
|
|
4421
|
+
var menuOpen = menuProps.selectProps.menuIsOpen;
|
|
4422
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", _object_spread({
|
|
4423
|
+
className: cn("hawa-absolute hawa-shadow-md dark:dark-shadow hawa-z-10 hawa-mt-1 hawa-flex hawa-flex-col hawa-justify-start hawa-rounded hawa-border hawa-bg-background", props.phoneCode ? "hawa-p-1.5 hawa-pr-0" : "hawa-p-1.5 hawa-w-full", menuOpen && "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "),
|
|
4424
|
+
ref: innerRef
|
|
4425
|
+
}, innerProps), children);
|
|
4426
|
+
};
|
|
4434
4427
|
return /* @__PURE__ */ import_react18.default.createElement("div", {
|
|
4435
4428
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
|
|
4436
4429
|
}, props.label && /* @__PURE__ */ import_react18.default.createElement(Label, null, props.label), props.isLoading ? /* @__PURE__ */ import_react18.default.createElement(Skeleton, {
|
|
4437
4430
|
className: "hawa-h-[38px] hawa-w-full"
|
|
4438
|
-
}) : !props.isCreatable ?
|
|
4431
|
+
}) : !props.isCreatable ? // TODO: enable keyboard to go to the next item in the list
|
|
4432
|
+
/* @__PURE__ */ import_react18.default.createElement(import_react_select.default, {
|
|
4439
4433
|
noOptionsMessage: NoOption,
|
|
4440
4434
|
classNames: {
|
|
4441
|
-
// menuList: (d) => {
|
|
4442
|
-
// console.log("d is ", d.selectProps.menuIsOpen);
|
|
4443
|
-
// return cn(
|
|
4444
|
-
// "hawa-absolute hawa-shadow-md dark:dark-shadow hawa-z-10 hawa-mt-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-start hawa-rounded hawa-border hawa-bg-background hawa-p-1.5",
|
|
4445
|
-
// d.selectProps.menuIsOpen
|
|
4446
|
-
// ? "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "
|
|
4447
|
-
// : "hawa-zoom-out-95 hawa-fade-out-0 hawa-animate-out"
|
|
4448
|
-
// );
|
|
4449
|
-
// },
|
|
4450
4435
|
control: function() {
|
|
4451
|
-
return cn("
|
|
4436
|
+
return cn(// "hawa-text-sm hawa-flex hawa-w-full hawa-rounded hawa-bg-background hawa-text-gray-900 focus:hawa-border-blue-500 focus:hawa-ring-blue-500 dark:focus:hawa-ring-blue-500 hawa-cursor-pointer hawa-border",
|
|
4437
|
+
// "hawa-p-2",
|
|
4438
|
+
props.phoneCode && "hawa-rounded-r-none", props.controlClassNames);
|
|
4452
4439
|
},
|
|
4453
4440
|
container: function() {
|
|
4454
|
-
return cn("hawa-rounded", props.
|
|
4441
|
+
return cn("hawa-rounded", props.phoneCode && "hawa-w-fit hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[37.5px] ", "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm", props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer");
|
|
4455
4442
|
},
|
|
4456
|
-
// TODO: enable keyboard to go to the next item in the list
|
|
4457
4443
|
placeholder: function() {
|
|
4458
|
-
return "hawa-
|
|
4459
|
-
},
|
|
4460
|
-
input: function() {
|
|
4461
|
-
return "hawa-text-primary hawa-px-2";
|
|
4444
|
+
return "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
|
4462
4445
|
},
|
|
4463
4446
|
valueContainer: function() {
|
|
4464
|
-
return "hawa-text-
|
|
4447
|
+
return "hawa-text-foreground hawa-px-1 ";
|
|
4465
4448
|
},
|
|
4466
4449
|
singleValue: function() {
|
|
4467
|
-
return "hawa-text-
|
|
4450
|
+
return "hawa-text-foreground";
|
|
4468
4451
|
},
|
|
4469
4452
|
indicatorsContainer: function() {
|
|
4470
|
-
return " hawa-px-0 hawa-cursor-pointer hawa-text-muted-foreground";
|
|
4453
|
+
return cn(" hawa-px-0 hawa-cursor-pointer hawa-text-muted-foreground", props.hideIndicator && "hawa-invisible");
|
|
4471
4454
|
}
|
|
4472
4455
|
},
|
|
4473
4456
|
unstyled: true,
|
|
@@ -4480,13 +4463,14 @@ var Select = function(props) {
|
|
|
4480
4463
|
placeholder: props.placeholder,
|
|
4481
4464
|
autoFocus: true,
|
|
4482
4465
|
onChange: function(newValue, action) {
|
|
4483
|
-
return
|
|
4484
|
-
props.onChange(newValue, action));
|
|
4466
|
+
return props.onChange(newValue, action);
|
|
4485
4467
|
},
|
|
4486
4468
|
components: {
|
|
4487
|
-
// Control,
|
|
4488
4469
|
Option: Option,
|
|
4489
|
-
Menu: Menu
|
|
4470
|
+
Menu: Menu,
|
|
4471
|
+
IndicatorsContainer: function() {
|
|
4472
|
+
return null;
|
|
4473
|
+
}
|
|
4490
4474
|
},
|
|
4491
4475
|
getOptionLabel: props.getOptionLabel
|
|
4492
4476
|
}) : /* @__PURE__ */ import_react18.default.createElement(import_creatable.default, {
|
|
@@ -4497,7 +4481,7 @@ var Select = function(props) {
|
|
|
4497
4481
|
},
|
|
4498
4482
|
classNames: {
|
|
4499
4483
|
container: function() {
|
|
4500
|
-
return cn("hawa-rounded
|
|
4484
|
+
return cn("hawa-rounded", props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer");
|
|
4501
4485
|
},
|
|
4502
4486
|
placeholder: function() {
|
|
4503
4487
|
return "hawa-px-2 hawa-text-muted-foreground";
|
|
@@ -4525,13 +4509,13 @@ var Select = function(props) {
|
|
|
4525
4509
|
onChange: function(newValue, action) {
|
|
4526
4510
|
return props.onChange(newValue, action);
|
|
4527
4511
|
},
|
|
4528
|
-
onInputChange: function(newValue, action) {
|
|
4529
|
-
return props.onInputChange(newValue, action);
|
|
4530
|
-
},
|
|
4531
4512
|
components: {
|
|
4532
4513
|
Control: Control,
|
|
4533
4514
|
Option: Option,
|
|
4534
4515
|
Menu: Menu
|
|
4516
|
+
},
|
|
4517
|
+
onInputChange: function(newValue, action) {
|
|
4518
|
+
return props.onInputChange(newValue, action);
|
|
4535
4519
|
}
|
|
4536
4520
|
}), props.helperText && /* @__PURE__ */ import_react18.default.createElement("p", {
|
|
4537
4521
|
className: "hawa-text-sm hawa-text-red-600 dark:hawa-text-red-500"
|
|
@@ -4548,9 +4532,10 @@ var PhoneInput = function(props) {
|
|
|
4548
4532
|
dir: "ltr",
|
|
4549
4533
|
className: "hawa-flex hawa-flex-row hawa-w-full "
|
|
4550
4534
|
}, /* @__PURE__ */ import_react19.default.createElement(Select, {
|
|
4535
|
+
phoneCode: true,
|
|
4536
|
+
hideIndicator: true,
|
|
4551
4537
|
width: "fit",
|
|
4552
|
-
|
|
4553
|
-
containerClassNames: "hawa-w-[100px] hawa-p-0 hawa-rounded-r-none",
|
|
4538
|
+
placeholder: "Code",
|
|
4554
4539
|
options: countries_default,
|
|
4555
4540
|
isMulti: false,
|
|
4556
4541
|
isSearchable: true,
|
|
@@ -6065,12 +6050,12 @@ var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6065
6050
|
]);
|
|
6066
6051
|
return React47.createElement(NavigationMenuPrimitive.List, _object_spread({
|
|
6067
6052
|
ref: ref,
|
|
6068
|
-
className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-
|
|
6053
|
+
className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1", className)
|
|
6069
6054
|
}, props));
|
|
6070
6055
|
});
|
|
6071
6056
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6072
6057
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6073
|
-
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50");
|
|
6058
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50");
|
|
6074
6059
|
var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6075
6060
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6076
6061
|
"className",
|
|
@@ -6090,7 +6075,7 @@ var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6090
6075
|
"stroke-linecap": "round",
|
|
6091
6076
|
"stroke-linejoin": "round",
|
|
6092
6077
|
"aria-hidden": "true",
|
|
6093
|
-
className: "hawa-relative hawa-top-[1px] hawa-
|
|
6078
|
+
className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6094
6079
|
}, /* @__PURE__ */ React47.createElement("path", {
|
|
6095
6080
|
d: "m6 9 6 6 6-6"
|
|
6096
6081
|
})));
|
|
@@ -6147,6 +6132,7 @@ var NavigationMenuIndicator = React47.forwardRef(function(_param, ref) /* @__PUR
|
|
|
6147
6132
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
6148
6133
|
var NavigationMenu = function(props) {
|
|
6149
6134
|
return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, {
|
|
6135
|
+
dir: props.direction,
|
|
6150
6136
|
delayDuration: 0,
|
|
6151
6137
|
className: props.rootClassNames,
|
|
6152
6138
|
viewportClassNames: props.viewportClassNames
|
|
@@ -7003,26 +6989,15 @@ var RegisterForm = function(props) {
|
|
|
7003
6989
|
name: "reference",
|
|
7004
6990
|
render: function(param) {
|
|
7005
6991
|
var field = param.field;
|
|
6992
|
+
var _props_texts, _props_texts1;
|
|
7006
6993
|
return /* @__PURE__ */ import_react34.default.createElement(Select, {
|
|
7007
|
-
label: props.texts.userReferenceLabel || "How did you learn about us?",
|
|
6994
|
+
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.userReferenceLabel) || "How did you learn about us?",
|
|
6995
|
+
placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.userReferencePlaceholder,
|
|
7008
6996
|
isCreatable: false,
|
|
7009
6997
|
isMulti: false,
|
|
7010
6998
|
isSearchable: false,
|
|
7011
6999
|
isClearable: false,
|
|
7012
|
-
options:
|
|
7013
|
-
{
|
|
7014
|
-
value: "friend",
|
|
7015
|
-
label: "From a friend"
|
|
7016
|
-
},
|
|
7017
|
-
{
|
|
7018
|
-
value: "ad",
|
|
7019
|
-
label: "Advertisement"
|
|
7020
|
-
},
|
|
7021
|
-
{
|
|
7022
|
-
value: "other",
|
|
7023
|
-
label: "Other"
|
|
7024
|
-
}
|
|
7025
|
-
],
|
|
7000
|
+
options: props.userReferenceOptions,
|
|
7026
7001
|
onChange: function(e) {
|
|
7027
7002
|
field.onChange(e.value);
|
|
7028
7003
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -72,7 +72,7 @@ var AdCard = ({ orientation, ...props }) => {
|
|
|
72
72
|
return /* @__PURE__ */ React2.createElement("div", { ref: adRef }, /* @__PURE__ */ React2.createElement(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
className: clsx(cardStyles[orientation], "
|
|
75
|
+
className: clsx(cardStyles[orientation], ""),
|
|
76
76
|
...props,
|
|
77
77
|
onClick: props.handleClick
|
|
78
78
|
},
|
|
@@ -3984,52 +3984,6 @@ import clsx9 from "clsx";
|
|
|
3984
3984
|
import React29 from "react";
|
|
3985
3985
|
import ReactSelect from "react-select";
|
|
3986
3986
|
import CreatableSelect from "react-select/creatable";
|
|
3987
|
-
var Menu = ({
|
|
3988
|
-
cx,
|
|
3989
|
-
children,
|
|
3990
|
-
getStyles,
|
|
3991
|
-
innerProps,
|
|
3992
|
-
innerRef,
|
|
3993
|
-
...props
|
|
3994
|
-
}) => {
|
|
3995
|
-
const menuOpen = props.selectProps.menuIsOpen;
|
|
3996
|
-
return /* @__PURE__ */ React29.createElement(
|
|
3997
|
-
"div",
|
|
3998
|
-
{
|
|
3999
|
-
className: cn(
|
|
4000
|
-
"hawa-absolute hawa-shadow-md dark:dark-shadow hawa-z-10 hawa-mt-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-start hawa-rounded hawa-border hawa-bg-background hawa-p-1.5",
|
|
4001
|
-
menuOpen && "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "
|
|
4002
|
-
// menuOpen
|
|
4003
|
-
// ? "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "
|
|
4004
|
-
// : "hawa-zoom-out-95 hawa-fade-out-0 hawa-animate-out"
|
|
4005
|
-
// "hawa-zoom-in-95 hawa-animate-in hawa-animate-out hawa-fade-out-0 hawa-fade-in-0 hawa-zoom-out-95"
|
|
4006
|
-
// "data-[state=open]:hawa-zoom-in-95 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"
|
|
4007
|
-
),
|
|
4008
|
-
ref: innerRef,
|
|
4009
|
-
...innerProps
|
|
4010
|
-
},
|
|
4011
|
-
children
|
|
4012
|
-
);
|
|
4013
|
-
};
|
|
4014
|
-
var Option = ({
|
|
4015
|
-
cx,
|
|
4016
|
-
children,
|
|
4017
|
-
getStyles,
|
|
4018
|
-
innerProps,
|
|
4019
|
-
innerRef,
|
|
4020
|
-
size = "normal",
|
|
4021
|
-
...props
|
|
4022
|
-
}) => {
|
|
4023
|
-
return /* @__PURE__ */ React29.createElement(
|
|
4024
|
-
"div",
|
|
4025
|
-
{
|
|
4026
|
-
ref: innerRef,
|
|
4027
|
-
className: "hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hover:hawa-bg-primary hawa-transition-all hover:hawa-text-primary-foreground ",
|
|
4028
|
-
...innerProps
|
|
4029
|
-
},
|
|
4030
|
-
children
|
|
4031
|
-
);
|
|
4032
|
-
};
|
|
4033
3987
|
var Select = (props) => {
|
|
4034
3988
|
const Control = ({
|
|
4035
3989
|
// cx,
|
|
@@ -4057,6 +4011,47 @@ var Select = (props) => {
|
|
|
4057
4011
|
const NoOption = () => {
|
|
4058
4012
|
return /* @__PURE__ */ React29.createElement("div", null, props.texts?.noOptions ?? "No Items Found");
|
|
4059
4013
|
};
|
|
4014
|
+
const Option = ({ children, innerProps, innerRef }) => {
|
|
4015
|
+
return /* @__PURE__ */ React29.createElement(
|
|
4016
|
+
"div",
|
|
4017
|
+
{
|
|
4018
|
+
ref: innerRef,
|
|
4019
|
+
className: cn(
|
|
4020
|
+
"hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hover:hawa-bg-primary hawa-transition-all hover:hawa-text-primary-foreground"
|
|
4021
|
+
),
|
|
4022
|
+
...innerProps
|
|
4023
|
+
},
|
|
4024
|
+
children
|
|
4025
|
+
);
|
|
4026
|
+
};
|
|
4027
|
+
const Menu = ({
|
|
4028
|
+
cx,
|
|
4029
|
+
children,
|
|
4030
|
+
getStyles,
|
|
4031
|
+
innerProps,
|
|
4032
|
+
innerRef,
|
|
4033
|
+
...menuProps
|
|
4034
|
+
}) => {
|
|
4035
|
+
const menuOpen = menuProps.selectProps.menuIsOpen;
|
|
4036
|
+
return /* @__PURE__ */ React29.createElement(
|
|
4037
|
+
"div",
|
|
4038
|
+
{
|
|
4039
|
+
className: cn(
|
|
4040
|
+
"hawa-absolute hawa-shadow-md dark:dark-shadow hawa-z-10 hawa-mt-1 hawa-flex hawa-flex-col hawa-justify-start hawa-rounded hawa-border hawa-bg-background",
|
|
4041
|
+
props.phoneCode ? "hawa-p-1.5 hawa-pr-0" : "hawa-p-1.5 hawa-w-full",
|
|
4042
|
+
menuOpen && "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "
|
|
4043
|
+
// menuOpen
|
|
4044
|
+
// ? "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "
|
|
4045
|
+
// : "hawa-zoom-out-95 hawa-fade-out-0 hawa-animate-out"
|
|
4046
|
+
// "hawa-zoom-in-95 hawa-animate-in hawa-animate-out hawa-fade-out-0 hawa-fade-in-0 hawa-zoom-out-95"
|
|
4047
|
+
// "data-[state=open]:hawa-zoom-in-95 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"
|
|
4048
|
+
),
|
|
4049
|
+
ref: innerRef,
|
|
4050
|
+
...innerProps
|
|
4051
|
+
},
|
|
4052
|
+
children
|
|
4053
|
+
);
|
|
4054
|
+
};
|
|
4060
4055
|
return /* @__PURE__ */ React29.createElement(
|
|
4061
4056
|
"div",
|
|
4062
4057
|
{
|
|
@@ -4066,63 +4061,54 @@ var Select = (props) => {
|
|
|
4066
4061
|
)
|
|
4067
4062
|
},
|
|
4068
4063
|
props.label && /* @__PURE__ */ React29.createElement(Label, null, props.label),
|
|
4069
|
-
props.isLoading ? /* @__PURE__ */ React29.createElement(Skeleton, { className: "hawa-h-[38px] hawa-w-full" }) : !props.isCreatable ?
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
"hawa-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
props.onChange(newValue, action)
|
|
4111
|
-
),
|
|
4112
|
-
components: {
|
|
4113
|
-
// Control,
|
|
4114
|
-
Option,
|
|
4115
|
-
Menu
|
|
4116
|
-
},
|
|
4117
|
-
getOptionLabel: props.getOptionLabel
|
|
4118
|
-
}
|
|
4064
|
+
props.isLoading ? /* @__PURE__ */ React29.createElement(Skeleton, { className: "hawa-h-[38px] hawa-w-full" }) : !props.isCreatable ? (
|
|
4065
|
+
// TODO: enable keyboard to go to the next item in the list
|
|
4066
|
+
/* @__PURE__ */ React29.createElement(
|
|
4067
|
+
ReactSelect,
|
|
4068
|
+
{
|
|
4069
|
+
noOptionsMessage: NoOption,
|
|
4070
|
+
classNames: {
|
|
4071
|
+
control: () => cn(
|
|
4072
|
+
// "hawa-text-sm hawa-flex hawa-w-full hawa-rounded hawa-bg-background hawa-text-gray-900 focus:hawa-border-blue-500 focus:hawa-ring-blue-500 dark:focus:hawa-ring-blue-500 hawa-cursor-pointer hawa-border",
|
|
4073
|
+
// "hawa-p-2",
|
|
4074
|
+
props.phoneCode && "hawa-rounded-r-none",
|
|
4075
|
+
props.controlClassNames
|
|
4076
|
+
),
|
|
4077
|
+
container: () => cn(
|
|
4078
|
+
"hawa-rounded",
|
|
4079
|
+
props.phoneCode && "hawa-w-fit hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[37.5px] ",
|
|
4080
|
+
"hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
|
|
4081
|
+
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer"
|
|
4082
|
+
),
|
|
4083
|
+
placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
|
|
4084
|
+
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
|
4085
|
+
singleValue: () => "hawa-text-foreground",
|
|
4086
|
+
indicatorsContainer: () => cn(
|
|
4087
|
+
" hawa-px-0 hawa-cursor-pointer hawa-text-muted-foreground",
|
|
4088
|
+
props.hideIndicator && "hawa-invisible"
|
|
4089
|
+
)
|
|
4090
|
+
},
|
|
4091
|
+
unstyled: true,
|
|
4092
|
+
isDisabled: props.disabled,
|
|
4093
|
+
options: props.options,
|
|
4094
|
+
defaultValue: props.defaultValue,
|
|
4095
|
+
isClearable: props.isClearable,
|
|
4096
|
+
isMulti: props.isMulti,
|
|
4097
|
+
isSearchable: props.isSearchable,
|
|
4098
|
+
placeholder: props.placeholder,
|
|
4099
|
+
autoFocus: true,
|
|
4100
|
+
onChange: (newValue, action) => props.onChange(newValue, action),
|
|
4101
|
+
components: { Option, Menu, IndicatorsContainer: () => null },
|
|
4102
|
+
getOptionLabel: props.getOptionLabel
|
|
4103
|
+
}
|
|
4104
|
+
)
|
|
4119
4105
|
) : /* @__PURE__ */ React29.createElement(
|
|
4120
4106
|
CreatableSelect,
|
|
4121
4107
|
{
|
|
4122
4108
|
formatCreateLabel: (inputValue) => `${props.texts?.createLabel ?? "Create"} "${inputValue}"`,
|
|
4123
4109
|
classNames: {
|
|
4124
4110
|
container: () => cn(
|
|
4125
|
-
"hawa-rounded
|
|
4111
|
+
"hawa-rounded",
|
|
4126
4112
|
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer"
|
|
4127
4113
|
),
|
|
4128
4114
|
placeholder: () => "hawa-px-2 hawa-text-muted-foreground",
|
|
@@ -4139,12 +4125,8 @@ var Select = (props) => {
|
|
|
4139
4125
|
placeholder: props.placeholder,
|
|
4140
4126
|
onCreateOption: props.handleCreateOption,
|
|
4141
4127
|
onChange: (newValue, action) => props.onChange(newValue, action),
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
Control,
|
|
4145
|
-
Option,
|
|
4146
|
-
Menu
|
|
4147
|
-
}
|
|
4128
|
+
components: { Control, Option, Menu },
|
|
4129
|
+
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
|
4148
4130
|
}
|
|
4149
4131
|
),
|
|
4150
4132
|
props.helperText && /* @__PURE__ */ React29.createElement("p", { className: "hawa-text-sm hawa-text-red-600 dark:hawa-text-red-500" }, props.helperText)
|
|
@@ -4157,9 +4139,10 @@ var PhoneInput = (props) => {
|
|
|
4157
4139
|
return /* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ React30.createElement("label", { className: "hawa-mb-2 hawa-block hawa-text-sm hawa-font-medium" }, props.label), /* @__PURE__ */ React30.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full " }, /* @__PURE__ */ React30.createElement(
|
|
4158
4140
|
Select,
|
|
4159
4141
|
{
|
|
4142
|
+
phoneCode: true,
|
|
4143
|
+
hideIndicator: true,
|
|
4160
4144
|
width: "fit",
|
|
4161
|
-
|
|
4162
|
-
containerClassNames: "hawa-w-[100px] hawa-p-0 hawa-rounded-r-none",
|
|
4145
|
+
placeholder: "Code",
|
|
4163
4146
|
options: countries_default,
|
|
4164
4147
|
isMulti: false,
|
|
4165
4148
|
isSearchable: true,
|
|
@@ -5743,7 +5726,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5743
5726
|
{
|
|
5744
5727
|
ref,
|
|
5745
5728
|
className: cn(
|
|
5746
|
-
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-
|
|
5729
|
+
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
|
5747
5730
|
className
|
|
5748
5731
|
),
|
|
5749
5732
|
...props
|
|
@@ -5752,7 +5735,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5752
5735
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
5753
5736
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
5754
5737
|
var navigationMenuTriggerStyle = cva4(
|
|
5755
|
-
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50"
|
|
5738
|
+
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50"
|
|
5756
5739
|
);
|
|
5757
5740
|
var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5758
5741
|
NavigationMenuPrimitive.Trigger,
|
|
@@ -5776,7 +5759,7 @@ var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props
|
|
|
5776
5759
|
"stroke-linecap": "round",
|
|
5777
5760
|
"stroke-linejoin": "round",
|
|
5778
5761
|
"aria-hidden": "true",
|
|
5779
|
-
className: "hawa-relative hawa-top-[1px] hawa-
|
|
5762
|
+
className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
5780
5763
|
},
|
|
5781
5764
|
/* @__PURE__ */ React47.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
5782
5765
|
)
|
|
@@ -5837,6 +5820,7 @@ var NavigationMenu = (props) => {
|
|
|
5837
5820
|
return /* @__PURE__ */ React47.createElement(
|
|
5838
5821
|
NavigationMenuRoot,
|
|
5839
5822
|
{
|
|
5823
|
+
dir: props.direction,
|
|
5840
5824
|
delayDuration: 0,
|
|
5841
5825
|
className: props.rootClassNames,
|
|
5842
5826
|
viewportClassNames: props.viewportClassNames
|
|
@@ -6854,16 +6838,13 @@ var RegisterForm = (props) => {
|
|
|
6854
6838
|
render: ({ field }) => /* @__PURE__ */ React54.createElement(
|
|
6855
6839
|
Select,
|
|
6856
6840
|
{
|
|
6857
|
-
label: props.texts
|
|
6841
|
+
label: props.texts?.userReferenceLabel || "How did you learn about us?",
|
|
6842
|
+
placeholder: props.texts?.userReferencePlaceholder,
|
|
6858
6843
|
isCreatable: false,
|
|
6859
6844
|
isMulti: false,
|
|
6860
6845
|
isSearchable: false,
|
|
6861
6846
|
isClearable: false,
|
|
6862
|
-
options:
|
|
6863
|
-
{ value: "friend", label: "From a friend" },
|
|
6864
|
-
{ value: "ad", label: "Advertisement" },
|
|
6865
|
-
{ value: "other", label: "Other" }
|
|
6866
|
-
],
|
|
6847
|
+
options: props.userReferenceOptions,
|
|
6867
6848
|
onChange: (e) => {
|
|
6868
6849
|
field.onChange(e.value);
|
|
6869
6850
|
}
|