@m5kdev/web-ui 0.9.1 → 0.9.3
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/src/components/AvatarUpload.js +2 -2
- package/dist/src/components/AvatarUpload.mjs +3 -3
- package/dist/src/components/AvatarUpload.mjs.map +1 -1
- package/dist/src/components/Calendar.d.mts +1 -1
- package/dist/src/components/CardsSelect.js +2 -2
- package/dist/src/components/CardsSelect.mjs +2 -2
- package/dist/src/components/CollapsibleSidebarMenuItem.d.mts +1 -1
- package/dist/src/components/CollapsibleSidebarMenuItem.js +1 -1
- package/dist/src/components/CollapsibleSidebarMenuItem.mjs +1 -1
- package/dist/src/components/ColorPicker.js +2 -2
- package/dist/src/components/ColorPicker.mjs +2 -2
- package/dist/src/components/CopyButton.js +3 -3
- package/dist/src/components/CopyButton.mjs +4 -4
- package/dist/src/components/CopyButton.mjs.map +1 -1
- package/dist/src/components/CropDialog.js +2 -2
- package/dist/src/components/CropDialog.mjs +2 -2
- package/dist/src/components/DialogProvider.js +1 -1
- package/dist/src/components/DialogProvider.mjs +2 -2
- package/dist/src/components/DialogProvider.mjs.map +1 -1
- package/dist/src/components/FileDropzone.js +2 -2
- package/dist/src/components/FileDropzone.mjs +4 -4
- package/dist/src/components/FileDropzone.mjs.map +1 -1
- package/dist/src/components/MultiSelectDropdown.js +2 -2
- package/dist/src/components/MultiSelectDropdown.mjs +8 -8
- package/dist/src/components/MultiSelectDropdown.mjs.map +1 -1
- package/dist/src/components/Orb.js +1 -1
- package/dist/src/components/Orb.mjs +1 -1
- package/dist/src/components/PageAlert.d.mts +1 -1
- package/dist/src/components/PageAlert.d.ts +1 -1
- package/dist/src/components/PageAlert.js +4 -3
- package/dist/src/components/PageAlert.js.map +1 -1
- package/dist/src/components/PageAlert.mjs +2 -2
- package/dist/src/components/SidebarItem.d.mts +1 -1
- package/dist/src/components/Steps.js +1 -1
- package/dist/src/components/Steps.mjs +1 -1
- package/dist/src/components/app-header.js +1 -1
- package/dist/src/components/app-header.mjs +2 -2
- package/dist/src/components/app-header.mjs.map +1 -1
- package/dist/src/components/blur-card.d.mts +1 -1
- package/dist/src/components/blur-card.js +1 -1
- package/dist/src/components/blur-card.mjs +1 -1
- package/dist/src/components/features-section-demo-1.js +1 -1
- package/dist/src/components/features-section-demo-1.mjs +1 -1
- package/dist/src/components/features-section-demo-3.js +1 -1
- package/dist/src/components/features-section-demo-3.mjs +1 -1
- package/dist/src/components/mode-toggle.js +1 -1
- package/dist/src/components/mode-toggle.mjs +1 -1
- package/dist/src/components/nav-main.d.mts +1 -1
- package/dist/src/components/nav-main.js +1 -1
- package/dist/src/components/nav-main.mjs +1 -1
- package/dist/src/components/pricing-cards.js +1 -1
- package/dist/src/components/pricing-cards.mjs +1 -1
- package/dist/src/components/shared/ButtonCopy.js +2 -2
- package/dist/src/components/shared/ButtonCopy.mjs +3 -3
- package/dist/src/components/shared/ButtonCopy.mjs.map +1 -1
- package/dist/src/components/team-switcher.d.mts +1 -1
- package/dist/src/components/team-switcher.js +2 -2
- package/dist/src/components/team-switcher.mjs +2 -2
- package/dist/src/components/theme-provider.js +1 -1
- package/dist/src/components/theme-provider.mjs +1 -1
- package/dist/src/components/typewriter.js +1 -1
- package/dist/src/components/typewriter.mjs +1 -1
- package/dist/src/components/ui/alert-dialog.d.mts +1 -1
- package/dist/src/components/ui/alert.d.mts +1 -1
- package/dist/src/components/ui/alert.js +2 -1
- package/dist/src/components/ui/alert.js.map +1 -1
- package/dist/src/components/ui/alert.mjs +1 -1
- package/dist/src/components/ui/avatar.js +1 -1
- package/dist/src/components/ui/avatar.mjs +1 -1
- package/dist/src/components/ui/badge.d.mts +1 -1
- package/dist/src/components/ui/badge.js +2 -1
- package/dist/src/components/ui/badge.js.map +1 -1
- package/dist/src/components/ui/badge.mjs +1 -1
- package/dist/src/components/ui/bento-grid2.d.mts +1 -1
- package/dist/src/components/ui/breadcrumb.d.mts +1 -1
- package/dist/src/components/ui/breadcrumb.js +2 -2
- package/dist/src/components/ui/breadcrumb.mjs +2 -2
- package/dist/src/components/ui/button.js +3 -2
- package/dist/src/components/ui/button.js.map +1 -1
- package/dist/src/components/ui/button.mjs +1 -1
- package/dist/src/components/ui/card.js +1 -1
- package/dist/src/components/ui/card.mjs +1 -1
- package/dist/src/components/ui/checkbox.js +2 -2
- package/dist/src/components/ui/checkbox.mjs +2 -2
- package/dist/src/components/ui/dialog.d.mts +1 -1
- package/dist/src/components/ui/dialog.js +1 -1
- package/dist/src/components/ui/dialog.mjs +1 -1
- package/dist/src/components/ui/dropdown-menu.d.mts +1 -1
- package/dist/src/components/ui/dropdown-menu.js +2 -2
- package/dist/src/components/ui/dropdown-menu.mjs +2 -2
- package/dist/src/components/ui/floating-navbar.d.mts +1 -1
- package/dist/src/components/ui/floating-navbar.js +1 -1
- package/dist/src/components/ui/floating-navbar.mjs +1 -1
- package/dist/src/components/ui/form.d.mts +1 -1
- package/dist/src/components/ui/form.js +1 -1
- package/dist/src/components/ui/form.mjs +1 -1
- package/dist/src/components/ui/image.js +1 -1
- package/dist/src/components/ui/image.mjs +1 -1
- package/dist/src/components/ui/input.js +1 -1
- package/dist/src/components/ui/input.mjs +1 -1
- package/dist/src/components/ui/label.js +1 -1
- package/dist/src/components/ui/label.mjs +1 -1
- package/dist/src/components/ui/pagination.d.mts +1 -1
- package/dist/src/components/ui/pagination.js +1 -1
- package/dist/src/components/ui/pagination.mjs +1 -1
- package/dist/src/components/ui/progress.js +1 -1
- package/dist/src/components/ui/progress.mjs +1 -1
- package/dist/src/components/ui/resizable-navbar.d.mts +1 -1
- package/dist/src/components/ui/resizable-navbar.js +2 -2
- package/dist/src/components/ui/resizable-navbar.mjs +2 -2
- package/dist/src/components/ui/segment-control.js +1 -1
- package/dist/src/components/ui/segment-control.mjs +3 -3
- package/dist/src/components/ui/segment-control.mjs.map +1 -1
- package/dist/src/components/ui/select.js +2 -2
- package/dist/src/components/ui/select.mjs +2 -2
- package/dist/src/components/ui/separator.js +1 -1
- package/dist/src/components/ui/separator.mjs +1 -1
- package/dist/src/components/ui/sheet.d.mts +1 -1
- package/dist/src/components/ui/sheet.js +2 -2
- package/dist/src/components/ui/sheet.mjs +2 -2
- package/dist/src/components/ui/sidebar.js +3 -3
- package/dist/src/components/ui/sidebar.mjs +3 -3
- package/dist/src/components/ui/slider.js +1 -1
- package/dist/src/components/ui/slider.mjs +1 -1
- package/dist/src/components/ui/spinner.d.mts +1 -1
- package/dist/src/components/ui/spinner.js +1 -1
- package/dist/src/components/ui/spinner.mjs +1 -1
- package/dist/src/components/ui/switch.js +1 -1
- package/dist/src/components/ui/switch.mjs +1 -1
- package/dist/src/components/ui/table.d.mts +1 -1
- package/dist/src/components/ui/tabs.d.mts +1 -1
- package/dist/src/components/ui/textarea.d.mts +1 -1
- package/dist/src/components/ui/timeline.d.mts +1 -1
- package/dist/src/components/ui/timeline.js +1 -1
- package/dist/src/components/ui/timeline.mjs +1 -1
- package/dist/src/components/ui/toast.js +2 -2
- package/dist/src/components/ui/toast.mjs +2 -2
- package/dist/src/components/ui/tooltip.d.mts +1 -1
- package/dist/src/components/ui/typewriter-effect.js +1 -1
- package/dist/src/components/ui/typewriter-effect.mjs +1 -1
- package/dist/src/icons/GoogleIcon.d.mts +1 -1
- package/dist/src/icons/LinkedInIcon.d.mts +1 -1
- package/dist/src/icons/MicrosoftIcon.d.mts +1 -1
- package/dist/src/modules/app/components/AppShell.d.mts +1 -1
- package/dist/src/modules/app/components/AppSidebar.d.mts +1 -1
- package/dist/src/modules/app/components/AppSidebarHeader.js +2 -2
- package/dist/src/modules/app/components/AppSidebarHeader.mjs +3 -3
- package/dist/src/modules/app/components/AppSidebarHeader.mjs.map +1 -1
- package/dist/src/modules/app/components/AppSidebarInvites.js +2 -2
- package/dist/src/modules/app/components/AppSidebarInvites.mjs +4 -4
- package/dist/src/modules/app/components/AppSidebarInvites.mjs.map +1 -1
- package/dist/src/modules/app/components/AppSidebarUser.js +1 -1
- package/dist/src/modules/app/components/AppSidebarUser.mjs +1 -1
- package/dist/src/modules/auth/components/AdminUserManagement.js +4 -4
- package/dist/src/modules/auth/components/AdminUserManagement.mjs +8 -8
- package/dist/src/modules/auth/components/AdminUserManagement.mjs.map +1 -1
- package/dist/src/modules/auth/components/AdminWaitlist.js +2 -2
- package/dist/src/modules/auth/components/AdminWaitlist.mjs +4 -4
- package/dist/src/modules/auth/components/AdminWaitlist.mjs.map +1 -1
- package/dist/src/modules/auth/components/AuthLayout.d.mts +1 -1
- package/dist/src/modules/auth/components/AuthProviders.js +1 -1
- package/dist/src/modules/auth/components/AuthProviders.mjs +1 -1
- package/dist/src/modules/auth/components/AuthRouter.d.mts +1 -1
- package/dist/src/modules/auth/components/ClaimAccountRoute.js +2 -2
- package/dist/src/modules/auth/components/ClaimAccountRoute.mjs +2 -2
- package/dist/src/modules/auth/components/ErrorAuthRoute.js +2 -2
- package/dist/src/modules/auth/components/ErrorAuthRoute.mjs +5 -5
- package/dist/src/modules/auth/components/ErrorAuthRoute.mjs.map +1 -1
- package/dist/src/modules/auth/components/ForgotPasswordForm.js +2 -2
- package/dist/src/modules/auth/components/ForgotPasswordForm.mjs +2 -2
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js +2 -2
- package/dist/src/modules/auth/components/ForgotPasswordRoute.mjs +3 -3
- package/dist/src/modules/auth/components/ForgotPasswordRoute.mjs.map +1 -1
- package/dist/src/modules/auth/components/InviteFriends.js +2 -2
- package/dist/src/modules/auth/components/InviteFriends.mjs +2 -2
- package/dist/src/modules/auth/components/LastUsedBadge.d.mts +1 -1
- package/dist/src/modules/auth/components/LastUsedBadge.js +1 -1
- package/dist/src/modules/auth/components/LastUsedBadge.mjs +1 -1
- package/dist/src/modules/auth/components/LoginForm.js +2 -2
- package/dist/src/modules/auth/components/LoginForm.mjs +4 -4
- package/dist/src/modules/auth/components/LoginForm.mjs.map +1 -1
- package/dist/src/modules/auth/components/LoginRoute.js +2 -2
- package/dist/src/modules/auth/components/LoginRoute.mjs +4 -4
- package/dist/src/modules/auth/components/LoginRoute.mjs.map +1 -1
- package/dist/src/modules/auth/components/LogoutRoute.js +2 -2
- package/dist/src/modules/auth/components/LogoutRoute.mjs +2 -2
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +2 -2
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.mjs +2 -2
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js +4 -4
- package/dist/src/modules/auth/components/OrganizationMembersRoute.mjs +4 -4
- package/dist/src/modules/auth/components/OrganizationPreferences.js +2 -2
- package/dist/src/modules/auth/components/OrganizationPreferences.mjs +2 -2
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +3 -3
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.mjs +3 -3
- package/dist/src/modules/auth/components/OrganizationSwitcher.js +4 -4
- package/dist/src/modules/auth/components/OrganizationSwitcher.mjs +6 -6
- package/dist/src/modules/auth/components/OrganizationSwitcher.mjs.map +1 -1
- package/dist/src/modules/auth/components/ProfileRoute.js +1 -1
- package/dist/src/modules/auth/components/ProfileRoute.mjs +1 -1
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js +2 -2
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.mjs +2 -2
- package/dist/src/modules/auth/components/ResetPasswordForm.js +2 -2
- package/dist/src/modules/auth/components/ResetPasswordForm.mjs +3 -3
- package/dist/src/modules/auth/components/ResetPasswordForm.mjs.map +1 -1
- package/dist/src/modules/auth/components/ResetPasswordRoute.js +2 -2
- package/dist/src/modules/auth/components/ResetPasswordRoute.mjs +3 -3
- package/dist/src/modules/auth/components/ResetPasswordRoute.mjs.map +1 -1
- package/dist/src/modules/auth/components/SignupFormRoute.js +2 -2
- package/dist/src/modules/auth/components/SignupFormRoute.mjs +2 -2
- package/dist/src/modules/auth/components/SignupRoute.js +2 -2
- package/dist/src/modules/auth/components/SignupRoute.mjs +3 -3
- package/dist/src/modules/auth/components/SignupRoute.mjs.map +1 -1
- package/dist/src/modules/auth/components/UserPreferences.js +1 -1
- package/dist/src/modules/auth/components/UserPreferences.mjs +1 -1
- package/dist/src/modules/auth/components/WaitlistCard.js +2 -2
- package/dist/src/modules/auth/components/WaitlistCard.mjs +2 -2
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js +1 -1
- package/dist/src/modules/auth/components/WaitlistCodeValidation.mjs +1 -1
- package/dist/src/modules/billing/components/BillingBetaPage.d.mts +1 -1
- package/dist/src/modules/billing/components/BillingBetaPage.js +1 -1
- package/dist/src/modules/billing/components/BillingBetaPage.mjs +1 -1
- package/dist/src/modules/billing/components/BillingInvoicePage.js +2 -2
- package/dist/src/modules/billing/components/BillingInvoicePage.mjs +2 -2
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +3 -3
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.mjs +5 -5
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.mjs.map +1 -1
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +2 -2
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.mjs +2 -2
- package/dist/src/modules/table/components/NuqsTable.js +2 -2
- package/dist/src/modules/table/components/NuqsTable.mjs +4 -4
- package/dist/src/modules/table/components/NuqsTable.mjs.map +1 -1
- package/dist/src/modules/table/components/TableFiltering.js +2 -2
- package/dist/src/modules/table/components/TableFiltering.mjs +2 -2
- package/dist/src/modules/table/components/TableGroupBy.js +1 -1
- package/dist/src/modules/table/components/TableGroupBy.mjs +1 -1
- package/dist/src/modules/table/components/TablePagination.js +1 -1
- package/dist/src/modules/table/components/TablePagination.mjs +1 -1
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../_virtual/_rolldown/runtime.js");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
4
|
let react = require("react");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let motion_react = require("motion/react");
|
|
7
7
|
//#region src/components/ui/timeline.tsx
|
|
8
8
|
const Timeline = ({ data }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { motion, useScroll, useTransform } from "motion/react";
|
|
5
5
|
//#region src/components/ui/timeline.tsx
|
|
6
6
|
const Timeline = ({ data }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
|
|
3
3
|
const require_src_lib_utils = require("../../lib/utils.js");
|
|
4
|
-
let
|
|
4
|
+
let lucide_react = require("lucide-react");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
react = require_runtime.__toESM(react);
|
|
7
|
-
let lucide_react = require("lucide-react");
|
|
8
7
|
let class_variance_authority = require("class-variance-authority");
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let _radix_ui_react_toast = require("@radix-ui/react-toast");
|
|
10
10
|
_radix_ui_react_toast = require_runtime.__toESM(_radix_ui_react_toast);
|
|
11
11
|
//#region src/components/ui/toast.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as React$1 from "react";
|
|
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;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../_virtual/_rolldown/runtime.js");
|
|
4
4
|
const require_src_lib_utils = require("../../lib/utils.js");
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
5
|
let react = require("react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let motion_react = require("motion/react");
|
|
8
8
|
//#region src/components/ui/typewriter-effect.tsx
|
|
9
9
|
const TypewriterEffect = ({ words, className, cursorClassName }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../lib/utils.mjs";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { useEffect } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { motion, stagger, useAnimate, useInView } from "motion/react";
|
|
6
6
|
//#region src/components/ui/typewriter-effect.tsx
|
|
7
7
|
const TypewriterEffect = ({ words, className, cursorClassName }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/icons/GoogleIcon.d.ts
|
|
5
5
|
interface GoogleIconProps extends ComponentPropsWithoutRef<"svg"> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/icons/LinkedInIcon.d.ts
|
|
5
5
|
interface LinkedInIconProps extends ComponentPropsWithoutRef<"svg"> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/icons/MicrosoftIcon.d.ts
|
|
5
5
|
interface MicrosoftIconProps extends ComponentPropsWithoutRef<"svg"> {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppSidebarProps } from "./AppSidebar.mjs";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import { ReactNode } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/app/components/AppShell.d.ts
|
|
6
6
|
type AppShellProps = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
let _heroui_react = require("@heroui/react");
|
|
5
3
|
let lucide_react = require("lucide-react");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
5
|
let react_router = require("react-router");
|
|
6
|
+
let _heroui_react = require("@heroui/react");
|
|
7
7
|
let _m5kdev_web_ui_components_ui_sidebar = require("@m5kdev/web-ui/components/ui/sidebar");
|
|
8
8
|
let _m5kdev_web_ui_utils = require("@m5kdev/web-ui/utils");
|
|
9
9
|
//#region src/modules/app/components/AppSidebarHeader.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Link } from "react-router";
|
|
2
4
|
import { Button } from "@heroui/react";
|
|
3
|
-
import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
|
|
4
|
-
import { Link as Link$1 } from "react-router";
|
|
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
|
|
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":[
|
|
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,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
let _heroui_react = require("@heroui/react");
|
|
5
3
|
let lucide_react = require("lucide-react");
|
|
6
4
|
let react_i18next = require("react-i18next");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
6
|
let react_router = require("react-router");
|
|
7
|
+
let _heroui_react = require("@heroui/react");
|
|
8
8
|
let _m5kdev_web_ui_components_ui_sidebar = require("@m5kdev/web-ui/components/ui/sidebar");
|
|
9
9
|
let _m5kdev_web_ui_utils = require("@m5kdev/web-ui/utils");
|
|
10
10
|
//#region src/modules/app/components/AppSidebarInvites.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Badge, Button, Tooltip } from "@heroui/react";
|
|
3
1
|
import { GiftIcon } from "lucide-react";
|
|
4
2
|
import { useTranslation } from "react-i18next";
|
|
5
|
-
import {
|
|
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
|
|
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":[
|
|
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"}
|
|
@@ -3,9 +3,9 @@ require("../../../../_virtual/_rolldown/runtime.js");
|
|
|
3
3
|
const require_src_components_ui_avatar = require("../../../components/ui/avatar.js");
|
|
4
4
|
const require_src_components_ui_sidebar = require("../../../components/ui/sidebar.js");
|
|
5
5
|
const require_src_components_ui_dropdown_menu = require("../../../components/ui/dropdown-menu.js");
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
6
|
let lucide_react = require("lucide-react");
|
|
8
7
|
let react_i18next = require("react-i18next");
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let react_router = require("react-router");
|
|
10
10
|
//#region src/modules/app/components/AppSidebarUser.tsx
|
|
11
11
|
function AppSidebarUser({ user, onSignOut, organizationSettingsPath }) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Avatar, AvatarFallback, AvatarImage } from "../../../components/ui/avatar.mjs";
|
|
2
2
|
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from "../../../components/ui/sidebar.mjs";
|
|
3
3
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../../../components/ui/dropdown-menu.mjs";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Building2, ChevronsUpDown, CreditCard, LogOut, Settings, Sparkles, User } from "lucide-react";
|
|
6
5
|
import { useTranslation } from "react-i18next";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Link } from "react-router";
|
|
8
8
|
//#region src/modules/app/components/AppSidebarUser.tsx
|
|
9
9
|
function AppSidebarUser({ user, onSignOut, organizationSettingsPath }) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
let react = require("react");
|
|
5
|
-
let _heroui_react = require("@heroui/react");
|
|
6
3
|
let lucide_react = require("lucide-react");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
6
|
let react_router = require("react-router");
|
|
7
|
+
let _heroui_react = require("@heroui/react");
|
|
8
8
|
let sonner = require("sonner");
|
|
9
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
9
10
|
let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
|
|
10
11
|
let _m5kdev_frontend_modules_auth_hooks_useAuthAdmin = require("@m5kdev/frontend/modules/auth/hooks/useAuthAdmin");
|
|
11
12
|
_m5kdev_frontend_modules_auth_hooks_useAuthAdmin = require_runtime.__toESM(_m5kdev_frontend_modules_auth_hooks_useAuthAdmin);
|
|
12
|
-
let _tanstack_react_query = require("@tanstack/react-query");
|
|
13
13
|
//#region src/modules/auth/components/AdminUserManagement.tsx
|
|
14
14
|
function AdminUserManagement({ useTRPC }) {
|
|
15
15
|
const banReasonInputId = (0, react.useId)();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useEffect, useId, useState } from "react";
|
|
3
|
-
import { Button, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, Input, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, Select, SelectItem, Spinner, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tooltip } from "@heroui/react";
|
|
4
1
|
import { BarChart3, CalendarClock, ChevronDown, ChevronUp, Copy, Filter, Info, Link2, List, MoreHorizontal, Search, UserPlus, X } from "lucide-react";
|
|
2
|
+
import { useCallback, useEffect, useId, useState } from "react";
|
|
3
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useNavigate } from "react-router";
|
|
5
|
+
import { Button, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, Input, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, Select, SelectItem, Spinner, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tooltip } from "@heroui/react";
|
|
6
6
|
import { toast } from "sonner";
|
|
7
|
+
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
7
8
|
import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
|
|
8
9
|
import * as authAdmin from "@m5kdev/frontend/modules/auth/hooks/useAuthAdmin";
|
|
9
|
-
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
10
10
|
//#region src/modules/auth/components/AdminUserManagement.tsx
|
|
11
11
|
function AdminUserManagement({ useTRPC }) {
|
|
12
12
|
const banReasonInputId = useId();
|
|
@@ -517,7 +517,7 @@ function AdminUserManagement({ useTRPC }) {
|
|
|
517
517
|
/* @__PURE__ */ jsx(DropdownItem, {
|
|
518
518
|
onClick: () => handleImpersonateUser(user.id),
|
|
519
519
|
isDisabled: user.banned || isImpersonatingUser,
|
|
520
|
-
children: isImpersonatingUser ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2 h-3 w-3" }), "Impersonating..."] }) : "Impersonate"
|
|
520
|
+
children: isImpersonatingUser ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2 h-3 w-3" }), "Impersonating..."] }) : "Impersonate"
|
|
521
521
|
}, "impersonate"),
|
|
522
522
|
/* @__PURE__ */ jsx(DropdownItem, {
|
|
523
523
|
onClick: () => openMagicLinkModal(user.id, user.name, user.email ?? null),
|
|
@@ -530,7 +530,7 @@ function AdminUserManagement({ useTRPC }) {
|
|
|
530
530
|
user.banned ? /* @__PURE__ */ jsx(DropdownItem, {
|
|
531
531
|
onClick: () => handleUnbanUser(user.id),
|
|
532
532
|
isDisabled: isUnbanningUser[user.id],
|
|
533
|
-
children: isUnbanningUser[user.id] ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2 h-3 w-3" }), "Unbanning..."] }) : "Unban"
|
|
533
|
+
children: isUnbanningUser[user.id] ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Spinner, { className: "mr-2 h-3 w-3" }), "Unbanning..."] }) : "Unban"
|
|
534
534
|
}, "unban") : /* @__PURE__ */ jsx(DropdownItem, {
|
|
535
535
|
onClick: () => openBanModal(user.id, user.name),
|
|
536
536
|
children: "Ban"
|
|
@@ -581,7 +581,7 @@ function AdminUserManagement({ useTRPC }) {
|
|
|
581
581
|
onOpenChange: (open) => {
|
|
582
582
|
if (!open) setUserToDelete(null);
|
|
583
583
|
},
|
|
584
|
-
children: /* @__PURE__ */ jsx(ModalContent, { children: (onClose) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(ModalHeader, {
|
|
584
|
+
children: /* @__PURE__ */ jsx(ModalContent, { children: (onClose) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(ModalHeader, {
|
|
585
585
|
className: "flex flex-col gap-1",
|
|
586
586
|
children: [/* @__PURE__ */ jsx("p", {
|
|
587
587
|
className: "text-lg font-semibold",
|
|
@@ -821,7 +821,7 @@ function AdminUserManagement({ useTRPC }) {
|
|
|
821
821
|
onOpenChange: (open) => {
|
|
822
822
|
if (!open) setUserForUsage(null);
|
|
823
823
|
},
|
|
824
|
-
children: /* @__PURE__ */ jsx(ModalContent, { children: (onClose) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
824
|
+
children: /* @__PURE__ */ jsx(ModalContent, { children: (onClose) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
825
825
|
/* @__PURE__ */ jsxs(ModalHeader, {
|
|
826
826
|
className: "flex flex-col gap-1",
|
|
827
827
|
children: [/* @__PURE__ */ jsxs("p", {
|