@timmbr/ui 1.4.1 → 1.5.0
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/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.styles.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.styles.js +3 -3
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/Alert/Alert.styles.js +4 -4
- package/dist/components/AlertDialog/AlertDialog.styles.js +4 -4
- package/dist/components/AuthModal/AuthModal.d.ts +4 -0
- package/dist/components/AuthModal/AuthModal.d.ts.map +1 -0
- package/dist/components/AuthModal/AuthModal.js +89 -0
- package/dist/components/AuthModal/AuthModal.labels.d.ts +6 -0
- package/dist/components/AuthModal/AuthModal.labels.d.ts.map +1 -0
- package/dist/components/AuthModal/AuthModal.labels.js +52 -0
- package/dist/components/AuthModal/AuthModal.styles.d.ts +12 -0
- package/dist/components/AuthModal/AuthModal.styles.d.ts.map +1 -0
- package/dist/components/AuthModal/AuthModal.styles.js +38 -0
- package/dist/components/AuthModal/AuthModal.types.d.ts +158 -0
- package/dist/components/AuthModal/AuthModal.types.d.ts.map +1 -0
- package/dist/components/AuthModal/index.d.ts +6 -0
- package/dist/components/AuthModal/index.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalBanner.d.ts +11 -0
- package/dist/components/AuthModal/subcomponents/AuthModalBanner.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalBanner.js +58 -0
- package/dist/components/AuthModal/subcomponents/AuthModalIdentifierForm.d.ts +11 -0
- package/dist/components/AuthModal/subcomponents/AuthModalIdentifierForm.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalIdentifierForm.js +62 -0
- package/dist/components/AuthModal/subcomponents/AuthModalOAuth.d.ts +11 -0
- package/dist/components/AuthModal/subcomponents/AuthModalOAuth.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalOAuth.js +19 -0
- package/dist/components/AuthModal/subcomponents/AuthModalOtpForm.d.ts +10 -0
- package/dist/components/AuthModal/subcomponents/AuthModalOtpForm.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalOtpForm.js +62 -0
- package/dist/components/AuthModal/subcomponents/AuthModalParts.d.ts +44 -0
- package/dist/components/AuthModal/subcomponents/AuthModalParts.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalParts.js +134 -0
- package/dist/components/AuthModal/subcomponents/AuthModalPasswordForm.d.ts +10 -0
- package/dist/components/AuthModal/subcomponents/AuthModalPasswordForm.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalPasswordForm.js +54 -0
- package/dist/components/AuthModal/subcomponents/AuthModalSetPasswordForm.d.ts +10 -0
- package/dist/components/AuthModal/subcomponents/AuthModalSetPasswordForm.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalSetPasswordForm.js +79 -0
- package/dist/components/AuthModal/subcomponents/AuthModalSuccess.d.ts +10 -0
- package/dist/components/AuthModal/subcomponents/AuthModalSuccess.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/AuthModalSuccess.js +26 -0
- package/dist/components/AuthModal/subcomponents/OAuthButton.d.ts +12 -0
- package/dist/components/AuthModal/subcomponents/OAuthButton.d.ts.map +1 -0
- package/dist/components/AuthModal/subcomponents/OAuthButton.js +38 -0
- package/dist/components/AuthModal/subcomponents/index.d.ts +9 -0
- package/dist/components/AuthModal/subcomponents/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.styles.js +11 -11
- package/dist/components/Badge/Badge.styles.js +8 -8
- package/dist/components/Button/Button.styles.js +7 -7
- package/dist/components/Card/Card.styles.d.ts.map +1 -1
- package/dist/components/Card/Card.styles.js +5 -5
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/Checkbox/Checkbox.styles.js +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.styles.js +5 -5
- package/dist/components/DataList/DataList.styles.js +3 -3
- package/dist/components/Dialog/Dialog.styles.js +6 -6
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Drawer/Drawer.styles.js +2 -2
- package/dist/components/Dropdown/Dropdown.js +2 -2
- package/dist/components/Dropdown/Dropdown.styles.js +2 -2
- package/dist/components/EmptyState/EmptyState.js +2 -2
- package/dist/components/EmptyState/EmptyState.styles.js +3 -3
- package/dist/components/FormField/FormField.js +1 -1
- package/dist/components/Heading/Heading.styles.d.ts.map +1 -1
- package/dist/components/Heading/Heading.styles.js +12 -10
- package/dist/components/Icon/Icon.styles.js +6 -6
- package/dist/components/ImageUpload/ImageUpload.js +6 -6
- package/dist/components/ImageUpload/subcomponents/ImageUploadDropzone.js +10 -10
- package/dist/components/ImageUpload/subcomponents/ImageUploadModal.js +8 -8
- package/dist/components/ImageUpload/subcomponents/ImageUploadSinglePreview.js +7 -7
- package/dist/components/ImageUpload/subcomponents/ImageUploadThumbnailCard.js +10 -10
- package/dist/components/Input/Input.js +4 -4
- package/dist/components/Input/Input.styles.js +6 -6
- package/dist/components/Label/Label.styles.js +4 -4
- package/dist/components/LinkButton/LinkButton.styles.js +6 -6
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/List.styles.js +3 -3
- package/dist/components/NavFooter/NavFooter.styles.js +9 -9
- package/dist/components/NavFooter/subcomponents/FooterBrand.js +3 -3
- package/dist/components/NavFooter/subcomponents/FooterLegalBar.js +1 -1
- package/dist/components/NavFooter/subcomponents/FooterNavSection.js +4 -4
- package/dist/components/NavFooter/subcomponents/FooterNewsletter.js +7 -7
- package/dist/components/NavFooter/subcomponents/FooterOffice.js +5 -5
- package/dist/components/NavFooter/subcomponents/FooterSocial.js +3 -3
- package/dist/components/NavHeader/NavHeader.d.ts.map +1 -1
- package/dist/components/NavHeader/NavHeader.js +11 -3
- package/dist/components/NavHeader/NavHeader.styles.js +16 -16
- package/dist/components/NavHeader/NavHeader.types.d.ts +19 -0
- package/dist/components/NavHeader/NavHeader.types.d.ts.map +1 -1
- package/dist/components/NavHeader/subcomponents/NavActionLabelSkeleton.d.ts +4 -0
- package/dist/components/NavHeader/subcomponents/NavActionLabelSkeleton.d.ts.map +1 -0
- package/dist/components/NavHeader/subcomponents/NavActionLabelSkeleton.js +16 -0
- package/dist/components/NavHeader/subcomponents/NavActionOverflow.d.ts.map +1 -1
- package/dist/components/NavHeader/subcomponents/NavActionOverflow.js +6 -5
- package/dist/components/NavHeader/subcomponents/NavActions.d.ts +9 -0
- package/dist/components/NavHeader/subcomponents/NavActions.d.ts.map +1 -1
- package/dist/components/NavHeader/subcomponents/NavActions.js +51 -15
- package/dist/components/NavHeader/subcomponents/NavBrand.d.ts.map +1 -1
- package/dist/components/NavHeader/subcomponents/NavBrand.js +14 -15
- package/dist/components/NavHeader/subcomponents/NavItems.js +3 -3
- package/dist/components/NavHeader/subcomponents/NavItemsOverflow.js +7 -7
- package/dist/components/NavHeader/subcomponents/NavMobileSearchDrawer.js +5 -5
- package/dist/components/NavHeader/subcomponents/NavMobileTabSlider.js +2 -2
- package/dist/components/NavHeader/subcomponents/NavSearch.js +5 -5
- package/dist/components/NavHeader/subcomponents/OfferBanner.js +1 -1
- package/dist/components/OtpInput/OtpInput.d.ts +4 -0
- package/dist/components/OtpInput/OtpInput.d.ts.map +1 -0
- package/dist/components/OtpInput/OtpInput.js +114 -0
- package/dist/components/OtpInput/OtpInput.styles.d.ts +10 -0
- package/dist/components/OtpInput/OtpInput.styles.d.ts.map +1 -0
- package/dist/components/OtpInput/OtpInput.styles.js +49 -0
- package/dist/components/OtpInput/OtpInput.types.d.ts +40 -0
- package/dist/components/OtpInput/OtpInput.types.d.ts.map +1 -0
- package/dist/components/OtpInput/index.d.ts +4 -0
- package/dist/components/OtpInput/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.styles.js +3 -3
- package/dist/components/Popover/Popover.styles.js +1 -1
- package/dist/components/Progress/Progress.js +2 -2
- package/dist/components/Radio/Radio.js +4 -4
- package/dist/components/Radio/Radio.styles.js +1 -1
- package/dist/components/RangeSlider/RangeSlider.js +3 -3
- package/dist/components/RangeSlider/RangeSlider.styles.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/Select.styles.js +8 -8
- package/dist/components/SideBarNavigation/SideBarNavigation.styles.js +8 -8
- package/dist/components/SideBarNavigation/subcomponents/SidebarBranding.js +3 -3
- package/dist/components/SideBarNavigation/subcomponents/SidebarFooter.js +1 -1
- package/dist/components/SideBarNavigation/subcomponents/SidebarPopoverMenu.js +4 -4
- package/dist/components/SideBarNavigation/subcomponents/SidebarProfile.js +9 -9
- package/dist/components/SideBarNavigation/subcomponents/SidebarSubItem.js +2 -2
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +9 -7
- package/dist/components/Spinner/Spinner.styles.d.ts +8 -2
- package/dist/components/Spinner/Spinner.styles.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.styles.js +27 -24
- package/dist/components/Spinner/Spinner.types.d.ts +9 -0
- package/dist/components/Spinner/Spinner.types.d.ts.map +1 -1
- package/dist/components/Stat/Stat.styles.js +4 -4
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/Switch.styles.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.styles.js +5 -5
- package/dist/components/Table/TablePagination.js +4 -4
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/Tabs.styles.js +8 -8
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +2 -0
- package/dist/components/Text/Text.styles.d.ts +1 -0
- package/dist/components/Text/Text.styles.d.ts.map +1 -1
- package/dist/components/Text/Text.styles.js +21 -13
- package/dist/components/Text/Text.types.d.ts +5 -0
- package/dist/components/Text/Text.types.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +4 -4
- package/dist/components/Textarea/Textarea.styles.js +6 -6
- package/dist/components/Toast/Toast.js +3 -3
- package/dist/components/Toast/Toast.styles.js +5 -5
- package/dist/components/Toast/ToastContainer.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/package.json +7 -6
- package/dist/components/CrossZoneLink/CrossZoneLink.d.ts +0 -10
- package/dist/components/CrossZoneLink/CrossZoneLink.d.ts.map +0 -1
- package/dist/components/CrossZoneLink/CrossZoneLink.js +0 -111
- package/dist/components/CrossZoneLink/CrossZoneLink.styles.d.ts +0 -8
- package/dist/components/CrossZoneLink/CrossZoneLink.styles.d.ts.map +0 -1
- package/dist/components/CrossZoneLink/CrossZoneLink.styles.js +0 -33
- package/dist/components/CrossZoneLink/CrossZoneLink.types.d.ts +0 -31
- package/dist/components/CrossZoneLink/CrossZoneLink.types.d.ts.map +0 -1
- package/dist/components/CrossZoneLink/index.d.ts +0 -4
- package/dist/components/CrossZoneLink/index.d.ts.map +0 -1
|
@@ -58,16 +58,16 @@ const ImageUploadSinglePreview = ({
|
|
|
58
58
|
)
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
isVideo && /* @__PURE__ */ jsxs("div", { className: "absolute top-2 left-2 z-10 bg-
|
|
61
|
+
isVideo && /* @__PURE__ */ jsxs("div", { className: "absolute top-2 left-2 z-10 bg-grey-1000/65 backdrop-blur-md text-grey-50 text-caption font-medium px-2 py-0.5 rounded-full border border-grey-50/20 flex items-center gap-1 shadow-sm pointer-events-none", children: [
|
|
62
62
|
/* @__PURE__ */ jsx(PlayIcon, { className: "size-2.5" }),
|
|
63
63
|
/* @__PURE__ */ jsx("span", { children: "Video" })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-
|
|
65
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-grey-1000/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-1.5 p-1 backdrop-blur-[2px]", children: aspectRatio === "square" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
66
|
enablePreviewModal && /* @__PURE__ */ jsx(
|
|
67
67
|
"button",
|
|
68
68
|
{
|
|
69
69
|
type: "button",
|
|
70
|
-
className: "size-8 rounded-lg bg-
|
|
70
|
+
className: "size-8 rounded-lg bg-grey-1000/60 hover:bg-grey-1000/85 text-grey-50 flex items-center justify-center border border-grey-50/20 transition-all cursor-pointer shadow-xs",
|
|
71
71
|
onClick: onPreview,
|
|
72
72
|
title: "Preview full size",
|
|
73
73
|
children: /* @__PURE__ */ jsx(Eye, { className: "size-3.5" })
|
|
@@ -79,7 +79,7 @@ const ImageUploadSinglePreview = ({
|
|
|
79
79
|
type: "button",
|
|
80
80
|
disabled: disabled || isUploading,
|
|
81
81
|
onClick: onReplace,
|
|
82
|
-
className: "size-8 rounded-lg bg-primary hover:bg-primary/90 text-
|
|
82
|
+
className: "size-8 rounded-lg bg-primary hover:bg-primary/90 text-grey-50 flex items-center justify-center transition-all cursor-pointer shadow-xs disabled:opacity-50",
|
|
83
83
|
title: "Replace image",
|
|
84
84
|
children: /* @__PURE__ */ jsx(UploadCloudIcon, { className: "size-3.5" })
|
|
85
85
|
}
|
|
@@ -90,7 +90,7 @@ const ImageUploadSinglePreview = ({
|
|
|
90
90
|
type: "button",
|
|
91
91
|
disabled: disabled || isUploading,
|
|
92
92
|
onClick: onRemove,
|
|
93
|
-
className: "size-8 rounded-lg bg-destructive hover:bg-destructive/90 text-
|
|
93
|
+
className: "size-8 rounded-lg bg-destructive hover:bg-destructive/90 text-grey-50 flex items-center justify-center transition-all cursor-pointer shadow-xs disabled:opacity-50",
|
|
94
94
|
title: "Remove image",
|
|
95
95
|
children: /* @__PURE__ */ jsx(Trash2, { className: "size-3.5" })
|
|
96
96
|
}
|
|
@@ -102,7 +102,7 @@ const ImageUploadSinglePreview = ({
|
|
|
102
102
|
type: "button",
|
|
103
103
|
variant: "outline",
|
|
104
104
|
size: "sm",
|
|
105
|
-
className: "border-
|
|
105
|
+
className: "border-grey-50/40 bg-grey-1000/40 text-grey-50 hover:bg-grey-1000/60 hover:text-grey-50 backdrop-blur-xs",
|
|
106
106
|
onClick: onPreview,
|
|
107
107
|
leftIcon: /* @__PURE__ */ jsx(Eye, { className: "size-3.5" }),
|
|
108
108
|
children: "Preview"
|
|
@@ -126,7 +126,7 @@ const ImageUploadSinglePreview = ({
|
|
|
126
126
|
variant: "outline",
|
|
127
127
|
size: "sm",
|
|
128
128
|
disabled: disabled || isUploading,
|
|
129
|
-
className: "border-destructive/60 bg-destructive/80 text-
|
|
129
|
+
className: "border-destructive/60 bg-destructive/80 text-grey-50 hover:bg-destructive hover:text-grey-50",
|
|
130
130
|
onClick: onRemove,
|
|
131
131
|
leftIcon: /* @__PURE__ */ jsx(Trash2, { className: "size-3.5" }),
|
|
132
132
|
children: "Remove"
|
|
@@ -50,21 +50,21 @@ const ImageUploadThumbnailCard = ({
|
|
|
50
50
|
className: "w-full h-full object-cover"
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-2 left-2 z-10 flex items-center gap-1.5 pointer-events-none", children: index === 0 ? /* @__PURE__ */ jsxs("div", { className: "bg-
|
|
54
|
-
/* @__PURE__ */ jsx("span", { className: "size-1.5 rounded-full bg-
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-2 left-2 z-10 flex items-center gap-1.5 pointer-events-none", children: index === 0 ? /* @__PURE__ */ jsxs("div", { className: "bg-grey-1000/65 backdrop-blur-md text-grey-50 text-caption font-semibold px-2 py-0.5 rounded-full border border-grey-50/20 shadow-md flex items-center gap-1.5", children: [
|
|
54
|
+
/* @__PURE__ */ jsx("span", { className: "size-1.5 rounded-full bg-success shadow-[0_0_6px_rgba(52,211,153,0.8)]" }),
|
|
55
55
|
/* @__PURE__ */ jsx("span", { children: "Cover" })
|
|
56
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "bg-
|
|
56
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "bg-grey-1000/55 backdrop-blur-md text-grey-50/90 text-caption font-medium px-2 py-0.5 rounded-full border border-grey-50/10 shadow-sm", children: [
|
|
57
57
|
"#",
|
|
58
58
|
index + 1
|
|
59
59
|
] }) }),
|
|
60
|
-
isVideo && /* @__PURE__ */ jsx("div", { className: "absolute top-2 right-2 z-10 bg-
|
|
61
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 bg-
|
|
60
|
+
isVideo && /* @__PURE__ */ jsx("div", { className: "absolute top-2 right-2 z-10 bg-grey-1000/65 backdrop-blur-md text-grey-50 p-1 rounded-full border border-grey-50/20 shadow-md pointer-events-none", children: /* @__PURE__ */ jsx(PlayIcon, { className: "size-2.5" }) }),
|
|
61
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 bg-grey-1000/55 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-2 backdrop-blur-[2px] z-20", children: [
|
|
62
62
|
enablePreviewModal && /* @__PURE__ */ jsx(
|
|
63
63
|
"button",
|
|
64
64
|
{
|
|
65
65
|
type: "button",
|
|
66
66
|
onClick: onPreview,
|
|
67
|
-
className: "size-8 rounded-full bg-
|
|
67
|
+
className: "size-8 rounded-full bg-grey-50/25 hover:bg-grey-50/40 text-grey-50 flex items-center justify-center transition-colors shadow-xs cursor-pointer",
|
|
68
68
|
title: "Preview full size",
|
|
69
69
|
children: /* @__PURE__ */ jsx(Eye, { className: "size-4" })
|
|
70
70
|
}
|
|
@@ -75,7 +75,7 @@ const ImageUploadThumbnailCard = ({
|
|
|
75
75
|
type: "button",
|
|
76
76
|
disabled,
|
|
77
77
|
onClick: onRemove,
|
|
78
|
-
className: "size-8 rounded-full bg-destructive/90 hover:bg-destructive text-
|
|
78
|
+
className: "size-8 rounded-full bg-destructive/90 hover:bg-destructive text-grey-50 flex items-center justify-center transition-colors shadow-xs cursor-pointer",
|
|
79
79
|
title: "Remove item",
|
|
80
80
|
children: /* @__PURE__ */ jsx(Trash2, { className: "size-4" })
|
|
81
81
|
}
|
|
@@ -125,9 +125,9 @@ const ImageUploadTaskCard = ({
|
|
|
125
125
|
className: "w-full h-full object-cover blur-xs scale-105 opacity-60"
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 bg-
|
|
129
|
-
/* @__PURE__ */ jsx(Spinner, { size: "sm", className: "text-
|
|
130
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
128
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 bg-grey-1000/50 flex flex-col items-center justify-center gap-1.5 p-2 text-center", children: [
|
|
129
|
+
/* @__PURE__ */ jsx(Spinner, { size: "sm", className: "text-grey-50" }),
|
|
130
|
+
/* @__PURE__ */ jsx("span", { className: "text-caption font-medium text-grey-50 line-clamp-1 max-w-full px-1", children: name })
|
|
131
131
|
] })
|
|
132
132
|
]
|
|
133
133
|
},
|
|
@@ -84,7 +84,7 @@ const Input = React.forwardRef(
|
|
|
84
84
|
"label",
|
|
85
85
|
{
|
|
86
86
|
htmlFor: id,
|
|
87
|
-
className: "text-
|
|
87
|
+
className: "text-body-3 font-semibold text-foreground tracking-wide select-none text-left",
|
|
88
88
|
children: label
|
|
89
89
|
}
|
|
90
90
|
),
|
|
@@ -113,7 +113,7 @@ const Input = React.forwardRef(
|
|
|
113
113
|
htmlFor: id,
|
|
114
114
|
className: cn(
|
|
115
115
|
"absolute pointer-events-none transition-all duration-200 select-none truncate max-w-full z-10",
|
|
116
|
-
isFloatingActive ? "-top-2.5 left-0 px-1 bg-
|
|
116
|
+
isFloatingActive ? "-top-2.5 left-0 px-1 bg-grey-50 dark:bg-grey-900 text-caption-lg font-semibold leading-none rounded-xs" : "top-1/2 -translate-y-1/2 left-0 text-body-2 text-muted-foreground leading-none"
|
|
117
117
|
),
|
|
118
118
|
style: {
|
|
119
119
|
color: isFloatingActive ? isError ? "var(--color-destructive)" : "var(--color-primary)" : void 0
|
|
@@ -136,7 +136,7 @@ const Input = React.forwardRef(
|
|
|
136
136
|
placeholder: floating && !isFloatingActive ? void 0 : placeholder,
|
|
137
137
|
className: cn(
|
|
138
138
|
inputFieldVariants(),
|
|
139
|
-
"text-
|
|
139
|
+
"text-body-2 leading-normal"
|
|
140
140
|
),
|
|
141
141
|
"aria-invalid": isError ? "true" : void 0,
|
|
142
142
|
"aria-describedby": errorMessage || helperText ? `${id}-desc` : void 0,
|
|
@@ -175,7 +175,7 @@ const Input = React.forwardRef(
|
|
|
175
175
|
{
|
|
176
176
|
id: `${id}-desc`,
|
|
177
177
|
className: cn(
|
|
178
|
-
"text-
|
|
178
|
+
"text-body-3 mt-1 flex items-center gap-1.5 text-left",
|
|
179
179
|
isError ? "text-destructive font-medium" : "text-muted-foreground"
|
|
180
180
|
),
|
|
181
181
|
children: [
|
|
@@ -5,15 +5,15 @@ const inputWrapperVariants = cva(
|
|
|
5
5
|
{
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
|
-
outline: "border-grey-300 dark:border-grey-700 bg-
|
|
9
|
-
filled: "border-transparent bg-grey-100 dark:bg-grey-800 focus-within:bg-
|
|
8
|
+
outline: "border-grey-300 dark:border-grey-700 bg-grey-50 dark:bg-grey-900 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary",
|
|
9
|
+
filled: "border-transparent bg-grey-100 dark:bg-grey-800 focus-within:bg-grey-50 dark:focus-within:bg-grey-900 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary",
|
|
10
10
|
subtle: "border-grey-200 dark:border-grey-800 bg-grey-50 dark:bg-grey-900/50 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary"
|
|
11
11
|
},
|
|
12
12
|
size: {
|
|
13
|
-
sm: "h-9 px-2.5 text-
|
|
14
|
-
default: "h-11 px-3.5 text-
|
|
15
|
-
md: "h-11 px-3.5 text-
|
|
16
|
-
lg: "h-[52px] px-4 text-
|
|
13
|
+
sm: "h-9 px-2.5 text-body-3",
|
|
14
|
+
default: "h-11 px-3.5 text-body-2",
|
|
15
|
+
md: "h-11 px-3.5 text-body-2",
|
|
16
|
+
lg: "h-[52px] px-4 text-body-1"
|
|
17
17
|
},
|
|
18
18
|
isError: {
|
|
19
19
|
true: "border-destructive focus-within:border-destructive focus-within:ring-1 focus-within:ring-destructive text-destructive",
|
|
@@ -5,10 +5,10 @@ const labelVariants = cva(
|
|
|
5
5
|
{
|
|
6
6
|
variants: {
|
|
7
7
|
size: {
|
|
8
|
-
sm: "text-
|
|
9
|
-
default: "text-
|
|
10
|
-
md: "text-
|
|
11
|
-
lg: "text-
|
|
8
|
+
sm: "text-body-3",
|
|
9
|
+
default: "text-body-2",
|
|
10
|
+
md: "text-body-2",
|
|
11
|
+
lg: "text-body-1"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
defaultVariants: {
|
|
@@ -7,19 +7,19 @@ const linkButtonVariants = cva(
|
|
|
7
7
|
variant: {
|
|
8
8
|
default: "text-primary underline-offset-4 hover:underline font-medium p-0 h-auto active:scale-100",
|
|
9
9
|
link: "text-primary underline-offset-4 hover:underline font-medium p-0 h-auto active:scale-100",
|
|
10
|
-
primary: "bg-primary text-
|
|
10
|
+
primary: "bg-primary text-grey-50 hover:bg-primary-600 hover:brightness-105 hover:shadow-md active:bg-primary-700 active:brightness-95 shadow-sm active:scale-[0.98] font-semibold whitespace-nowrap",
|
|
11
11
|
secondary: "bg-secondary text-secondary-foreground hover:bg-bg-subtle hover:brightness-105 active:bg-secondary-foreground/10 active:brightness-95 shadow-xs hover:shadow-sm active:scale-[0.98] font-semibold whitespace-nowrap",
|
|
12
12
|
outline: "border border-grey-300 dark:border-grey-700 bg-transparent text-foreground hover:bg-grey-100 dark:hover:bg-grey-900 active:bg-grey-200 dark:active:bg-grey-800 hover:border-grey-400 dark:hover:border-grey-600 active:scale-[0.98] font-semibold whitespace-nowrap",
|
|
13
13
|
ghost: "text-foreground hover:bg-grey-100 dark:hover:bg-grey-900 active:bg-grey-200 dark:active:bg-grey-800 active:scale-[0.98] font-semibold whitespace-nowrap",
|
|
14
|
-
destructive: "bg-destructive text-
|
|
14
|
+
destructive: "bg-destructive text-grey-50 hover:bg-destructive/90 hover:brightness-105 hover:shadow-md active:brightness-95 shadow-sm active:scale-[0.98] font-semibold whitespace-nowrap",
|
|
15
15
|
muted: "text-grey-600 dark:text-grey-400 hover:text-foreground underline-offset-4 hover:underline font-normal p-0 h-auto active:scale-100",
|
|
16
16
|
subtle: "text-foreground/80 hover:text-foreground underline-offset-4 hover:underline font-normal p-0 h-auto active:scale-100"
|
|
17
17
|
},
|
|
18
18
|
size: {
|
|
19
|
-
sm: "text-
|
|
20
|
-
default: "text-
|
|
21
|
-
md: "text-
|
|
22
|
-
lg: "text-
|
|
19
|
+
sm: "text-body-3 gap-1",
|
|
20
|
+
default: "text-body-2 gap-1.5",
|
|
21
|
+
md: "text-body-2 gap-1.5",
|
|
22
|
+
lg: "text-body-1 gap-2",
|
|
23
23
|
icon: "p-1 shrink-0"
|
|
24
24
|
},
|
|
25
25
|
disabled: {
|
|
@@ -59,7 +59,7 @@ const ListItemText = React.forwardRef(
|
|
|
59
59
|
...props,
|
|
60
60
|
children: [
|
|
61
61
|
primary && /* @__PURE__ */ jsx("div", { className: "font-medium text-foreground truncate", children: primary }),
|
|
62
|
-
secondary && /* @__PURE__ */ jsx("div", { className: "text-
|
|
62
|
+
secondary && /* @__PURE__ */ jsx("div", { className: "text-body-3 text-muted-foreground truncate mt-0.5", children: secondary }),
|
|
63
63
|
children
|
|
64
64
|
]
|
|
65
65
|
}
|
|
@@ -17,9 +17,9 @@ const listItemVariants = cva(
|
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
19
19
|
density: {
|
|
20
|
-
sm: "py-2 px-3 text-
|
|
21
|
-
default: "py-3 px-4 text-
|
|
22
|
-
lg: "py-4 px-5 text-
|
|
20
|
+
sm: "py-2 px-3 text-body-3",
|
|
21
|
+
default: "py-3 px-4 text-body-2",
|
|
22
|
+
lg: "py-4 px-5 text-body-1"
|
|
23
23
|
},
|
|
24
24
|
interactive: {
|
|
25
25
|
true: "cursor-pointer hover:bg-grey-100/70 dark:hover:bg-grey-800/60 active:bg-grey-200/50",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { cva } from 'class-variance-authority';
|
|
2
2
|
|
|
3
3
|
const navFooterRootVariants = cva(
|
|
4
|
-
"w-full bg-
|
|
4
|
+
"w-full bg-surface-dark text-bg-2 relative border-t border-grey-1000/20 transition-colors select-text",
|
|
5
5
|
{
|
|
6
6
|
variants: {
|
|
7
7
|
tone: {
|
|
8
|
-
dark: "bg-
|
|
9
|
-
light: "bg-[var(--color-bg-2,#F7F1E6)] text-[var(--color-grey-800,#3C3C3C)] border-t border-
|
|
8
|
+
dark: "bg-surface-dark text-bg-2",
|
|
9
|
+
light: "bg-[var(--color-bg-2,#F7F1E6)] text-[var(--color-grey-800,#3C3C3C)] border-t border-border-warm"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
defaultVariants: {
|
|
@@ -33,22 +33,22 @@ const navFooterContainerVariants = cva(
|
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
const footerSectionTitleVariants = cva(
|
|
36
|
-
"font-title text-
|
|
36
|
+
"font-title! text-body-3 font-semibold text-primary-200 uppercase tracking-[0.14em] select-none flex items-center justify-between w-full"
|
|
37
37
|
);
|
|
38
38
|
const footerNavLinkVariants = cva(
|
|
39
|
-
"
|
|
39
|
+
"text-body-2 text-bg-2/85 hover:text-primary-200 hover:opacity-100 transition-colors inline-flex items-center gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200/60 rounded py-0.5 select-none"
|
|
40
40
|
);
|
|
41
41
|
const footerSocialButtonVariants = cva(
|
|
42
|
-
"inline-flex items-center justify-center text-
|
|
42
|
+
"inline-flex items-center justify-center text-primary-200 hover:text-bg-2 hover:bg-grey-50/5 p-2 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200/60 active:scale-95"
|
|
43
43
|
);
|
|
44
44
|
const footerOfficeBlockVariants = cva(
|
|
45
|
-
"flex flex-col gap-1.5 text-
|
|
45
|
+
"flex flex-col gap-1.5 text-body-2 text-bg-2/85 leading-relaxed"
|
|
46
46
|
);
|
|
47
47
|
const footerLegalBarVariants = cva(
|
|
48
|
-
"border-t border-
|
|
48
|
+
"border-t border-grey-50/10 py-5 sm:py-6 flex flex-col sm:flex-row items-center justify-between gap-4 text-body-3 text-sand-muted"
|
|
49
49
|
);
|
|
50
50
|
const footerLegalLinkVariants = cva(
|
|
51
|
-
"text-
|
|
51
|
+
"text-body-3 text-sand-muted hover:text-grey-50 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-200/60 rounded px-1"
|
|
52
52
|
);
|
|
53
53
|
|
|
54
54
|
export { footerLegalBarVariants, footerLegalLinkVariants, footerNavLinkVariants, footerOfficeBlockVariants, footerSectionTitleVariants, footerSocialButtonVariants, navFooterContainerVariants, navFooterRootVariants };
|
|
@@ -60,7 +60,7 @@ const FooterBrand = ({
|
|
|
60
60
|
href: resolvedHref,
|
|
61
61
|
"aria-label": alt,
|
|
62
62
|
onClick,
|
|
63
|
-
className: "inline-flex items-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
63
|
+
className: "inline-flex items-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200/50 rounded-md transition-opacity hover:opacity-90",
|
|
64
64
|
"data-slot": "footer-brand-link",
|
|
65
65
|
children: logoContent
|
|
66
66
|
}
|
|
@@ -71,7 +71,7 @@ const FooterBrand = ({
|
|
|
71
71
|
"aria-label": alt,
|
|
72
72
|
onClick,
|
|
73
73
|
"data-cross-zone": requiresCrossZone ? "true" : void 0,
|
|
74
|
-
className: "inline-flex items-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
74
|
+
className: "inline-flex items-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200/50 rounded-md transition-opacity hover:opacity-90",
|
|
75
75
|
"data-slot": "footer-brand-link",
|
|
76
76
|
children: logoContent
|
|
77
77
|
}
|
|
@@ -86,7 +86,7 @@ const FooterBrand = ({
|
|
|
86
86
|
description && /* @__PURE__ */ jsx(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
|
-
className: "text-
|
|
89
|
+
className: "text-body-2 text-sand-muted leading-relaxed select-text",
|
|
90
90
|
"data-slot": "footer-brand-description",
|
|
91
91
|
children: typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: "whitespace-pre-line m-0", children: description }) : description
|
|
92
92
|
}
|
|
@@ -43,7 +43,7 @@ const FooterLegalBar = ({
|
|
|
43
43
|
"data-slot": "footer-legal-bar",
|
|
44
44
|
children: [
|
|
45
45
|
/* @__PURE__ */ jsx("div", { className: "select-text", "data-slot": "footer-copyright", children: typeof copyright === "string" ? /* @__PURE__ */ jsx("span", { children: copyright }) : copyright }),
|
|
46
|
-
extra && /* @__PURE__ */ jsx("div", { className: "text-
|
|
46
|
+
extra && /* @__PURE__ */ jsx("div", { className: "text-body-3 text-sand-muted", children: extra }),
|
|
47
47
|
links && links.length > 0 && /* @__PURE__ */ jsx(
|
|
48
48
|
"ul",
|
|
49
49
|
{
|
|
@@ -31,7 +31,7 @@ const FooterNavSection = ({
|
|
|
31
31
|
const linkContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
32
|
item.icon && /* @__PURE__ */ jsx("span", { className: "shrink-0", children: item.icon }),
|
|
33
33
|
/* @__PURE__ */ jsx("span", { children: item.label }),
|
|
34
|
-
item.badge && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center px-1.5 py-0.2 rounded text-
|
|
34
|
+
item.badge && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center px-1.5 py-0.2 rounded text-caption font-bold bg-primary-200 text-surface-dark uppercase tracking-wider", children: item.badge })
|
|
35
35
|
] });
|
|
36
36
|
const linkProps = {
|
|
37
37
|
href: resolvedHref,
|
|
@@ -59,7 +59,7 @@ const FooterNavSection = ({
|
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
61
|
className: cn(
|
|
62
|
-
"flex flex-col border-b border-
|
|
62
|
+
"flex flex-col border-b border-grey-50/10 md:border-b-0 py-3 md:py-0 transition-colors",
|
|
63
63
|
sectionClass,
|
|
64
64
|
className
|
|
65
65
|
),
|
|
@@ -77,7 +77,7 @@ const FooterNavSection = ({
|
|
|
77
77
|
onClick: onToggle,
|
|
78
78
|
className: cn(
|
|
79
79
|
footerSectionTitleVariants(),
|
|
80
|
-
"py-2 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
80
|
+
"py-2 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200/50 rounded"
|
|
81
81
|
),
|
|
82
82
|
"data-slot": "footer-section-accordion-trigger",
|
|
83
83
|
children: [
|
|
@@ -89,7 +89,7 @@ const FooterNavSection = ({
|
|
|
89
89
|
initial: false,
|
|
90
90
|
animate: shouldAnimate ? isOpen ? "expanded" : "collapsed" : void 0,
|
|
91
91
|
className: cn(
|
|
92
|
-
"shrink-0 text-
|
|
92
|
+
"shrink-0 text-primary-200 transition-transform duration-200",
|
|
93
93
|
!shouldAnimate && (isOpen ? "rotate-180" : "rotate-0"),
|
|
94
94
|
motionClass
|
|
95
95
|
),
|
|
@@ -45,13 +45,13 @@ const FooterNewsletter = ({
|
|
|
45
45
|
className: cn("flex flex-col gap-3 max-w-[420px]", newsletterClass, className),
|
|
46
46
|
"data-slot": "footer-newsletter",
|
|
47
47
|
children: [
|
|
48
|
-
title && /* @__PURE__ */ jsx("div", { className: "font-title text-
|
|
49
|
-
description && /* @__PURE__ */ jsx("p", { className: "text-
|
|
50
|
-
currentStatus === "success" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-3 rounded-lg bg-
|
|
48
|
+
title && /* @__PURE__ */ jsx("div", { className: "font-title! text-body-3 font-semibold text-primary-200 uppercase tracking-[0.14em]", children: title }),
|
|
49
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-body-2 text-sand-muted m-0 leading-relaxed", children: description }),
|
|
50
|
+
currentStatus === "success" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-3 rounded-lg bg-success/20 border border-success/40 text-success text-body-2", children: [
|
|
51
51
|
/* @__PURE__ */ jsx(CheckCircle, { size: 18, className: "shrink-0" }),
|
|
52
52
|
/* @__PURE__ */ jsx("span", { children: successMessage })
|
|
53
53
|
] }) : /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: "flex flex-col gap-2", children: [
|
|
54
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-lg bg-
|
|
54
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-lg bg-grey-1000/40 border border-grey-50/15 focus-within:border-primary-200 focus-within:ring-2 focus-within:ring-primary-200/30 transition-all p-1", children: [
|
|
55
55
|
/* @__PURE__ */ jsx(
|
|
56
56
|
"input",
|
|
57
57
|
{
|
|
@@ -64,7 +64,7 @@ const FooterNewsletter = ({
|
|
|
64
64
|
placeholder,
|
|
65
65
|
required: true,
|
|
66
66
|
disabled: currentStatus === "loading",
|
|
67
|
-
className: "flex-1 bg-transparent px-3 py-2 text-
|
|
67
|
+
className: "flex-1 bg-transparent px-3 py-2 text-body-2 text-bg-2 placeholder:text-sand-muted/60 focus:outline-none disabled:opacity-50",
|
|
68
68
|
"data-slot": "footer-newsletter-input"
|
|
69
69
|
}
|
|
70
70
|
),
|
|
@@ -73,7 +73,7 @@ const FooterNewsletter = ({
|
|
|
73
73
|
{
|
|
74
74
|
type: "submit",
|
|
75
75
|
disabled: currentStatus === "loading" || !email,
|
|
76
|
-
className: "inline-flex items-center justify-center gap-1.5 px-4 py-2 rounded-md bg-
|
|
76
|
+
className: "inline-flex items-center justify-center gap-1.5 px-4 py-2 rounded-md bg-primary-200 text-surface-dark font-title! text-body-3 font-semibold uppercase tracking-wider hover:bg-primary-200/90 transition-all disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer shrink-0",
|
|
77
77
|
"data-slot": "footer-newsletter-button",
|
|
78
78
|
children: currentStatus === "loading" ? /* @__PURE__ */ jsx(Loader2, { size: 16, className: "animate-spin" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
79
|
/* @__PURE__ */ jsx("span", { children: buttonText }),
|
|
@@ -82,7 +82,7 @@ const FooterNewsletter = ({
|
|
|
82
82
|
}
|
|
83
83
|
)
|
|
84
84
|
] }),
|
|
85
|
-
currentStatus === "error" && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-
|
|
85
|
+
currentStatus === "error" && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-body-3 text-destructive", children: [
|
|
86
86
|
/* @__PURE__ */ jsx(AlertCircle, { size: 14, className: "shrink-0" }),
|
|
87
87
|
/* @__PURE__ */ jsx("span", { children: errorMessage })
|
|
88
88
|
] })
|
|
@@ -21,7 +21,7 @@ const FooterOffice = ({ office, className }) => {
|
|
|
21
21
|
title && /* @__PURE__ */ jsx(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
className: "font-bold text-
|
|
24
|
+
className: "font-bold text-body-2 text-bg-2/90 select-text",
|
|
25
25
|
"data-slot": "footer-office-title",
|
|
26
26
|
children: title
|
|
27
27
|
}
|
|
@@ -29,17 +29,17 @@ const FooterOffice = ({ office, className }) => {
|
|
|
29
29
|
address && /* @__PURE__ */ jsx(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
|
-
className: cn(footerOfficeBlockVariants(), "select-text text-
|
|
32
|
+
className: cn(footerOfficeBlockVariants(), "select-text text-body-2"),
|
|
33
33
|
"data-slot": "footer-office-address",
|
|
34
34
|
children: typeof address === "string" ? /* @__PURE__ */ jsx("p", { className: "m-0 leading-relaxed whitespace-pre-line", children: address }) : address
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
|
-
(email || phone) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 pt-1 text-
|
|
37
|
+
(email || phone) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 pt-1 text-body-3 text-sand-muted", children: [
|
|
38
38
|
email && /* @__PURE__ */ jsx(
|
|
39
39
|
"a",
|
|
40
40
|
{
|
|
41
41
|
href: `mailto:${email}`,
|
|
42
|
-
className: "hover:text-
|
|
42
|
+
className: "hover:text-primary-200 transition-colors inline-block select-text",
|
|
43
43
|
"data-slot": "footer-office-email",
|
|
44
44
|
children: email
|
|
45
45
|
}
|
|
@@ -48,7 +48,7 @@ const FooterOffice = ({ office, className }) => {
|
|
|
48
48
|
"a",
|
|
49
49
|
{
|
|
50
50
|
href: `tel:${phone.replace(/\s+/g, "")}`,
|
|
51
|
-
className: "hover:text-
|
|
51
|
+
className: "hover:text-primary-200 transition-colors inline-block select-text",
|
|
52
52
|
"data-slot": "footer-office-phone",
|
|
53
53
|
children: phone
|
|
54
54
|
}
|
|
@@ -14,10 +14,10 @@ const FooterSocial = ({
|
|
|
14
14
|
}) => {
|
|
15
15
|
if (!links || links.length === 0) return null;
|
|
16
16
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-3", className), "data-slot": "footer-social", children: [
|
|
17
|
-
title && /* @__PURE__ */ jsx("div", { className: "text-
|
|
17
|
+
title && /* @__PURE__ */ jsx("div", { className: "text-body-3 font-semibold text-primary-200 uppercase tracking-[0.14em] font-title!", children: title }),
|
|
18
18
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-4 sm:gap-6 flex-wrap", "data-slot": "footer-social-icons", children: links.map((link) => {
|
|
19
19
|
const platformKey = link.name.toLowerCase();
|
|
20
|
-
const iconElement = link.icon ?? DefaultSocialIcons[platformKey] ?? /* @__PURE__ */ jsx("span", { className: "text-
|
|
20
|
+
const iconElement = link.icon ?? DefaultSocialIcons[platformKey] ?? /* @__PURE__ */ jsx("span", { className: "text-body-2 uppercase font-bold", children: link.name.slice(0, 2) });
|
|
21
21
|
const defaultAria = `Follow us on ${link.name.charAt(0).toUpperCase() + link.name.slice(1)}`;
|
|
22
22
|
return /* @__PURE__ */ jsx(
|
|
23
23
|
motion.a,
|
|
@@ -33,7 +33,7 @@ const FooterSocial = ({
|
|
|
33
33
|
whileTap: shouldAnimate ? "tap" : void 0,
|
|
34
34
|
className: cn(
|
|
35
35
|
footerSocialButtonVariants(),
|
|
36
|
-
"relative p-1.5 text-
|
|
36
|
+
"relative p-1.5 text-primary-200 hover:text-bg-2 transition-colors",
|
|
37
37
|
motionClass,
|
|
38
38
|
link.className
|
|
39
39
|
),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavHeader.d.ts","sourceRoot":"","sources":["../../../src/components/NavHeader/NavHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EACV,cAAc,EAMf,MAAM,mBAAmB,CAAC;AAa3B,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"NavHeader.d.ts","sourceRoot":"","sources":["../../../src/components/NavHeader/NavHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EACV,cAAc,EAMf,MAAM,mBAAmB,CAAC;AAa3B,eAAO,MAAM,SAAS,oFA6pBrB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,MAAM,oFAAY,CAAC"}
|
|
@@ -49,6 +49,8 @@ const NavHeader = React.forwardRef(
|
|
|
49
49
|
profileAction: shorthandProfileAction,
|
|
50
50
|
wishlistAction: shorthandWishlistAction,
|
|
51
51
|
cartAction: shorthandCartAction,
|
|
52
|
+
authMode: shorthandAuthMode,
|
|
53
|
+
onAuthTrigger: shorthandOnAuthTrigger,
|
|
52
54
|
mobileTabSlider: shorthandMobileTabSlider,
|
|
53
55
|
mobileSearchMode: shorthandMobileSearchMode,
|
|
54
56
|
mobileActiveItemId: shorthandMobileActiveItemId,
|
|
@@ -95,6 +97,8 @@ const NavHeader = React.forwardRef(
|
|
|
95
97
|
const profileAction = shorthandProfileAction ?? actionsConfig.profile;
|
|
96
98
|
const wishlistAction = shorthandWishlistAction ?? actionsConfig.wishlist;
|
|
97
99
|
const cartAction = shorthandCartAction ?? actionsConfig.cart;
|
|
100
|
+
const authMode = shorthandAuthMode ?? actionsConfig.authMode ?? "modal";
|
|
101
|
+
const onAuthTrigger = shorthandOnAuthTrigger ?? actionsConfig.onAuthTrigger;
|
|
98
102
|
const mobileConfig = React.useMemo(
|
|
99
103
|
() => mobile ?? {},
|
|
100
104
|
[mobile]
|
|
@@ -408,6 +412,8 @@ const NavHeader = React.forwardRef(
|
|
|
408
412
|
profileAction,
|
|
409
413
|
wishlistAction,
|
|
410
414
|
cartAction,
|
|
415
|
+
authMode,
|
|
416
|
+
onAuthTrigger,
|
|
411
417
|
rightContent,
|
|
412
418
|
shouldAnimate,
|
|
413
419
|
motionClass,
|
|
@@ -457,11 +463,11 @@ const NavHeader = React.forwardRef(
|
|
|
457
463
|
type: "button",
|
|
458
464
|
onClick: () => setIsMobileSearchOpen(true),
|
|
459
465
|
"aria-label": "Open search drawer",
|
|
460
|
-
className: "group flex flex-col items-center justify-center min-w-[36px] sm:min-w-[40px] lg:min-w-[52px] text-
|
|
466
|
+
className: "group flex flex-col items-center justify-center min-w-[36px] sm:min-w-[40px] lg:min-w-[52px] text-grey-800 hover:text-primary transition-colors py-1 px-1 lg:px-1.5 cursor-pointer",
|
|
461
467
|
"data-slot": "nav-mobile-search-icon-trigger",
|
|
462
468
|
children: [
|
|
463
469
|
/* @__PURE__ */ jsx(Search, { size: 22, className: "shrink-0 stroke-[1.8]" }),
|
|
464
|
-
/* @__PURE__ */ jsx("span", { className: "hidden lg:inline font-
|
|
470
|
+
/* @__PURE__ */ jsx("span", { className: "hidden lg:inline font-bold text-caption tracking-[0.0926em] uppercase", children: "SEARCH" })
|
|
465
471
|
]
|
|
466
472
|
}
|
|
467
473
|
),
|
|
@@ -475,6 +481,8 @@ const NavHeader = React.forwardRef(
|
|
|
475
481
|
profileAction,
|
|
476
482
|
wishlistAction,
|
|
477
483
|
cartAction,
|
|
484
|
+
authMode,
|
|
485
|
+
onAuthTrigger,
|
|
478
486
|
rightContent,
|
|
479
487
|
shouldAnimate,
|
|
480
488
|
motionClass,
|
|
@@ -491,7 +499,7 @@ const NavHeader = React.forwardRef(
|
|
|
491
499
|
type: "button",
|
|
492
500
|
onClick: () => setIsMobileSearchOpen(true),
|
|
493
501
|
"aria-label": "Open search drawer",
|
|
494
|
-
className: "w-full h-10 px-4 flex items-center gap-2.5 rounded-full bg-
|
|
502
|
+
className: "w-full h-10 px-4 flex items-center gap-2.5 rounded-full bg-grey-50 border border-border-warm text-left text-body-2 text-grey-400 hover:border-grey-400 shadow-xs transition-all cursor-pointer select-none",
|
|
495
503
|
"data-slot": "nav-mobile-search-pill",
|
|
496
504
|
children: [
|
|
497
505
|
/* @__PURE__ */ jsx(Search, { size: 18, className: "text-grey-500 shrink-0" }),
|