@m5kdev/web-ui 0.8.11 → 0.9.1
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/packages/backend/dist/src/modules/base/base.procedure.d.mts +11 -1
- package/dist/packages/backend/dist/src/modules/base/base.procedure.d.ts +11 -1
- package/dist/packages/backend/dist/src/modules/base/base.service.d.mts +1 -1
- package/dist/packages/backend/dist/src/modules/base/base.service.d.ts +1 -1
- package/dist/src/components/AvatarUpload.js +1 -1
- package/dist/src/components/AvatarUpload.mjs +2 -2
- package/dist/src/components/AvatarUpload.mjs.map +1 -1
- package/dist/src/components/Calendar.d.mts +1 -1
- package/dist/src/components/CardsSelect.js +1 -1
- package/dist/src/components/CardsSelect.mjs +1 -1
- package/dist/src/components/CollapsibleSidebarMenuItem.d.mts +1 -1
- package/dist/src/components/ColorPicker.d.mts +1 -1
- package/dist/src/components/ColorPicker.js +1 -1
- package/dist/src/components/ColorPicker.mjs +1 -1
- package/dist/src/components/CopyButton.d.mts +1 -1
- package/dist/src/components/CopyButton.js +1 -1
- package/dist/src/components/CopyButton.mjs +2 -2
- package/dist/src/components/CopyButton.mjs.map +1 -1
- package/dist/src/components/CropDialog.js +1 -1
- package/dist/src/components/CropDialog.mjs +1 -1
- package/dist/src/components/DialogProvider.d.mts +1 -1
- 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 +1 -1
- package/dist/src/components/FileDropzone.mjs +3 -3
- package/dist/src/components/FileDropzone.mjs.map +1 -1
- package/dist/src/components/MultiSelectDropdown.js +1 -1
- package/dist/src/components/MultiSelectDropdown.mjs +7 -7
- 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 +1 -1
- package/dist/src/components/PageAlert.mjs +1 -1
- package/dist/src/components/SelectChips.d.mts +1 -1
- package/dist/src/components/SelectChips.js +1 -1
- package/dist/src/components/SelectChips.mjs +1 -1
- package/dist/src/components/SidebarItem.d.mts +1 -1
- package/dist/src/components/TablerIconPicker.d.mts +1 -1
- package/dist/src/components/TablerIconPicker.js +1 -1
- package/dist/src/components/TablerIconPicker.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/shared/ButtonCopy.js +1 -1
- package/dist/src/components/shared/ButtonCopy.mjs +2 -2
- 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 +1 -1
- package/dist/src/components/team-switcher.mjs +1 -1
- 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/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/bento-grid2.d.mts +1 -1
- package/dist/src/components/ui/breadcrumb.d.mts +1 -1
- package/dist/src/components/ui/breadcrumb.js +1 -1
- package/dist/src/components/ui/breadcrumb.mjs +1 -1
- package/dist/src/components/ui/button.js +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 +1 -1
- package/dist/src/components/ui/checkbox.mjs +1 -1
- package/dist/src/components/ui/dialog.d.mts +1 -1
- package/dist/src/components/ui/dropdown-menu.d.mts +1 -1
- package/dist/src/components/ui/dropdown-menu.js +1 -1
- package/dist/src/components/ui/dropdown-menu.mjs +1 -1
- 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/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 +1 -1
- package/dist/src/components/ui/resizable-navbar.mjs +1 -1
- 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 +1 -1
- package/dist/src/components/ui/select.mjs +1 -1
- 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 +1 -1
- package/dist/src/components/ui/sheet.mjs +1 -1
- package/dist/src/components/ui/sidebar.js +1 -1
- package/dist/src/components/ui/sidebar.mjs +1 -1
- 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/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 +1 -1
- package/dist/src/components/ui/toast.mjs +1 -1
- 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/AppLoader.d.mts +1 -1
- package/dist/src/modules/app/components/AppLoader.js +1 -1
- package/dist/src/modules/app/components/AppLoader.mjs +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 +1 -1
- package/dist/src/modules/app/components/AppSidebarHeader.mjs +1 -1
- package/dist/src/modules/app/components/AppSidebarInvites.js +1 -1
- package/dist/src/modules/app/components/AppSidebarInvites.mjs +1 -1
- package/dist/src/modules/auth/components/AdminUserManagement.js +2 -2
- package/dist/src/modules/auth/components/AdminUserManagement.mjs +6 -6
- package/dist/src/modules/auth/components/AdminUserManagement.mjs.map +1 -1
- package/dist/src/modules/auth/components/AdminWaitlist.js +1 -1
- package/dist/src/modules/auth/components/AdminWaitlist.mjs +3 -3
- 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 +1 -1
- package/dist/src/modules/auth/components/ClaimAccountRoute.mjs +1 -1
- package/dist/src/modules/auth/components/ErrorAuthRoute.js +1 -1
- package/dist/src/modules/auth/components/ErrorAuthRoute.mjs +1 -1
- package/dist/src/modules/auth/components/ForgotPasswordForm.js +1 -1
- package/dist/src/modules/auth/components/ForgotPasswordForm.mjs +1 -1
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js +1 -1
- package/dist/src/modules/auth/components/ForgotPasswordRoute.mjs +1 -1
- package/dist/src/modules/auth/components/InviteFriends.js +1 -1
- package/dist/src/modules/auth/components/InviteFriends.mjs +1 -1
- 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 +1 -1
- package/dist/src/modules/auth/components/LoginForm.mjs +1 -1
- package/dist/src/modules/auth/components/LoginRoute.js +1 -1
- package/dist/src/modules/auth/components/LoginRoute.mjs +1 -1
- package/dist/src/modules/auth/components/LogoutRoute.js +1 -1
- package/dist/src/modules/auth/components/LogoutRoute.mjs +1 -1
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +1 -1
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.mjs +1 -1
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js +2 -2
- package/dist/src/modules/auth/components/OrganizationMembersRoute.mjs +2 -2
- package/dist/src/modules/auth/components/OrganizationPreferences.js +1 -1
- package/dist/src/modules/auth/components/OrganizationPreferences.mjs +1 -1
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +2 -2
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.mjs +2 -2
- package/dist/src/modules/auth/components/OrganizationSwitcher.js +2 -2
- package/dist/src/modules/auth/components/OrganizationSwitcher.mjs +2 -2
- package/dist/src/modules/auth/components/PreferencesEditor.js +1 -1
- package/dist/src/modules/auth/components/PreferencesEditor.mjs +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 +1 -1
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.mjs +1 -1
- package/dist/src/modules/auth/components/ResetPasswordForm.js +1 -1
- package/dist/src/modules/auth/components/ResetPasswordForm.mjs +1 -1
- package/dist/src/modules/auth/components/ResetPasswordRoute.js +1 -1
- package/dist/src/modules/auth/components/ResetPasswordRoute.mjs +1 -1
- package/dist/src/modules/auth/components/SignupFormRoute.js +1 -1
- package/dist/src/modules/auth/components/SignupFormRoute.mjs +1 -1
- package/dist/src/modules/auth/components/SignupRoute.js +1 -1
- package/dist/src/modules/auth/components/SignupRoute.mjs +1 -1
- package/dist/src/modules/auth/components/WaitlistCard.js +1 -1
- package/dist/src/modules/auth/components/WaitlistCard.mjs +1 -1
- 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/BillingInvoicePage.js +2 -2
- package/dist/src/modules/billing/components/BillingInvoicePage.mjs +2 -2
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +1 -1
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.mjs +1 -1
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +1 -1
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.mjs +1 -1
- package/dist/src/modules/table/components/NuqsTable.js +1 -1
- package/dist/src/modules/table/components/NuqsTable.mjs +3 -3
- package/dist/src/modules/table/components/NuqsTable.mjs.map +1 -1
- package/dist/src/modules/table/components/TableFiltering.js +1 -1
- package/dist/src/modules/table/components/TableFiltering.mjs +1 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
//#region src/components/ui/input.tsx
|
|
5
5
|
const Input = React$1.forwardRef(({ className, type, ...props }, ref) => {
|
|
6
6
|
return /* @__PURE__ */ jsx("input", {
|
|
@@ -1,9 +1,9 @@
|
|
|
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 react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let class_variance_authority = require("class-variance-authority");
|
|
8
8
|
let _radix_ui_react_label = require("@radix-ui/react-label");
|
|
9
9
|
_radix_ui_react_label = require_runtime.__toESM(_radix_ui_react_label);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
6
6
|
//#region src/components/ui/label.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
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 react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _radix_ui_react_progress = require("@radix-ui/react-progress");
|
|
8
8
|
_radix_ui_react_progress = require_runtime.__toESM(_radix_ui_react_progress);
|
|
9
9
|
//#region src/components/ui/progress.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
5
5
|
//#region src/components/ui/progress.tsx
|
|
6
6
|
const Progress = React$1.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_runtime = 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");
|
|
5
6
|
let react = require("react");
|
|
6
7
|
react = require_runtime.__toESM(react);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let lucide_react = require("lucide-react");
|
|
9
9
|
let motion_react = require("motion/react");
|
|
10
10
|
//#region src/components/ui/resizable-navbar.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../lib/utils.mjs";
|
|
3
|
-
import React, { useRef, useState } from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import React, { useRef, useState } from "react";
|
|
5
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
|
|
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.js");
|
|
3
3
|
const require_src_components_ui_button = require("./button.js");
|
|
4
4
|
const require_src_components_ui_dropdown_menu = require("./dropdown-menu.js");
|
|
5
|
-
let react = require("react");
|
|
6
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
let react = require("react");
|
|
7
7
|
let _tabler_icons_react = require("@tabler/icons-react");
|
|
8
8
|
//#region src/components/ui/segment-control.tsx
|
|
9
9
|
const SegmentDropdown = ({ options, value, resetButton, onChange }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "./button.mjs";
|
|
2
2
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./dropdown-menu.mjs";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
4
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { IconChevronDown } from "@tabler/icons-react";
|
|
6
6
|
//#region src/components/ui/segment-control.tsx
|
|
7
7
|
const SegmentDropdown = ({ options, value, resetButton, onChange }) => {
|
|
@@ -51,7 +51,7 @@ const SegmentDropdown = ({ options, value, resetButton, onChange }) => {
|
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
const SegmentControl = ({ options, value, onChange, className = "", resetButton = false }) => {
|
|
54
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
54
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
55
55
|
className: "block sm:hidden w-full " + className,
|
|
56
56
|
children: /* @__PURE__ */ jsx(SegmentDropdown, {
|
|
57
57
|
options,
|
|
@@ -71,7 +71,7 @@ const SegmentControl = ({ options, value, onChange, className = "", resetButton
|
|
|
71
71
|
"aria-pressed": selected,
|
|
72
72
|
children: option
|
|
73
73
|
}, option);
|
|
74
|
-
}), resetButton && /* @__PURE__ */ jsxs(Fragment
|
|
74
|
+
}), resetButton && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", { className: "border-l border-muted-foreground/20 h-4 sm:h-6 mx-1 sm:mx-2" }), /* @__PURE__ */ jsx(Button, {
|
|
75
75
|
type: "button",
|
|
76
76
|
variant: "ghost",
|
|
77
77
|
onClick: () => onChange(null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment-control.mjs","names":[],"sources":["../../../../src/components/ui/segment-control.tsx"],"sourcesContent":["import { IconChevronDown } from \"@tabler/icons-react\";\r\nimport { useLayoutEffect, useRef, useState } from \"react\";\r\nimport { Button } from \"./button\";\r\nimport {\r\n DropdownMenu,\r\n DropdownMenuContent,\r\n DropdownMenuItem,\r\n DropdownMenuTrigger,\r\n} from \"./dropdown-menu\";\r\n\r\ninterface SegmentControlProps {\r\n options: string[];\r\n value: string | null;\r\n onChange: (value: string | null) => void;\r\n className?: string;\r\n resetButton: boolean;\r\n}\r\n\r\nconst SegmentDropdown = ({ options, value, resetButton, onChange }: SegmentControlProps) => {\r\n const [triggerWidth, setTriggerWidth] = useState<number>();\r\n const triggerRef = useRef<HTMLButtonElement>(null);\r\n const [open, setOpen] = useState(false);\r\n\r\n useLayoutEffect(() => {\r\n if (triggerRef.current) {\r\n console.log(triggerRef.current.offsetWidth);\r\n setTriggerWidth(triggerRef.current.offsetWidth);\r\n }\r\n }, []);\r\n return (\r\n <DropdownMenu open={open} onOpenChange={setOpen}>\r\n <DropdownMenuTrigger asChild ref={triggerRef}>\r\n <Button className=\"w-full justify-between rounded-full border border-muted bg-muted/70 px-4 py-2 text-sm font-medium text-white\">\r\n {value ?? resetButton ?? options[0]}\r\n <IconChevronDown className=\"ml-2 h-4 w-4 opacity-60\" />\r\n </Button>\r\n </DropdownMenuTrigger>\r\n <DropdownMenuContent\r\n style={{ width: triggerWidth }}\r\n onInteractOutside={(e) => {\r\n e.preventDefault();\r\n setOpen(false);\r\n }}\r\n >\r\n {resetButton && (\r\n <DropdownMenuItem\r\n onSelect={(e) => {\r\n e.preventDefault();\r\n onChange(null);\r\n setOpen(false);\r\n }}\r\n className={value === null ? \"bg-primary text-primary-foreground\" : \"\"}\r\n >\r\n {resetButton}\r\n </DropdownMenuItem>\r\n )}\r\n {options.map((option) => (\r\n <DropdownMenuItem\r\n key={option}\r\n onSelect={(e) => {\r\n e.preventDefault();\r\n onChange(option);\r\n setOpen(false);\r\n }}\r\n className={value === option ? \"bg-primary text-primary-foreground\" : \"\"}\r\n >\r\n {option}\r\n </DropdownMenuItem>\r\n ))}\r\n </DropdownMenuContent>\r\n </DropdownMenu>\r\n );\r\n};\r\n\r\nexport const SegmentControl: React.FC<SegmentControlProps> = ({\r\n options,\r\n value,\r\n onChange,\r\n className = \"\",\r\n resetButton = false,\r\n}) => {\r\n // Dropdown for mobile (below sm)\r\n return (\r\n <>\r\n {/* Mobile: Dropdown */}\r\n <div className={\"block sm:hidden w-full \" + className}>\r\n <SegmentDropdown\r\n options={options}\r\n value={value}\r\n resetButton={resetButton}\r\n onChange={onChange}\r\n />\r\n </div>\r\n {/* Desktop: Segmented buttons */}\r\n <fieldset\r\n className={\r\n \"hidden sm:inline-flex flex-wrap items-center justify-center gap-1 sm:gap-2 bg-muted/70 rounded-full px-2 py-1.5 sm:px-4 sm:py-2 border-0 \" +\r\n className\r\n }\r\n >\r\n {options.map((option) => {\r\n const selected = value === option;\r\n return (\r\n <Button\r\n key={option}\r\n type=\"button\"\r\n variant=\"ghost\"\r\n onClick={() => onChange(option)}\r\n className={\r\n \"transition px-2 py-1.5 sm:px-4 sm:py-2 rounded-full text-xs sm:text-sm font-medium min-w-[60px] sm:min-w-[80px] \" +\r\n (selected\r\n ? \"bg-primary text-primary-foreground shadow hover:bg-primary hover:text-primary-foreground\"\r\n : \"bg-transparent text-muted-foreground hover:bg-muted hover:text-foreground hover:shadow\")\r\n }\r\n aria-pressed={selected}\r\n >\r\n {option}\r\n </Button>\r\n );\r\n })}\r\n {resetButton && (\r\n <>\r\n <div className=\"border-l border-muted-foreground/20 h-4 sm:h-6 mx-1 sm:mx-2\" />\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n onClick={() => onChange(null)}\r\n className={\r\n \"transition px-2 py-1.5 sm:px-4 sm:py-2 rounded-full text-xs sm:text-sm font-medium min-w-[60px] sm:min-w-[80px] \" +\r\n (value === null\r\n ? \"bg-primary text-primary-foreground shadow hover:bg-primary hover:text-primary-foreground\"\r\n : \"bg-transparent text-muted-foreground hover:bg-muted hover:text-foreground hover:shadow\")\r\n }\r\n aria-label=\"Reset\"\r\n >\r\n {resetButton}\r\n </Button>\r\n </>\r\n )}\r\n </fieldset>\r\n </>\r\n );\r\n};\r\n"],"mappings":";;;;;;AAkBA,MAAM,mBAAmB,EAAE,SAAS,OAAO,aAAa,eAAoC;CAC1F,MAAM,CAAC,cAAc,mBAAmB,UAAkB;CAC1D,MAAM,aAAa,OAA0B,KAAK;CAClD,MAAM,CAAC,MAAM,WAAW,SAAS,MAAM;AAEvC,uBAAsB;AACpB,MAAI,WAAW,SAAS;AACtB,WAAQ,IAAI,WAAW,QAAQ,YAAY;AAC3C,mBAAgB,WAAW,QAAQ,YAAY;;IAEhD,EAAE,CAAC;AACN,QACE,qBAAC,cAAD;EAAoB;EAAM,cAAc;YAAxC,CACE,oBAAC,qBAAD;GAAqB,SAAA;GAAQ,KAAK;aAChC,qBAAC,QAAD;IAAQ,WAAU;cAAlB,CACG,SAAS,eAAe,QAAQ,IACjC,oBAAC,iBAAD,EAAiB,WAAU,2BAA4B,CAAA,CAChD;;GACW,CAAA,EACtB,qBAAC,qBAAD;GACE,OAAO,EAAE,OAAO,cAAc;GAC9B,oBAAoB,MAAM;AACxB,MAAE,gBAAgB;AAClB,YAAQ,MAAM;;aAJlB,CAOG,eACC,oBAAC,kBAAD;IACE,WAAW,MAAM;AACf,OAAE,gBAAgB;AAClB,cAAS,KAAK;AACd,aAAQ,MAAM;;IAEhB,WAAW,UAAU,OAAO,uCAAuC;cAElE;IACgB,CAAA,EAEpB,QAAQ,KAAK,WACZ,oBAAC,kBAAD;IAEE,WAAW,MAAM;AACf,OAAE,gBAAgB;AAClB,cAAS,OAAO;AAChB,aAAQ,MAAM;;IAEhB,WAAW,UAAU,SAAS,uCAAuC;cAEpE;IACgB,EATZ,OASY,CACnB,CACkB;KACT;;;AAInB,MAAa,kBAAiD,EAC5D,SACA,OACA,UACA,YAAY,IACZ,cAAc,YACV;AAEJ,QACE,qBAAA,
|
|
1
|
+
{"version":3,"file":"segment-control.mjs","names":[],"sources":["../../../../src/components/ui/segment-control.tsx"],"sourcesContent":["import { IconChevronDown } from \"@tabler/icons-react\";\r\nimport { useLayoutEffect, useRef, useState } from \"react\";\r\nimport { Button } from \"./button\";\r\nimport {\r\n DropdownMenu,\r\n DropdownMenuContent,\r\n DropdownMenuItem,\r\n DropdownMenuTrigger,\r\n} from \"./dropdown-menu\";\r\n\r\ninterface SegmentControlProps {\r\n options: string[];\r\n value: string | null;\r\n onChange: (value: string | null) => void;\r\n className?: string;\r\n resetButton: boolean;\r\n}\r\n\r\nconst SegmentDropdown = ({ options, value, resetButton, onChange }: SegmentControlProps) => {\r\n const [triggerWidth, setTriggerWidth] = useState<number>();\r\n const triggerRef = useRef<HTMLButtonElement>(null);\r\n const [open, setOpen] = useState(false);\r\n\r\n useLayoutEffect(() => {\r\n if (triggerRef.current) {\r\n console.log(triggerRef.current.offsetWidth);\r\n setTriggerWidth(triggerRef.current.offsetWidth);\r\n }\r\n }, []);\r\n return (\r\n <DropdownMenu open={open} onOpenChange={setOpen}>\r\n <DropdownMenuTrigger asChild ref={triggerRef}>\r\n <Button className=\"w-full justify-between rounded-full border border-muted bg-muted/70 px-4 py-2 text-sm font-medium text-white\">\r\n {value ?? resetButton ?? options[0]}\r\n <IconChevronDown className=\"ml-2 h-4 w-4 opacity-60\" />\r\n </Button>\r\n </DropdownMenuTrigger>\r\n <DropdownMenuContent\r\n style={{ width: triggerWidth }}\r\n onInteractOutside={(e) => {\r\n e.preventDefault();\r\n setOpen(false);\r\n }}\r\n >\r\n {resetButton && (\r\n <DropdownMenuItem\r\n onSelect={(e) => {\r\n e.preventDefault();\r\n onChange(null);\r\n setOpen(false);\r\n }}\r\n className={value === null ? \"bg-primary text-primary-foreground\" : \"\"}\r\n >\r\n {resetButton}\r\n </DropdownMenuItem>\r\n )}\r\n {options.map((option) => (\r\n <DropdownMenuItem\r\n key={option}\r\n onSelect={(e) => {\r\n e.preventDefault();\r\n onChange(option);\r\n setOpen(false);\r\n }}\r\n className={value === option ? \"bg-primary text-primary-foreground\" : \"\"}\r\n >\r\n {option}\r\n </DropdownMenuItem>\r\n ))}\r\n </DropdownMenuContent>\r\n </DropdownMenu>\r\n );\r\n};\r\n\r\nexport const SegmentControl: React.FC<SegmentControlProps> = ({\r\n options,\r\n value,\r\n onChange,\r\n className = \"\",\r\n resetButton = false,\r\n}) => {\r\n // Dropdown for mobile (below sm)\r\n return (\r\n <>\r\n {/* Mobile: Dropdown */}\r\n <div className={\"block sm:hidden w-full \" + className}>\r\n <SegmentDropdown\r\n options={options}\r\n value={value}\r\n resetButton={resetButton}\r\n onChange={onChange}\r\n />\r\n </div>\r\n {/* Desktop: Segmented buttons */}\r\n <fieldset\r\n className={\r\n \"hidden sm:inline-flex flex-wrap items-center justify-center gap-1 sm:gap-2 bg-muted/70 rounded-full px-2 py-1.5 sm:px-4 sm:py-2 border-0 \" +\r\n className\r\n }\r\n >\r\n {options.map((option) => {\r\n const selected = value === option;\r\n return (\r\n <Button\r\n key={option}\r\n type=\"button\"\r\n variant=\"ghost\"\r\n onClick={() => onChange(option)}\r\n className={\r\n \"transition px-2 py-1.5 sm:px-4 sm:py-2 rounded-full text-xs sm:text-sm font-medium min-w-[60px] sm:min-w-[80px] \" +\r\n (selected\r\n ? \"bg-primary text-primary-foreground shadow hover:bg-primary hover:text-primary-foreground\"\r\n : \"bg-transparent text-muted-foreground hover:bg-muted hover:text-foreground hover:shadow\")\r\n }\r\n aria-pressed={selected}\r\n >\r\n {option}\r\n </Button>\r\n );\r\n })}\r\n {resetButton && (\r\n <>\r\n <div className=\"border-l border-muted-foreground/20 h-4 sm:h-6 mx-1 sm:mx-2\" />\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n onClick={() => onChange(null)}\r\n className={\r\n \"transition px-2 py-1.5 sm:px-4 sm:py-2 rounded-full text-xs sm:text-sm font-medium min-w-[60px] sm:min-w-[80px] \" +\r\n (value === null\r\n ? \"bg-primary text-primary-foreground shadow hover:bg-primary hover:text-primary-foreground\"\r\n : \"bg-transparent text-muted-foreground hover:bg-muted hover:text-foreground hover:shadow\")\r\n }\r\n aria-label=\"Reset\"\r\n >\r\n {resetButton}\r\n </Button>\r\n </>\r\n )}\r\n </fieldset>\r\n </>\r\n );\r\n};\r\n"],"mappings":";;;;;;AAkBA,MAAM,mBAAmB,EAAE,SAAS,OAAO,aAAa,eAAoC;CAC1F,MAAM,CAAC,cAAc,mBAAmB,UAAkB;CAC1D,MAAM,aAAa,OAA0B,KAAK;CAClD,MAAM,CAAC,MAAM,WAAW,SAAS,MAAM;AAEvC,uBAAsB;AACpB,MAAI,WAAW,SAAS;AACtB,WAAQ,IAAI,WAAW,QAAQ,YAAY;AAC3C,mBAAgB,WAAW,QAAQ,YAAY;;IAEhD,EAAE,CAAC;AACN,QACE,qBAAC,cAAD;EAAoB;EAAM,cAAc;YAAxC,CACE,oBAAC,qBAAD;GAAqB,SAAA;GAAQ,KAAK;aAChC,qBAAC,QAAD;IAAQ,WAAU;cAAlB,CACG,SAAS,eAAe,QAAQ,IACjC,oBAAC,iBAAD,EAAiB,WAAU,2BAA4B,CAAA,CAChD;;GACW,CAAA,EACtB,qBAAC,qBAAD;GACE,OAAO,EAAE,OAAO,cAAc;GAC9B,oBAAoB,MAAM;AACxB,MAAE,gBAAgB;AAClB,YAAQ,MAAM;;aAJlB,CAOG,eACC,oBAAC,kBAAD;IACE,WAAW,MAAM;AACf,OAAE,gBAAgB;AAClB,cAAS,KAAK;AACd,aAAQ,MAAM;;IAEhB,WAAW,UAAU,OAAO,uCAAuC;cAElE;IACgB,CAAA,EAEpB,QAAQ,KAAK,WACZ,oBAAC,kBAAD;IAEE,WAAW,MAAM;AACf,OAAE,gBAAgB;AAClB,cAAS,OAAO;AAChB,aAAQ,MAAM;;IAEhB,WAAW,UAAU,SAAS,uCAAuC;cAEpE;IACgB,EATZ,OASY,CACnB,CACkB;KACT;;;AAInB,MAAa,kBAAiD,EAC5D,SACA,OACA,UACA,YAAY,IACZ,cAAc,YACV;AAEJ,QACE,qBAAA,UAAA,EAAA,UAAA,CAEE,oBAAC,OAAD;EAAK,WAAW,4BAA4B;YAC1C,oBAAC,iBAAD;GACW;GACF;GACM;GACH;GACV,CAAA;EACE,CAAA,EAEN,qBAAC,YAAD;EACE,WACE,8IACA;YAHJ,CAMG,QAAQ,KAAK,WAAW;GACvB,MAAM,WAAW,UAAU;AAC3B,UACE,oBAAC,QAAD;IAEE,MAAK;IACL,SAAQ;IACR,eAAe,SAAS,OAAO;IAC/B,WACE,sHACC,WACG,6FACA;IAEN,gBAAc;cAEb;IACM,EAbF,OAaE;IAEX,EACD,eACC,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD,EAAK,WAAU,+DAAgE,CAAA,EAC/E,oBAAC,QAAD;GACE,MAAK;GACL,SAAQ;GACR,eAAe,SAAS,KAAK;GAC7B,WACE,sHACC,UAAU,OACP,6FACA;GAEN,cAAW;aAEV;GACM,CAAA,CACR,EAAA,CAAA,CAEI;IACV,EAAA,CAAA"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_runtime = 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");
|
|
5
6
|
let react = require("react");
|
|
6
7
|
react = require_runtime.__toESM(react);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let lucide_react = require("lucide-react");
|
|
9
9
|
let _radix_ui_react_select = require("@radix-ui/react-select");
|
|
10
10
|
_radix_ui_react_select = require_runtime.__toESM(_radix_ui_react_select);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../lib/utils.mjs";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
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
|
|
@@ -1,9 +1,9 @@
|
|
|
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 react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _radix_ui_react_separator = require("@radix-ui/react-separator");
|
|
8
8
|
_radix_ui_react_separator = require_runtime.__toESM(_radix_ui_react_separator);
|
|
9
9
|
//#region src/components/ui/separator.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
5
5
|
//#region src/components/ui/separator.tsx
|
|
6
6
|
const Separator = React$1.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
5
5
|
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_runtime = 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");
|
|
5
6
|
let react = require("react");
|
|
6
7
|
react = require_runtime.__toESM(react);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let lucide_react = require("lucide-react");
|
|
9
9
|
let class_variance_authority = require("class-variance-authority");
|
|
10
10
|
let _radix_ui_react_dialog = require("@radix-ui/react-dialog");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../lib/utils.mjs";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
5
|
import { X } from "lucide-react";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
7
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
@@ -9,9 +9,9 @@ const require_src_components_ui_separator = require("./separator.js");
|
|
|
9
9
|
const require_src_components_ui_sheet = require("./sheet.js");
|
|
10
10
|
const require_src_components_ui_skeleton = require("./skeleton.js");
|
|
11
11
|
const require_src_components_ui_tooltip = require("./tooltip.js");
|
|
12
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
13
|
let react = require("react");
|
|
13
14
|
react = require_runtime.__toESM(react);
|
|
14
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
15
|
let lucide_react = require("lucide-react");
|
|
16
16
|
let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
17
17
|
let class_variance_authority = require("class-variance-authority");
|
|
@@ -7,8 +7,8 @@ import { Separator } from "./separator.mjs";
|
|
|
7
7
|
import { Sheet, SheetContent } from "./sheet.mjs";
|
|
8
8
|
import { Skeleton } from "./skeleton.mjs";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.mjs";
|
|
10
|
-
import * as React$1 from "react";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import * as React$1 from "react";
|
|
12
12
|
import { PanelLeft } from "lucide-react";
|
|
13
13
|
import { Slot } from "@radix-ui/react-slot";
|
|
14
14
|
import { cva } from "class-variance-authority";
|
|
@@ -1,9 +1,9 @@
|
|
|
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 react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _radix_ui_react_slider = require("@radix-ui/react-slider");
|
|
8
8
|
_radix_ui_react_slider = require_runtime.__toESM(_radix_ui_react_slider);
|
|
9
9
|
//#region src/components/ui/slider.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
5
5
|
//#region src/components/ui/slider.tsx
|
|
6
6
|
const Slider = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(SliderPrimitive.Root, {
|
|
@@ -1,9 +1,9 @@
|
|
|
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 react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _radix_ui_react_switch = require("@radix-ui/react-switch");
|
|
8
8
|
_radix_ui_react_switch = require_runtime.__toESM(_radix_ui_react_switch);
|
|
9
9
|
//#region src/components/ui/switch.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
5
5
|
//#region src/components/ui/switch.tsx
|
|
6
6
|
const Switch = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SwitchPrimitives.Root, {
|
|
@@ -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 = require("react");
|
|
5
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let react = require("react");
|
|
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 { useEffect, useRef, useState } from "react";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { motion, useScroll, useTransform } from "motion/react";
|
|
5
5
|
//#region src/components/ui/timeline.tsx
|
|
6
6
|
const Timeline = ({ data }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
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 react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let lucide_react = require("lucide-react");
|
|
8
8
|
let class_variance_authority = require("class-variance-authority");
|
|
9
9
|
let _radix_ui_react_toast = require("@radix-ui/react-toast");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import { X } from "lucide-react";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
@@ -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 = require("react");
|
|
6
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
let react = require("react");
|
|
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 { useEffect } from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { useEffect } from "react";
|
|
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 { ComponentPropsWithoutRef } from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/icons/GoogleIcon.d.ts
|
|
5
5
|
interface GoogleIconProps extends ComponentPropsWithoutRef<"svg"> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/icons/LinkedInIcon.d.ts
|
|
5
5
|
interface LinkedInIconProps extends ComponentPropsWithoutRef<"svg"> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
1
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/icons/MicrosoftIcon.d.ts
|
|
5
5
|
interface MicrosoftIconProps extends ComponentPropsWithoutRef<"svg"> {}
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
-
let _heroui_react = require("@heroui/react");
|
|
4
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let _heroui_react = require("@heroui/react");
|
|
5
5
|
//#region src/modules/app/components/AppLoader.tsx
|
|
6
6
|
function AppLoader(props) {
|
|
7
7
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
-
let _heroui_react = require("@heroui/react");
|
|
4
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let _heroui_react = require("@heroui/react");
|
|
5
5
|
let lucide_react = require("lucide-react");
|
|
6
6
|
let react_router = require("react-router");
|
|
7
7
|
let _m5kdev_web_ui_components_ui_sidebar = require("@m5kdev/web-ui/components/ui/sidebar");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from "@heroui/react";
|
|
2
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "@heroui/react";
|
|
3
3
|
import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
|
|
4
4
|
import { Link as Link$1 } from "react-router";
|
|
5
5
|
import { useSidebar } from "@m5kdev/web-ui/components/ui/sidebar";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
-
let _heroui_react = require("@heroui/react");
|
|
4
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let _heroui_react = require("@heroui/react");
|
|
5
5
|
let lucide_react = require("lucide-react");
|
|
6
6
|
let react_i18next = require("react-i18next");
|
|
7
7
|
let react_router = require("react-router");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Badge, Button, Tooltip } from "@heroui/react";
|
|
2
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, Button, Tooltip } from "@heroui/react";
|
|
3
3
|
import { GiftIcon } from "lucide-react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { Link as Link$1 } from "react-router";
|
|
@@ -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");
|
|
3
4
|
let react = require("react");
|
|
4
5
|
let _heroui_react = require("@heroui/react");
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let lucide_react = require("lucide-react");
|
|
7
7
|
let react_router = require("react-router");
|
|
8
8
|
let sonner = require("sonner");
|
|
9
|
-
let _tanstack_react_query = require("@tanstack/react-query");
|
|
10
9
|
let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
|
|
11
10
|
let _m5kdev_frontend_modules_auth_hooks_useAuthAdmin = require("@m5kdev/frontend/modules/auth/hooks/useAuthAdmin");
|
|
12
11
|
_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";
|
|
1
2
|
import { useCallback, useEffect, useId, useState } from "react";
|
|
2
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";
|
|
3
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { BarChart3, CalendarClock, ChevronDown, ChevronUp, Copy, Filter, Info, Link2, List, MoreHorizontal, Search, UserPlus, X } from "lucide-react";
|
|
5
5
|
import { useNavigate } from "react-router";
|
|
6
6
|
import { toast } from "sonner";
|
|
7
|
-
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
8
7
|
import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
|
|
9
8
|
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
|
|
520
|
+
children: isImpersonatingUser ? /* @__PURE__ */ jsxs(Fragment, { 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
|
|
533
|
+
children: isUnbanningUser[user.id] ? /* @__PURE__ */ jsxs(Fragment, { 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
|
|
584
|
+
children: /* @__PURE__ */ jsx(ModalContent, { children: (onClose) => /* @__PURE__ */ jsxs(Fragment, { 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
|
|
824
|
+
children: /* @__PURE__ */ jsx(ModalContent, { children: (onClose) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
825
825
|
/* @__PURE__ */ jsxs(ModalHeader, {
|
|
826
826
|
className: "flex flex-col gap-1",
|
|
827
827
|
children: [/* @__PURE__ */ jsxs("p", {
|