@pixpilot/shadcn 0.1.8 → 0.1.9
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/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.cts +30 -0
- package/dist/components/index.d.ts +30 -0
- package/dist/components/index.js +1 -35
- package/dist/components/ui/OrContinueWithSeparator.cjs +1 -0
- package/dist/{OrContinueWithSeparator-CLGD1Hp8.d.ts → components/ui/OrContinueWithSeparator.d.cts} +3 -3
- package/dist/components/ui/OrContinueWithSeparator.d.ts +11 -0
- package/dist/components/ui/OrContinueWithSeparator.js +1 -6
- package/dist/components/ui/alert-dialog.cjs +1 -0
- package/dist/{alert-dialog-DfqbbSSI.d.ts → components/ui/alert-dialog.d.cts} +13 -13
- package/dist/components/ui/alert-dialog.d.ts +48 -0
- package/dist/components/ui/alert-dialog.js +1 -7
- package/dist/components/ui/alert.cjs +1 -0
- package/dist/{alert-BuSJW7FJ.d.ts → components/ui/alert.d.cts} +6 -6
- package/dist/components/ui/alert.d.ts +24 -0
- package/dist/components/ui/alert.js +1 -5
- package/dist/components/ui/avatar.cjs +1 -0
- package/dist/{avatar-Cu2GSSYZ.d.ts → components/ui/avatar.d.cts} +5 -5
- package/dist/components/ui/avatar.d.ts +19 -0
- package/dist/components/ui/avatar.js +1 -5
- package/dist/components/ui/badge.cjs +1 -0
- package/dist/{badge-_1_wFXtU.d.ts → components/ui/badge.d.cts} +5 -5
- package/dist/components/ui/badge.d.ts +19 -0
- package/dist/components/ui/badge.js +1 -5
- package/dist/components/ui/button.cjs +1 -0
- package/dist/{button-D3LwGnow.d.ts → components/ui/button.d.cts} +5 -5
- package/dist/components/ui/button.d.ts +21 -0
- package/dist/components/ui/button.js +1 -5
- package/dist/components/ui/calendar.cjs +1 -0
- package/dist/{calendar-BmGC3KEi.d.ts → components/ui/calendar.d.cts} +5 -5
- package/dist/components/ui/calendar.d.ts +26 -0
- package/dist/components/ui/calendar.js +1 -6
- package/dist/components/ui/card.cjs +1 -0
- package/dist/components/ui/card.d.cts +34 -0
- package/dist/components/ui/card.d.ts +34 -0
- package/dist/components/ui/card.js +1 -5
- package/dist/components/ui/checkbox.cjs +1 -0
- package/dist/{checkbox-B3agGzx9.d.ts → components/ui/checkbox.d.cts} +3 -3
- package/dist/components/ui/checkbox.d.ts +11 -0
- package/dist/components/ui/checkbox.js +1 -7
- package/dist/components/ui/command.cjs +1 -0
- package/dist/{command-DYY3jhrg.d.ts → components/ui/command.d.cts} +12 -12
- package/dist/components/ui/command.d.ts +52 -0
- package/dist/components/ui/command.js +1 -8
- package/dist/components/ui/dialog.cjs +1 -0
- package/dist/{dialog-D-hcbHxy.d.ts → components/ui/dialog.d.cts} +12 -12
- package/dist/components/ui/dialog.d.ts +47 -0
- package/dist/components/ui/dialog.js +1 -5
- package/dist/components/ui/dropdown-menu.cjs +1 -0
- package/dist/{dropdown-menu-BmbK1aYU.d.ts → components/ui/dropdown-menu.d.cts} +17 -17
- package/dist/components/ui/dropdown-menu.d.ts +77 -0
- package/dist/components/ui/dropdown-menu.js +1 -5
- package/dist/components/ui/file-upload.cjs +1 -0
- package/dist/{file-upload-CvqXunyl.d.ts → components/ui/file-upload.d.cts} +12 -12
- package/dist/components/ui/file-upload.d.ts +94 -0
- package/dist/components/ui/file-upload.js +1 -7
- package/dist/components/ui/form.cjs +1 -0
- package/dist/{form-DlY7oYOM.d.ts → components/ui/form.d.cts} +10 -10
- package/dist/components/ui/form.d.ts +45 -0
- package/dist/components/ui/form.js +1 -6
- package/dist/components/ui/index.cjs +1 -0
- package/dist/components/ui/index.d.cts +29 -0
- package/dist/components/ui/index.d.ts +29 -0
- package/dist/components/ui/index.js +1 -34
- package/dist/components/ui/input.cjs +1 -0
- package/dist/{input-RumcwxJs.d.ts → components/ui/input.d.cts} +3 -3
- package/dist/components/ui/input.d.ts +11 -0
- package/dist/components/ui/input.js +1 -5
- package/dist/components/ui/label.cjs +1 -0
- package/dist/{label-CQ-28O7Q.d.ts → components/ui/label.d.cts} +3 -3
- package/dist/components/ui/label.d.ts +11 -0
- package/dist/components/ui/label.js +1 -5
- package/dist/components/ui/pagination.cjs +1 -0
- package/dist/components/ui/pagination.d.cts +40 -0
- package/dist/{pagination-Q6kLlw6J.d.ts → components/ui/pagination.d.ts} +9 -9
- package/dist/components/ui/pagination.js +1 -5
- package/dist/components/ui/popover.cjs +1 -0
- package/dist/{popover-BzPxXXo8.d.ts → components/ui/popover.d.cts} +6 -6
- package/dist/components/ui/popover.d.ts +22 -0
- package/dist/components/ui/popover.js +1 -5
- package/dist/components/ui/radio-group.cjs +1 -0
- package/dist/{radio-group-B_Q80541.d.ts → components/ui/radio-group.d.cts} +4 -4
- package/dist/components/ui/radio-group.d.ts +15 -0
- package/dist/components/ui/radio-group.js +1 -5
- package/dist/components/ui/select.cjs +1 -0
- package/dist/{select-DbSK-rd_.d.ts → components/ui/select.d.cts} +12 -12
- package/dist/components/ui/select.d.ts +52 -0
- package/dist/components/ui/select.js +1 -7
- package/dist/components/ui/separator.cjs +1 -0
- package/dist/{separator-C_t229Nc.d.ts → components/ui/separator.d.cts} +3 -3
- package/dist/components/ui/separator.d.ts +13 -0
- package/dist/components/ui/separator.js +1 -5
- package/dist/components/ui/shadcn-io/tags/index.cjs +1 -0
- package/dist/{index-ii6MOZO-.d.ts → components/ui/shadcn-io/tags/index.d.cts} +14 -14
- package/dist/components/ui/shadcn-io/tags/index.d.ts +70 -0
- package/dist/components/ui/shadcn-io/tags/index.js +1 -12
- package/dist/components/ui/shadcn-io/tags-input-inline/index.cjs +1 -0
- package/dist/{index-BR__9xyL.d.ts → components/ui/shadcn-io/tags-input-inline/index.d.cts} +8 -8
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.ts +31 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +1 -4
- package/dist/components/ui/sheet.cjs +1 -0
- package/dist/{sheet-CQ4h2nhf.d.ts → components/ui/sheet.d.cts} +10 -10
- package/dist/components/ui/sheet.d.ts +40 -0
- package/dist/components/ui/sheet.js +1 -5
- package/dist/components/ui/slider.cjs +1 -0
- package/dist/{slider-DNo33RNT.d.ts → components/ui/slider.d.cts} +3 -3
- package/dist/components/ui/slider.d.ts +15 -0
- package/dist/components/ui/slider.js +1 -5
- package/dist/components/ui/switch.cjs +1 -0
- package/dist/{switch-vvbTlbEc.d.ts → components/ui/switch.d.cts} +3 -3
- package/dist/components/ui/switch.d.ts +11 -0
- package/dist/components/ui/switch.js +1 -7
- package/dist/components/ui/tabs.cjs +1 -0
- package/dist/{tabs-D2Ubjb4f.d.ts → components/ui/tabs.d.cts} +6 -6
- package/dist/components/ui/tabs.d.ts +23 -0
- package/dist/components/ui/tabs.js +1 -5
- package/dist/components/ui/textarea.cjs +1 -0
- package/dist/components/ui/textarea.d.cts +10 -0
- package/dist/components/ui/textarea.d.ts +10 -0
- package/dist/components/ui/textarea.js +1 -5
- package/dist/components/ui/tooltip.cjs +1 -0
- package/dist/{tooltip-JmJWz4lK.d.ts → components/ui/tooltip.d.cts} +6 -6
- package/dist/components/ui/tooltip.d.ts +23 -0
- package/dist/components/ui/tooltip.js +1 -5
- package/dist/dist/components/ui/OrContinueWithSeparator.d.cts +1 -0
- package/dist/dist/components/ui/alert-dialog.d.cts +3 -0
- package/dist/dist/components/ui/alert.d.cts +3 -0
- package/dist/dist/components/ui/avatar.d.cts +3 -0
- package/dist/dist/components/ui/badge.d.cts +3 -0
- package/dist/dist/components/ui/button.d.cts +23 -0
- package/dist/dist/components/ui/calendar.d.cts +4 -0
- package/dist/dist/components/ui/card.d.cts +2 -0
- package/dist/dist/components/ui/checkbox.d.cts +3 -0
- package/dist/dist/components/ui/command.d.cts +4 -0
- package/dist/dist/components/ui/dialog.d.cts +3 -0
- package/dist/dist/components/ui/dropdown-menu.d.cts +3 -0
- package/dist/dist/components/ui/file-upload.d.cts +2 -0
- package/dist/dist/components/ui/form.d.cts +5 -0
- package/dist/dist/components/ui/input.d.cts +2 -0
- package/dist/dist/components/ui/label.d.cts +3 -0
- package/dist/dist/components/ui/pagination.d.cts +3 -0
- package/dist/dist/components/ui/popover.d.cts +3 -0
- package/dist/dist/components/ui/radio-group.d.cts +3 -0
- package/dist/dist/components/ui/select.d.cts +3 -0
- package/dist/dist/components/ui/separator.d.cts +3 -0
- package/dist/dist/components/ui/shadcn-io/tags/index.d.cts +6 -0
- package/dist/dist/components/ui/shadcn-io/tags-input-inline/index.d.cts +2 -0
- package/dist/dist/components/ui/sheet.d.cts +3 -0
- package/dist/dist/components/ui/slider.d.cts +3 -0
- package/dist/dist/components/ui/switch.d.cts +3 -0
- package/dist/dist/components/ui/tabs.d.cts +3 -0
- package/dist/dist/components/ui/textarea.d.cts +2 -0
- package/dist/dist/components/ui/tooltip.d.cts +3 -0
- package/dist/dist/index.d.cts +30 -0
- package/dist/dist/lib/utils.d.cts +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +1 -35
- package/dist/lib/index.cjs +1 -0
- package/dist/lib/index.d.cts +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +1 -4
- package/dist/lib/utils.cjs +1 -0
- package/dist/{utils-9ayr7mhb.d.ts → lib/utils.d.cts} +1 -1
- package/dist/lib/utils.d.ts +6 -0
- package/dist/lib/utils.js +1 -3
- package/package.json +8 -4
- package/dist/OrContinueWithSeparator-CkITP0NT.js +0 -27
- package/dist/alert-DgTy4F7t.js +0 -38
- package/dist/alert-dialog-eEUiwCc2.js +0 -82
- package/dist/avatar-ggnaPAdx.js +0 -30
- package/dist/badge-OxgStuN-.js +0 -26
- package/dist/button-Ct22vvF2.js +0 -45
- package/dist/calendar-SVLTPCYN.js +0 -106
- package/dist/card-CgZyi8N4.d.ts +0 -34
- package/dist/card-mGJMSXR3.js +0 -57
- package/dist/checkbox-Car6S-YU.js +0 -22
- package/dist/command-Bh0lIHth.js +0 -87
- package/dist/components/index-STwYZkVD.d.ts +0 -30
- package/dist/components/ui/OrContinueWithSeparator-zD9Uvv6K.d.ts +0 -2
- package/dist/components/ui/alert-CrGZ30uR.d.ts +0 -2
- package/dist/components/ui/alert-dialog-C0WF5Dos.d.ts +0 -2
- package/dist/components/ui/avatar-CktZYO6v.d.ts +0 -2
- package/dist/components/ui/badge-C9NYum6y.d.ts +0 -2
- package/dist/components/ui/button-CoYoii2T.d.ts +0 -2
- package/dist/components/ui/calendar-5xd65Bmh.d.ts +0 -2
- package/dist/components/ui/card-Ckto1jiE.d.ts +0 -2
- package/dist/components/ui/checkbox-BCQklDUE.d.ts +0 -2
- package/dist/components/ui/command-BqHc3wli.d.ts +0 -2
- package/dist/components/ui/dialog-BLBozK8K.d.ts +0 -2
- package/dist/components/ui/dropdown-menu-C-dl2Ajc.d.ts +0 -2
- package/dist/components/ui/file-upload-SPbnttch.d.ts +0 -2
- package/dist/components/ui/form-ViAewsgB.d.ts +0 -2
- package/dist/components/ui/index-IiXyLa8U.d.ts +0 -30
- package/dist/components/ui/input-CMceREK-.d.ts +0 -2
- package/dist/components/ui/label-BUAecFS7.d.ts +0 -2
- package/dist/components/ui/pagination-CAR6sJhu.d.ts +0 -2
- package/dist/components/ui/popover-CGeLg_mb.d.ts +0 -2
- package/dist/components/ui/radio-group-Bwr6-_75.d.ts +0 -2
- package/dist/components/ui/select-Ceyh3aK6.d.ts +0 -2
- package/dist/components/ui/separator-Dfxgb7gD.d.ts +0 -2
- package/dist/components/ui/shadcn-io/tags/index-CAKU-H34.d.ts +0 -2
- package/dist/components/ui/shadcn-io/tags-input-inline/index-DhQmdtJh.d.ts +0 -2
- package/dist/components/ui/sheet-DWnv_e2Q.d.ts +0 -2
- package/dist/components/ui/slider-CfcbtbNG.d.ts +0 -2
- package/dist/components/ui/switch-7kQX0wi0.d.ts +0 -2
- package/dist/components/ui/tabs-B6omTiQk.d.ts +0 -2
- package/dist/components/ui/textarea-DlRILngG.d.ts +0 -2
- package/dist/components/ui/tooltip-C3dlvOcu.d.ts +0 -2
- package/dist/components-CjOwsud_.js +0 -0
- package/dist/dialog-O7j71U82.js +0 -87
- package/dist/dropdown-menu-ChXZkLy7.js +0 -124
- package/dist/file-upload-DPXO1W1r.js +0 -906
- package/dist/form-DITfwajn.js +0 -88
- package/dist/index-BRXix37V.d.ts +0 -1
- package/dist/index-CuzvJC30.d.ts +0 -1
- package/dist/index-DmFnvxaQ.d.ts +0 -1
- package/dist/index-mle9QVf7.d.ts +0 -31
- package/dist/input-Yyz-T5fE.js +0 -16
- package/dist/label-CAjd9Y0A.js +0 -16
- package/dist/lib/index-Cw9OTq6Z.d.ts +0 -2
- package/dist/lib/utils-BjeUWu6D.d.ts +0 -2
- package/dist/lib-IiLuXmGR.js +0 -0
- package/dist/pagination-X2x4H7jR.js +0 -80
- package/dist/popover-CfOLUbKw.js +0 -36
- package/dist/radio-group-4k6LZmww.js +0 -29
- package/dist/select-CXWDXh_t.js +0 -98
- package/dist/separator-BVBCxKBW.js +0 -18
- package/dist/sheet-BBbn5TK4.js +0 -83
- package/dist/slider-DZtuc6x6.js +0 -37
- package/dist/switch-C62hH2DB.js +0 -20
- package/dist/tabs-FcdB14CD.js +0 -37
- package/dist/tags-BAsyeRVu.js +0 -130
- package/dist/tags-input-inline-ClkRtl0N.js +0 -57
- package/dist/textarea-CmzvDEJd.d.ts +0 -10
- package/dist/textarea-DiUrRyYt.js +0 -15
- package/dist/tooltip-DVfEzbIm.js +0 -37
- package/dist/ui-8TGeeaIT.js +0 -0
- package/dist/utils-CeuVg6RA.js +0 -10
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Button } from "../../dist/components/ui/button.cjs";
|
|
2
|
+
import "../../dist/index.cjs";
|
|
3
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/pagination.d.ts
|
|
7
|
+
declare function Pagination({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<'nav'>): react_jsx_runtime85.JSX.Element;
|
|
11
|
+
declare function PaginationContent({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime85.JSX.Element;
|
|
15
|
+
declare function PaginationItem({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime85.JSX.Element;
|
|
18
|
+
type PaginationLinkProps = {
|
|
19
|
+
isActive?: boolean;
|
|
20
|
+
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
21
|
+
declare function PaginationLink({
|
|
22
|
+
className,
|
|
23
|
+
isActive,
|
|
24
|
+
size,
|
|
25
|
+
...props
|
|
26
|
+
}: PaginationLinkProps): react_jsx_runtime85.JSX.Element;
|
|
27
|
+
declare function PaginationPrevious({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime85.JSX.Element;
|
|
31
|
+
declare function PaginationNext({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime85.JSX.Element;
|
|
35
|
+
declare function PaginationEllipsis({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime85.JSX.Element;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime81 from "react/jsx-runtime";
|
|
3
3
|
import { Button } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/pagination.d.ts
|
|
6
6
|
declare function Pagination({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<'nav'>):
|
|
9
|
+
}: React.ComponentProps<'nav'>): react_jsx_runtime81.JSX.Element;
|
|
10
10
|
declare function PaginationContent({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<'ul'>):
|
|
13
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime81.JSX.Element;
|
|
14
14
|
declare function PaginationItem({
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<'li'>):
|
|
16
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime81.JSX.Element;
|
|
17
17
|
type PaginationLinkProps = {
|
|
18
18
|
isActive?: boolean;
|
|
19
19
|
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
@@ -22,18 +22,18 @@ declare function PaginationLink({
|
|
|
22
22
|
isActive,
|
|
23
23
|
size,
|
|
24
24
|
...props
|
|
25
|
-
}: PaginationLinkProps):
|
|
25
|
+
}: PaginationLinkProps): react_jsx_runtime81.JSX.Element;
|
|
26
26
|
declare function PaginationPrevious({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof PaginationLink>):
|
|
29
|
+
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime81.JSX.Element;
|
|
30
30
|
declare function PaginationNext({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof PaginationLink>):
|
|
33
|
+
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime81.JSX.Element;
|
|
34
34
|
declare function PaginationEllipsis({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<'span'>):
|
|
37
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime81.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
|
-
export {
|
|
39
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import "../../utils
|
|
2
|
-
import "../../lib-IiLuXmGR.js";
|
|
3
|
-
import { a as PaginationLink, i as PaginationItem, n as PaginationContent, o as PaginationNext, r as PaginationEllipsis, s as PaginationPrevious, t as Pagination } from "../../pagination-X2x4H7jR.js";
|
|
4
|
-
|
|
5
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
1
|
+
import{cn as e}from"../../lib/utils.js";import"../../lib/index.js";import"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{buttonVariants as r}from"@pixpilot/shadcn";import{ChevronLeftIcon as i,ChevronRightIcon as a,MoreHorizontalIcon as o}from"lucide-react";function s({className:n,...r}){return t(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:e(`mx-auto flex w-full justify-center`,n),...r})}function c({className:n,...r}){return t(`ul`,{"data-slot":`pagination-content`,className:e(`flex flex-row items-center gap-1`,n),...r})}function l({...e}){return t(`li`,{"data-slot":`pagination-item`,...e})}function u({className:n,isActive:i,size:a=`icon`,...o}){return t(`a`,{"aria-current":i?`page`:void 0,"data-slot":`pagination-link`,"data-active":i,className:e(r({variant:i?`outline`:`ghost`,size:a}),n),...o})}function d({className:r,...a}){return n(u,{"aria-label":`Go to previous page`,size:`default`,className:e(`gap-1 px-2.5 sm:pl-2.5`,r),...a,children:[t(i,{}),t(`span`,{className:`hidden sm:block`,children:`Previous`})]})}function f({className:r,...i}){return n(u,{"aria-label":`Go to next page`,size:`default`,className:e(`gap-1 px-2.5 sm:pr-2.5`,r),...i,children:[t(`span`,{className:`hidden sm:block`,children:`Next`}),t(a,{})]})}function p({className:r,...i}){return n(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:e(`flex size-9 items-center justify-center`,r),...i,children:[t(o,{className:`size-4`}),t(`span`,{className:`sr-only`,children:`More pages`})]})}export{s as Pagination,c as PaginationContent,p as PaginationEllipsis,l as PaginationItem,u as PaginationLink,f as PaginationNext,d as PaginationPrevious};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../lib/utils.cjs`);require(`../../lib/index.cjs`);let n=require(`react`);n=e.__toESM(n);let r=require(`react/jsx-runtime`);r=e.__toESM(r);let i=require(`@radix-ui/react-popover`);i=e.__toESM(i);function a({...e}){return(0,r.jsx)(i.Root,{"data-slot":`popover`,...e})}function o({...e}){return(0,r.jsx)(i.Trigger,{"data-slot":`popover-trigger`,...e})}function s({className:e,align:n=`center`,sideOffset:a=4,...o}){return(0,r.jsx)(i.Portal,{children:(0,r.jsx)(i.Content,{"data-slot":`popover-content`,align:n,sideOffset:a,className:t.cn(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...o})})}function c({...e}){return(0,r.jsx)(i.Anchor,{"data-slot":`popover-anchor`,...e})}exports.Popover=a,exports.PopoverAnchor=c,exports.PopoverContent=s,exports.PopoverTrigger=o;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime80 from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
3
3
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/popover.d.ts
|
|
6
6
|
declare function Popover({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime80.JSX.Element;
|
|
9
9
|
declare function PopoverTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
11
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime80.JSX.Element;
|
|
12
12
|
declare function PopoverContent({
|
|
13
13
|
className,
|
|
14
14
|
align,
|
|
15
15
|
sideOffset,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
17
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime80.JSX.Element;
|
|
18
18
|
declare function PopoverAnchor({
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
20
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime80.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
|
-
export {
|
|
22
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
3
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/popover.d.ts
|
|
6
|
+
declare function Popover({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime88.JSX.Element;
|
|
9
|
+
declare function PopoverTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime88.JSX.Element;
|
|
12
|
+
declare function PopoverContent({
|
|
13
|
+
className,
|
|
14
|
+
align,
|
|
15
|
+
sideOffset,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime88.JSX.Element;
|
|
18
|
+
declare function PopoverAnchor({
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime88.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import "../../utils
|
|
2
|
-
import "../../lib-IiLuXmGR.js";
|
|
3
|
-
import { i as PopoverTrigger, n as PopoverAnchor, r as PopoverContent, t as Popover } from "../../popover-CfOLUbKw.js";
|
|
4
|
-
|
|
5
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
1
|
+
import{cn as e}from"../../lib/utils.js";import"../../lib/index.js";import"react";import{jsx as t}from"react/jsx-runtime";import*as n from"@radix-ui/react-popover";function r({...e}){return t(n.Root,{"data-slot":`popover`,...e})}function i({...e}){return t(n.Trigger,{"data-slot":`popover-trigger`,...e})}function a({className:r,align:i=`center`,sideOffset:a=4,...o}){return t(n.Portal,{children:t(n.Content,{"data-slot":`popover-content`,align:i,sideOffset:a,className:e(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,r),...o})})}function o({...e}){return t(n.Anchor,{"data-slot":`popover-anchor`,...e})}export{r as Popover,o as PopoverAnchor,a as PopoverContent,i as PopoverTrigger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../lib/utils.cjs`);require(`../../lib/index.cjs`);let n=require(`react`);n=e.__toESM(n);let r=require(`react/jsx-runtime`);r=e.__toESM(r);let i=require(`lucide-react`);i=e.__toESM(i);let a=require(`@radix-ui/react-radio-group`);a=e.__toESM(a);function o({className:e,...n}){return(0,r.jsx)(a.Root,{"data-slot":`radio-group`,className:t.cn(`grid gap-3`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(a.Item,{"data-slot":`radio-group-item`,className:t.cn(`border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,e),...n,children:(0,r.jsx)(a.Indicator,{"data-slot":`radio-group-indicator`,className:`relative flex items-center justify-center`,children:(0,r.jsx)(i.CircleIcon,{className:`fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2`})})})}exports.RadioGroup=o,exports.RadioGroupItem=s;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
3
3
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/radio-group.d.ts
|
|
6
6
|
declare function RadioGroup({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime102.JSX.Element;
|
|
10
10
|
declare function RadioGroupItem({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>):
|
|
13
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime102.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
|
-
export {
|
|
15
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
3
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/radio-group.d.ts
|
|
6
|
+
declare function RadioGroup({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime92.JSX.Element;
|
|
10
|
+
declare function RadioGroupItem({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime92.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import "../../utils
|
|
2
|
-
import "../../lib-IiLuXmGR.js";
|
|
3
|
-
import { n as RadioGroupItem, t as RadioGroup } from "../../radio-group-4k6LZmww.js";
|
|
4
|
-
|
|
5
|
-
export { RadioGroup, RadioGroupItem };
|
|
1
|
+
import{cn as e}from"../../lib/utils.js";import"../../lib/index.js";import"react";import{jsx as t}from"react/jsx-runtime";import{CircleIcon as n}from"lucide-react";import*as r from"@radix-ui/react-radio-group";function i({className:n,...i}){return t(r.Root,{"data-slot":`radio-group`,className:e(`grid gap-3`,n),...i})}function a({className:i,...a}){return t(r.Item,{"data-slot":`radio-group-item`,className:e(`border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,i),...a,children:t(r.Indicator,{"data-slot":`radio-group-indicator`,className:`relative flex items-center justify-center`,children:t(n,{className:`fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2`})})})}export{i as RadioGroup,a as RadioGroupItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../lib/utils.cjs`);require(`../../lib/index.cjs`);let n=require(`react`);n=e.__toESM(n);let r=require(`react/jsx-runtime`);r=e.__toESM(r);let i=require(`lucide-react`);i=e.__toESM(i);let a=require(`@radix-ui/react-select`);a=e.__toESM(a);function o({...e}){return(0,r.jsx)(a.Root,{"data-slot":`select`,...e})}function s({...e}){return(0,r.jsx)(a.Group,{"data-slot":`select-group`,...e})}function c({...e}){return(0,r.jsx)(a.Value,{"data-slot":`select-value`,...e})}function l({className:e,size:n=`default`,children:o,...s}){return(0,r.jsxs)(a.Trigger,{"data-slot":`select-trigger`,"data-size":n,className:t.cn(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[o,(0,r.jsx)(a.Icon,{asChild:!0,children:(0,r.jsx)(i.ChevronDownIcon,{className:`size-4 opacity-50`})})]})}function u({className:e,children:n,position:i=`popper`,align:o=`center`,...s}){return(0,r.jsx)(a.Portal,{children:(0,r.jsxs)(a.Content,{"data-slot":`select-content`,className:t.cn(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,i===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:i,align:o,...s,children:[(0,r.jsx)(m,{}),(0,r.jsx)(a.Viewport,{className:t.cn(`p-1`,i===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:n}),(0,r.jsx)(h,{})]})})}function d({className:e,...n}){return(0,r.jsx)(a.Label,{"data-slot":`select-label`,className:t.cn(`text-muted-foreground px-2 py-1.5 text-xs`,e),...n})}function f({className:e,children:n,...o}){return(0,r.jsxs)(a.Item,{"data-slot":`select-item`,className:t.cn(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...o,children:[(0,r.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(a.ItemIndicator,{children:(0,r.jsx)(i.CheckIcon,{className:`size-4`})})}),(0,r.jsx)(a.ItemText,{children:n})]})}function p({className:e,...n}){return(0,r.jsx)(a.Separator,{"data-slot":`select-separator`,className:t.cn(`bg-border pointer-events-none -mx-1 my-1 h-px`,e),...n})}function m({className:e,...n}){return(0,r.jsx)(a.ScrollUpButton,{"data-slot":`select-scroll-up-button`,className:t.cn(`flex cursor-default items-center justify-center py-1`,e),...n,children:(0,r.jsx)(i.ChevronUpIcon,{className:`size-4`})})}function h({className:e,...n}){return(0,r.jsx)(a.ScrollDownButton,{"data-slot":`select-scroll-down-button`,className:t.cn(`flex cursor-default items-center justify-center py-1`,e),...n,children:(0,r.jsx)(i.ChevronDownIcon,{className:`size-4`})})}exports.Select=o,exports.SelectContent=u,exports.SelectGroup=s,exports.SelectItem=f,exports.SelectLabel=d,exports.SelectScrollDownButton=h,exports.SelectScrollUpButton=m,exports.SelectSeparator=p,exports.SelectTrigger=l,exports.SelectValue=c;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime93 from "react/jsx-runtime";
|
|
3
3
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/select.d.ts
|
|
6
6
|
declare function Select({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof SelectPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime92.JSX.Element;
|
|
9
9
|
declare function SelectGroup({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SelectPrimitive.Group>):
|
|
11
|
+
}: React.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime92.JSX.Element;
|
|
12
12
|
declare function SelectValue({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof SelectPrimitive.Value>):
|
|
14
|
+
}: React.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime92.JSX.Element;
|
|
15
15
|
declare function SelectTrigger({
|
|
16
16
|
className,
|
|
17
17
|
size,
|
|
@@ -19,34 +19,34 @@ declare function SelectTrigger({
|
|
|
19
19
|
...props
|
|
20
20
|
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
21
21
|
size?: 'sm' | 'default';
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime92.JSX.Element;
|
|
23
23
|
declare function SelectContent({
|
|
24
24
|
className,
|
|
25
25
|
children,
|
|
26
26
|
position,
|
|
27
27
|
align,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof SelectPrimitive.Content>):
|
|
29
|
+
}: React.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime92.JSX.Element;
|
|
30
30
|
declare function SelectLabel({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof SelectPrimitive.Label>):
|
|
33
|
+
}: React.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime92.JSX.Element;
|
|
34
34
|
declare function SelectItem({
|
|
35
35
|
className,
|
|
36
36
|
children,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof SelectPrimitive.Item>):
|
|
38
|
+
}: React.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime92.JSX.Element;
|
|
39
39
|
declare function SelectSeparator({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React.ComponentProps<typeof SelectPrimitive.Separator>):
|
|
42
|
+
}: React.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime92.JSX.Element;
|
|
43
43
|
declare function SelectScrollUpButton({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>):
|
|
46
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime92.JSX.Element;
|
|
47
47
|
declare function SelectScrollDownButton({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>):
|
|
50
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime92.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
|
-
export {
|
|
52
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime94 from "react/jsx-runtime";
|
|
3
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/select.d.ts
|
|
6
|
+
declare function Select({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime94.JSX.Element;
|
|
9
|
+
declare function SelectGroup({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime94.JSX.Element;
|
|
12
|
+
declare function SelectValue({
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime94.JSX.Element;
|
|
15
|
+
declare function SelectTrigger({
|
|
16
|
+
className,
|
|
17
|
+
size,
|
|
18
|
+
children,
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
21
|
+
size?: 'sm' | 'default';
|
|
22
|
+
}): react_jsx_runtime94.JSX.Element;
|
|
23
|
+
declare function SelectContent({
|
|
24
|
+
className,
|
|
25
|
+
children,
|
|
26
|
+
position,
|
|
27
|
+
align,
|
|
28
|
+
...props
|
|
29
|
+
}: React.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime94.JSX.Element;
|
|
30
|
+
declare function SelectLabel({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: React.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime94.JSX.Element;
|
|
34
|
+
declare function SelectItem({
|
|
35
|
+
className,
|
|
36
|
+
children,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime94.JSX.Element;
|
|
39
|
+
declare function SelectSeparator({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime94.JSX.Element;
|
|
43
|
+
declare function SelectScrollUpButton({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime94.JSX.Element;
|
|
47
|
+
declare function SelectScrollDownButton({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime94.JSX.Element;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import "../../utils-CeuVg6RA.js";
|
|
4
|
-
import "../../lib-IiLuXmGR.js";
|
|
5
|
-
import { a as SelectLabel, c as SelectSeparator, i as SelectItem, l as SelectTrigger, n as SelectContent, o as SelectScrollDownButton, r as SelectGroup, s as SelectScrollUpButton, t as Select, u as SelectValue } from "../../select-CXWDXh_t.js";
|
|
6
|
-
|
|
7
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
1
|
+
"use client";import{cn as e}from"../../lib/utils.js";import"../../lib/index.js";import"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{CheckIcon as r,ChevronDownIcon as i,ChevronUpIcon as a}from"lucide-react";import*as o from"@radix-ui/react-select";function s({...e}){return t(o.Root,{"data-slot":`select`,...e})}function c({...e}){return t(o.Group,{"data-slot":`select-group`,...e})}function l({...e}){return t(o.Value,{"data-slot":`select-value`,...e})}function u({className:r,size:a=`default`,children:s,...c}){return n(o.Trigger,{"data-slot":`select-trigger`,"data-size":a,className:e(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),...c,children:[s,t(o.Icon,{asChild:!0,children:t(i,{className:`size-4 opacity-50`})})]})}function d({className:r,children:i,position:a=`popper`,align:s=`center`,...c}){return t(o.Portal,{children:n(o.Content,{"data-slot":`select-content`,className:e(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,a===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,r),position:a,align:s,...c,children:[t(h,{}),t(o.Viewport,{className:e(`p-1`,a===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:i}),t(g,{})]})})}function f({className:n,...r}){return t(o.Label,{"data-slot":`select-label`,className:e(`text-muted-foreground px-2 py-1.5 text-xs`,n),...r})}function p({className:i,children:a,...s}){return n(o.Item,{"data-slot":`select-item`,className:e(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,i),...s,children:[t(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:t(o.ItemIndicator,{children:t(r,{className:`size-4`})})}),t(o.ItemText,{children:a})]})}function m({className:n,...r}){return t(o.Separator,{"data-slot":`select-separator`,className:e(`bg-border pointer-events-none -mx-1 my-1 h-px`,n),...r})}function h({className:n,...r}){return t(o.ScrollUpButton,{"data-slot":`select-scroll-up-button`,className:e(`flex cursor-default items-center justify-center py-1`,n),...r,children:t(a,{className:`size-4`})})}function g({className:n,...r}){return t(o.ScrollDownButton,{"data-slot":`select-scroll-down-button`,className:e(`flex cursor-default items-center justify-center py-1`,n),...r,children:t(i,{className:`size-4`})})}export{s as Select,d as SelectContent,c as SelectGroup,p as SelectItem,f as SelectLabel,g as SelectScrollDownButton,h as SelectScrollUpButton,m as SelectSeparator,u as SelectTrigger,l as SelectValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../lib/utils.cjs`);require(`../../lib/index.cjs`);let n=require(`react`);n=e.__toESM(n);let r=require(`react/jsx-runtime`);r=e.__toESM(r);let i=require(`@radix-ui/react-separator`);i=e.__toESM(i);function a({className:e,orientation:n=`horizontal`,decorative:a=!0,...o}){return(0,r.jsx)(i.Root,{"data-slot":`separator`,decorative:a,orientation:n,className:t.cn(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,e),...o})}exports.Separator=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime126 from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime123 from "react/jsx-runtime";
|
|
3
3
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/separator.d.ts
|
|
@@ -8,6 +8,6 @@ declare function Separator({
|
|
|
8
8
|
orientation,
|
|
9
9
|
decorative,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
11
|
+
}: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime126.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { Separator
|
|
13
|
+
export { Separator };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
3
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/separator.d.ts
|
|
6
|
+
declare function Separator({
|
|
7
|
+
className,
|
|
8
|
+
orientation,
|
|
9
|
+
decorative,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime104.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Separator };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import "../../utils
|
|
2
|
-
import "../../lib-IiLuXmGR.js";
|
|
3
|
-
import { t as Separator } from "../../separator-BVBCxKBW.js";
|
|
4
|
-
|
|
5
|
-
export { Separator };
|
|
1
|
+
import{cn as e}from"../../lib/utils.js";import"../../lib/index.js";import"react";import{jsx as t}from"react/jsx-runtime";import*as n from"@radix-ui/react-separator";function r({className:r,orientation:i=`horizontal`,decorative:a=!0,...o}){return t(n.Root,{"data-slot":`separator`,decorative:a,orientation:i,className:e(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,r),...o})}export{r as Separator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../../lib/utils.cjs`);require(`../../../../lib/index.cjs`);const n=require(`../../badge.cjs`),r=require(`../../button.cjs`),i=require(`../../command.cjs`),a=require(`../../popover.cjs`);let o=require(`react`);o=e.__toESM(o);let s=require(`react/jsx-runtime`);s=e.__toESM(s);let c=require(`lucide-react`);c=e.__toESM(c);const l=(0,o.createContext)({value:void 0,setValue:void 0,open:!1,onOpenChange:()=>{},width:void 0,setWidth:void 0});function u(){let e=(0,o.use)(l);if(!e)throw Error(`useTagsContext must be used within a TagsProvider`);return e}function d({value:e,setValue:n,open:r,onOpenChange:i,children:c,className:u}){let[d,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)(),h=(0,o.useRef)(null),g=r??d,_=i??f;return(0,o.useEffect)(()=>{if(!h.current)return;let e=new ResizeObserver(e=>{e[0]&&m(e[0].contentRect.width)});return e.observe(h.current),()=>{e.disconnect()}},[]),(0,s.jsx)(l.Provider,{value:{value:e,setValue:n,open:g,onOpenChange:_,width:p,setWidth:m},children:(0,s.jsx)(a.Popover,{onOpenChange:_,open:g,children:(0,s.jsx)(`div`,{className:t.cn(`relative w-full`,u),ref:h,children:c})})})}function f({className:e,children:n,...i}){return(0,s.jsx)(a.PopoverTrigger,{asChild:!0,children:(0,s.jsx)(r.Button,{className:t.cn(`h-auto w-full justify-between p-2`,e),role:`combobox`,variant:`outline`,...i,children:(0,s.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[n,(0,s.jsx)(`span`,{className:`px-2 py-px text-muted-foreground`,children:`Select a tag...`})]})})})}function p({className:e,children:r,onRemove:i,...a}){let o=e=>{e.preventDefault(),e.stopPropagation(),i?.()};return(0,s.jsxs)(n.Badge,{className:t.cn(`flex items-center gap-2`,e),...a,children:[r,i&&(0,s.jsx)(`div`,{className:`size-auto cursor-pointer hover:text-muted-foreground`,onClick:o,children:(0,s.jsx)(c.XIcon,{size:12})})]})}function m({className:e,children:n,...r}){let{width:o}=u();return(0,s.jsx)(a.PopoverContent,{className:t.cn(`p-0`,e),style:{width:o},...r,children:(0,s.jsx)(i.Command,{children:n})})}function h({className:e,...n}){return(0,s.jsx)(i.CommandInput,{className:t.cn(`h-9`,e),...n})}function g({className:e,...n}){return(0,s.jsx)(i.CommandList,{className:t.cn(`max-h-[200px]`,e),...n})}function _({children:e,className:t,...n}){return(0,s.jsx)(i.CommandEmpty,{...n,children:e??`No tags found.`})}const v=i.CommandGroup;function y({className:e,...n}){return(0,s.jsx)(i.CommandItem,{className:t.cn(`cursor-pointer items-center justify-between`,e),...n})}exports.Tags=d,exports.TagsContent=m,exports.TagsEmpty=_,exports.TagsGroup=v,exports.TagsInput=h,exports.TagsItem=y,exports.TagsList=g,exports.TagsTrigger=f,exports.TagsValue=p;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Badge } from "../../badge.cjs";
|
|
2
|
+
import { Button } from "../../button.cjs";
|
|
3
|
+
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../../command.cjs";
|
|
4
|
+
import { PopoverContent } from "../../popover.cjs";
|
|
5
|
+
import * as react_jsx_runtime118 from "react/jsx-runtime";
|
|
5
6
|
import { ComponentProps, ReactNode } from "react";
|
|
6
|
-
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ui/shadcn-io/tags/index.d.ts
|
|
9
9
|
interface TagsProps {
|
|
@@ -21,13 +21,13 @@ declare function Tags({
|
|
|
21
21
|
onOpenChange: controlledOnOpenChange,
|
|
22
22
|
children,
|
|
23
23
|
className
|
|
24
|
-
}: TagsProps):
|
|
24
|
+
}: TagsProps): react_jsx_runtime118.JSX.Element;
|
|
25
25
|
type TagsTriggerProps = ComponentProps<typeof Button>;
|
|
26
26
|
declare function TagsTrigger({
|
|
27
27
|
className,
|
|
28
28
|
children,
|
|
29
29
|
...props
|
|
30
|
-
}: TagsTriggerProps):
|
|
30
|
+
}: TagsTriggerProps): react_jsx_runtime118.JSX.Element;
|
|
31
31
|
type TagsValueProps = ComponentProps<typeof Badge>;
|
|
32
32
|
declare function TagsValue({
|
|
33
33
|
className,
|
|
@@ -36,35 +36,35 @@ declare function TagsValue({
|
|
|
36
36
|
...props
|
|
37
37
|
}: TagsValueProps & {
|
|
38
38
|
onRemove?: () => void;
|
|
39
|
-
}):
|
|
39
|
+
}): react_jsx_runtime118.JSX.Element;
|
|
40
40
|
type TagsContentProps = ComponentProps<typeof PopoverContent>;
|
|
41
41
|
declare function TagsContent({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: TagsContentProps):
|
|
45
|
+
}: TagsContentProps): react_jsx_runtime118.JSX.Element;
|
|
46
46
|
type TagsInputProps = ComponentProps<typeof CommandInput>;
|
|
47
47
|
declare function TagsInput({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: TagsInputProps):
|
|
50
|
+
}: TagsInputProps): react_jsx_runtime118.JSX.Element;
|
|
51
51
|
type TagsListProps = ComponentProps<typeof CommandList>;
|
|
52
52
|
declare function TagsList({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: TagsListProps):
|
|
55
|
+
}: TagsListProps): react_jsx_runtime118.JSX.Element;
|
|
56
56
|
type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
57
57
|
declare function TagsEmpty({
|
|
58
58
|
children,
|
|
59
59
|
className,
|
|
60
60
|
...props
|
|
61
|
-
}: TagsEmptyProps):
|
|
61
|
+
}: TagsEmptyProps): react_jsx_runtime118.JSX.Element;
|
|
62
62
|
type TagsGroupProps = ComponentProps<typeof CommandGroup>;
|
|
63
63
|
declare const TagsGroup: typeof CommandGroup;
|
|
64
64
|
type TagsItemProps = ComponentProps<typeof CommandItem>;
|
|
65
65
|
declare function TagsItem({
|
|
66
66
|
className,
|
|
67
67
|
...props
|
|
68
|
-
}: TagsItemProps):
|
|
68
|
+
}: TagsItemProps): react_jsx_runtime118.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
|
-
export {
|
|
70
|
+
export { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Badge } from "../../badge.js";
|
|
2
|
+
import { Button } from "../../button.js";
|
|
3
|
+
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../../command.js";
|
|
4
|
+
import { PopoverContent } from "../../popover.js";
|
|
5
|
+
import { ComponentProps, ReactNode } from "react";
|
|
6
|
+
import * as react_jsx_runtime111 from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ui/shadcn-io/tags/index.d.ts
|
|
9
|
+
interface TagsProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
setValue?: (value: string) => void;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function Tags({
|
|
18
|
+
value,
|
|
19
|
+
setValue,
|
|
20
|
+
open: controlledOpen,
|
|
21
|
+
onOpenChange: controlledOnOpenChange,
|
|
22
|
+
children,
|
|
23
|
+
className
|
|
24
|
+
}: TagsProps): react_jsx_runtime111.JSX.Element;
|
|
25
|
+
type TagsTriggerProps = ComponentProps<typeof Button>;
|
|
26
|
+
declare function TagsTrigger({
|
|
27
|
+
className,
|
|
28
|
+
children,
|
|
29
|
+
...props
|
|
30
|
+
}: TagsTriggerProps): react_jsx_runtime111.JSX.Element;
|
|
31
|
+
type TagsValueProps = ComponentProps<typeof Badge>;
|
|
32
|
+
declare function TagsValue({
|
|
33
|
+
className,
|
|
34
|
+
children,
|
|
35
|
+
onRemove,
|
|
36
|
+
...props
|
|
37
|
+
}: TagsValueProps & {
|
|
38
|
+
onRemove?: () => void;
|
|
39
|
+
}): react_jsx_runtime111.JSX.Element;
|
|
40
|
+
type TagsContentProps = ComponentProps<typeof PopoverContent>;
|
|
41
|
+
declare function TagsContent({
|
|
42
|
+
className,
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
}: TagsContentProps): react_jsx_runtime111.JSX.Element;
|
|
46
|
+
type TagsInputProps = ComponentProps<typeof CommandInput>;
|
|
47
|
+
declare function TagsInput({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: TagsInputProps): react_jsx_runtime111.JSX.Element;
|
|
51
|
+
type TagsListProps = ComponentProps<typeof CommandList>;
|
|
52
|
+
declare function TagsList({
|
|
53
|
+
className,
|
|
54
|
+
...props
|
|
55
|
+
}: TagsListProps): react_jsx_runtime111.JSX.Element;
|
|
56
|
+
type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
57
|
+
declare function TagsEmpty({
|
|
58
|
+
children,
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}: TagsEmptyProps): react_jsx_runtime111.JSX.Element;
|
|
62
|
+
type TagsGroupProps = ComponentProps<typeof CommandGroup>;
|
|
63
|
+
declare const TagsGroup: typeof CommandGroup;
|
|
64
|
+
type TagsItemProps = ComponentProps<typeof CommandItem>;
|
|
65
|
+
declare function TagsItem({
|
|
66
|
+
className,
|
|
67
|
+
...props
|
|
68
|
+
}: TagsItemProps): react_jsx_runtime111.JSX.Element;
|
|
69
|
+
//#endregion
|
|
70
|
+
export { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps };
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import "../../../../utils-CeuVg6RA.js";
|
|
4
|
-
import "../../../../lib-IiLuXmGR.js";
|
|
5
|
-
import "../../../../badge-OxgStuN-.js";
|
|
6
|
-
import "../../../../button-Ct22vvF2.js";
|
|
7
|
-
import "../../../../dialog-O7j71U82.js";
|
|
8
|
-
import "../../../../command-Bh0lIHth.js";
|
|
9
|
-
import "../../../../popover-CfOLUbKw.js";
|
|
10
|
-
import { a as TagsInput, c as TagsTrigger, i as TagsGroup, l as TagsValue, n as TagsContent, o as TagsItem, r as TagsEmpty, s as TagsList, t as Tags } from "../../../../tags-BAsyeRVu.js";
|
|
11
|
-
|
|
12
|
-
export { Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue };
|
|
1
|
+
"use client";import{cn as e}from"../../../../lib/utils.js";import"../../../../lib/index.js";import{Badge as t}from"../../badge.js";import{Button as n}from"../../button.js";import{Command as r,CommandEmpty as i,CommandGroup as a,CommandInput as o,CommandItem as s,CommandList as c}from"../../command.js";import{Popover as l,PopoverContent as u,PopoverTrigger as d}from"../../popover.js";import{createContext as f,use as p,useEffect as m,useRef as h,useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import{XIcon as y}from"lucide-react";const b=f({value:void 0,setValue:void 0,open:!1,onOpenChange:()=>{},width:void 0,setWidth:void 0});function x(){let e=p(b);if(!e)throw Error(`useTagsContext must be used within a TagsProvider`);return e}function S({value:t,setValue:n,open:r,onOpenChange:i,children:a,className:o}){let[s,c]=g(!1),[u,d]=g(),f=h(null),p=r??s,v=i??c;return m(()=>{if(!f.current)return;let e=new ResizeObserver(e=>{e[0]&&d(e[0].contentRect.width)});return e.observe(f.current),()=>{e.disconnect()}},[]),_(b.Provider,{value:{value:t,setValue:n,open:p,onOpenChange:v,width:u,setWidth:d},children:_(l,{onOpenChange:v,open:p,children:_(`div`,{className:e(`relative w-full`,o),ref:f,children:a})})})}function C({className:t,children:r,...i}){return _(d,{asChild:!0,children:_(n,{className:e(`h-auto w-full justify-between p-2`,t),role:`combobox`,variant:`outline`,...i,children:v(`div`,{className:`flex flex-wrap items-center gap-1`,children:[r,_(`span`,{className:`px-2 py-px text-muted-foreground`,children:`Select a tag...`})]})})})}function w({className:n,children:r,onRemove:i,...a}){let o=e=>{e.preventDefault(),e.stopPropagation(),i?.()};return v(t,{className:e(`flex items-center gap-2`,n),...a,children:[r,i&&_(`div`,{className:`size-auto cursor-pointer hover:text-muted-foreground`,onClick:o,children:_(y,{size:12})})]})}function T({className:t,children:n,...i}){let{width:a}=x();return _(u,{className:e(`p-0`,t),style:{width:a},...i,children:_(r,{children:n})})}function E({className:t,...n}){return _(o,{className:e(`h-9`,t),...n})}function D({className:t,...n}){return _(c,{className:e(`max-h-[200px]`,t),...n})}function O({children:e,className:t,...n}){return _(i,{...n,children:e??`No tags found.`})}const k=a;function A({className:t,...n}){return _(s,{className:e(`cursor-pointer items-center justify-between`,t),...n})}export{S as Tags,T as TagsContent,O as TagsEmpty,k as TagsGroup,E as TagsInput,A as TagsItem,D as TagsList,C as TagsTrigger,w as TagsValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../../lib/utils.cjs`);let n=require(`react/jsx-runtime`);n=e.__toESM(n);let r=require(`lucide-react`);r=e.__toESM(r);let i=require(`@diceui/tags-input`);i=e.__toESM(i);function a({className:e,...r}){return(0,n.jsx)(i.Root,{"data-slot":`tags-input`,className:t.cn(`flex w-full flex-col`,e),...r})}function o({className:e,...r}){return(0,n.jsx)(i.Label,{"data-slot":`tags-input-label`,className:t.cn(`font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`,e),...r})}function s({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`tags-input-list`,className:t.cn(`flex min-h-10 w-full flex-wrap items-center gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm focus-within:ring-1 focus-within:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),...r})}function c({className:e,...r}){return(0,n.jsx)(i.Input,{"data-slot":`tags-input-input`,className:t.cn(`flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),...r})}function l({className:e,children:a,...o}){return(0,n.jsxs)(i.Item,{"data-slot":`tags-input-item`,className:t.cn(`inline-flex max-w-[calc(100%-8px)] items-center gap-1.5 rounded border bg-transparent px-2.5 py-1 text-sm focus:outline-hidden data-disabled:cursor-not-allowed data-editable:select-none data-editing:bg-transparent data-disabled:opacity-50 data-editing:ring-1 data-editing:ring-ring [&:not([data-editing])]:pr-1.5 [&[data-highlighted]:not([data-editing])]:bg-accent [&[data-highlighted]:not([data-editing])]:text-accent-foreground`,e),...o,children:[(0,n.jsx)(i.ItemText,{className:`truncate`,children:a}),(0,n.jsx)(i.ItemDelete,{className:`size-4 shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100`,children:(0,n.jsx)(r.X,{className:`size-3.5`})})]})}function u({...e}){return(0,n.jsx)(i.Clear,{"data-slot":`tags-input-clear`,...e})}exports.TagsInputInLineClear=u,exports.TagsInputInLineInput=c,exports.TagsInputInLineItem=l,exports.TagsInputInLineLabel=o,exports.TagsInputInLineList=s,exports.TagsInputInLineRoot=a;
|