@yimingliao/cms 0.0.130 → 0.0.131
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/export/client/index.js +2 -1
- package/dist/src/client/infrastructure/contexts/admin.js +5 -4
- package/dist/src/client/infrastructure/contexts/theme.js +5 -5
- package/dist/src/client/infrastructure/toast/error-display.js +15 -3
- package/dist/src/client/interfaces/components/shadcn/avatar.js +5 -4
- package/dist/src/client/interfaces/components/shadcn/button.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/card.js +9 -8
- package/dist/src/client/interfaces/components/shadcn/collapsible.js +4 -3
- package/dist/src/client/interfaces/components/shadcn/dropdown-menu.js +36 -29
- package/dist/src/client/interfaces/components/shadcn/input-group.js +8 -7
- package/dist/src/client/interfaces/components/shadcn/input.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/label.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/pagination.js +21 -18
- package/dist/src/client/interfaces/components/shadcn/select.js +47 -40
- package/dist/src/client/interfaces/components/shadcn/separator.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/sheet.js +36 -27
- package/dist/src/client/interfaces/components/shadcn/sidebar.js +120 -105
- package/dist/src/client/interfaces/components/shadcn/skeleton.js +2 -1
- package/dist/src/client/interfaces/components/shadcn/spinner.js +2 -1
- package/dist/src/client/interfaces/components/shadcn/textarea.js +3 -2
- package/dist/src/client/interfaces/components/shadcn/tooltip.js +13 -10
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/list-cards-container.js +35 -23
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.js +20 -14
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/pagination.js +35 -26
- package/dist/src/client/interfaces/components/ui/blocks/page-header/page-header-title.js +10 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/page-header.js +21 -15
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/batch-create.js +2 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/batch.js +19 -14
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/create.js +2 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/edit.js +2 -1
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/index.js +34 -29
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/show.js +43 -37
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/trash.js +24 -18
- package/dist/src/client/interfaces/components/ui/buttons/button.js +8 -4
- package/dist/src/client/interfaces/components/ui/buttons/return-button.js +5 -4
- package/dist/src/client/interfaces/components/ui/features/expandable-list/expand-bar.js +9 -6
- package/dist/src/client/interfaces/components/ui/features/expandable-list/expandable-list-content.js +14 -8
- package/dist/src/client/interfaces/components/ui/features/expandable-list/expandable-list.js +22 -17
- package/dist/src/client/interfaces/components/ui/form/containers/fields-container.js +5 -4
- package/dist/src/client/interfaces/components/ui/form/containers/main-fields.js +5 -4
- package/dist/src/client/interfaces/components/ui/form/containers/side-fields.js +5 -4
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields-display.js +80 -57
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields-input.js +114 -91
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields.js +4 -3
- package/dist/src/client/interfaces/components/ui/form/field-body.js +31 -28
- package/dist/src/client/interfaces/components/ui/form/field.js +12 -1
- package/dist/src/client/interfaces/components/ui/form/form.js +2 -1
- package/dist/src/client/interfaces/components/ui/form/index-field.js +49 -42
- package/dist/src/client/interfaces/components/ui/form/slug-field.js +45 -38
- package/dist/src/client/interfaces/components/ui/inputs/array-input.js +63 -52
- package/dist/src/client/interfaces/components/ui/inputs/checkbox.js +41 -38
- package/dist/src/client/interfaces/components/ui/inputs/input.js +20 -17
- package/dist/src/client/interfaces/components/ui/inputs/password-input.js +6 -5
- package/dist/src/client/interfaces/components/ui/inputs/search-input.js +6 -5
- package/dist/src/client/interfaces/components/ui/inputs/select.js +19 -13
- package/dist/src/client/interfaces/components/ui/inputs/textarea.js +3 -2
- package/dist/src/client/interfaces/components/ui/layouts/content-container.js +5 -4
- package/dist/src/client/interfaces/components/ui/layouts/layout-skeleton.js +20 -7
- package/dist/src/client/interfaces/components/ui/layouts/navbar/i18n-selector.js +8 -1
- package/dist/src/client/interfaces/components/ui/layouts/navbar/nav-user.js +60 -34
- package/dist/src/client/interfaces/components/ui/layouts/navbar/navbar.js +39 -26
- package/dist/src/client/interfaces/components/ui/layouts/navbar/sign-out-button.js +6 -2
- package/dist/src/client/interfaces/components/ui/layouts/navbar/theme-selector.js +22 -1
- package/dist/src/client/interfaces/components/ui/layouts/sidebar/nav-main.js +43 -27
- package/dist/src/client/interfaces/pages/auth/change-password.js +81 -70
- package/dist/src/client/interfaces/pages/auth/email-unverified.js +39 -21
- package/dist/src/client/interfaces/pages/auth/forgot-password.js +41 -26
- package/dist/src/client/interfaces/pages/auth/reset-password.js +60 -51
- package/dist/src/client/interfaces/pages/auth/sign-in.js +46 -37
- package/dist/src/client/interfaces/pages/auth/verify-email.js +2 -1
- package/package.json +1 -1
|
@@ -10,12 +10,13 @@ export { createAdminInitializer } from '../../src/client/interfaces/components/a
|
|
|
10
10
|
export { ContentContainer } from '../../src/client/interfaces/components/ui/layouts/content-container.js';
|
|
11
11
|
export { LayoutSkeleton } from '../../src/client/interfaces/components/ui/layouts/layout-skeleton.js';
|
|
12
12
|
export { NavMain } from '../../src/client/interfaces/components/ui/layouts/sidebar/nav-main.js';
|
|
13
|
+
import 'react/jsx-runtime';
|
|
13
14
|
import '@radix-ui/react-avatar';
|
|
14
|
-
import 'react';
|
|
15
15
|
export { useDeviceInfo } from '../../src/client/applications/auth/sign-in/use-device-info.js';
|
|
16
16
|
export { usePickItems } from '../../src/client/applications/form/use-pick-items.js';
|
|
17
17
|
export { getControlMeta } from '../../src/client/applications/form/get-control-meta.js';
|
|
18
18
|
export { cn } from '../../src/client/applications/shadcn/utils.js';
|
|
19
|
+
import 'react';
|
|
19
20
|
import 'next/navigation';
|
|
20
21
|
export { isConfirm } from '../../src/client/applications/ui/is-confirm.js';
|
|
21
22
|
import '../../src/client/interfaces/components/shadcn/button.js';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { createContext, useState, useContext } from 'react';
|
|
3
4
|
|
|
4
5
|
const AdminContext = createContext(null);
|
|
5
6
|
function AdminProvider({ children }) {
|
|
6
7
|
const [admin, setAdmin] = useState(null);
|
|
7
8
|
const [isLoading, setIsLoading] = useState(true);
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
9
10
|
AdminContext.Provider,
|
|
10
11
|
{
|
|
11
12
|
value: {
|
|
@@ -13,9 +14,9 @@ function AdminProvider({ children }) {
|
|
|
13
14
|
setAdmin,
|
|
14
15
|
isLoading,
|
|
15
16
|
setIsLoading
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
},
|
|
18
|
+
children
|
|
19
|
+
}
|
|
19
20
|
);
|
|
20
21
|
}
|
|
21
22
|
function useAdmin() {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
3
|
-
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
function ThemeProvider({
|
|
6
6
|
children,
|
|
7
7
|
...props
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
10
|
ThemeProvider$1,
|
|
11
11
|
{
|
|
12
12
|
attribute: "class",
|
|
13
13
|
defaultTheme: "system",
|
|
14
14
|
enableSystem: true,
|
|
15
15
|
disableTransitionOnChange: true,
|
|
16
|
-
...props
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
...props,
|
|
17
|
+
children
|
|
18
|
+
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
|
|
1
3
|
function ErrorDisplay({ errors }) {
|
|
2
|
-
return /* @__PURE__ */
|
|
4
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: errors.map((error, index) => {
|
|
3
5
|
let field = error.field ?? "";
|
|
4
6
|
if (field.startsWith("translations")) field = field.slice(15);
|
|
5
7
|
if (field.includes(".") && !Number.isNaN(Number(field.at(-1)))) {
|
|
6
8
|
const [f, i] = field.split(".");
|
|
7
9
|
field = `${f} ${Number(i) + 1}`;
|
|
8
10
|
}
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
11
|
+
return /* @__PURE__ */ jsxs("p", { children: [
|
|
12
|
+
/* @__PURE__ */ jsxs("span", { className: "font-bold", children: [
|
|
13
|
+
"(",
|
|
14
|
+
index + 1,
|
|
15
|
+
")"
|
|
16
|
+
] }),
|
|
17
|
+
"\xA0",
|
|
18
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold underline underline-offset-2", children: field }),
|
|
19
|
+
"\xA0",
|
|
20
|
+
/* @__PURE__ */ jsx("span", { children: error.message })
|
|
21
|
+
] }, index);
|
|
22
|
+
}) });
|
|
11
23
|
}
|
|
12
24
|
const createErrorDisplay = (errors) => ErrorDisplay({ errors });
|
|
13
25
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
|
-
import
|
|
4
|
+
import 'react';
|
|
4
5
|
import 'ua-parser-js';
|
|
5
6
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
6
7
|
import 'next/navigation';
|
|
@@ -9,7 +10,7 @@ function Avatar({
|
|
|
9
10
|
className,
|
|
10
11
|
...props
|
|
11
12
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
13
14
|
AvatarPrimitive.Root,
|
|
14
15
|
{
|
|
15
16
|
"data-slot": "avatar",
|
|
@@ -25,7 +26,7 @@ function AvatarImage({
|
|
|
25
26
|
className,
|
|
26
27
|
...props
|
|
27
28
|
}) {
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
29
30
|
AvatarPrimitive.Image,
|
|
30
31
|
{
|
|
31
32
|
"data-slot": "avatar-image",
|
|
@@ -38,7 +39,7 @@ function AvatarFallback({
|
|
|
38
39
|
className,
|
|
39
40
|
...props
|
|
40
41
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ jsx(
|
|
42
43
|
AvatarPrimitive.Fallback,
|
|
43
44
|
{
|
|
44
45
|
"data-slot": "avatar-fallback",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { Slot } from '@radix-ui/react-slot';
|
|
2
3
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import
|
|
4
|
+
import 'react';
|
|
4
5
|
import 'ua-parser-js';
|
|
5
6
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
6
7
|
import 'next/navigation';
|
|
@@ -43,7 +44,7 @@ function Button({
|
|
|
43
44
|
...props
|
|
44
45
|
}) {
|
|
45
46
|
const Comp = asChild ? Slot : "button";
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
47
48
|
Comp,
|
|
48
49
|
{
|
|
49
50
|
"data-slot": "button",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
2
3
|
import 'ua-parser-js';
|
|
3
4
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
4
5
|
import 'next/navigation';
|
|
5
6
|
|
|
6
7
|
function Card({ className, ...props }) {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
8
9
|
"div",
|
|
9
10
|
{
|
|
10
11
|
"data-slot": "card",
|
|
@@ -17,7 +18,7 @@ function Card({ className, ...props }) {
|
|
|
17
18
|
);
|
|
18
19
|
}
|
|
19
20
|
function CardHeader({ className, ...props }) {
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
21
22
|
"div",
|
|
22
23
|
{
|
|
23
24
|
"data-slot": "card-header",
|
|
@@ -30,7 +31,7 @@ function CardHeader({ className, ...props }) {
|
|
|
30
31
|
);
|
|
31
32
|
}
|
|
32
33
|
function CardTitle({ className, ...props }) {
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
34
35
|
"div",
|
|
35
36
|
{
|
|
36
37
|
"data-slot": "card-title",
|
|
@@ -40,7 +41,7 @@ function CardTitle({ className, ...props }) {
|
|
|
40
41
|
);
|
|
41
42
|
}
|
|
42
43
|
function CardDescription({ className, ...props }) {
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
44
45
|
"div",
|
|
45
46
|
{
|
|
46
47
|
"data-slot": "card-description",
|
|
@@ -50,7 +51,7 @@ function CardDescription({ className, ...props }) {
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
function CardAction({ className, ...props }) {
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
54
55
|
"div",
|
|
55
56
|
{
|
|
56
57
|
"data-slot": "card-action",
|
|
@@ -63,7 +64,7 @@ function CardAction({ className, ...props }) {
|
|
|
63
64
|
);
|
|
64
65
|
}
|
|
65
66
|
function CardContent({ className, ...props }) {
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
67
68
|
"div",
|
|
68
69
|
{
|
|
69
70
|
"data-slot": "card-content",
|
|
@@ -73,7 +74,7 @@ function CardContent({ className, ...props }) {
|
|
|
73
74
|
);
|
|
74
75
|
}
|
|
75
76
|
function CardFooter({ className, ...props }) {
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
+
return /* @__PURE__ */ jsx(
|
|
77
78
|
"div",
|
|
78
79
|
{
|
|
79
80
|
"data-slot": "card-footer",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
4
|
|
|
4
5
|
function Collapsible({
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
8
9
|
}
|
|
9
10
|
function CollapsibleTrigger({
|
|
10
11
|
...props
|
|
11
12
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
13
14
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
14
15
|
{
|
|
15
16
|
"data-slot": "collapsible-trigger",
|
|
@@ -20,7 +21,7 @@ function CollapsibleTrigger({
|
|
|
20
21
|
function CollapsibleContent({
|
|
21
22
|
...props
|
|
22
23
|
}) {
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
24
25
|
CollapsiblePrimitive.CollapsibleContent,
|
|
25
26
|
{
|
|
26
27
|
"data-slot": "collapsible-content",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
4
|
import { CheckIcon, CircleIcon, ChevronRightIcon } from 'lucide-react';
|
|
4
|
-
import
|
|
5
|
+
import 'react';
|
|
5
6
|
import 'ua-parser-js';
|
|
6
7
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
7
8
|
import 'next/navigation';
|
|
@@ -9,17 +10,17 @@ import 'next/navigation';
|
|
|
9
10
|
function DropdownMenu({
|
|
10
11
|
...props
|
|
11
12
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
13
14
|
}
|
|
14
15
|
function DropdownMenuPortal({
|
|
15
16
|
...props
|
|
16
17
|
}) {
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
18
19
|
}
|
|
19
20
|
function DropdownMenuTrigger({
|
|
20
21
|
...props
|
|
21
22
|
}) {
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
23
24
|
DropdownMenuPrimitive.Trigger,
|
|
24
25
|
{
|
|
25
26
|
"data-slot": "dropdown-menu-trigger",
|
|
@@ -32,7 +33,7 @@ function DropdownMenuContent({
|
|
|
32
33
|
sideOffset = 4,
|
|
33
34
|
...props
|
|
34
35
|
}) {
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
36
37
|
DropdownMenuPrimitive.Content,
|
|
37
38
|
{
|
|
38
39
|
"data-slot": "dropdown-menu-content",
|
|
@@ -43,12 +44,12 @@ function DropdownMenuContent({
|
|
|
43
44
|
),
|
|
44
45
|
...props
|
|
45
46
|
}
|
|
46
|
-
));
|
|
47
|
+
) });
|
|
47
48
|
}
|
|
48
49
|
function DropdownMenuGroup({
|
|
49
50
|
...props
|
|
50
51
|
}) {
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
52
53
|
}
|
|
53
54
|
function DropdownMenuItem({
|
|
54
55
|
className,
|
|
@@ -56,7 +57,7 @@ function DropdownMenuItem({
|
|
|
56
57
|
variant = "default",
|
|
57
58
|
...props
|
|
58
59
|
}) {
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ jsx(
|
|
60
61
|
DropdownMenuPrimitive.Item,
|
|
61
62
|
{
|
|
62
63
|
"data-slot": "dropdown-menu-item",
|
|
@@ -78,7 +79,7 @@ function DropdownMenuCheckboxItem({
|
|
|
78
79
|
}) {
|
|
79
80
|
return (
|
|
80
81
|
// @ts-expect-error types too strict
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ jsxs(
|
|
82
83
|
DropdownMenuPrimitive.CheckboxItem,
|
|
83
84
|
{
|
|
84
85
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -87,17 +88,19 @@ function DropdownMenuCheckboxItem({
|
|
|
87
88
|
className
|
|
88
89
|
),
|
|
89
90
|
checked,
|
|
90
|
-
...props
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
...props,
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
94
|
+
children
|
|
95
|
+
]
|
|
96
|
+
}
|
|
94
97
|
)
|
|
95
98
|
);
|
|
96
99
|
}
|
|
97
100
|
function DropdownMenuRadioGroup({
|
|
98
101
|
...props
|
|
99
102
|
}) {
|
|
100
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ jsx(
|
|
101
104
|
DropdownMenuPrimitive.RadioGroup,
|
|
102
105
|
{
|
|
103
106
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -110,7 +113,7 @@ function DropdownMenuRadioItem({
|
|
|
110
113
|
children,
|
|
111
114
|
...props
|
|
112
115
|
}) {
|
|
113
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ jsxs(
|
|
114
117
|
DropdownMenuPrimitive.RadioItem,
|
|
115
118
|
{
|
|
116
119
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -118,10 +121,12 @@ function DropdownMenuRadioItem({
|
|
|
118
121
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",
|
|
119
122
|
className
|
|
120
123
|
),
|
|
121
|
-
...props
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
...props,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
127
|
+
children
|
|
128
|
+
]
|
|
129
|
+
}
|
|
125
130
|
);
|
|
126
131
|
}
|
|
127
132
|
function DropdownMenuLabel({
|
|
@@ -129,7 +134,7 @@ function DropdownMenuLabel({
|
|
|
129
134
|
inset,
|
|
130
135
|
...props
|
|
131
136
|
}) {
|
|
132
|
-
return /* @__PURE__ */
|
|
137
|
+
return /* @__PURE__ */ jsx(
|
|
133
138
|
DropdownMenuPrimitive.Label,
|
|
134
139
|
{
|
|
135
140
|
"data-slot": "dropdown-menu-label",
|
|
@@ -146,7 +151,7 @@ function DropdownMenuSeparator({
|
|
|
146
151
|
className,
|
|
147
152
|
...props
|
|
148
153
|
}) {
|
|
149
|
-
return /* @__PURE__ */
|
|
154
|
+
return /* @__PURE__ */ jsx(
|
|
150
155
|
DropdownMenuPrimitive.Separator,
|
|
151
156
|
{
|
|
152
157
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -159,7 +164,7 @@ function DropdownMenuShortcut({
|
|
|
159
164
|
className,
|
|
160
165
|
...props
|
|
161
166
|
}) {
|
|
162
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ jsx(
|
|
163
168
|
"span",
|
|
164
169
|
{
|
|
165
170
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -174,7 +179,7 @@ function DropdownMenuShortcut({
|
|
|
174
179
|
function DropdownMenuSub({
|
|
175
180
|
...props
|
|
176
181
|
}) {
|
|
177
|
-
return /* @__PURE__ */
|
|
182
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
178
183
|
}
|
|
179
184
|
function DropdownMenuSubTrigger({
|
|
180
185
|
className,
|
|
@@ -182,7 +187,7 @@ function DropdownMenuSubTrigger({
|
|
|
182
187
|
children,
|
|
183
188
|
...props
|
|
184
189
|
}) {
|
|
185
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ jsxs(
|
|
186
191
|
DropdownMenuPrimitive.SubTrigger,
|
|
187
192
|
{
|
|
188
193
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -191,17 +196,19 @@ function DropdownMenuSubTrigger({
|
|
|
191
196
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
192
197
|
className
|
|
193
198
|
),
|
|
194
|
-
...props
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
199
|
+
...props,
|
|
200
|
+
children: [
|
|
201
|
+
children,
|
|
202
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
203
|
+
]
|
|
204
|
+
}
|
|
198
205
|
);
|
|
199
206
|
}
|
|
200
207
|
function DropdownMenuSubContent({
|
|
201
208
|
className,
|
|
202
209
|
...props
|
|
203
210
|
}) {
|
|
204
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ jsx(
|
|
205
212
|
DropdownMenuPrimitive.SubContent,
|
|
206
213
|
{
|
|
207
214
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import
|
|
4
|
+
import 'react';
|
|
4
5
|
import 'ua-parser-js';
|
|
5
6
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
6
7
|
import 'next/navigation';
|
|
@@ -9,7 +10,7 @@ import { Input } from './input.js';
|
|
|
9
10
|
import { Textarea } from './textarea.js';
|
|
10
11
|
|
|
11
12
|
function InputGroup({ className, ...props }) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
13
14
|
"div",
|
|
14
15
|
{
|
|
15
16
|
"data-slot": "input-group",
|
|
@@ -53,7 +54,7 @@ function InputGroupAddon({
|
|
|
53
54
|
align = "inline-start",
|
|
54
55
|
...props
|
|
55
56
|
}) {
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
57
58
|
"div",
|
|
58
59
|
{
|
|
59
60
|
role: "group",
|
|
@@ -93,7 +94,7 @@ function InputGroupButton({
|
|
|
93
94
|
size = "xs",
|
|
94
95
|
...props
|
|
95
96
|
}) {
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
+
return /* @__PURE__ */ jsx(
|
|
97
98
|
Button,
|
|
98
99
|
{
|
|
99
100
|
type,
|
|
@@ -105,7 +106,7 @@ function InputGroupButton({
|
|
|
105
106
|
);
|
|
106
107
|
}
|
|
107
108
|
function InputGroupText({ className, ...props }) {
|
|
108
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ jsx(
|
|
109
110
|
"span",
|
|
110
111
|
{
|
|
111
112
|
className: cn(
|
|
@@ -120,7 +121,7 @@ function InputGroupInput({
|
|
|
120
121
|
className,
|
|
121
122
|
...props
|
|
122
123
|
}) {
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ jsx(
|
|
124
125
|
Input,
|
|
125
126
|
{
|
|
126
127
|
"data-slot": "input-group-control",
|
|
@@ -136,7 +137,7 @@ function InputGroupTextarea({
|
|
|
136
137
|
className,
|
|
137
138
|
...props
|
|
138
139
|
}) {
|
|
139
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ jsx(
|
|
140
141
|
Textarea,
|
|
141
142
|
{
|
|
142
143
|
"data-slot": "input-group-control",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
2
3
|
import 'ua-parser-js';
|
|
3
4
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
4
5
|
import 'next/navigation';
|
|
5
6
|
|
|
6
7
|
function Input({ className, type, ...props }) {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
8
9
|
"input",
|
|
9
10
|
{
|
|
10
11
|
type,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
2
|
-
import
|
|
3
|
+
import 'react';
|
|
3
4
|
import 'ua-parser-js';
|
|
4
5
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
5
6
|
import 'next/navigation';
|
|
6
7
|
|
|
7
8
|
function Label({ className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
9
10
|
LabelPrimitive.Root,
|
|
10
11
|
{
|
|
11
12
|
"data-slot": "label",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
2
|
import { MoreHorizontalIcon, ChevronRightIcon, ChevronLeftIcon } from 'lucide-react';
|
|
2
|
-
import
|
|
3
|
+
import 'react';
|
|
3
4
|
import 'ua-parser-js';
|
|
4
5
|
import { cn } from '../../../applications/shadcn/utils.js';
|
|
5
6
|
import 'next/navigation';
|
|
6
7
|
import { Button, buttonVariants } from './button.js';
|
|
7
8
|
|
|
8
9
|
function Pagination({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
10
11
|
"nav",
|
|
11
12
|
{
|
|
12
13
|
role: "navigation",
|
|
@@ -21,7 +22,7 @@ function PaginationContent({
|
|
|
21
22
|
className,
|
|
22
23
|
...props
|
|
23
24
|
}) {
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
25
26
|
"ul",
|
|
26
27
|
{
|
|
27
28
|
"data-slot": "pagination-content",
|
|
@@ -31,7 +32,7 @@ function PaginationContent({
|
|
|
31
32
|
);
|
|
32
33
|
}
|
|
33
34
|
function PaginationItem({ ...props }) {
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ jsx("li", { "data-slot": "pagination-item", ...props });
|
|
35
36
|
}
|
|
36
37
|
function PaginationLink({
|
|
37
38
|
className,
|
|
@@ -39,7 +40,7 @@ function PaginationLink({
|
|
|
39
40
|
size = "icon",
|
|
40
41
|
...props
|
|
41
42
|
}) {
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
43
44
|
Button,
|
|
44
45
|
{
|
|
45
46
|
variant: "ghost",
|
|
@@ -61,46 +62,48 @@ function PaginationPrevious({
|
|
|
61
62
|
className,
|
|
62
63
|
...props
|
|
63
64
|
}) {
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
65
66
|
PaginationLink,
|
|
66
67
|
{
|
|
67
68
|
"aria-label": "Go to previous page",
|
|
68
69
|
size: "default",
|
|
69
70
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
70
|
-
...props
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
...props,
|
|
72
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
73
|
+
}
|
|
73
74
|
);
|
|
74
75
|
}
|
|
75
76
|
function PaginationNext({
|
|
76
77
|
className,
|
|
77
78
|
...props
|
|
78
79
|
}) {
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ jsx(
|
|
80
81
|
PaginationLink,
|
|
81
82
|
{
|
|
82
83
|
"aria-label": "Go to next page",
|
|
83
84
|
size: "default",
|
|
84
85
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
85
|
-
...props
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
...props,
|
|
87
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
88
|
+
}
|
|
88
89
|
);
|
|
89
90
|
}
|
|
90
91
|
function PaginationEllipsis({
|
|
91
92
|
className,
|
|
92
93
|
...props
|
|
93
94
|
}) {
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ jsxs(
|
|
95
96
|
"span",
|
|
96
97
|
{
|
|
97
98
|
"aria-hidden": true,
|
|
98
99
|
"data-slot": "pagination-ellipsis",
|
|
99
100
|
className: cn("flex size-9 items-center justify-center", className),
|
|
100
|
-
...props
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
...props,
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }),
|
|
104
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
104
107
|
);
|
|
105
108
|
}
|
|
106
109
|
|