@adamosuiteservices/ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/accordion-rounded.cjs +6 -0
- package/dist/accordion-rounded.js +85 -0
- package/dist/accordion.cjs +1 -0
- package/dist/accordion.js +65 -0
- package/dist/alert.cjs +1 -0
- package/dist/alert.js +69 -0
- package/dist/avatar.cjs +17 -0
- package/dist/avatar.js +248 -0
- package/dist/badge.cjs +1 -0
- package/dist/badge.js +54 -0
- package/dist/button-BFK0LYE1.js +58 -0
- package/dist/button-BnuVhhWO.cjs +1 -0
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.js +76 -0
- package/dist/button.cjs +1 -0
- package/dist/button.js +5 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.js +2852 -0
- package/dist/card.cjs +1 -0
- package/dist/card.js +112 -0
- package/dist/check-CLxNVljQ.cjs +6 -0
- package/dist/check-Ci0GjV-B.js +11 -0
- package/dist/checkbox-BlfeC4MI.js +271 -0
- package/dist/checkbox-uByYIkZe.cjs +1 -0
- package/dist/checkbox.cjs +1 -0
- package/dist/checkbox.js +4 -0
- package/dist/chevron-down-BqEHzml5.cjs +6 -0
- package/dist/chevron-down-CpVS2Z7w.js +11 -0
- package/dist/chevron-left-B8QsBNvc.cjs +6 -0
- package/dist/chevron-left-Eal-WYLp.js +11 -0
- package/dist/chevron-right-BpzggHsr.cjs +6 -0
- package/dist/chevron-right-Cnc2tB4-.js +11 -0
- package/dist/circle-CX7JIirj.cjs +6 -0
- package/dist/circle-DYv-7Qb9.js +11 -0
- package/dist/collapsible.cjs +1 -0
- package/dist/collapsible.js +34 -0
- package/dist/colors.css +1 -0
- package/dist/combobox.cjs +6 -0
- package/dist/combobox.js +515 -0
- package/dist/components/layout/sidebar/index.d.ts +1 -0
- package/dist/components/layout/sidebar/sidebar.d.ts +17 -0
- package/dist/components/layout/sidebar/sidebar.stories.d.ts +6 -0
- package/dist/components/layout/toaster/index.d.ts +2 -0
- package/dist/components/layout/toaster/toaster.d.ts +26 -0
- package/dist/components/layout/toaster/toaster.stories.d.ts +15 -0
- package/dist/components/layout/toaster/use-toast.d.ts +1 -0
- package/dist/components/ui/accordion/accordion.d.ts +7 -0
- package/dist/components/ui/accordion/accordion.stories.d.ts +17 -0
- package/dist/components/ui/accordion/index.d.ts +1 -0
- package/dist/components/ui/accordion-rounded/accordion-rounded.d.ts +11 -0
- package/dist/components/ui/accordion-rounded/accordion-rounded.stories.d.ts +21 -0
- package/dist/components/ui/accordion-rounded/index.d.ts +1 -0
- package/dist/components/ui/alert/alert.d.ts +9 -0
- package/dist/components/ui/alert/alert.stories.d.ts +24 -0
- package/dist/components/ui/alert/index.d.ts +1 -0
- package/dist/components/ui/avatar/avatar.d.ts +6 -0
- package/dist/components/ui/avatar/avatar.stories.d.ts +14 -0
- package/dist/components/ui/avatar/index.d.ts +1 -0
- package/dist/components/ui/badge/badge.d.ts +10 -0
- package/dist/components/ui/badge/badge.stories.d.ts +41 -0
- package/dist/components/ui/badge/index.d.ts +1 -0
- package/dist/components/ui/button/button.d.ts +10 -0
- package/dist/components/ui/button/button.stories.d.ts +38 -0
- package/dist/components/ui/button/index.d.ts +1 -0
- package/dist/components/ui/button-group/button-group.d.ts +11 -0
- package/dist/components/ui/button-group/button-group.stories.d.ts +19 -0
- package/dist/components/ui/button-group/index.d.ts +1 -0
- package/dist/components/ui/calendar/calendar.d.ts +8 -0
- package/dist/components/ui/calendar/calendar.stories.d.ts +27 -0
- package/dist/components/ui/calendar/index.d.ts +1 -0
- package/dist/components/ui/card/card.d.ts +13 -0
- package/dist/components/ui/card/card.stories.d.ts +18 -0
- package/dist/components/ui/card/index.d.ts +1 -0
- package/dist/components/ui/checkbox/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox/checkbox.stories.d.ts +15 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/collapsible/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible/collapsible.stories.d.ts +12 -0
- package/dist/components/ui/collapsible/index.d.ts +1 -0
- package/dist/components/ui/combobox/combobox.d.ts +35 -0
- package/dist/components/ui/combobox/combobox.stories.d.ts +27 -0
- package/dist/components/ui/combobox/index.d.ts +1 -0
- package/dist/components/ui/command/command.d.ts +18 -0
- package/dist/components/ui/command/index.d.ts +1 -0
- package/dist/components/ui/context-menu/context-menu.d.ts +25 -0
- package/dist/components/ui/context-menu/context-menu.stories.d.ts +10 -0
- package/dist/components/ui/context-menu/index.d.ts +1 -0
- package/dist/components/ui/dialog/dialog.d.ts +17 -0
- package/dist/components/ui/dialog/dialog.stories.d.ts +13 -0
- package/dist/components/ui/dialog/index.d.ts +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.stories.d.ts +14 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -0
- package/dist/components/ui/field/field.d.ts +24 -0
- package/dist/components/ui/field/field.stories.d.ts +18 -0
- package/dist/components/ui/field/index.d.ts +1 -0
- package/dist/components/ui/hover-card/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card/hover-card.stories.d.ts +25 -0
- package/dist/components/ui/hover-card/index.d.ts +1 -0
- package/dist/components/ui/input/index.d.ts +1 -0
- package/dist/components/ui/input/input.d.ts +3 -0
- package/dist/components/ui/input/input.stories.d.ts +23 -0
- package/dist/components/ui/input-group/Input-group.stories.d.ts +28 -0
- package/dist/components/ui/input-group/index.d.ts +1 -0
- package/dist/components/ui/input-group/input-group.d.ts +16 -0
- package/dist/components/ui/kbd/index.d.ts +1 -0
- package/dist/components/ui/kbd/kbd.d.ts +3 -0
- package/dist/components/ui/kbd/kbd.stories.d.ts +26 -0
- package/dist/components/ui/label/index.d.ts +1 -0
- package/dist/components/ui/label/label.d.ts +4 -0
- package/dist/components/ui/label/label.stories.d.ts +24 -0
- package/dist/components/ui/pagination/index.d.ts +1 -0
- package/dist/components/ui/pagination/pagination.d.ts +13 -0
- package/dist/components/ui/pagination/pagination.stories.d.ts +28 -0
- package/dist/components/ui/popover/index.d.ts +1 -0
- package/dist/components/ui/popover/popover.d.ts +7 -0
- package/dist/components/ui/popover/popover.stories.d.ts +26 -0
- package/dist/components/ui/progress/index.d.ts +1 -0
- package/dist/components/ui/progress/progress.d.ts +9 -0
- package/dist/components/ui/progress/progress.stories.d.ts +29 -0
- package/dist/components/ui/radio-group/index.d.ts +1 -0
- package/dist/components/ui/radio-group/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group/radio-group.stories.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +1 -0
- package/dist/components/ui/select/select.d.ts +15 -0
- package/dist/components/ui/select/select.stories.d.ts +19 -0
- package/dist/components/ui/separator/index.d.ts +1 -0
- package/dist/components/ui/separator/separator.d.ts +4 -0
- package/dist/components/ui/separator/separator.stories.d.ts +18 -0
- package/dist/components/ui/sheet/index.d.ts +1 -0
- package/dist/components/ui/sheet/sheet.d.ts +14 -0
- package/dist/components/ui/sheet/sheet.stories.d.ts +17 -0
- package/dist/components/ui/skeleton/index.d.ts +1 -0
- package/dist/components/ui/skeleton/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton/skeleton.stories.d.ts +22 -0
- package/dist/components/ui/slider/index.d.ts +1 -0
- package/dist/components/ui/slider/slider.d.ts +7 -0
- package/dist/components/ui/slider/slider.stories.d.ts +21 -0
- package/dist/components/ui/spinner/index.d.ts +1 -0
- package/dist/components/ui/spinner/spinner.d.ts +2 -0
- package/dist/components/ui/spinner/spinner.stories.d.ts +20 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/switch/switch.d.ts +4 -0
- package/dist/components/ui/switch/switch.stories.d.ts +17 -0
- package/dist/components/ui/table/index.d.ts +1 -0
- package/dist/components/ui/table/table.d.ts +10 -0
- package/dist/components/ui/table/table.stories.d.ts +11 -0
- package/dist/components/ui/tabs/index.d.ts +1 -0
- package/dist/components/ui/tabs/tabs.d.ts +7 -0
- package/dist/components/ui/tabs/tabs.stories.d.ts +16 -0
- package/dist/components/ui/tabs-underline/index.d.ts +1 -0
- package/dist/components/ui/tabs-underline/tabs-underline.d.ts +7 -0
- package/dist/components/ui/tabs-underline/tabs-underline.stories.d.ts +16 -0
- package/dist/components/ui/textarea/index.d.ts +1 -0
- package/dist/components/ui/textarea/textarea.d.ts +3 -0
- package/dist/components/ui/textarea/textarea.stories.d.ts +21 -0
- package/dist/components/ui/toggle/index.d.ts +1 -0
- package/dist/components/ui/toggle/toggle.d.ts +9 -0
- package/dist/components/ui/toggle/toggle.stories.d.ts +21 -0
- package/dist/components/ui/tooltip/index.d.ts +1 -0
- package/dist/components/ui/tooltip/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +19 -0
- package/dist/components/ui/typography/index.d.ts +1 -0
- package/dist/components/ui/typography/typography.d.ts +8 -0
- package/dist/components/ui/typography/typography.stories.d.ts +33 -0
- package/dist/context-menu.cjs +1 -0
- package/dist/context-menu.js +427 -0
- package/dist/createLucideIcon-B_8CJpcQ.js +94 -0
- package/dist/createLucideIcon-CAtnV-yz.cjs +21 -0
- package/dist/custom-layered-styles.css +1 -0
- package/dist/dialog.cjs +1 -0
- package/dist/dialog.js +139 -0
- package/dist/dropdown-menu.cjs +1 -0
- package/dist/dropdown-menu.js +423 -0
- package/dist/field.cjs +1 -0
- package/dist/field.js +221 -0
- package/dist/fonts.css +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-portal-container.d.ts +31 -0
- package/dist/hover-card.cjs +1 -0
- package/dist/hover-card.js +210 -0
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/index-6oTEokEx.js +82 -0
- package/dist/index-B-NyefE0.js +243 -0
- package/dist/index-B-ZRqW0J.js +118 -0
- package/dist/index-B-cHTKrs.js +158 -0
- package/dist/index-BGQepRFJ.js +27 -0
- package/dist/index-BGiGvaq8.cjs +1 -0
- package/dist/index-BKbK2GzY.cjs +1 -0
- package/dist/index-BMitW9UR.cjs +1 -0
- package/dist/index-BRLtxFFr.cjs +1 -0
- package/dist/index-BWaO7kQK.cjs +1 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-BpvjJ_T6.cjs +5 -0
- package/dist/index-C0UREtMP.js +59 -0
- package/dist/index-C329e3yQ.js +134 -0
- package/dist/index-C5wjudc-.js +36 -0
- package/dist/index-C8ni3LLa.cjs +1 -0
- package/dist/index-CAOY367Y.js +1540 -0
- package/dist/index-CCKe-Mpx.js +6 -0
- package/dist/index-CQhYMnjT.js +34 -0
- package/dist/index-Ce3QBKyj.cjs +1 -0
- package/dist/index-CezwiPd_.js +615 -0
- package/dist/index-Cv867SGx.js +13 -0
- package/dist/index-CwUFT-GQ.js +228 -0
- package/dist/index-CzY-WZXL.cjs +1 -0
- package/dist/index-D02K8KOB.js +54 -0
- package/dist/index-D3S7dBDI.cjs +1 -0
- package/dist/index-D3wSWKST.cjs +1 -0
- package/dist/index-D7hQvndv.cjs +1 -0
- package/dist/index-DQvx1rG_.cjs +1 -0
- package/dist/index-DXQ-7kNJ.cjs +41 -0
- package/dist/index-DYxWvftI.cjs +1 -0
- package/dist/index-DnS_sBBe.cjs +1 -0
- package/dist/index-DulPG3F9.js +179 -0
- package/dist/index-EUea2gfp.js +70 -0
- package/dist/index-FxyLF8MY.js +68 -0
- package/dist/index-IKJMQref.cjs +1 -0
- package/dist/index-MQ0c3ZX_.cjs +1 -0
- package/dist/index-P1sVIHE3.js +32 -0
- package/dist/index-VIUqZjyP.cjs +1 -0
- package/dist/index-WIv2ndLu.cjs +1 -0
- package/dist/index-bSPhqlcX.cjs +1 -0
- package/dist/index-cwZN7ZY3.cjs +1 -0
- package/dist/index-gO_QEiaK.cjs +1 -0
- package/dist/index-iAvn1gzj.cjs +1 -0
- package/dist/index-o0sNTcKe.js +674 -0
- package/dist/index-rKs9bXHr.js +6 -0
- package/dist/index-yR-v1A4G.js +15 -0
- package/dist/input-3MDa_DYk.cjs +1 -0
- package/dist/input-Cl7xmQYQ.js +22 -0
- package/dist/input-group.cjs +1 -0
- package/dist/input-group.js +152 -0
- package/dist/input.cjs +1 -0
- package/dist/input.js +4 -0
- package/dist/jsx-runtime-BB_1_6y_.cjs +22 -0
- package/dist/jsx-runtime-BzflLqGi.js +282 -0
- package/dist/kbd.cjs +1 -0
- package/dist/kbd.js +31 -0
- package/dist/label-MxqN87DQ.cjs +1 -0
- package/dist/label-hg_jN6Y8.js +35 -0
- package/dist/label.cjs +1 -0
- package/dist/label.js +4 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/minus-C0pHPx21.cjs +6 -0
- package/dist/minus-DE-onYs2.js +11 -0
- package/dist/pagination.cjs +6 -0
- package/dist/pagination.js +134 -0
- package/dist/popover-BBXe2myL.cjs +1 -0
- package/dist/popover-DNiRNCdn.js +263 -0
- package/dist/popover.cjs +1 -0
- package/dist/popover.js +7 -0
- package/dist/progress.cjs +6 -0
- package/dist/progress.js +137 -0
- package/dist/radio-group.cjs +1 -0
- package/dist/radio-group.js +271 -0
- package/dist/radius.css +1 -0
- package/dist/select.cjs +6 -0
- package/dist/select.js +987 -0
- package/dist/separator-C9kqOQR-.js +44 -0
- package/dist/separator-Dbx-SVIs.cjs +1 -0
- package/dist/separator.cjs +1 -0
- package/dist/separator.js +4 -0
- package/dist/sheet-0jRbqkzj.cjs +1 -0
- package/dist/sheet-RAbg4M5A.js +128 -0
- package/dist/sheet.cjs +1 -0
- package/dist/sheet.js +11 -0
- package/dist/sidebar.cjs +6 -0
- package/dist/sidebar.js +139 -0
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.js +15 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.js +486 -0
- package/dist/space.css +1 -0
- package/dist/spinner.cjs +6 -0
- package/dist/spinner.js +24 -0
- package/dist/styles.css +1 -0
- package/dist/switch.cjs +1 -0
- package/dist/switch.js +154 -0
- package/dist/table.cjs +1 -0
- package/dist/table.js +115 -0
- package/dist/tabs-underline.cjs +1 -0
- package/dist/tabs-underline.js +68 -0
- package/dist/tabs.cjs +1 -0
- package/dist/tabs.js +68 -0
- package/dist/tailwind-animations.css +1 -0
- package/dist/tailwind-colors.css +1 -0
- package/dist/tailwind-fonts.css +1 -0
- package/dist/tailwind-radius.css +1 -0
- package/dist/tailwind-spacing.css +1 -0
- package/dist/tailwind-theme.css +1 -0
- package/dist/textarea-D76719tg.js +19 -0
- package/dist/textarea-UdELO_Jn.cjs +1 -0
- package/dist/textarea.cjs +1 -0
- package/dist/textarea.js +4 -0
- package/dist/themes.css +1 -0
- package/dist/toaster.cjs +1 -0
- package/dist/toaster.js +87 -0
- package/dist/toggle.cjs +1 -0
- package/dist/toggle.js +69 -0
- package/dist/tooltip.cjs +1 -0
- package/dist/tooltip.js +375 -0
- package/dist/types/theme.type.d.ts +2 -0
- package/dist/typography.cjs +1 -0
- package/dist/typography.js +34 -0
- package/dist/use-portal-container.cjs +1 -0
- package/dist/use-portal-container.js +21 -0
- package/dist/utils-CRiPKpXj.js +2743 -0
- package/dist/utils-DoxiiusW.cjs +1 -0
- package/dist/x-CBKgg4YL.cjs +6 -0
- package/dist/x-Dl66o_vF.js +14 -0
- package/package.json +275 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tabs-underline';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tabs } from '.';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Tabs;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const WithCards: Story;
|
|
12
|
+
export declare const WithIcons: Story;
|
|
13
|
+
export declare const Controlled: Story;
|
|
14
|
+
export declare const Dashboard: Story;
|
|
15
|
+
export declare const VerticalTabs: Story;
|
|
16
|
+
export declare const DocumentationTabs: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textarea';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Textarea } from '.';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Textarea;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
12
|
+
export declare const WithLabel: Story;
|
|
13
|
+
export declare const WithText: Story;
|
|
14
|
+
export declare const WithButton: Story;
|
|
15
|
+
export declare const Controlled: Story;
|
|
16
|
+
export declare const FormValidation: Story;
|
|
17
|
+
export declare const MessageComposer: Story;
|
|
18
|
+
export declare const FeedbackForm: Story;
|
|
19
|
+
export declare const CodeEditor: Story;
|
|
20
|
+
export declare const ChatInput: Story;
|
|
21
|
+
export declare const ResizableTextarea: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toggle';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4
|
+
declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Toggle } from '.';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Toggle;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const WithText: Story;
|
|
12
|
+
export declare const Outline: Story;
|
|
13
|
+
export declare const Sizes: Story;
|
|
14
|
+
export declare const Disabled: Story;
|
|
15
|
+
export declare const Controlled: Story;
|
|
16
|
+
export declare const TextFormatting: Story;
|
|
17
|
+
export declare const TextAlignment: Story;
|
|
18
|
+
export declare const MediaControls: Story;
|
|
19
|
+
export declare const UserPreferences: Story;
|
|
20
|
+
export declare const SocialActions: Story;
|
|
21
|
+
export declare const MusicPlayer: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tooltip } from '.';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Tooltip;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const WithIcon: Story;
|
|
12
|
+
export declare const Sides: Story;
|
|
13
|
+
export declare const WithSideOffset: Story;
|
|
14
|
+
export declare const WithDelayDuration: Story;
|
|
15
|
+
export declare const ControlledTooltip: Story;
|
|
16
|
+
export declare const ActionButtons: Story;
|
|
17
|
+
export declare const FormFieldsWithHelp: Story;
|
|
18
|
+
export declare const StatusIndicators: Story;
|
|
19
|
+
export declare const SocialInteractions: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './typography';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const typographyVariants: (props?: ({
|
|
3
|
+
variant?: "caption" | "lg" | "sm" | "xs" | "md" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
declare function Typography({ className, variant, asChild, ...props }: React.ComponentProps<"p"> & VariantProps<typeof typographyVariants> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Typography };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Typography } from './typography';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Typography;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const Large: Story;
|
|
19
|
+
export declare const Medium: Story;
|
|
20
|
+
export declare const Small: Story;
|
|
21
|
+
export declare const ExtraSmall: Story;
|
|
22
|
+
export declare const Caption: Story;
|
|
23
|
+
export declare const AsHeading1: Story;
|
|
24
|
+
export declare const AsHeading2: Story;
|
|
25
|
+
export declare const AsHeading3: Story;
|
|
26
|
+
export declare const AsHeading4: Story;
|
|
27
|
+
export declare const AsParagraph: Story;
|
|
28
|
+
export declare const AsBlockquote: Story;
|
|
29
|
+
export declare const AsInlineCode: Story;
|
|
30
|
+
export declare const AsLead: Story;
|
|
31
|
+
export declare const AsLarge: Story;
|
|
32
|
+
export declare const AsSmall: Story;
|
|
33
|
+
export declare const AsMuted: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),U=require("react"),f=require("./index-BWaO7kQK.cjs"),B=require("./index-cwZN7ZY3.cjs"),H=require("./index-DQvx1rG_.cjs"),d=require("./index-BMitW9UR.cjs"),F=require("./index-CzY-WZXL.cjs"),p=require("./utils-DoxiiusW.cjs"),X=require("./check-CLxNVljQ.cjs"),W=require("./circle-CX7JIirj.cjs"),K=require("./chevron-right-BpzggHsr.cjs");function Y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=Y(U);var R="ContextMenu",[J]=B.createContextScope(R,[d.createMenuScope]),u=d.createMenuScope(),[Q,h]=J(R),j=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,dir:r,modal:x=!0}=e,[c,i]=s.useState(!1),v=u(t),C=F.useCallbackRef(o),m=s.useCallback(g=>{i(g),C(g)},[C]);return a.jsxRuntimeExports.jsx(Q,{scope:t,open:c,onOpenChange:m,modal:x,children:a.jsxRuntimeExports.jsx(d.Root3,{...v,dir:r,open:c,onOpenChange:m,modal:x,children:n})})};j.displayName=R;var b="ContextMenuTrigger",E=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:o=!1,...r}=e,x=h(b,n),c=u(n),i=s.useRef({x:0,y:0}),v=s.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),C=s.useRef(0),m=s.useCallback(()=>window.clearTimeout(C.current),[]),g=l=>{i.current={x:l.clientX,y:l.clientY},x.onOpenChange(!0)};return s.useEffect(()=>m,[m]),s.useEffect(()=>void(o&&m()),[o,m]),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(d.Anchor2,{...c,virtualRef:v}),a.jsxRuntimeExports.jsx(H.Primitive.span,{"data-state":x.open?"open":"closed","data-disabled":o?"":void 0,...r,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:o?e.onContextMenu:f.composeEventHandlers(e.onContextMenu,l=>{m(),g(l),l.preventDefault()}),onPointerDown:o?e.onPointerDown:f.composeEventHandlers(e.onPointerDown,M(l=>{m(),C.current=window.setTimeout(()=>g(l),700)})),onPointerMove:o?e.onPointerMove:f.composeEventHandlers(e.onPointerMove,M(m)),onPointerCancel:o?e.onPointerCancel:f.composeEventHandlers(e.onPointerCancel,M(m)),onPointerUp:o?e.onPointerUp:f.composeEventHandlers(e.onPointerUp,M(m))})]})});E.displayName=b;var V="ContextMenuPortal",_=e=>{const{__scopeContextMenu:t,...n}=e,o=u(t);return a.jsxRuntimeExports.jsx(d.Portal,{...o,...n})};_.displayName=V;var S="ContextMenuContent",N=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=h(S,n),x=u(n),c=s.useRef(!1);return a.jsxRuntimeExports.jsx(d.Content2,{...x,...o,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),!i.defaultPrevented&&c.current&&i.preventDefault(),c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),!i.defaultPrevented&&!r.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});N.displayName=S;var Z="ContextMenuGroup",P=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Group,{...r,...o,ref:t})});P.displayName=Z;var ee="ContextMenuLabel",w=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Label,{...r,...o,ref:t})});w.displayName=ee;var te="ContextMenuItem",y=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Item2,{...r,...o,ref:t})});y.displayName=te;var ne="ContextMenuCheckboxItem",I=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.CheckboxItem,{...r,...o,ref:t})});I.displayName=ne;var oe="ContextMenuRadioGroup",O=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.RadioGroup,{...r,...o,ref:t})});O.displayName=oe;var ae="ContextMenuRadioItem",T=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.RadioItem,{...r,...o,ref:t})});T.displayName=ae;var re="ContextMenuItemIndicator",A=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.ItemIndicator,{...r,...o,ref:t})});A.displayName=re;var se="ContextMenuSeparator",k=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Separator,{...r,...o,ref:t})});k.displayName=se;var de="ContextMenuArrow",ue=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.Arrow2,{...r,...o,ref:t})});ue.displayName=de;var z="ContextMenuSub",G=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:o,open:r,defaultOpen:x}=e,c=u(t),[i,v]=f.useControllableState({prop:r,defaultProp:x??!1,onChange:o,caller:z});return a.jsxRuntimeExports.jsx(d.Sub,{...c,open:i,onOpenChange:v,children:n})};G.displayName=z;var ie="ContextMenuSubTrigger",$=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.SubTrigger,{...r,...o,ref:t})});$.displayName=ie;var me="ContextMenuSubContent",q=s.forwardRef((e,t)=>{const{__scopeContextMenu:n,...o}=e,r=u(n);return a.jsxRuntimeExports.jsx(d.SubContent,{...r,...o,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});q.displayName=me;function M(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var ce=j,xe=E,D=_,pe=N,le=P,fe=w,ve=y,Ce=I,ge=O,Me=T,L=A,Re=k,he=G,je=$,be=q;function Ee({...e}){return a.jsxRuntimeExports.jsx(ce,{"data-slot":"context-menu",...e})}function _e({...e}){return a.jsxRuntimeExports.jsx(xe,{"data-slot":"context-menu-trigger",...e})}function Se({...e}){return a.jsxRuntimeExports.jsx(le,{"data-slot":"context-menu-group",...e})}function Ne({...e}){return a.jsxRuntimeExports.jsx(D,{"data-slot":"context-menu-portal",...e})}function Pe({...e}){return a.jsxRuntimeExports.jsx(he,{"data-slot":"context-menu-sub",...e})}function we({...e}){return a.jsxRuntimeExports.jsx(ge,{"data-slot":"context-menu-radio-group",...e})}function ye({className:e,inset:t,children:n,...o}){return a.jsxRuntimeExports.jsxs(je,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:p.cn("adm:gap-2 adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...o,children:[n,a.jsxRuntimeExports.jsx(K.ChevronRight,{className:"adm:ml-auto"})]})}function Ie({className:e,...t}){return a.jsxRuntimeExports.jsx(be,{"data-slot":"context-menu-sub-content",className:p.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-context-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-lg",e),...t})}function Oe({className:e,...t}){return a.jsxRuntimeExports.jsx(D,{children:a.jsxRuntimeExports.jsx(pe,{"data-slot":"context-menu-content",className:p.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-context-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-context-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-md",e),...t})})}function Te({className:e,inset:t,variant:n="default",...o}){return a.jsxRuntimeExports.jsx(ve,{"data-slot":"context-menu-item","data-inset":t,"data-variant":n,className:p.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...o})}function Ae({className:e,children:t,checked:n,...o}){return a.jsxRuntimeExports.jsxs(Ce,{"data-slot":"context-menu-checkbox-item",className:p.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),checked:n,...o,children:[a.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:a.jsxRuntimeExports.jsx(L,{children:a.jsxRuntimeExports.jsx(X.Check,{className:"adm:size-4"})})}),t]})}function ke({className:e,children:t,...n}){return a.jsxRuntimeExports.jsxs(Me,{"data-slot":"context-menu-radio-item",className:p.cn("adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",e),...n,children:[a.jsxRuntimeExports.jsx("span",{className:"adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center",children:a.jsxRuntimeExports.jsx(L,{children:a.jsxRuntimeExports.jsx(W.Circle,{className:"adm:size-2 adm:fill-current"})})}),t]})}function ze({className:e,inset:t,...n}){return a.jsxRuntimeExports.jsx(fe,{"data-slot":"context-menu-label","data-inset":t,className:p.cn("adm:text-foreground adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",e),...n})}function Ge({className:e,...t}){return a.jsxRuntimeExports.jsx(Re,{"data-slot":"context-menu-separator",className:p.cn("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px",e),...t})}function $e({className:e,...t}){return a.jsxRuntimeExports.jsx("span",{"data-slot":"context-menu-shortcut",className:p.cn("adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",e),...t})}exports.ContextMenu=Ee;exports.ContextMenuCheckboxItem=Ae;exports.ContextMenuContent=Oe;exports.ContextMenuGroup=Se;exports.ContextMenuItem=Te;exports.ContextMenuLabel=ze;exports.ContextMenuPortal=Ne;exports.ContextMenuRadioGroup=we;exports.ContextMenuRadioItem=ke;exports.ContextMenuSeparator=Ge;exports.ContextMenuShortcut=$e;exports.ContextMenuSub=Pe;exports.ContextMenuSubContent=Ie;exports.ContextMenuSubTrigger=ye;exports.ContextMenuTrigger=_e;
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { j as o } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { c as C, u as B } from "./index-C0UREtMP.js";
|
|
4
|
+
import { c as F } from "./index-FxyLF8MY.js";
|
|
5
|
+
import { P as X } from "./index-C5wjudc-.js";
|
|
6
|
+
import { c as h, R as H, A as W, P as K, C as Y, I as q, a as J, b as Q, d as V, L as Z, S as ee, G as te, e as ae, f as ne, g as oe, h as re, i as de } from "./index-CezwiPd_.js";
|
|
7
|
+
import { u as se } from "./index-0ioNhtNM.js";
|
|
8
|
+
import { c as x } from "./utils-CRiPKpXj.js";
|
|
9
|
+
import { C as me } from "./check-Ci0GjV-B.js";
|
|
10
|
+
import { C as ie } from "./circle-DYv-7Qb9.js";
|
|
11
|
+
import { C as ue } from "./chevron-right-Cnc2tB4-.js";
|
|
12
|
+
var M = "ContextMenu", [ce] = F(M, [
|
|
13
|
+
h
|
|
14
|
+
]), s = h(), [xe, b] = ce(M), _ = (e) => {
|
|
15
|
+
const { __scopeContextMenu: t, children: n, onOpenChange: a, dir: r, modal: c = !0 } = e, [u, m] = d.useState(!1), p = s(t), f = se(a), i = d.useCallback(
|
|
16
|
+
(v) => {
|
|
17
|
+
m(v), f(v);
|
|
18
|
+
},
|
|
19
|
+
[f]
|
|
20
|
+
);
|
|
21
|
+
return /* @__PURE__ */ o.jsx(
|
|
22
|
+
xe,
|
|
23
|
+
{
|
|
24
|
+
scope: t,
|
|
25
|
+
open: u,
|
|
26
|
+
onOpenChange: i,
|
|
27
|
+
modal: c,
|
|
28
|
+
children: /* @__PURE__ */ o.jsx(
|
|
29
|
+
H,
|
|
30
|
+
{
|
|
31
|
+
...p,
|
|
32
|
+
dir: r,
|
|
33
|
+
open: u,
|
|
34
|
+
onOpenChange: i,
|
|
35
|
+
modal: c,
|
|
36
|
+
children: n
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
_.displayName = M;
|
|
43
|
+
var R = "ContextMenuTrigger", N = d.forwardRef(
|
|
44
|
+
(e, t) => {
|
|
45
|
+
const { __scopeContextMenu: n, disabled: a = !1, ...r } = e, c = b(R, n), u = s(n), m = d.useRef({ x: 0, y: 0 }), p = d.useRef({
|
|
46
|
+
getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...m.current })
|
|
47
|
+
}), f = d.useRef(0), i = d.useCallback(
|
|
48
|
+
() => window.clearTimeout(f.current),
|
|
49
|
+
[]
|
|
50
|
+
), v = (l) => {
|
|
51
|
+
m.current = { x: l.clientX, y: l.clientY }, c.onOpenChange(!0);
|
|
52
|
+
};
|
|
53
|
+
return d.useEffect(() => i, [i]), d.useEffect(() => void (a && i()), [a, i]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
54
|
+
/* @__PURE__ */ o.jsx(W, { ...u, virtualRef: p }),
|
|
55
|
+
/* @__PURE__ */ o.jsx(
|
|
56
|
+
X.span,
|
|
57
|
+
{
|
|
58
|
+
"data-state": c.open ? "open" : "closed",
|
|
59
|
+
"data-disabled": a ? "" : void 0,
|
|
60
|
+
...r,
|
|
61
|
+
ref: t,
|
|
62
|
+
style: { WebkitTouchCallout: "none", ...e.style },
|
|
63
|
+
onContextMenu: a ? e.onContextMenu : C(e.onContextMenu, (l) => {
|
|
64
|
+
i(), v(l), l.preventDefault();
|
|
65
|
+
}),
|
|
66
|
+
onPointerDown: a ? e.onPointerDown : C(
|
|
67
|
+
e.onPointerDown,
|
|
68
|
+
g((l) => {
|
|
69
|
+
i(), f.current = window.setTimeout(() => v(l), 700);
|
|
70
|
+
})
|
|
71
|
+
),
|
|
72
|
+
onPointerMove: a ? e.onPointerMove : C(e.onPointerMove, g(i)),
|
|
73
|
+
onPointerCancel: a ? e.onPointerCancel : C(e.onPointerCancel, g(i)),
|
|
74
|
+
onPointerUp: a ? e.onPointerUp : C(e.onPointerUp, g(i))
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] });
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
N.displayName = R;
|
|
81
|
+
var le = "ContextMenuPortal", P = (e) => {
|
|
82
|
+
const { __scopeContextMenu: t, ...n } = e, a = s(t);
|
|
83
|
+
return /* @__PURE__ */ o.jsx(K, { ...a, ...n });
|
|
84
|
+
};
|
|
85
|
+
P.displayName = le;
|
|
86
|
+
var S = "ContextMenuContent", j = d.forwardRef(
|
|
87
|
+
(e, t) => {
|
|
88
|
+
const { __scopeContextMenu: n, ...a } = e, r = b(S, n), c = s(n), u = d.useRef(!1);
|
|
89
|
+
return /* @__PURE__ */ o.jsx(
|
|
90
|
+
Y,
|
|
91
|
+
{
|
|
92
|
+
...c,
|
|
93
|
+
...a,
|
|
94
|
+
ref: t,
|
|
95
|
+
side: "right",
|
|
96
|
+
sideOffset: 2,
|
|
97
|
+
align: "start",
|
|
98
|
+
onCloseAutoFocus: (m) => {
|
|
99
|
+
e.onCloseAutoFocus?.(m), !m.defaultPrevented && u.current && m.preventDefault(), u.current = !1;
|
|
100
|
+
},
|
|
101
|
+
onInteractOutside: (m) => {
|
|
102
|
+
e.onInteractOutside?.(m), !m.defaultPrevented && !r.modal && (u.current = !0);
|
|
103
|
+
},
|
|
104
|
+
style: {
|
|
105
|
+
...e.style,
|
|
106
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
107
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
108
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
109
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
110
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
j.displayName = S;
|
|
117
|
+
var pe = "ContextMenuGroup", w = d.forwardRef(
|
|
118
|
+
(e, t) => {
|
|
119
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
120
|
+
return /* @__PURE__ */ o.jsx(te, { ...r, ...a, ref: t });
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
w.displayName = pe;
|
|
124
|
+
var fe = "ContextMenuLabel", I = d.forwardRef(
|
|
125
|
+
(e, t) => {
|
|
126
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
127
|
+
return /* @__PURE__ */ o.jsx(Z, { ...r, ...a, ref: t });
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
I.displayName = fe;
|
|
131
|
+
var ve = "ContextMenuItem", y = d.forwardRef(
|
|
132
|
+
(e, t) => {
|
|
133
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
134
|
+
return /* @__PURE__ */ o.jsx(q, { ...r, ...a, ref: t });
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
y.displayName = ve;
|
|
138
|
+
var Ce = "ContextMenuCheckboxItem", E = d.forwardRef((e, t) => {
|
|
139
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
140
|
+
return /* @__PURE__ */ o.jsx(J, { ...r, ...a, ref: t });
|
|
141
|
+
});
|
|
142
|
+
E.displayName = Ce;
|
|
143
|
+
var ge = "ContextMenuRadioGroup", A = d.forwardRef((e, t) => {
|
|
144
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
145
|
+
return /* @__PURE__ */ o.jsx(re, { ...r, ...a, ref: t });
|
|
146
|
+
});
|
|
147
|
+
A.displayName = ge;
|
|
148
|
+
var Me = "ContextMenuRadioItem", O = d.forwardRef((e, t) => {
|
|
149
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
150
|
+
return /* @__PURE__ */ o.jsx(V, { ...r, ...a, ref: t });
|
|
151
|
+
});
|
|
152
|
+
O.displayName = Me;
|
|
153
|
+
var he = "ContextMenuItemIndicator", T = d.forwardRef((e, t) => {
|
|
154
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
155
|
+
return /* @__PURE__ */ o.jsx(Q, { ...r, ...a, ref: t });
|
|
156
|
+
});
|
|
157
|
+
T.displayName = he;
|
|
158
|
+
var be = "ContextMenuSeparator", k = d.forwardRef((e, t) => {
|
|
159
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
160
|
+
return /* @__PURE__ */ o.jsx(ee, { ...r, ...a, ref: t });
|
|
161
|
+
});
|
|
162
|
+
k.displayName = be;
|
|
163
|
+
var _e = "ContextMenuArrow", Re = d.forwardRef(
|
|
164
|
+
(e, t) => {
|
|
165
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
166
|
+
return /* @__PURE__ */ o.jsx(de, { ...r, ...a, ref: t });
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
Re.displayName = _e;
|
|
170
|
+
var z = "ContextMenuSub", G = (e) => {
|
|
171
|
+
const { __scopeContextMenu: t, children: n, onOpenChange: a, open: r, defaultOpen: c } = e, u = s(t), [m, p] = B({
|
|
172
|
+
prop: r,
|
|
173
|
+
defaultProp: c ?? !1,
|
|
174
|
+
onChange: a,
|
|
175
|
+
caller: z
|
|
176
|
+
});
|
|
177
|
+
return /* @__PURE__ */ o.jsx(ae, { ...u, open: m, onOpenChange: p, children: n });
|
|
178
|
+
};
|
|
179
|
+
G.displayName = z;
|
|
180
|
+
var Ne = "ContextMenuSubTrigger", $ = d.forwardRef((e, t) => {
|
|
181
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
182
|
+
return /* @__PURE__ */ o.jsx(oe, { ...r, ...a, ref: t });
|
|
183
|
+
});
|
|
184
|
+
$.displayName = Ne;
|
|
185
|
+
var Pe = "ContextMenuSubContent", L = d.forwardRef((e, t) => {
|
|
186
|
+
const { __scopeContextMenu: n, ...a } = e, r = s(n);
|
|
187
|
+
return /* @__PURE__ */ o.jsx(
|
|
188
|
+
ne,
|
|
189
|
+
{
|
|
190
|
+
...r,
|
|
191
|
+
...a,
|
|
192
|
+
ref: t,
|
|
193
|
+
style: {
|
|
194
|
+
...e.style,
|
|
195
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
196
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
197
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
198
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
199
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
});
|
|
204
|
+
L.displayName = Pe;
|
|
205
|
+
function g(e) {
|
|
206
|
+
return (t) => t.pointerType !== "mouse" ? e(t) : void 0;
|
|
207
|
+
}
|
|
208
|
+
var Se = _, je = N, D = P, we = j, Ie = w, ye = I, Ee = y, Ae = E, Oe = A, Te = O, U = T, ke = k, ze = G, Ge = $, $e = L;
|
|
209
|
+
function qe({
|
|
210
|
+
...e
|
|
211
|
+
}) {
|
|
212
|
+
return /* @__PURE__ */ o.jsx(Se, { "data-slot": "context-menu", ...e });
|
|
213
|
+
}
|
|
214
|
+
function Je({
|
|
215
|
+
...e
|
|
216
|
+
}) {
|
|
217
|
+
return /* @__PURE__ */ o.jsx(je, { "data-slot": "context-menu-trigger", ...e });
|
|
218
|
+
}
|
|
219
|
+
function Qe({
|
|
220
|
+
...e
|
|
221
|
+
}) {
|
|
222
|
+
return /* @__PURE__ */ o.jsx(Ie, { "data-slot": "context-menu-group", ...e });
|
|
223
|
+
}
|
|
224
|
+
function Ve({
|
|
225
|
+
...e
|
|
226
|
+
}) {
|
|
227
|
+
return /* @__PURE__ */ o.jsx(D, { "data-slot": "context-menu-portal", ...e });
|
|
228
|
+
}
|
|
229
|
+
function Ze({
|
|
230
|
+
...e
|
|
231
|
+
}) {
|
|
232
|
+
return /* @__PURE__ */ o.jsx(ze, { "data-slot": "context-menu-sub", ...e });
|
|
233
|
+
}
|
|
234
|
+
function et({
|
|
235
|
+
...e
|
|
236
|
+
}) {
|
|
237
|
+
return /* @__PURE__ */ o.jsx(
|
|
238
|
+
Oe,
|
|
239
|
+
{
|
|
240
|
+
"data-slot": "context-menu-radio-group",
|
|
241
|
+
...e
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
function tt({
|
|
246
|
+
className: e,
|
|
247
|
+
inset: t,
|
|
248
|
+
children: n,
|
|
249
|
+
...a
|
|
250
|
+
}) {
|
|
251
|
+
return /* @__PURE__ */ o.jsxs(
|
|
252
|
+
Ge,
|
|
253
|
+
{
|
|
254
|
+
"data-slot": "context-menu-sub-trigger",
|
|
255
|
+
"data-inset": t,
|
|
256
|
+
className: x(
|
|
257
|
+
"adm:gap-2 adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[state=open]:bg-accent adm:data-[state=open]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:flex adm:cursor-default adm:items-center adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
258
|
+
e
|
|
259
|
+
),
|
|
260
|
+
...a,
|
|
261
|
+
children: [
|
|
262
|
+
n,
|
|
263
|
+
/* @__PURE__ */ o.jsx(ue, { className: "adm:ml-auto" })
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
function at({
|
|
269
|
+
className: e,
|
|
270
|
+
...t
|
|
271
|
+
}) {
|
|
272
|
+
return /* @__PURE__ */ o.jsx(
|
|
273
|
+
$e,
|
|
274
|
+
{
|
|
275
|
+
"data-slot": "context-menu-sub-content",
|
|
276
|
+
className: x(
|
|
277
|
+
"adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:min-w-[8rem] adm:origin-(--radix-context-menu-content-transform-origin) adm:overflow-hidden adm:rounded-md adm:border adm:p-1 adm:shadow-lg",
|
|
278
|
+
e
|
|
279
|
+
),
|
|
280
|
+
...t
|
|
281
|
+
}
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
function nt({
|
|
285
|
+
className: e,
|
|
286
|
+
...t
|
|
287
|
+
}) {
|
|
288
|
+
return /* @__PURE__ */ o.jsx(D, { children: /* @__PURE__ */ o.jsx(
|
|
289
|
+
we,
|
|
290
|
+
{
|
|
291
|
+
"data-slot": "context-menu-content",
|
|
292
|
+
className: x(
|
|
293
|
+
"adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:max-h-(--radix-context-menu-content-available-height) adm:min-w-[8rem] adm:origin-(--radix-context-menu-content-transform-origin) adm:overflow-x-hidden adm:overflow-y-auto adm:rounded-md adm:border adm:p-1 adm:shadow-md",
|
|
294
|
+
e
|
|
295
|
+
),
|
|
296
|
+
...t
|
|
297
|
+
}
|
|
298
|
+
) });
|
|
299
|
+
}
|
|
300
|
+
function ot({
|
|
301
|
+
className: e,
|
|
302
|
+
inset: t,
|
|
303
|
+
variant: n = "default",
|
|
304
|
+
...a
|
|
305
|
+
}) {
|
|
306
|
+
return /* @__PURE__ */ o.jsx(
|
|
307
|
+
Ee,
|
|
308
|
+
{
|
|
309
|
+
"data-slot": "context-menu-item",
|
|
310
|
+
"data-inset": t,
|
|
311
|
+
"data-variant": n,
|
|
312
|
+
className: x(
|
|
313
|
+
"adm:focus:bg-accent adm:focus:text-accent-foreground adm:data-[variant=destructive]:text-destructive adm:data-[variant=destructive]:focus:bg-destructive/10 adm:dark:data-[variant=destructive]:focus:bg-destructive/20 adm:data-[variant=destructive]:focus:text-destructive adm:data-[variant=destructive]:*:[svg]:!text-destructive adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:data-[inset]:pl-8 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
314
|
+
e
|
|
315
|
+
),
|
|
316
|
+
...a
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
function rt({
|
|
321
|
+
className: e,
|
|
322
|
+
children: t,
|
|
323
|
+
checked: n,
|
|
324
|
+
...a
|
|
325
|
+
}) {
|
|
326
|
+
return /* @__PURE__ */ o.jsxs(
|
|
327
|
+
Ae,
|
|
328
|
+
{
|
|
329
|
+
"data-slot": "context-menu-checkbox-item",
|
|
330
|
+
className: x(
|
|
331
|
+
"adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
332
|
+
e
|
|
333
|
+
),
|
|
334
|
+
checked: n,
|
|
335
|
+
...a,
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ o.jsx("span", { className: "adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center", children: /* @__PURE__ */ o.jsx(U, { children: /* @__PURE__ */ o.jsx(me, { className: "adm:size-4" }) }) }),
|
|
338
|
+
t
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
function dt({
|
|
344
|
+
className: e,
|
|
345
|
+
children: t,
|
|
346
|
+
...n
|
|
347
|
+
}) {
|
|
348
|
+
return /* @__PURE__ */ o.jsxs(
|
|
349
|
+
Te,
|
|
350
|
+
{
|
|
351
|
+
"data-slot": "context-menu-radio-item",
|
|
352
|
+
className: x(
|
|
353
|
+
"adm:focus:bg-accent adm:focus:text-accent-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:py-1.5 adm:pr-2 adm:pl-8 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
|
|
354
|
+
e
|
|
355
|
+
),
|
|
356
|
+
...n,
|
|
357
|
+
children: [
|
|
358
|
+
/* @__PURE__ */ o.jsx("span", { className: "adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center", children: /* @__PURE__ */ o.jsx(U, { children: /* @__PURE__ */ o.jsx(ie, { className: "adm:size-2 adm:fill-current" }) }) }),
|
|
359
|
+
t
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
function st({
|
|
365
|
+
className: e,
|
|
366
|
+
inset: t,
|
|
367
|
+
...n
|
|
368
|
+
}) {
|
|
369
|
+
return /* @__PURE__ */ o.jsx(
|
|
370
|
+
ye,
|
|
371
|
+
{
|
|
372
|
+
"data-slot": "context-menu-label",
|
|
373
|
+
"data-inset": t,
|
|
374
|
+
className: x(
|
|
375
|
+
"adm:text-foreground adm:px-2 adm:py-1.5 adm:text-sm adm:font-medium adm:data-[inset]:pl-8",
|
|
376
|
+
e
|
|
377
|
+
),
|
|
378
|
+
...n
|
|
379
|
+
}
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
function mt({
|
|
383
|
+
className: e,
|
|
384
|
+
...t
|
|
385
|
+
}) {
|
|
386
|
+
return /* @__PURE__ */ o.jsx(
|
|
387
|
+
ke,
|
|
388
|
+
{
|
|
389
|
+
"data-slot": "context-menu-separator",
|
|
390
|
+
className: x("adm:bg-border adm:-mx-1 adm:my-1 adm:h-px", e),
|
|
391
|
+
...t
|
|
392
|
+
}
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
function it({
|
|
396
|
+
className: e,
|
|
397
|
+
...t
|
|
398
|
+
}) {
|
|
399
|
+
return /* @__PURE__ */ o.jsx(
|
|
400
|
+
"span",
|
|
401
|
+
{
|
|
402
|
+
"data-slot": "context-menu-shortcut",
|
|
403
|
+
className: x(
|
|
404
|
+
"adm:text-muted-foreground adm:ml-auto adm:text-xs adm:tracking-widest",
|
|
405
|
+
e
|
|
406
|
+
),
|
|
407
|
+
...t
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
export {
|
|
412
|
+
qe as ContextMenu,
|
|
413
|
+
rt as ContextMenuCheckboxItem,
|
|
414
|
+
nt as ContextMenuContent,
|
|
415
|
+
Qe as ContextMenuGroup,
|
|
416
|
+
ot as ContextMenuItem,
|
|
417
|
+
st as ContextMenuLabel,
|
|
418
|
+
Ve as ContextMenuPortal,
|
|
419
|
+
et as ContextMenuRadioGroup,
|
|
420
|
+
dt as ContextMenuRadioItem,
|
|
421
|
+
mt as ContextMenuSeparator,
|
|
422
|
+
it as ContextMenuShortcut,
|
|
423
|
+
Ze as ContextMenuSub,
|
|
424
|
+
at as ContextMenuSubContent,
|
|
425
|
+
tt as ContextMenuSubTrigger,
|
|
426
|
+
Je as ContextMenuTrigger
|
|
427
|
+
};
|