@almadar/ui 4.32.0 → 4.34.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/avl/index.cjs +235 -261
- package/dist/avl/index.css +1 -1
- package/dist/avl/index.js +235 -261
- package/dist/components/index.cjs +226 -236
- package/dist/components/index.css +1 -1
- package/dist/components/index.js +226 -236
- package/dist/docs/index.cjs +2 -2
- package/dist/docs/index.js +2 -2
- package/dist/marketing/index.cjs +2 -2
- package/dist/marketing/index.js +2 -2
- package/dist/providers/index.cjs +226 -236
- package/dist/providers/index.css +1 -1
- package/dist/providers/index.js +226 -236
- package/dist/runtime/createClientEffectHandlers.d.ts +1 -9
- package/dist/runtime/index.cjs +231 -257
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/index.js +231 -257
- package/package.json +14 -8
package/dist/components/index.js
CHANGED
|
@@ -8929,9 +8929,9 @@ var init_ScaledDiagram = __esm({
|
|
|
8929
8929
|
}
|
|
8930
8930
|
});
|
|
8931
8931
|
|
|
8932
|
-
// node_modules
|
|
8932
|
+
// node_modules/katex/dist/katex.min.css
|
|
8933
8933
|
var init_katex_min = __esm({
|
|
8934
|
-
"node_modules
|
|
8934
|
+
"node_modules/katex/dist/katex.min.css"() {
|
|
8935
8935
|
}
|
|
8936
8936
|
});
|
|
8937
8937
|
var MarkdownContent;
|
|
@@ -16990,265 +16990,255 @@ var init_DashboardLayout = __esm({
|
|
|
16990
16990
|
} : null);
|
|
16991
16991
|
const { t } = useTranslate();
|
|
16992
16992
|
const handleSignOut = onSignOutProp || authSignOut;
|
|
16993
|
-
return /* @__PURE__ */ jsxs(
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17004
|
-
|
|
16993
|
+
return /* @__PURE__ */ jsxs(Box, { className: "min-h-screen bg-background dark:bg-background", children: [
|
|
16994
|
+
sidebarOpen && /* @__PURE__ */ jsx(
|
|
16995
|
+
Box,
|
|
16996
|
+
{
|
|
16997
|
+
className: "fixed inset-0 bg-foreground/50 dark:bg-foreground/70 z-20 lg:hidden",
|
|
16998
|
+
onClick: () => setSidebarOpen(false)
|
|
16999
|
+
}
|
|
17000
|
+
),
|
|
17001
|
+
/* @__PURE__ */ jsxs(
|
|
17002
|
+
Box,
|
|
17003
|
+
{
|
|
17004
|
+
as: "aside",
|
|
17005
|
+
className: cn(
|
|
17006
|
+
"fixed inset-y-0 left-0 z-30 w-64 bg-card dark:bg-card border-r border-border dark:border-border",
|
|
17007
|
+
"transform transition-transform duration-200 ease-in-out lg:translate-x-0",
|
|
17008
|
+
sidebarOpen ? "translate-x-0" : "-translate-x-full"
|
|
17005
17009
|
),
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
"
|
|
17013
|
-
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17010
|
+
children: [
|
|
17011
|
+
/* @__PURE__ */ jsxs(
|
|
17012
|
+
HStack,
|
|
17013
|
+
{
|
|
17014
|
+
align: "center",
|
|
17015
|
+
justify: "between",
|
|
17016
|
+
className: "h-16 px-4 border-b border-border dark:border-border",
|
|
17017
|
+
children: [
|
|
17018
|
+
/* @__PURE__ */ jsxs(Link, { to: "/", className: "flex items-center gap-2", children: [
|
|
17019
|
+
logo || /* @__PURE__ */ jsx(Box, { className: "w-8 h-8 bg-primary-600 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
17020
|
+
Typography,
|
|
17021
|
+
{
|
|
17022
|
+
variant: "small",
|
|
17023
|
+
className: "text-white font-bold text-sm",
|
|
17024
|
+
as: "span",
|
|
17025
|
+
children: appName.charAt(0).toUpperCase()
|
|
17026
|
+
}
|
|
17027
|
+
) }),
|
|
17028
|
+
/* @__PURE__ */ jsx(
|
|
17029
|
+
Typography,
|
|
17030
|
+
{
|
|
17031
|
+
variant: "label",
|
|
17032
|
+
className: "font-semibold text-foreground dark:text-foreground",
|
|
17033
|
+
as: "span",
|
|
17034
|
+
children: appName
|
|
17035
|
+
}
|
|
17036
|
+
)
|
|
17037
|
+
] }),
|
|
17038
|
+
/* @__PURE__ */ jsx(
|
|
17039
|
+
Button,
|
|
17040
|
+
{
|
|
17041
|
+
variant: "ghost",
|
|
17042
|
+
className: "lg:hidden p-2 rounded-md hover:bg-muted dark:hover:bg-muted text-muted-foreground dark:text-muted-foreground",
|
|
17043
|
+
onClick: () => setSidebarOpen(false),
|
|
17044
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-5 w-5" })
|
|
17045
|
+
}
|
|
17046
|
+
)
|
|
17047
|
+
]
|
|
17048
|
+
}
|
|
17049
|
+
),
|
|
17050
|
+
/* @__PURE__ */ jsx(
|
|
17051
|
+
VStack,
|
|
17052
|
+
{
|
|
17053
|
+
as: "nav",
|
|
17054
|
+
gap: "none",
|
|
17055
|
+
className: "flex-1 px-3 py-4 space-y-1 overflow-y-auto",
|
|
17056
|
+
children: navItems.map((item) => /* @__PURE__ */ jsx(
|
|
17057
|
+
NavLink,
|
|
17020
17058
|
{
|
|
17021
|
-
|
|
17022
|
-
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17059
|
+
item,
|
|
17060
|
+
currentPath: location.pathname
|
|
17061
|
+
},
|
|
17062
|
+
item.href
|
|
17063
|
+
))
|
|
17064
|
+
}
|
|
17065
|
+
),
|
|
17066
|
+
sidebarFooter && /* @__PURE__ */ jsx(Box, { className: "p-4 border-t border-border dark:border-border", children: sidebarFooter })
|
|
17067
|
+
]
|
|
17068
|
+
}
|
|
17069
|
+
),
|
|
17070
|
+
/* @__PURE__ */ jsxs(Box, { className: "lg:pl-64", children: [
|
|
17071
|
+
/* @__PURE__ */ jsx(
|
|
17072
|
+
Box,
|
|
17073
|
+
{
|
|
17074
|
+
as: "header",
|
|
17075
|
+
className: "sticky top-0 z-20 h-16 bg-card dark:bg-card border-b border-border dark:border-border",
|
|
17076
|
+
children: /* @__PURE__ */ jsxs(
|
|
17077
|
+
HStack,
|
|
17078
|
+
{
|
|
17079
|
+
align: "center",
|
|
17080
|
+
justify: "between",
|
|
17081
|
+
className: "h-full px-4 gap-4",
|
|
17082
|
+
children: [
|
|
17083
|
+
/* @__PURE__ */ jsx(
|
|
17084
|
+
Button,
|
|
17085
|
+
{
|
|
17086
|
+
variant: "ghost",
|
|
17087
|
+
className: "lg:hidden p-2 rounded-md hover:bg-muted dark:hover:bg-muted text-muted-foreground dark:text-muted-foreground touch-manipulation min-h-[44px] min-w-[44px] flex items-center justify-center",
|
|
17088
|
+
onClick: () => setSidebarOpen(true),
|
|
17089
|
+
"aria-label": "Open sidebar",
|
|
17090
|
+
children: /* @__PURE__ */ jsx(Menu$1, { className: "h-5 w-5" })
|
|
17091
|
+
}
|
|
17092
|
+
),
|
|
17093
|
+
searchEnabled && /* @__PURE__ */ jsx(Box, { className: "hidden sm:block flex-1 max-w-md", children: /* @__PURE__ */ jsxs(Box, { className: "relative", children: [
|
|
17094
|
+
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground dark:text-muted-foreground" }),
|
|
17095
|
+
/* @__PURE__ */ jsx(
|
|
17096
|
+
Input,
|
|
17097
|
+
{
|
|
17098
|
+
type: "search",
|
|
17099
|
+
placeholder: t("common.search"),
|
|
17100
|
+
className: "pl-10 w-full",
|
|
17101
|
+
onKeyDown: (e) => {
|
|
17102
|
+
if (e.key === "Enter") {
|
|
17103
|
+
handleSearchSubmit(e.target.value);
|
|
17042
17104
|
}
|
|
17043
|
-
)
|
|
17044
|
-
] }),
|
|
17045
|
-
/* @__PURE__ */ jsx(
|
|
17046
|
-
Button,
|
|
17047
|
-
{
|
|
17048
|
-
variant: "ghost",
|
|
17049
|
-
className: "lg:hidden p-2 rounded-md hover:bg-muted dark:hover:bg-muted text-muted-foreground dark:text-muted-foreground",
|
|
17050
|
-
onClick: () => setSidebarOpen(false),
|
|
17051
|
-
children: /* @__PURE__ */ jsx(X, { className: "h-5 w-5" })
|
|
17052
17105
|
}
|
|
17053
|
-
|
|
17054
|
-
|
|
17055
|
-
}
|
|
17056
|
-
|
|
17057
|
-
|
|
17058
|
-
|
|
17059
|
-
|
|
17060
|
-
|
|
17061
|
-
gap: "none",
|
|
17062
|
-
className: "flex-1 px-3 py-4 space-y-1 overflow-y-auto",
|
|
17063
|
-
children: navItems.map((item) => /* @__PURE__ */ jsx(
|
|
17064
|
-
NavLink,
|
|
17106
|
+
}
|
|
17107
|
+
)
|
|
17108
|
+
] }) }),
|
|
17109
|
+
/* @__PURE__ */ jsxs(HStack, { align: "center", gap: "xs", children: [
|
|
17110
|
+
headerActions,
|
|
17111
|
+
showThemeToggle && /* @__PURE__ */ jsx(ThemeToggle, {}),
|
|
17112
|
+
topBarActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
17113
|
+
Button,
|
|
17065
17114
|
{
|
|
17066
|
-
|
|
17067
|
-
|
|
17115
|
+
variant: "ghost",
|
|
17116
|
+
className: "relative p-2 rounded-full hover:bg-muted dark:hover:bg-muted",
|
|
17117
|
+
onClick: () => handleTopBarActionClick(action.event),
|
|
17118
|
+
"aria-label": action.label ?? action.icon,
|
|
17119
|
+
children: [
|
|
17120
|
+
/* @__PURE__ */ jsx(Icon, { name: action.icon, className: "h-5 w-5 text-muted-foreground dark:text-muted-foreground" }),
|
|
17121
|
+
action.badge !== void 0 && action.badge !== null && action.badge !== 0 && action.badge !== "" && /* @__PURE__ */ jsx(
|
|
17122
|
+
Box,
|
|
17123
|
+
{
|
|
17124
|
+
as: "span",
|
|
17125
|
+
className: cn(
|
|
17126
|
+
"absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 rounded-full text-[10px] font-semibold text-white flex items-center justify-center",
|
|
17127
|
+
action.variant === "danger" ? "bg-error" : action.variant === "primary" ? "bg-primary" : "bg-foreground"
|
|
17128
|
+
),
|
|
17129
|
+
children: action.badge
|
|
17130
|
+
}
|
|
17131
|
+
)
|
|
17132
|
+
]
|
|
17068
17133
|
},
|
|
17069
|
-
|
|
17070
|
-
))
|
|
17071
|
-
|
|
17072
|
-
|
|
17073
|
-
|
|
17074
|
-
|
|
17075
|
-
|
|
17076
|
-
|
|
17077
|
-
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17088
|
-
|
|
17089
|
-
|
|
17090
|
-
|
|
17134
|
+
`${action.event}-${idx}`
|
|
17135
|
+
)),
|
|
17136
|
+
notificationsEnabled && /* @__PURE__ */ jsxs(
|
|
17137
|
+
Button,
|
|
17138
|
+
{
|
|
17139
|
+
variant: "ghost",
|
|
17140
|
+
className: "relative p-2 rounded-full hover:bg-muted dark:hover:bg-muted",
|
|
17141
|
+
onClick: handleNotificationClick,
|
|
17142
|
+
"aria-label": t("common.notifications"),
|
|
17143
|
+
children: [
|
|
17144
|
+
/* @__PURE__ */ jsx(Bell, { className: "h-5 w-5 text-muted-foreground dark:text-muted-foreground" }),
|
|
17145
|
+
unreadCount > 0 && /* @__PURE__ */ jsx(
|
|
17146
|
+
Box,
|
|
17147
|
+
{
|
|
17148
|
+
as: "span",
|
|
17149
|
+
className: "absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 bg-error rounded-full text-[10px] font-semibold text-white flex items-center justify-center",
|
|
17150
|
+
children: unreadCount > 99 ? "99+" : unreadCount
|
|
17151
|
+
}
|
|
17152
|
+
)
|
|
17153
|
+
]
|
|
17154
|
+
}
|
|
17155
|
+
),
|
|
17156
|
+
user && /* @__PURE__ */ jsxs(Box, { className: "relative", children: [
|
|
17157
|
+
/* @__PURE__ */ jsxs(
|
|
17091
17158
|
Button,
|
|
17092
17159
|
{
|
|
17093
17160
|
variant: "ghost",
|
|
17094
|
-
className: "
|
|
17095
|
-
onClick: () =>
|
|
17096
|
-
|
|
17097
|
-
|
|
17161
|
+
className: "flex items-center gap-2 p-2 rounded-lg hover:bg-muted dark:hover:bg-muted",
|
|
17162
|
+
onClick: () => setUserMenuOpen(!userMenuOpen),
|
|
17163
|
+
children: [
|
|
17164
|
+
/* @__PURE__ */ jsx(
|
|
17165
|
+
Avatar,
|
|
17166
|
+
{
|
|
17167
|
+
src: user.avatar,
|
|
17168
|
+
alt: user.name,
|
|
17169
|
+
initials: user.name.split(" ").map((n) => n[0]).join("").substring(0, 2),
|
|
17170
|
+
size: "sm"
|
|
17171
|
+
}
|
|
17172
|
+
),
|
|
17173
|
+
/* @__PURE__ */ jsx(
|
|
17174
|
+
Typography,
|
|
17175
|
+
{
|
|
17176
|
+
variant: "small",
|
|
17177
|
+
className: "hidden sm:block text-sm font-medium text-foreground dark:text-foreground",
|
|
17178
|
+
as: "span",
|
|
17179
|
+
children: user.name
|
|
17180
|
+
}
|
|
17181
|
+
),
|
|
17182
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "hidden sm:block h-4 w-4 text-muted-foreground dark:text-muted-foreground" })
|
|
17183
|
+
]
|
|
17098
17184
|
}
|
|
17099
17185
|
),
|
|
17100
|
-
|
|
17101
|
-
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground dark:text-muted-foreground" }),
|
|
17186
|
+
userMenuOpen && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17102
17187
|
/* @__PURE__ */ jsx(
|
|
17103
|
-
|
|
17104
|
-
{
|
|
17105
|
-
type: "search",
|
|
17106
|
-
placeholder: t("common.search"),
|
|
17107
|
-
className: "pl-10 w-full",
|
|
17108
|
-
onKeyDown: (e) => {
|
|
17109
|
-
if (e.key === "Enter") {
|
|
17110
|
-
handleSearchSubmit(e.target.value);
|
|
17111
|
-
}
|
|
17112
|
-
}
|
|
17113
|
-
}
|
|
17114
|
-
)
|
|
17115
|
-
] }) }),
|
|
17116
|
-
!searchEnabled && /* @__PURE__ */ jsx(Box, { className: "flex-1" }),
|
|
17117
|
-
/* @__PURE__ */ jsxs(HStack, { align: "center", gap: "xs", children: [
|
|
17118
|
-
headerActions,
|
|
17119
|
-
showThemeToggle && /* @__PURE__ */ jsx(ThemeToggle, {}),
|
|
17120
|
-
topBarActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
17121
|
-
Button,
|
|
17122
|
-
{
|
|
17123
|
-
variant: "ghost",
|
|
17124
|
-
className: "relative p-2 rounded-full hover:bg-muted dark:hover:bg-muted",
|
|
17125
|
-
onClick: () => handleTopBarActionClick(action.event),
|
|
17126
|
-
"aria-label": action.label ?? action.icon,
|
|
17127
|
-
children: [
|
|
17128
|
-
/* @__PURE__ */ jsx(Icon, { name: action.icon, className: "h-5 w-5 text-muted-foreground dark:text-muted-foreground" }),
|
|
17129
|
-
action.badge !== void 0 && action.badge !== null && action.badge !== 0 && action.badge !== "" && /* @__PURE__ */ jsx(
|
|
17130
|
-
Box,
|
|
17131
|
-
{
|
|
17132
|
-
as: "span",
|
|
17133
|
-
className: cn(
|
|
17134
|
-
"absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 rounded-full text-[10px] font-semibold text-white flex items-center justify-center",
|
|
17135
|
-
action.variant === "danger" ? "bg-error" : action.variant === "primary" ? "bg-primary" : "bg-foreground"
|
|
17136
|
-
),
|
|
17137
|
-
children: action.badge
|
|
17138
|
-
}
|
|
17139
|
-
)
|
|
17140
|
-
]
|
|
17141
|
-
},
|
|
17142
|
-
`${action.event}-${idx}`
|
|
17143
|
-
)),
|
|
17144
|
-
notificationsEnabled && /* @__PURE__ */ jsxs(
|
|
17145
|
-
Button,
|
|
17188
|
+
Box,
|
|
17146
17189
|
{
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
onClick: handleNotificationClick,
|
|
17150
|
-
"aria-label": t("common.notifications"),
|
|
17151
|
-
children: [
|
|
17152
|
-
/* @__PURE__ */ jsx(Bell, { className: "h-5 w-5 text-muted-foreground dark:text-muted-foreground" }),
|
|
17153
|
-
unreadCount > 0 && /* @__PURE__ */ jsx(
|
|
17154
|
-
Box,
|
|
17155
|
-
{
|
|
17156
|
-
as: "span",
|
|
17157
|
-
className: "absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 bg-error rounded-full text-[10px] font-semibold text-white flex items-center justify-center",
|
|
17158
|
-
children: unreadCount > 99 ? "99+" : unreadCount
|
|
17159
|
-
}
|
|
17160
|
-
)
|
|
17161
|
-
]
|
|
17190
|
+
className: "fixed inset-0 z-20",
|
|
17191
|
+
onClick: () => setUserMenuOpen(false)
|
|
17162
17192
|
}
|
|
17163
17193
|
),
|
|
17164
|
-
|
|
17194
|
+
/* @__PURE__ */ jsxs(Box, { className: "absolute right-0 mt-2 w-48 bg-card dark:bg-card rounded-lg shadow-lg border border-border dark:border-border py-1 z-30", children: [
|
|
17195
|
+
/* @__PURE__ */ jsxs(Box, { className: "px-4 py-2 border-b border-border dark:border-border", children: [
|
|
17196
|
+
/* @__PURE__ */ jsx(
|
|
17197
|
+
Typography,
|
|
17198
|
+
{
|
|
17199
|
+
variant: "small",
|
|
17200
|
+
className: "text-sm font-medium text-foreground dark:text-foreground",
|
|
17201
|
+
as: "p",
|
|
17202
|
+
children: user.name
|
|
17203
|
+
}
|
|
17204
|
+
),
|
|
17205
|
+
/* @__PURE__ */ jsx(
|
|
17206
|
+
Typography,
|
|
17207
|
+
{
|
|
17208
|
+
variant: "caption",
|
|
17209
|
+
className: "text-xs text-muted-foreground dark:text-muted-foreground",
|
|
17210
|
+
as: "p",
|
|
17211
|
+
children: user.email
|
|
17212
|
+
}
|
|
17213
|
+
)
|
|
17214
|
+
] }),
|
|
17165
17215
|
/* @__PURE__ */ jsxs(
|
|
17166
17216
|
Button,
|
|
17167
17217
|
{
|
|
17168
17218
|
variant: "ghost",
|
|
17169
|
-
|
|
17170
|
-
|
|
17219
|
+
onClick: () => {
|
|
17220
|
+
setUserMenuOpen(false);
|
|
17221
|
+
handleSignOut?.();
|
|
17222
|
+
},
|
|
17223
|
+
className: "w-full flex items-center gap-2 px-4 py-2 text-sm text-error dark:text-error hover:bg-error/10 dark:hover:bg-error/20",
|
|
17171
17224
|
children: [
|
|
17172
|
-
/* @__PURE__ */ jsx(
|
|
17173
|
-
|
|
17174
|
-
{
|
|
17175
|
-
src: user.avatar,
|
|
17176
|
-
alt: user.name,
|
|
17177
|
-
initials: user.name.split(" ").map((n) => n[0]).join("").substring(0, 2),
|
|
17178
|
-
size: "sm"
|
|
17179
|
-
}
|
|
17180
|
-
),
|
|
17181
|
-
/* @__PURE__ */ jsx(
|
|
17182
|
-
Typography,
|
|
17183
|
-
{
|
|
17184
|
-
variant: "small",
|
|
17185
|
-
className: "hidden sm:block text-sm font-medium text-foreground dark:text-foreground",
|
|
17186
|
-
as: "span",
|
|
17187
|
-
children: user.name
|
|
17188
|
-
}
|
|
17189
|
-
),
|
|
17190
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: "hidden sm:block h-4 w-4 text-muted-foreground dark:text-muted-foreground" })
|
|
17225
|
+
/* @__PURE__ */ jsx(LogOut, { className: "h-4 w-4" }),
|
|
17226
|
+
t("auth.signOut")
|
|
17191
17227
|
]
|
|
17192
17228
|
}
|
|
17193
|
-
)
|
|
17194
|
-
userMenuOpen && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17195
|
-
/* @__PURE__ */ jsx(
|
|
17196
|
-
Box,
|
|
17197
|
-
{
|
|
17198
|
-
className: "fixed inset-0 z-20",
|
|
17199
|
-
onClick: () => setUserMenuOpen(false)
|
|
17200
|
-
}
|
|
17201
|
-
),
|
|
17202
|
-
/* @__PURE__ */ jsxs(Box, { className: "absolute right-0 mt-2 w-48 bg-card dark:bg-card rounded-lg shadow-lg border border-border dark:border-border py-1 z-30", children: [
|
|
17203
|
-
/* @__PURE__ */ jsxs(Box, { className: "px-4 py-2 border-b border-border dark:border-border", children: [
|
|
17204
|
-
/* @__PURE__ */ jsx(
|
|
17205
|
-
Typography,
|
|
17206
|
-
{
|
|
17207
|
-
variant: "small",
|
|
17208
|
-
className: "text-sm font-medium text-foreground dark:text-foreground",
|
|
17209
|
-
as: "p",
|
|
17210
|
-
children: user.name
|
|
17211
|
-
}
|
|
17212
|
-
),
|
|
17213
|
-
/* @__PURE__ */ jsx(
|
|
17214
|
-
Typography,
|
|
17215
|
-
{
|
|
17216
|
-
variant: "caption",
|
|
17217
|
-
className: "text-xs text-muted-foreground dark:text-muted-foreground",
|
|
17218
|
-
as: "p",
|
|
17219
|
-
children: user.email
|
|
17220
|
-
}
|
|
17221
|
-
)
|
|
17222
|
-
] }),
|
|
17223
|
-
/* @__PURE__ */ jsxs(
|
|
17224
|
-
Button,
|
|
17225
|
-
{
|
|
17226
|
-
variant: "ghost",
|
|
17227
|
-
onClick: () => {
|
|
17228
|
-
setUserMenuOpen(false);
|
|
17229
|
-
handleSignOut?.();
|
|
17230
|
-
},
|
|
17231
|
-
className: "w-full flex items-center gap-2 px-4 py-2 text-sm text-error dark:text-error hover:bg-error/10 dark:hover:bg-error/20",
|
|
17232
|
-
children: [
|
|
17233
|
-
/* @__PURE__ */ jsx(LogOut, { className: "h-4 w-4" }),
|
|
17234
|
-
t("auth.signOut")
|
|
17235
|
-
]
|
|
17236
|
-
}
|
|
17237
|
-
)
|
|
17238
|
-
] })
|
|
17239
|
-
] })
|
|
17229
|
+
)
|
|
17240
17230
|
] })
|
|
17241
17231
|
] })
|
|
17242
|
-
]
|
|
17243
|
-
}
|
|
17244
|
-
|
|
17232
|
+
] })
|
|
17233
|
+
] })
|
|
17234
|
+
]
|
|
17245
17235
|
}
|
|
17246
|
-
)
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
|
|
17250
|
-
}
|
|
17251
|
-
);
|
|
17236
|
+
)
|
|
17237
|
+
}
|
|
17238
|
+
),
|
|
17239
|
+
/* @__PURE__ */ jsx(Box, { as: "main", className: "p-4 sm:p-6", children })
|
|
17240
|
+
] })
|
|
17241
|
+
] });
|
|
17252
17242
|
};
|
|
17253
17243
|
DashboardLayout.displayName = "DashboardLayout";
|
|
17254
17244
|
NavLink = ({
|
package/dist/docs/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React5__default = /*#__PURE__*/_interopDefault(React5);
|
|
28
28
|
var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
|
|
29
29
|
|
|
30
|
-
// node_modules
|
|
30
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
31
31
|
function r(e) {
|
|
32
32
|
var t, f, n = "";
|
|
33
33
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -42,7 +42,7 @@ function clsx() {
|
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
// node_modules
|
|
45
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
46
46
|
var CLASS_PART_SEPARATOR = "-";
|
|
47
47
|
var createClassGroupUtils = (config) => {
|
|
48
48
|
const classMap = createClassMap(config);
|
package/dist/docs/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import * as LucideIcons from 'lucide-react';
|
|
4
4
|
import { Loader2, ChevronDown, X } from 'lucide-react';
|
|
5
5
|
|
|
6
|
-
// node_modules
|
|
6
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
7
7
|
function r(e) {
|
|
8
8
|
var t, f, n = "";
|
|
9
9
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -18,7 +18,7 @@ function clsx() {
|
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// node_modules
|
|
21
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
22
22
|
var CLASS_PART_SEPARATOR = "-";
|
|
23
23
|
var createClassGroupUtils = (config) => {
|
|
24
24
|
const classMap = createClassMap(config);
|
package/dist/marketing/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React6__default = /*#__PURE__*/_interopDefault(React6);
|
|
28
28
|
var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
|
|
29
29
|
|
|
30
|
-
// node_modules
|
|
30
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
31
31
|
function r(e) {
|
|
32
32
|
var t, f3, n = "";
|
|
33
33
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -42,7 +42,7 @@ function clsx() {
|
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
// node_modules
|
|
45
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
46
46
|
var CLASS_PART_SEPARATOR = "-";
|
|
47
47
|
var createClassGroupUtils = (config) => {
|
|
48
48
|
const classMap = createClassMap(config);
|
package/dist/marketing/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import * as LucideIcons from 'lucide-react';
|
|
4
4
|
import { Loader2, Check, User } from 'lucide-react';
|
|
5
5
|
|
|
6
|
-
// node_modules
|
|
6
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
7
7
|
function r(e) {
|
|
8
8
|
var t, f3, n = "";
|
|
9
9
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -18,7 +18,7 @@ function clsx() {
|
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// node_modules
|
|
21
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
22
22
|
var CLASS_PART_SEPARATOR = "-";
|
|
23
23
|
var createClassGroupUtils = (config) => {
|
|
24
24
|
const classMap = createClassMap(config);
|