@m5kdev/web-ui 0.8.5 → 0.8.7

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.
Files changed (98) hide show
  1. package/dist/packages/backend/dist/src/modules/auth/auth.dto.d.mts +2 -2
  2. package/dist/src/components/AvatarUpload.mjs +2 -2
  3. package/dist/src/components/CardsSelect.mjs +1 -1
  4. package/dist/src/components/CollapsibleSidebarMenuItem.mjs +1 -1
  5. package/dist/src/components/ColorPicker.d.mts +1 -1
  6. package/dist/src/components/ColorPicker.mjs +2 -2
  7. package/dist/src/components/CopyButton.d.mts +1 -1
  8. package/dist/src/components/CopyButton.mjs +3 -3
  9. package/dist/src/components/CropDialog.mjs +2 -2
  10. package/dist/src/components/DialogProvider.d.mts +1 -1
  11. package/dist/src/components/DialogProvider.mjs +1 -1
  12. package/dist/src/components/FileDropzone.mjs +1 -1
  13. package/dist/src/components/MultiSelectDropdown.mjs +1 -1
  14. package/dist/src/components/PageAlert.mjs +2 -2
  15. package/dist/src/components/SelectChips.d.mts +1 -1
  16. package/dist/src/components/SelectChips.mjs +1 -1
  17. package/dist/src/components/Steps.mjs +1 -1
  18. package/dist/src/components/TablerIconPicker.d.mts +1 -1
  19. package/dist/src/components/TablerIconPicker.mjs +1 -1
  20. package/dist/src/components/mode-toggle.mjs +1 -1
  21. package/dist/src/components/nav-main.d.mts +1 -1
  22. package/dist/src/components/nav-main.mjs +1 -1
  23. package/dist/src/components/pricing-cards.mjs +1 -1
  24. package/dist/src/components/shared/ButtonCopy.mjs +2 -2
  25. package/dist/src/components/team-switcher.mjs +1 -1
  26. package/dist/src/components/ui/alert.d.mts +1 -1
  27. package/dist/src/components/ui/alert.mjs +1 -1
  28. package/dist/src/components/ui/badge.d.mts +2 -2
  29. package/dist/src/components/ui/badge.mjs +1 -1
  30. package/dist/src/components/ui/breadcrumb.mjs +2 -2
  31. package/dist/src/components/ui/button.d.mts +1 -1
  32. package/dist/src/components/ui/button.mjs +1 -1
  33. package/dist/src/components/ui/checkbox.mjs +1 -1
  34. package/dist/src/components/ui/dialog.mjs +1 -1
  35. package/dist/src/components/ui/dropdown-menu.mjs +1 -1
  36. package/dist/src/components/ui/form.d.mts +1 -1
  37. package/dist/src/components/ui/form.mjs +1 -1
  38. package/dist/src/components/ui/label.mjs +1 -1
  39. package/dist/src/components/ui/pagination.mjs +1 -1
  40. package/dist/src/components/ui/resizable-navbar.mjs +1 -1
  41. package/dist/src/components/ui/select.mjs +1 -1
  42. package/dist/src/components/ui/sheet.d.mts +1 -1
  43. package/dist/src/components/ui/sheet.mjs +2 -2
  44. package/dist/src/components/ui/sidebar.mjs +3 -3
  45. package/dist/src/components/ui/spinner.d.mts +1 -1
  46. package/dist/src/components/ui/spinner.mjs +1 -1
  47. package/dist/src/components/ui/toast.mjs +2 -2
  48. package/dist/src/modules/app/components/AppLoader.d.mts +1 -1
  49. package/dist/src/modules/app/components/AppLoader.mjs +1 -1
  50. package/dist/src/modules/app/components/AppSidebarHeader.mjs +4 -4
  51. package/dist/src/modules/app/components/AppSidebarHeader.mjs.map +1 -1
  52. package/dist/src/modules/app/components/AppSidebarInvites.mjs +4 -4
  53. package/dist/src/modules/app/components/AppSidebarInvites.mjs.map +1 -1
  54. package/dist/src/modules/app/components/AppSidebarUser.mjs +1 -1
  55. package/dist/src/modules/auth/components/AdminUserManagement.mjs +2 -2
  56. package/dist/src/modules/auth/components/AdminWaitlist.mjs +2 -2
  57. package/dist/src/modules/auth/components/AuthProviders.mjs +2 -2
  58. package/dist/src/modules/auth/components/ClaimAccountRoute.mjs +1 -1
  59. package/dist/src/modules/auth/components/ErrorAuthRoute.mjs +5 -5
  60. package/dist/src/modules/auth/components/ErrorAuthRoute.mjs.map +1 -1
  61. package/dist/src/modules/auth/components/ForgotPasswordForm.mjs +2 -2
  62. package/dist/src/modules/auth/components/ForgotPasswordRoute.mjs +4 -4
  63. package/dist/src/modules/auth/components/ForgotPasswordRoute.mjs.map +1 -1
  64. package/dist/src/modules/auth/components/InviteFriends.mjs +2 -2
  65. package/dist/src/modules/auth/components/LastUsedBadge.d.mts +1 -1
  66. package/dist/src/modules/auth/components/LastUsedBadge.mjs +2 -2
  67. package/dist/src/modules/auth/components/LoginForm.mjs +5 -5
  68. package/dist/src/modules/auth/components/LoginForm.mjs.map +1 -1
  69. package/dist/src/modules/auth/components/LoginRoute.mjs +5 -5
  70. package/dist/src/modules/auth/components/LoginRoute.mjs.map +1 -1
  71. package/dist/src/modules/auth/components/LogoutRoute.mjs +1 -1
  72. package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.mjs +2 -2
  73. package/dist/src/modules/auth/components/OrganizationMembersRoute.mjs +3 -3
  74. package/dist/src/modules/auth/components/OrganizationPreferences.mjs +2 -2
  75. package/dist/src/modules/auth/components/OrganizationSettingsRoute.mjs +2 -2
  76. package/dist/src/modules/auth/components/OrganizationSwitcher.mjs +5 -5
  77. package/dist/src/modules/auth/components/OrganizationSwitcher.mjs.map +1 -1
  78. package/dist/src/modules/auth/components/PreferencesEditor.mjs +1 -1
  79. package/dist/src/modules/auth/components/ProfileRoute.mjs +2 -2
  80. package/dist/src/modules/auth/components/RangeNuqsDatePicker.mjs +2 -2
  81. package/dist/src/modules/auth/components/ResetPasswordForm.mjs +4 -4
  82. package/dist/src/modules/auth/components/ResetPasswordForm.mjs.map +1 -1
  83. package/dist/src/modules/auth/components/ResetPasswordRoute.mjs +4 -4
  84. package/dist/src/modules/auth/components/ResetPasswordRoute.mjs.map +1 -1
  85. package/dist/src/modules/auth/components/SignupFormRoute.mjs +2 -2
  86. package/dist/src/modules/auth/components/SignupRoute.mjs +4 -4
  87. package/dist/src/modules/auth/components/SignupRoute.mjs.map +1 -1
  88. package/dist/src/modules/auth/components/UserPreferences.mjs +1 -1
  89. package/dist/src/modules/auth/components/WaitlistCard.mjs +2 -2
  90. package/dist/src/modules/auth/components/WaitlistCodeValidation.mjs +2 -2
  91. package/dist/src/modules/billing/components/BillingBetaPage.mjs +1 -1
  92. package/dist/src/modules/billing/components/BillingInvoicePage.mjs +2 -2
  93. package/dist/src/modules/billing/components/BillingSinglePlanSelect.mjs +5 -5
  94. package/dist/src/modules/billing/components/BillingSinglePlanSelect.mjs.map +1 -1
  95. package/dist/src/modules/table/components/ColumnOrderAndVisibility.mjs +1 -1
  96. package/dist/src/modules/table/components/NuqsTable.mjs +2 -2
  97. package/dist/src/modules/table/components/TableFiltering.mjs +2 -2
  98. package/package.json +5 -5
@@ -37,8 +37,8 @@ declare const accountClaimOutputSchema: z.ZodObject<{
37
37
  id: z.ZodString;
38
38
  createdAt: z.ZodDate;
39
39
  updatedAt: z.ZodNullable<z.ZodDate>;
40
- status: z.ZodString;
41
40
  expiresAt: z.ZodNullable<z.ZodDate>;
41
+ status: z.ZodString;
42
42
  claimUserId: z.ZodNullable<z.ZodString>;
43
43
  claimedAt: z.ZodNullable<z.ZodDate>;
44
44
  claimedEmail: z.ZodNullable<z.ZodString>;
@@ -59,8 +59,8 @@ declare const accountClaimMagicLinkOutputSchema: z.ZodObject<{
59
59
  id: z.ZodString;
60
60
  email: z.ZodString;
61
61
  createdAt: z.ZodDate;
62
- userId: z.ZodString;
63
62
  expiresAt: z.ZodNullable<z.ZodDate>;
63
+ userId: z.ZodString;
64
64
  claimId: z.ZodString;
65
65
  url: z.ZodString;
66
66
  }, z.core.$strip>;
@@ -2,11 +2,11 @@ import { cn } from "../lib/utils.mjs";
2
2
  import { CropDialog } from "./CropDialog.mjs";
3
3
  import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar.mjs";
4
4
  import { Progress } from "./ui/progress.mjs";
5
- import { useRef, useState } from "react";
6
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
5
  import { useFileUpload } from "@m5kdev/frontend/modules/file/hooks/useUpload";
8
6
  import { Edit2, User } from "lucide-react";
7
+ import { useRef, useState } from "react";
9
8
  import { useTranslation } from "react-i18next";
9
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region src/components/AvatarUpload.tsx
11
11
  function AvatarUpload({ currentAvatarUrl, onUploadComplete, className }) {
12
12
  const { t } = useTranslation();
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../lib/utils.mjs";
2
2
  import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./ui/card.mjs";
3
+ import { Check, Edit } from "lucide-react";
3
4
  import * as React$1 from "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { Check, Edit } from "lucide-react";
6
6
  //#region src/components/CardsSelect.tsx
7
7
  const CardsSelect = React$1.forwardRef(({ items, selectedIds, onSelectionChange, maxSelections, className, cardClassName, showCheckbox = true, disabled = false, reversed = false, ...props }, ref) => {
8
8
  const handleCardClick = (itemId) => {
@@ -1,7 +1,7 @@
1
1
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.mjs";
2
2
  import { SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, useSidebar } from "./ui/sidebar.mjs";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { ChevronRight } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { Link } from "react-router";
6
6
  //#region src/components/CollapsibleSidebarMenuItem.tsx
7
7
  function CollapsibleSidebarMenuItem({ children, label, icon, link, badge, ...props }) {
@@ -1,5 +1,5 @@
1
- import { InputProps } from "@heroui/react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { InputProps } from "@heroui/react";
3
3
 
4
4
  //#region src/components/ColorPicker.d.ts
5
5
  declare function ColorPicker({
@@ -1,7 +1,7 @@
1
+ import { PipetteIcon } from "lucide-react";
1
2
  import { useState } from "react";
2
- import { Button, Input, Popover, PopoverContent, PopoverTrigger } from "@heroui/react";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- import { PipetteIcon } from "lucide-react";
4
+ import { Button, Input, Popover, PopoverContent, PopoverTrigger } from "@heroui/react";
5
5
  import { hexToHsva } from "@uiw/color-convert";
6
6
  import Colorful from "@uiw/react-color-colorful";
7
7
  //#region src/components/ColorPicker.tsx
@@ -1,5 +1,5 @@
1
- import { ButtonProps } from "@heroui/react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ButtonProps } from "@heroui/react";
3
3
 
4
4
  //#region src/components/CopyButton.d.ts
5
5
  declare function CopyButton({
@@ -1,8 +1,8 @@
1
- import { useState } from "react";
2
- import { Button } from "@heroui/react";
3
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
4
1
  import { CheckCircle, Copy } from "lucide-react";
2
+ import { useState } from "react";
5
3
  import { useTranslation } from "react-i18next";
4
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
+ import { Button } from "@heroui/react";
6
6
  import { toast } from "sonner";
7
7
  //#region src/components/CopyButton.tsx
8
8
  function CopyButton({ text, notificationTimeout = 1e3, isIconOnly, onCopy, ...props }) {
@@ -1,11 +1,11 @@
1
1
  import { Button } from "./ui/button.mjs";
2
2
  import { Dialog, DialogContent, DialogHeader, DialogTitle } from "./ui/dialog.mjs";
3
3
  import { Slider } from "./ui/slider.mjs";
4
- import { useState } from "react";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
4
  import { ZoomIn, ZoomOut } from "lucide-react";
5
+ import { useState } from "react";
7
6
  import { useTranslation } from "react-i18next";
8
7
  import Cropper from "react-easy-crop";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/components/CropDialog.tsx
10
10
  async function getCroppedImg(imageSrc, pixelCrop, t) {
11
11
  const image = new Image();
@@ -1,5 +1,5 @@
1
- import { ButtonProps } from "@heroui/react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ButtonProps } from "@heroui/react";
3
3
 
4
4
  //#region src/components/DialogProvider.d.ts
5
5
  type DialogProps = {
@@ -1,7 +1,7 @@
1
1
  import { createContext, useContext, useRef, useState } from "react";
2
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
2
3
  import { Button, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from "@heroui/react";
3
4
  import { semanticColors } from "@heroui/theme";
4
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/DialogProvider.tsx
6
6
  const DialogContext = createContext(() => {
7
7
  console.warn("DialogProvider is not initialized");
@@ -1,9 +1,9 @@
1
1
  import { cn } from "../lib/utils.mjs";
2
2
  import { Button } from "./ui/button.mjs";
3
3
  import { Progress } from "./ui/progress.mjs";
4
+ import { File, Upload, X } from "lucide-react";
4
5
  import { useCallback, useState } from "react";
5
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
- import { File, Upload, X } from "lucide-react";
7
7
  import { useDropzone } from "react-dropzone";
8
8
  //#region src/components/FileDropzone.tsx
9
9
  function FileDropzone({ onUploadComplete, className }) {
@@ -1,9 +1,9 @@
1
1
  import { cn } from "../lib/utils.mjs";
2
2
  import { Button } from "./ui/button.mjs";
3
3
  import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "./ui/dropdown-menu.mjs";
4
+ import { ChevronDown, RotateCcw } from "lucide-react";
4
5
  import * as React$1 from "react";
5
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
- import { ChevronDown, RotateCcw } from "lucide-react";
7
7
  //#region src/components/MultiSelectDropdown.tsx
8
8
  const MultiSelectDropdown = React$1.forwardRef(({ options, selectedValues, onValueChange, placeholder = "Select items...", label, className, triggerClassName, trigger, multiSelectLabel, disabled = false, maxDisplayCount = 3, resetButton = "bottom", resetLabel = "Reset", separateGroups = false, ...props }, ref) => {
9
9
  const handleValueChange = (value, checked) => {
@@ -1,9 +1,9 @@
1
1
  import { cn } from "../lib/utils.mjs";
2
- import * as React$1 from "react";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
2
  import { AlertCircle, AlertTriangle, CheckCircle, Info, X } from "lucide-react";
3
+ import * as React$1 from "react";
5
4
  import { useTranslation } from "react-i18next";
6
5
  import { cva } from "class-variance-authority";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/PageAlert.tsx
8
8
  const pageAlertVariants = cva("relative w-full border-b px-4 py-3 text-sm transition-all duration-300 ease-in-out", {
9
9
  variants: { variant: {
@@ -1,5 +1,5 @@
1
- import { ButtonProps } from "@heroui/react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ButtonProps } from "@heroui/react";
3
3
 
4
4
  //#region src/components/SelectChips.d.ts
5
5
  declare function SelectChips({
@@ -1,5 +1,5 @@
1
- import { Button, Checkbox } from "@heroui/react";
2
1
  import { jsx } from "react/jsx-runtime";
2
+ import { Button, Checkbox } from "@heroui/react";
3
3
  //#region src/components/SelectChips.tsx
4
4
  function SelectChips({ items, selectedItems, onSelectionChange, buttonProps }) {
5
5
  return items.map((item) => {
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../lib/utils.mjs";
2
2
  import { Separator } from "./ui/separator.mjs";
3
3
  import { Badge } from "./ui/badge.mjs";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { Check } from "lucide-react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/Steps.tsx
7
7
  const Steps = ({ steps, className, onStepClick }) => {
8
8
  return /* @__PURE__ */ jsxs("nav", {
@@ -1,5 +1,5 @@
1
- import { SelectProps } from "@heroui/react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { SelectProps } from "@heroui/react";
3
3
 
4
4
  //#region src/components/TablerIconPicker.d.ts
5
5
  declare function TablerIconPicker({
@@ -1,5 +1,5 @@
1
- import { Select, SelectItem } from "@heroui/react";
2
1
  import { jsx } from "react/jsx-runtime";
2
+ import { Select, SelectItem } from "@heroui/react";
3
3
  //#region src/components/TablerIconPicker.tsx
4
4
  function TablerIconPicker({ value, onSelectionChange, isVirtualized = true, ...props }) {
5
5
  return /* @__PURE__ */ jsx(Select, {
@@ -1,8 +1,8 @@
1
1
  import { Button } from "./ui/button.mjs";
2
2
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./ui/dropdown-menu.mjs";
3
3
  import { useTheme } from "./theme-provider.mjs";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { Moon, Sun } from "lucide-react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/mode-toggle.tsx
7
7
  function ModeToggle() {
8
8
  const { setTheme } = useTheme();
@@ -1,5 +1,5 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { LucideIcon } from "lucide-react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/nav-main.d.ts
5
5
  declare function NavMain({
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.mjs";
3
3
  import { SidebarGroup, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem } from "./ui/sidebar.mjs";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { ChevronRight } from "lucide-react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Link } from "react-router";
7
7
  //#region src/components/nav-main.tsx
8
8
  function NavMain({ items }) {
@@ -1,8 +1,8 @@
1
1
  import { Button } from "./ui/button.mjs";
2
2
  import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./ui/card.mjs";
3
3
  import { Badge } from "./ui/badge.mjs";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { Check, MoveRight, PhoneCall } from "lucide-react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/pricing-cards.tsx
7
7
  function PricingCard({ title, description, price, features, highlighted = false, ctaText, ctaIcon: CtaIcon, variant = "outline" }) {
8
8
  const Icon = CtaIcon;
@@ -1,9 +1,9 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
2
  import { Button } from "../ui/button.mjs";
3
- import { useState } from "react";
4
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
3
  import { CheckCircle, Copy } from "lucide-react";
4
+ import { useState } from "react";
6
5
  import { useTranslation } from "react-i18next";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { toast } from "sonner";
8
8
  //#region src/components/shared/ButtonCopy.tsx
9
9
  function ButtonCopy({ text, notificationTimeout = 1e3, iconOnly = false, ...props }) {
@@ -1,8 +1,8 @@
1
1
  import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from "./ui/sidebar.mjs";
2
2
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger } from "./ui/dropdown-menu.mjs";
3
+ import { ChevronsUpDown, Plus } from "lucide-react";
3
4
  import * as React$1 from "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { ChevronsUpDown, Plus } from "lucide-react";
6
6
  //#region src/components/team-switcher.tsx
7
7
  function TeamSwitcher({ teams }) {
8
8
  const { isMobile } = useSidebar();
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { VariantProps } from "class-variance-authority";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/alert.d.ts
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { cva } from "class-variance-authority";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/ui/alert.tsx
5
5
  const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
6
6
  variants: { variant: {
@@ -1,11 +1,11 @@
1
1
  import * as React$1 from "react";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { VariantProps } from "class-variance-authority";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/badge.d.ts
7
7
  declare const badgeVariants: (props?: ({
8
- variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
8
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
11
11
  declare function Badge({
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { cva } from "class-variance-authority";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/ui/badge.tsx
5
5
  const badgeVariants = cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
6
6
  variants: { variant: {
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
- import * as React$1 from "react";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
2
  import { ChevronRight, MoreHorizontal } from "lucide-react";
3
+ import * as React$1 from "react";
5
4
  import { Slot } from "@radix-ui/react-slot";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/ui/breadcrumb.tsx
7
7
  const Breadcrumb = React$1.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", {
8
8
  ref,
@@ -4,7 +4,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
4
4
 
5
5
  //#region src/components/ui/button.d.ts
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
7
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
8
8
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
2
  import * as React$1 from "react";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { Slot } from "@radix-ui/react-slot";
5
4
  import { cva } from "class-variance-authority";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/ui/button.tsx
7
7
  const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
8
8
  variants: {
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
+ import { Check } from "lucide-react";
2
3
  import * as React$1 from "react";
3
4
  import { jsx } from "react/jsx-runtime";
4
- import { Check } from "lucide-react";
5
5
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
6
6
  //#region src/components/ui/checkbox.tsx
7
7
  const Checkbox = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { XIcon } from "lucide-react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import * as DialogPrimitive from "@radix-ui/react-dialog";
5
5
  //#region src/components/ui/dialog.tsx
6
6
  function Dialog({ ...props }) {
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
+ import { Check, ChevronRight, Circle } from "lucide-react";
2
3
  import * as React$1 from "react";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
- import { Check, ChevronRight, Circle } from "lucide-react";
5
5
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
6
6
  //#region src/components/ui/dropdown-menu.tsx
7
7
  const DropdownMenu = DropdownMenuPrimitive.Root;
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as _$_radix_ui_react_slot0 from "@radix-ui/react-slot";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import * as _$react_hook_form0 from "react-hook-form";
5
5
  import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
6
6
  import * as LabelPrimitive from "@radix-ui/react-label";
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
2
  import { Label } from "./label.mjs";
3
3
  import * as React$1 from "react";
4
- import { jsx } from "react/jsx-runtime";
5
4
  import { Slot } from "@radix-ui/react-slot";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  import { Controller, FormProvider, useFormContext } from "react-hook-form";
7
7
  //#region src/components/ui/form.tsx
8
8
  const Form = FormProvider;
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
2
  import * as React$1 from "react";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { cva } from "class-variance-authority";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  import * as LabelPrimitive from "@radix-ui/react-label";
6
6
  //#region src/components/ui/label.tsx
7
7
  const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
2
  import { buttonVariants } from "./button.mjs";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/ui/pagination.tsx
6
6
  function Pagination({ className, ...props }) {
7
7
  return /* @__PURE__ */ jsx("nav", {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../../lib/utils.mjs";
3
+ import { MenuIcon, XIcon } from "lucide-react";
3
4
  import React, { useRef, useState } from "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { MenuIcon, XIcon } from "lucide-react";
6
6
  import { AnimatePresence, motion, useMotionValueEvent, useScroll } from "motion/react";
7
7
  //#region src/components/ui/resizable-navbar.tsx
8
8
  const Navbar = ({ children, className }) => {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../../lib/utils.mjs";
3
+ import { Check, ChevronDown, ChevronUp } from "lucide-react";
3
4
  import * as React$1 from "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { Check, ChevronDown, ChevronUp } from "lucide-react";
6
6
  import * as SelectPrimitive from "@radix-ui/react-select";
7
7
  //#region src/components/ui/select.tsx
8
8
  const Select = SelectPrimitive.Root;
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { VariantProps } from "class-variance-authority";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import * as SheetPrimitive from "@radix-ui/react-dialog";
5
5
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
6
6
 
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { cn } from "../../lib/utils.mjs";
3
- import * as React$1 from "react";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
3
  import { X } from "lucide-react";
4
+ import * as React$1 from "react";
6
5
  import { cva } from "class-variance-authority";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import * as SheetPrimitive from "@radix-ui/react-dialog";
8
8
  //#region src/components/ui/sheet.tsx
9
9
  const Sheet = SheetPrimitive.Root;
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- import { useIsMobile } from "../../hooks/use-mobile.mjs";
3
2
  import { cn } from "../../lib/utils.mjs";
4
3
  import { Button } from "./button.mjs";
5
4
  import { Input } from "./input.mjs";
@@ -7,11 +6,12 @@ import { Separator } from "./separator.mjs";
7
6
  import { Sheet, SheetContent } from "./sheet.mjs";
8
7
  import { Skeleton } from "./skeleton.mjs";
9
8
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.mjs";
10
- import * as React$1 from "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { useIsMobile } from "../../hooks/use-mobile.mjs";
12
10
  import { PanelLeft } from "lucide-react";
11
+ import * as React$1 from "react";
13
12
  import { Slot } from "@radix-ui/react-slot";
14
13
  import { cva } from "class-variance-authority";
14
+ import { jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region src/components/ui/sidebar.tsx
16
16
  const SIDEBAR_COOKIE_NAME = "sidebar:state";
17
17
  const SIDEBAR_COOKIE_MAX_AGE = 3600 * 24 * 7;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { VariantProps } from "class-variance-authority";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/spinner.d.ts
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { Loader2 } from "lucide-react";
4
3
  import { cva } from "class-variance-authority";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/ui/spinner.tsx
6
6
  const spinnerVariants = cva("flex-col items-center justify-center", {
7
7
  variants: { show: {
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
- import * as React$1 from "react";
3
- import { jsx } from "react/jsx-runtime";
4
2
  import { X } from "lucide-react";
3
+ import * as React$1 from "react";
5
4
  import { cva } from "class-variance-authority";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  import * as ToastPrimitives from "@radix-ui/react-toast";
7
7
  //#region src/components/ui/toast.tsx
8
8
  const ToastProvider = ToastPrimitives.Provider;
@@ -1,5 +1,5 @@
1
- import { SpinnerProps } from "@heroui/react";
2
1
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { SpinnerProps } from "@heroui/react";
3
3
 
4
4
  //#region src/modules/app/components/AppLoader.d.ts
5
5
  declare function AppLoader(props: SpinnerProps): _$react_jsx_runtime0.JSX.Element;
@@ -1,5 +1,5 @@
1
- import { Spinner } from "@heroui/react";
2
1
  import { jsx } from "react/jsx-runtime";
2
+ import { Spinner } from "@heroui/react";
3
3
  //#region src/modules/app/components/AppLoader.tsx
4
4
  function AppLoader(props) {
5
5
  return /* @__PURE__ */ jsx("div", {
@@ -1,7 +1,7 @@
1
- import { Button } from "@heroui/react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
1
  import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
4
- import { Link as Link$1 } from "react-router";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Link } from "react-router";
4
+ import { Button } from "@heroui/react";
5
5
  import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
6
6
  import { cn } from "@m5kdev/web-ui/utils";
7
7
  //#region src/modules/app/components/AppSidebarHeader.tsx
@@ -9,7 +9,7 @@ function AppSidebarHeader({ logo, title, size = 30 }) {
9
9
  const { open, toggleSidebar } = useSidebar();
10
10
  return /* @__PURE__ */ jsxs("div", {
11
11
  className: cn("flex justify-between items-center overflow-hidden gap-2", open ? "w-[239px] px-2 flex-row" : "w-auto flex-col"),
12
- children: [/* @__PURE__ */ jsxs(Link$1, {
12
+ children: [/* @__PURE__ */ jsxs(Link, {
13
13
  to: "/",
14
14
  className: cn("flex items-center font-medium overflow-hidden gap-2", open ? "w-[239px] px-2" : "w-auto"),
15
15
  style: { height: size },
@@ -1 +1 @@
1
- {"version":3,"file":"AppSidebarHeader.mjs","names":["Link"],"sources":["../../../../../src/modules/app/components/AppSidebarHeader.tsx"],"sourcesContent":["import { Button } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { ChevronsLeftIcon, ChevronsRightIcon } from \"lucide-react\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarHeader({\r\n logo,\r\n title,\r\n size = 30,\r\n}: {\r\n logo: { src: string; alt: string };\r\n title: string;\r\n size?: number;\r\n}) {\r\n const { open, toggleSidebar } = useSidebar();\r\n return (\r\n <div\r\n className={cn(\r\n \"flex justify-between items-center overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2 flex-row\" : \"w-auto flex-col\"\r\n )}\r\n >\r\n <Link\r\n to=\"/\"\r\n className={cn(\r\n \"flex items-center font-medium overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2\" : \"w-auto\"\r\n )}\r\n style={{ height: size }}\r\n >\r\n <img\r\n className=\"shrink-0\"\r\n src={logo.src}\r\n alt={logo.alt}\r\n style={{ width: size, height: size }}\r\n />\r\n <span className=\"group-data-[collapsible=icon]:hidden font-semibold text-lg text-neutral-900\">\r\n {title}\r\n </span>\r\n </Link>\r\n <Button\r\n isIconOnly\r\n variant=\"faded\"\r\n size=\"sm\"\r\n className=\"w-4 h-6\"\r\n onPress={() => toggleSidebar()}\r\n >\r\n {open ? (\r\n <ChevronsLeftIcon className=\"w-4 h-4\" />\r\n ) : (\r\n <ChevronsRightIcon className=\"w-4 h-4\" />\r\n )}\r\n </Button>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;AAMA,SAAgB,iBAAiB,EAC/B,MACA,OACA,OAAO,MAKN;CACD,MAAM,EAAE,MAAM,kBAAkB,YAAY;AAC5C,QACE,qBAAC,OAAD;EACE,WAAW,GACT,4DACA,OAAO,4BAA4B,kBACpC;YAJH,CAME,qBAACA,QAAD;GACE,IAAG;GACH,WAAW,GACT,uDACA,OAAO,mBAAmB,SAC3B;GACD,OAAO,EAAE,QAAQ,MAAM;aANzB,CAQE,oBAAC,OAAD;IACE,WAAU;IACV,KAAK,KAAK;IACV,KAAK,KAAK;IACV,OAAO;KAAE,OAAO;KAAM,QAAQ;KAAM;IACpC,CAAA,EACF,oBAAC,QAAD;IAAM,WAAU;cACb;IACI,CAAA,CACF;MACP,oBAAC,QAAD;GACE,YAAA;GACA,SAAQ;GACR,MAAK;GACL,WAAU;GACV,eAAe,eAAe;aAE7B,OACC,oBAAC,kBAAD,EAAkB,WAAU,WAAY,CAAA,GAExC,oBAAC,mBAAD,EAAmB,WAAU,WAAY,CAAA;GAEpC,CAAA,CACL"}
1
+ {"version":3,"file":"AppSidebarHeader.mjs","names":[],"sources":["../../../../../src/modules/app/components/AppSidebarHeader.tsx"],"sourcesContent":["import { Button } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { ChevronsLeftIcon, ChevronsRightIcon } from \"lucide-react\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarHeader({\r\n logo,\r\n title,\r\n size = 30,\r\n}: {\r\n logo: { src: string; alt: string };\r\n title: string;\r\n size?: number;\r\n}) {\r\n const { open, toggleSidebar } = useSidebar();\r\n return (\r\n <div\r\n className={cn(\r\n \"flex justify-between items-center overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2 flex-row\" : \"w-auto flex-col\"\r\n )}\r\n >\r\n <Link\r\n to=\"/\"\r\n className={cn(\r\n \"flex items-center font-medium overflow-hidden gap-2\",\r\n open ? \"w-[239px] px-2\" : \"w-auto\"\r\n )}\r\n style={{ height: size }}\r\n >\r\n <img\r\n className=\"shrink-0\"\r\n src={logo.src}\r\n alt={logo.alt}\r\n style={{ width: size, height: size }}\r\n />\r\n <span className=\"group-data-[collapsible=icon]:hidden font-semibold text-lg text-neutral-900\">\r\n {title}\r\n </span>\r\n </Link>\r\n <Button\r\n isIconOnly\r\n variant=\"faded\"\r\n size=\"sm\"\r\n className=\"w-4 h-6\"\r\n onPress={() => toggleSidebar()}\r\n >\r\n {open ? (\r\n <ChevronsLeftIcon className=\"w-4 h-4\" />\r\n ) : (\r\n <ChevronsRightIcon className=\"w-4 h-4\" />\r\n )}\r\n </Button>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;AAMA,SAAgB,iBAAiB,EAC/B,MACA,OACA,OAAO,MAKN;CACD,MAAM,EAAE,MAAM,kBAAkB,YAAY;AAC5C,QACE,qBAAC,OAAD;EACE,WAAW,GACT,4DACA,OAAO,4BAA4B,kBACpC;YAJH,CAME,qBAAC,MAAD;GACE,IAAG;GACH,WAAW,GACT,uDACA,OAAO,mBAAmB,SAC3B;GACD,OAAO,EAAE,QAAQ,MAAM;aANzB,CAQE,oBAAC,OAAD;IACE,WAAU;IACV,KAAK,KAAK;IACV,KAAK,KAAK;IACV,OAAO;KAAE,OAAO;KAAM,QAAQ;KAAM;IACpC,CAAA,EACF,oBAAC,QAAD;IAAM,WAAU;cACb;IACI,CAAA,CACF;MACP,oBAAC,QAAD;GACE,YAAA;GACA,SAAQ;GACR,MAAK;GACL,WAAU;GACV,eAAe,eAAe;aAE7B,OACC,oBAAC,kBAAD,EAAkB,WAAU,WAAY,CAAA,GAExC,oBAAC,mBAAD,EAAmB,WAAU,WAAY,CAAA;GAEpC,CAAA,CACL"}
@@ -1,8 +1,8 @@
1
- import { Badge, Button, Tooltip } from "@heroui/react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
1
  import { GiftIcon } from "lucide-react";
4
2
  import { useTranslation } from "react-i18next";
5
- import { Link as Link$1 } from "react-router";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Link } from "react-router";
5
+ import { Badge, Button, Tooltip } from "@heroui/react";
6
6
  import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
7
7
  import { cn } from "@m5kdev/web-ui/utils";
8
8
  //#region src/modules/app/components/AppSidebarInvites.tsx
@@ -22,7 +22,7 @@ function AppSidebarInvites({ count }) {
22
22
  size: "sm",
23
23
  isOneChar: true,
24
24
  children: /* @__PURE__ */ jsxs(Button, {
25
- as: Link$1,
25
+ as: Link,
26
26
  to: "/invites",
27
27
  className: cn("flex items-center gap-2"),
28
28
  isIconOnly: !open,
@@ -1 +1 @@
1
- {"version":3,"file":"AppSidebarInvites.mjs","names":["Link"],"sources":["../../../../../src/modules/app/components/AppSidebarInvites.tsx"],"sourcesContent":["import { Badge, Button, Tooltip } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { GiftIcon } from \"lucide-react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarInvites({ count }: { count: number }) {\r\n const { open } = useSidebar();\r\n const { t } = useTranslation(\"web-ui\");\r\n return (\r\n <div className={cn(\"flex justify-center w-auto\")}>\r\n <Tooltip content={t(\"sidebar.invites.title\")} placement=\"right\" isDisabled={open}>\r\n <Badge color=\"primary\" variant=\"faded\" content={count} size=\"sm\" isOneChar>\r\n <Button\r\n as={Link}\r\n to=\"/invites\"\r\n className={cn(\"flex items-center gap-2\")}\r\n isIconOnly={!open}\r\n size=\"sm\"\r\n variant=\"light\"\r\n >\r\n <GiftIcon className=\"w-4 h-4 text-neutral-500\" />\r\n <span className=\"group-data-[collapsible=icon]:hidden text-sm text-neutral-500\">\r\n {t(\"sidebar.invites.title\")}\r\n </span>\r\n </Button>\r\n </Badge>\r\n </Tooltip>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AAOA,SAAgB,kBAAkB,EAAE,SAA4B;CAC9D,MAAM,EAAE,SAAS,YAAY;CAC7B,MAAM,EAAE,MAAM,eAAe,SAAS;AACtC,QACE,oBAAC,OAAD;EAAK,WAAW,GAAG,6BAA6B;YAC9C,oBAAC,SAAD;GAAS,SAAS,EAAE,wBAAwB;GAAE,WAAU;GAAQ,YAAY;aAC1E,oBAAC,OAAD;IAAO,OAAM;IAAU,SAAQ;IAAQ,SAAS;IAAO,MAAK;IAAK,WAAA;cAC/D,qBAAC,QAAD;KACE,IAAIA;KACJ,IAAG;KACH,WAAW,GAAG,0BAA0B;KACxC,YAAY,CAAC;KACb,MAAK;KACL,SAAQ;eANV,CAQE,oBAAC,UAAD,EAAU,WAAU,4BAA6B,CAAA,EACjD,oBAAC,QAAD;MAAM,WAAU;gBACb,EAAE,wBAAwB;MACtB,CAAA,CACA;;IACH,CAAA;GACA,CAAA;EACN,CAAA"}
1
+ {"version":3,"file":"AppSidebarInvites.mjs","names":[],"sources":["../../../../../src/modules/app/components/AppSidebarInvites.tsx"],"sourcesContent":["import { Badge, Button, Tooltip } from \"@heroui/react\";\r\nimport { useSidebar } from \"@m5kdev/web-ui/components/ui/sidebar\";\r\nimport { cn } from \"@m5kdev/web-ui/utils\";\r\nimport { GiftIcon } from \"lucide-react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Link } from \"react-router\";\r\n\r\nexport function AppSidebarInvites({ count }: { count: number }) {\r\n const { open } = useSidebar();\r\n const { t } = useTranslation(\"web-ui\");\r\n return (\r\n <div className={cn(\"flex justify-center w-auto\")}>\r\n <Tooltip content={t(\"sidebar.invites.title\")} placement=\"right\" isDisabled={open}>\r\n <Badge color=\"primary\" variant=\"faded\" content={count} size=\"sm\" isOneChar>\r\n <Button\r\n as={Link}\r\n to=\"/invites\"\r\n className={cn(\"flex items-center gap-2\")}\r\n isIconOnly={!open}\r\n size=\"sm\"\r\n variant=\"light\"\r\n >\r\n <GiftIcon className=\"w-4 h-4 text-neutral-500\" />\r\n <span className=\"group-data-[collapsible=icon]:hidden text-sm text-neutral-500\">\r\n {t(\"sidebar.invites.title\")}\r\n </span>\r\n </Button>\r\n </Badge>\r\n </Tooltip>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AAOA,SAAgB,kBAAkB,EAAE,SAA4B;CAC9D,MAAM,EAAE,SAAS,YAAY;CAC7B,MAAM,EAAE,MAAM,eAAe,SAAS;AACtC,QACE,oBAAC,OAAD;EAAK,WAAW,GAAG,6BAA6B;YAC9C,oBAAC,SAAD;GAAS,SAAS,EAAE,wBAAwB;GAAE,WAAU;GAAQ,YAAY;aAC1E,oBAAC,OAAD;IAAO,OAAM;IAAU,SAAQ;IAAQ,SAAS;IAAO,MAAK;IAAK,WAAA;cAC/D,qBAAC,QAAD;KACE,IAAI;KACJ,IAAG;KACH,WAAW,GAAG,0BAA0B;KACxC,YAAY,CAAC;KACb,MAAK;KACL,SAAQ;eANV,CAQE,oBAAC,UAAD,EAAU,WAAU,4BAA6B,CAAA,EACjD,oBAAC,QAAD;MAAM,WAAU;gBACb,EAAE,wBAAwB;MACtB,CAAA,CACA;;IACH,CAAA;GACA,CAAA;EACN,CAAA"}