@tulip-systems/core 0.3.0 → 0.4.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/dist/auth/server.d.ts +2 -2
- package/dist/auth/server.js +3 -3
- package/dist/components/common/icons.d.ts +51 -51
- package/dist/components/common/icons.d.ts.map +1 -1
- package/dist/components/common/status.d.ts +3 -3
- package/dist/components/common/status.d.ts.map +1 -1
- package/dist/components/editor/components/content.client.d.ts +2 -2
- package/dist/components/editor/components/fixed-menu.client.d.ts +2 -2
- package/dist/components/editor/context.client.d.ts +4 -4
- package/dist/components/editor/context.client.d.ts.map +1 -1
- package/dist/components/editor/index.client.d.ts +2 -2
- package/dist/components/editor/preview.client.d.ts +2 -2
- package/dist/components/header/back-button.client.d.ts +2 -2
- package/dist/components/header/bottom-bar.client.d.ts +3 -3
- package/dist/components/header/breadcrumbs.client.d.ts +7 -7
- package/dist/components/header/header.client.d.ts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.ts +2 -2
- package/dist/components/header/top-bar.client.d.ts +4 -4
- package/dist/components/layouts/admin-content.client.d.ts +2 -2
- package/dist/components/layouts/admin-layout.d.ts +2 -2
- package/dist/components/layouts/admin-layout.js +1 -1
- package/dist/components/layouts/admin-layout.js.map +1 -1
- package/dist/components/layouts/admin-loading.d.ts +2 -2
- package/dist/components/layouts/admin-loading.d.ts.map +1 -1
- package/dist/components/layouts/empty-page.d.ts +4 -4
- package/dist/components/layouts/empty-page.d.ts.map +1 -1
- package/dist/components/layouts/list-layout.d.ts +2 -2
- package/dist/components/layouts/list-layout.d.ts.map +1 -1
- package/dist/components/layouts/not-found-page.d.ts +4 -3
- package/dist/components/layouts/not-found-page.d.ts.map +1 -1
- package/dist/components/layouts/not-found-page.js +8 -2
- package/dist/components/layouts/not-found-page.js.map +1 -1
- package/dist/components/layouts/not-found-section.js +1 -1
- package/dist/components/layouts/not-found-section.js.map +1 -1
- package/dist/components/layouts/providers.client.d.ts +2 -2
- package/dist/components/layouts/root-layout.server.d.ts +2 -2
- package/dist/components/layouts/root-layout.server.d.ts.map +1 -1
- package/dist/components/layouts/root-loading.d.ts +2 -2
- package/dist/components/layouts/root-loading.d.ts.map +1 -1
- package/dist/components/layouts/tab-layout.d.ts +2 -2
- package/dist/components/layouts/tab-layout.d.ts.map +1 -1
- package/dist/components/lists/data-list.d.ts +5 -5
- package/dist/components/lists/data-list.d.ts.map +1 -1
- package/dist/components/lists/data-stack.d.ts +8 -8
- package/dist/components/lists/data-stack.d.ts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.d.ts +10 -10
- package/dist/components/ui/accordion.d.ts +5 -5
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +12 -12
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +4 -4
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -2
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/avatar.client.d.ts +4 -4
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +3 -3
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +6 -6
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/chart.client.d.ts +5 -5
- package/dist/components/ui/checkbox.d.ts +2 -2
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/collapsible.client.d.ts +4 -4
- package/dist/components/ui/color-picker.client.d.ts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.ts +2 -2
- package/dist/components/ui/combobox.client.d.ts +2 -2
- package/dist/components/ui/command.d.ts +10 -10
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/context-menu.d.ts +16 -16
- package/dist/components/ui/dialog.client.d.ts +11 -11
- package/dist/components/ui/drawer.client.d.ts +11 -11
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/form.client.d.ts +7 -7
- package/dist/components/ui/hover-card.client.d.ts +4 -4
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/navigation-menu.d.ts +9 -9
- package/dist/components/ui/pagination.d.ts +8 -8
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +5 -5
- package/dist/components/ui/progress.client.d.ts +2 -2
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/resizable.client.d.ts +4 -4
- package/dist/components/ui/scroll-area.d.ts +3 -3
- package/dist/components/ui/select.client.d.ts +11 -11
- package/dist/components/ui/separator.d.ts +2 -2
- package/dist/components/ui/sheet.client.d.ts +9 -9
- package/dist/components/ui/sidebar.client.d.ts +26 -26
- package/dist/components/ui/skeleton.d.ts +2 -2
- package/dist/components/ui/slider.d.ts +2 -2
- package/dist/components/ui/sonner.client.d.ts +2 -2
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +5 -5
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/time-input.client.d.ts +2 -2
- package/dist/components/ui/toggle-group.client.d.ts +3 -3
- package/dist/components/ui/toggle.d.ts +4 -4
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip.client.d.ts +5 -5
- package/dist/components/ui/tree.client.d.ts +5 -5
- package/dist/components/ui/tree.client.d.ts.map +1 -1
- package/dist/components.d.ts +2 -2
- package/dist/components.js +2 -2
- package/dist/lib/hooks/use-indicator.d.ts +2 -2
- package/dist/modules/auth/components/allowed.client.d.ts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.ts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.ts.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.ts +2 -2
- package/dist/modules/auth/components/auth-loading.js +1 -1
- package/dist/modules/auth/components/auth-loading.js.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.d.ts +2 -2
- package/dist/modules/auth/components/{guard.js → guard.client.js} +2 -2
- package/dist/modules/auth/components/guard.client.js.map +1 -0
- package/dist/modules/auth/components/login-page.client.d.ts +2 -2
- package/dist/modules/auth/components/login-page.client.js +35 -26
- package/dist/modules/auth/components/login-page.client.js.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.ts +2 -2
- package/dist/modules/auth/components/update-password-command.d.ts +2 -2
- package/dist/modules/auth/handler/client.client.d.ts +96 -96
- package/dist/modules/auth/handler/client.client.d.ts.map +1 -1
- package/dist/modules/auth/handler/proxy.server.d.ts +13 -0
- package/dist/modules/auth/handler/proxy.server.d.ts.map +1 -0
- package/dist/modules/auth/handler/proxy.server.js +22 -0
- package/dist/modules/auth/handler/proxy.server.js.map +1 -0
- package/dist/modules/auth/handler/server.server.js +3 -1
- package/dist/modules/auth/handler/server.server.js.map +1 -1
- package/dist/modules/auth/lib/helpers.server.d.ts +1 -1
- package/dist/modules/auth/lib/helpers.server.d.ts.map +1 -1
- package/dist/modules/auth/lib/helpers.server.js +1 -4
- package/dist/modules/auth/lib/helpers.server.js.map +1 -1
- package/dist/modules/auth/lib/validators.d.ts +3 -3
- package/dist/modules/auth/lib/validators.d.ts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.ts +10 -10
- package/dist/modules/commands/components/alert-dialog-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/click-command.client.d.ts +2 -2
- package/dist/modules/commands/components/click-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.d.ts +6 -6
- package/dist/modules/commands/components/command-trigger.client.d.ts.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.ts +8 -8
- package/dist/modules/commands/components/dialog-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.ts +5 -5
- package/dist/modules/commands/components/dropdown-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/empty-command.client.d.ts +2 -2
- package/dist/modules/commands/components/empty-command.client.d.ts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.ts +11 -11
- package/dist/modules/commands/components/form-dialog-command.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.ts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts +3 -3
- package/dist/modules/commands/menus/dropdown-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.d.ts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.ts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.ts.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.ts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.ts.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.d.ts +2 -2
- package/dist/modules/commands/utils/delete-command.client.d.ts.map +1 -1
- package/dist/modules/commands/utils/send-mail-command.client.d.ts +2 -2
- package/dist/modules/commands/utils/send-mail-command.client.d.ts.map +1 -1
- package/dist/modules/config/db/helpers.d.ts +4 -4
- package/dist/modules/config/db/helpers.d.ts.map +1 -1
- package/dist/modules/config/lib/resolve.server.d.ts +3 -0
- package/dist/modules/config/lib/resolve.server.d.ts.map +1 -1
- package/dist/modules/config/router/client.server.d.ts +2 -2
- package/dist/modules/config/router/context.server.d.ts +3 -0
- package/dist/modules/config/router/context.server.d.ts.map +1 -1
- package/dist/modules/config/router/init.server.d.ts +9 -6
- package/dist/modules/config/router/init.server.d.ts.map +1 -1
- package/dist/modules/data-tables/components/column-header.d.ts +2 -2
- package/dist/modules/data-tables/components/column-header.d.ts.map +1 -1
- package/dist/modules/data-tables/components/header.d.ts +4 -4
- package/dist/modules/data-tables/components/header.d.ts.map +1 -1
- package/dist/modules/data-tables/components/layout.d.ts +2 -2
- package/dist/modules/data-tables/components/layout.d.ts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.d.ts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.ts.map +1 -1
- package/dist/modules/data-tables/components/table.d.ts +7 -7
- package/dist/modules/data-tables/components/table.d.ts.map +1 -1
- package/dist/modules/data-tables/components/toolbar.d.ts +3 -3
- package/dist/modules/data-tables/components/toolbar.d.ts.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.ts +3 -3
- package/dist/modules/inline-edit/components/input.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/richtext.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/richtext.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.ts +6 -6
- package/dist/modules/inline-edit/components/select.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/switch.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.d.ts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.ts.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.d.ts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/button.client.d.ts +2 -2
- package/dist/modules/uploads/components/button.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/images/grid.client.d.ts +2 -2
- package/dist/modules/uploads/components/images/grid.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/images/input.client.d.ts +2 -2
- package/dist/modules/uploads/components/images/input.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/preview-dialog.client.d.ts +2 -2
- package/dist/modules/uploads/components/preview-dialog.client.d.ts.map +1 -1
- package/dist/modules/uploads/components/zone.client.d.ts +2 -2
- package/dist/modules/uploads/components/zone.client.d.ts.map +1 -1
- package/dist/modules/uploads/lib/proxy.server.js +1 -1
- package/dist/modules/uploads/lib/route.server.js +1 -1
- package/dist/modules/uploads/lib/router.server.d.ts +31 -31
- package/dist/modules/uploads/lib/router.server.js +1 -1
- package/dist/modules/uploads/lib/validators.d.ts +51 -51
- package/package.json +2 -1
- package/src/components/layouts/admin-layout.tsx +2 -2
- package/src/components/layouts/not-found-page.tsx +9 -1
- package/src/components/layouts/not-found-section.tsx +10 -5
- package/src/modules/auth/components/auth-loading.tsx +1 -1
- package/src/modules/auth/components/login-page.client.tsx +42 -35
- package/src/modules/auth/entry.server.ts +1 -1
- package/src/modules/auth/handler/proxy.server.ts +28 -0
- package/src/modules/auth/handler/server.server.ts +5 -0
- package/src/modules/auth/lib/helpers.server.ts +1 -5
- package/dist/modules/auth/components/allowed.server.d.ts +0 -23
- package/dist/modules/auth/components/allowed.server.d.ts.map +0 -1
- package/dist/modules/auth/components/allowed.server.js +0 -24
- package/dist/modules/auth/components/allowed.server.js.map +0 -1
- package/dist/modules/auth/components/guard.js.map +0 -1
- package/src/modules/auth/components/allowed.server.tsx +0 -41
- /package/src/modules/auth/components/{guard.tsx → guard.client.tsx} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime224 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ui/time-input.client.d.ts
|
|
4
4
|
type TimeInputProps = {
|
|
@@ -10,7 +10,7 @@ declare function TimeInput({
|
|
|
10
10
|
value,
|
|
11
11
|
onChange,
|
|
12
12
|
format
|
|
13
|
-
}: TimeInputProps):
|
|
13
|
+
}: TimeInputProps): react_jsx_runtime224.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { TimeInput };
|
|
16
16
|
//# sourceMappingURL=time-input.client.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toggleVariants } from "./toggle.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime225 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
@@ -11,14 +11,14 @@ declare function ToggleGroup({
|
|
|
11
11
|
size,
|
|
12
12
|
children,
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>):
|
|
14
|
+
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime225.JSX.Element;
|
|
15
15
|
declare function ToggleGroupItem({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
18
18
|
variant,
|
|
19
19
|
size,
|
|
20
20
|
...props
|
|
21
|
-
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>):
|
|
21
|
+
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime225.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ToggleGroup, ToggleGroupItem };
|
|
24
24
|
//# sourceMappingURL=toggle-group.client.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime375 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
5
|
-
import * as
|
|
5
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/toggle.d.ts
|
|
8
8
|
declare const toggleVariants: (props?: ({
|
|
9
9
|
variant?: "default" | "outline" | null | undefined;
|
|
10
10
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
12
12
|
declare function Toggle({
|
|
13
13
|
className,
|
|
14
14
|
variant,
|
|
15
15
|
size,
|
|
16
16
|
...props
|
|
17
|
-
}: React$1.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>):
|
|
17
|
+
}: React$1.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime375.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { Toggle, toggleVariants };
|
|
20
20
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAQM;;;IAoBL,+BAAA,CAAA;AAxB8B,iBA0BtB,MAAA,CAFR;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAOE,OAAA,CAAM,cAPR,CAAA,OAO8B,eAAA,CAAgB,IAP9C,CAAA,GAOsD,YAPtD,CAAA,OAO0E,cAP1E,CAAA,CAAA,EAOyF,
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAQM;;;IAoBL,+BAAA,CAAA;AAxB8B,iBA0BtB,MAAA,CAFR;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAOE,OAAA,CAAM,cAPR,CAAA,OAO8B,eAAA,CAAgB,IAP9C,CAAA,GAOsD,YAPtD,CAAA,OAO0E,cAP1E,CAAA,CAAA,EAOyF,oBAAA,CAAA,GAAA,CAAA,OAPzF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime227 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4
4
|
|
|
@@ -6,19 +6,19 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
|
6
6
|
declare function TooltipProvider({
|
|
7
7
|
delayDuration,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentProps<typeof TooltipPrimitive.Provider>):
|
|
9
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime227.JSX.Element;
|
|
10
10
|
declare function Tooltip({
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
12
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime227.JSX.Element;
|
|
13
13
|
declare function TooltipTrigger({
|
|
14
14
|
...props
|
|
15
|
-
}: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>):
|
|
15
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime227.JSX.Element;
|
|
16
16
|
declare function TooltipContent({
|
|
17
17
|
className,
|
|
18
18
|
sideOffset,
|
|
19
19
|
children,
|
|
20
20
|
...props
|
|
21
|
-
}: React$1.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
21
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime227.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
24
24
|
//# sourceMappingURL=tooltip.client.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { ItemInstance } from "@headless-tree/core";
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ declare function Tree({
|
|
|
12
12
|
tree,
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: TreeProps):
|
|
15
|
+
}: TreeProps): react_jsx_runtime19.JSX.Element;
|
|
16
16
|
interface TreeItemProps<T = any> extends React$1.HTMLAttributes<HTMLButtonElement> {
|
|
17
17
|
item: ItemInstance<T>;
|
|
18
18
|
indent?: number;
|
|
@@ -24,7 +24,7 @@ declare function TreeItem<T = any>({
|
|
|
24
24
|
asChild,
|
|
25
25
|
children,
|
|
26
26
|
...props
|
|
27
|
-
}: Omit<TreeItemProps<T>, "indent">):
|
|
27
|
+
}: Omit<TreeItemProps<T>, "indent">): react_jsx_runtime19.JSX.Element;
|
|
28
28
|
interface TreeItemLabelProps<T = any> extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
29
29
|
item?: ItemInstance<T>;
|
|
30
30
|
}
|
|
@@ -33,11 +33,11 @@ declare function TreeItemLabel<T = any>({
|
|
|
33
33
|
children,
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: TreeItemLabelProps<T>):
|
|
36
|
+
}: TreeItemLabelProps<T>): react_jsx_runtime19.JSX.Element | null;
|
|
37
37
|
declare function TreeDragLine({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
40
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime19.JSX.Element | null;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Tree, TreeDragLine, TreeItem, TreeItemLabel };
|
|
43
43
|
//# sourceMappingURL=tree.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.client.d.ts","names":[],"sources":["../../../src/components/ui/tree.client.tsx"],"sourcesContent":[],"mappings":";;;;;UAyBU,SAAA,SAAkB,OAAA,CAAM,eAAe;;;AApBlB;iBAyBtB,IAAA,CALW;EAAA,MAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAKsC,SALtC,CAAA,EAK+C,
|
|
1
|
+
{"version":3,"file":"tree.client.d.ts","names":[],"sources":["../../../src/components/ui/tree.client.tsx"],"sourcesContent":[],"mappings":";;;;;UAyBU,SAAA,SAAkB,OAAA,CAAM,eAAe;;;AApBlB;iBAyBtB,IAAA,CALW;EAAA,MAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAKsC,SALtC,CAAA,EAK+C,mBAAA,CAAA,GAAA,CAAA,OAL/C;UA+BV,aA/BuC,CAAA,IAAA,GAAA,CAAA,SA+BR,OAAA,CAAM,cA/BE,CA+Ba,iBA/Bb,CAAA,CAAA;MAArB,EAgCpB,YAhC0B,CAgCb,CAhCa,CAAA;EAAc,MAAA,CAAA,EAAA,MAAA;EAKvC,OAAI,CAAA,EAAA,OAAA;;iBAgCJ,QAhCO,CAAA,IAAA,GAAA,CAAA,CAAA;EAAA,IAAA;EAAA,SAAA;EAAA,OAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAsCb,IAtCa,CAsCR,aAtCQ,CAsCM,CAtCN,CAAA,EAAA,QAAA,CAAA,CAAA,EAsCmB,mBAAA,CAAA,GAAA,CAAA,OAtCnB;UAoFN,kBApFmB,CAAA,IAAA,GAAA,CAAA,SAoFiB,OAAA,CAAM,cApFvB,CAoFsC,eApFtC,CAAA,CAAA;MAAM,CAAA,EAqF1B,YArF0B,CAqFb,CArFa,CAAA;;iBAwF1B,aAxF0D,CAAA,IAAA,GAAA,CAAA,CAAA;EAAA,IAAA,EAyF3D,QAzF2D;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA6FhE,kBA7FgE,CA6F7C,CA7F6C,CAAA,CAAA,EA6F3C,mBAAA,CAAA,GAAA,CAAA,OAAA,GA7F2C,IAAA;iBAuH1D,YAAA,CAvH0D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuHpB,OAAA,CAAM,cAvHc,CAuHC,cAvHD,CAAA,CAAA,EAuHgB,mBAAA,CAAA,GAAA,CAAA,OAAA,GAvHhB,IAAA"}
|
package/dist/components.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { CreateStatusComponentProps, StatusBadge, StatusField, createStatusConfi
|
|
|
10
10
|
import { AdminLoadingLayout } from "./components/layouts/admin-loading.js";
|
|
11
11
|
import { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle } from "./components/layouts/empty-page.js";
|
|
12
12
|
import { ListLayout } from "./components/layouts/list-layout.js";
|
|
13
|
-
import { NotFoundPage } from "./components/layouts/not-found-page.js";
|
|
13
|
+
import { AdminNotFoundPage, NotFoundPage } from "./components/layouts/not-found-page.js";
|
|
14
14
|
import { RootLoading } from "./components/layouts/root-loading.js";
|
|
15
15
|
import { Tab, TabLayout, TabLayoutProps } from "./components/layouts/tab-layout.js";
|
|
16
16
|
import { DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps } from "./components/lists/data-list.js";
|
|
@@ -36,4 +36,4 @@ import { Slider } from "./components/ui/slider.js";
|
|
|
36
36
|
import { Switch } from "./components/ui/switch.js";
|
|
37
37
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/ui/tabs.js";
|
|
38
38
|
import { Textarea } from "./components/ui/textarea.js";
|
|
39
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminLoadingLayout, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreateStatusComponentProps, DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps, DataStack, DataStackColumn, DataStackColumnProps, DataStackGrid, DataStackGridProps, DataStackLayout, DataStackLayoutProps, DataStackProps, DataStackRow, DataStackRowProps, DataStackTitle, DataStackTitleProps, DataStackValue, DataStackValueProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle, Icon, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, Tab, TabLayout, TabLayoutProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
|
|
39
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminLoadingLayout, AdminNotFoundPage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreateStatusComponentProps, DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps, DataStack, DataStackColumn, DataStackColumnProps, DataStackGrid, DataStackGridProps, DataStackLayout, DataStackLayoutProps, DataStackProps, DataStackRow, DataStackRowProps, DataStackTitle, DataStackTitleProps, DataStackValue, DataStackValueProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle, Icon, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, Tab, TabLayout, TabLayoutProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
|
package/dist/components.js
CHANGED
|
@@ -6,7 +6,7 @@ import { AdminLoadingLayout } from "./components/layouts/admin-loading.js";
|
|
|
6
6
|
import { EmptyPage, EmptyPageDescription, EmptyPageTitle } from "./components/layouts/empty-page.js";
|
|
7
7
|
import { ListLayout } from "./components/layouts/list-layout.js";
|
|
8
8
|
import { Button, buttonVariants } from "./components/ui/button.js";
|
|
9
|
-
import { NotFoundPage } from "./components/layouts/not-found-page.js";
|
|
9
|
+
import { AdminNotFoundPage, NotFoundPage } from "./components/layouts/not-found-page.js";
|
|
10
10
|
import { RootLoading } from "./components/layouts/root-loading.js";
|
|
11
11
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/ui/tabs.js";
|
|
12
12
|
import { Label } from "./components/ui/label.js";
|
|
@@ -37,4 +37,4 @@ import { Switch } from "./components/ui/switch.js";
|
|
|
37
37
|
import { Textarea } from "./components/ui/textarea.js";
|
|
38
38
|
import { Toggle, toggleVariants } from "./components/ui/toggle.js";
|
|
39
39
|
|
|
40
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminLoadingLayout, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataList, DataListItem, DataListTitle, DataListValue, DataStack, DataStackColumn, DataStackGrid, DataStackLayout, DataStackRow, DataStackTitle, DataStackValue, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyPage, EmptyPageDescription, EmptyPageTitle, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, TabLayout, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
|
|
40
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminLoadingLayout, AdminNotFoundPage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataList, DataListItem, DataListTitle, DataListValue, DataStack, DataStackColumn, DataStackGrid, DataStackLayout, DataStackRow, DataStackTitle, DataStackValue, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyPage, EmptyPageDescription, EmptyPageTitle, Icons, Input, Label, ListLayout, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundPage, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RootLoading, ScrollArea, ScrollBar, Separator, Skeleton, Slider, StatusBadge, StatusField, Switch, TabLayout, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, badgeVariants, buttonVariants, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle, toggleVariants };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime105 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/hooks/use-indicator.d.ts
|
|
@@ -26,7 +26,7 @@ declare function IndicatorContextProvider({
|
|
|
26
26
|
children
|
|
27
27
|
}: {
|
|
28
28
|
children: React.ReactNode;
|
|
29
|
-
}):
|
|
29
|
+
}): react_jsx_runtime105.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { IndicatorContext, IndicatorContextProvider, IndicatorStatus, useIndicator };
|
|
32
32
|
//# sourceMappingURL=use-indicator.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Permission } from "../lib/permissions.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime100 from "react/jsx-runtime";
|
|
3
3
|
import { JSX } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/auth/components/allowed.client.d.ts
|
|
@@ -15,7 +15,7 @@ declare function Allowed({
|
|
|
15
15
|
permission,
|
|
16
16
|
fallback,
|
|
17
17
|
children
|
|
18
|
-
}: AllowedProps):
|
|
18
|
+
}: AllowedProps): react_jsx_runtime100.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Allowed };
|
|
21
21
|
//# sourceMappingURL=allowed.client.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime99 from "react/jsx-runtime";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/auth/components/auth-layout.server.d.ts
|
|
5
5
|
declare function AuthLayout(props: PropsWithChildren<{
|
|
6
6
|
name: string;
|
|
7
|
-
}>): Promise<
|
|
7
|
+
}>): Promise<react_jsx_runtime99.JSX.Element>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AuthLayout };
|
|
10
10
|
//# sourceMappingURL=auth-layout.server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-layout.server.d.ts","names":[],"sources":["../../../../src/modules/auth/components/auth-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;iBAIsB,UAAA,QAAkB;;KAAmC,QAAA,
|
|
1
|
+
{"version":3,"file":"auth-layout.server.d.ts","names":[],"sources":["../../../../src/modules/auth/components/auth-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;iBAIsB,UAAA,QAAkB;;KAAmC,QAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime376 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/auth/components/auth-loading.d.ts
|
|
4
|
-
declare function AuthLoading():
|
|
4
|
+
declare function AuthLoading(): react_jsx_runtime376.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { AuthLoading };
|
|
7
7
|
//# sourceMappingURL=auth-loading.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/modules/auth/components/auth-loading.tsx
|
|
5
5
|
function AuthLoading() {
|
|
6
6
|
return /* @__PURE__ */ jsxs("div", {
|
|
7
|
-
className: "flex flex-col gap-4",
|
|
7
|
+
className: "mx-auto flex w-full flex-col gap-4 sm:w-[350px]",
|
|
8
8
|
children: [
|
|
9
9
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-full" }),
|
|
10
10
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-48 w-full" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-loading.js","names":[],"sources":["../../../../src/modules/auth/components/auth-loading.tsx"],"sourcesContent":["import { Skeleton } from \"@/components/ui/skeleton\";\n\nexport function AuthLoading() {\n return (\n <div className=\"flex flex-col gap-4\">\n <Skeleton className=\"h-7 w-full\" />\n <Skeleton className=\"h-48 w-full\" />\n <Skeleton className=\"h-12 w-full\" />\n </div>\n );\n}\n"],"mappings":";;;;AAEA,SAAgB,cAAc;AAC5B,QACE,qBAAC;EAAI,WAAU;;GACb,oBAAC,YAAS,WAAU,eAAe;GACnC,oBAAC,YAAS,WAAU,gBAAgB;GACpC,oBAAC,YAAS,WAAU,gBAAgB;;GAChC"}
|
|
1
|
+
{"version":3,"file":"auth-loading.js","names":[],"sources":["../../../../src/modules/auth/components/auth-loading.tsx"],"sourcesContent":["import { Skeleton } from \"@/components/ui/skeleton\";\n\nexport function AuthLoading() {\n return (\n <div className=\"mx-auto flex w-full flex-col gap-4 sm:w-[350px]\">\n <Skeleton className=\"h-7 w-full\" />\n <Skeleton className=\"h-48 w-full\" />\n <Skeleton className=\"h-12 w-full\" />\n </div>\n );\n}\n"],"mappings":";;;;AAEA,SAAgB,cAAc;AAC5B,QACE,qBAAC;EAAI,WAAU;;GACb,oBAAC,YAAS,WAAU,eAAe;GACnC,oBAAC,YAAS,WAAU,gBAAgB;GACpC,oBAAC,YAAS,WAAU,gBAAgB;;GAChC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime101 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/auth/components/forget-password-page.client.d.ts
|
|
4
|
-
declare function ForgetPasswordPage():
|
|
4
|
+
declare function ForgetPasswordPage(): react_jsx_runtime101.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ForgetPasswordPage };
|
|
7
7
|
//# sourceMappingURL=forget-password-page.client.d.ts.map
|
|
@@ -5,7 +5,7 @@ import { useSession } from "../hooks/use-session.js";
|
|
|
5
5
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
6
6
|
import { redirect } from "next/navigation";
|
|
7
7
|
|
|
8
|
-
//#region src/modules/auth/components/guard.tsx
|
|
8
|
+
//#region src/modules/auth/components/guard.client.tsx
|
|
9
9
|
function AuthGuard({ children }) {
|
|
10
10
|
if (!useSession().data) redirect("/auth/login");
|
|
11
11
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
@@ -13,4 +13,4 @@ function AuthGuard({ children }) {
|
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { AuthGuard };
|
|
16
|
-
//# sourceMappingURL=guard.js.map
|
|
16
|
+
//# sourceMappingURL=guard.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guard.client.js","names":[],"sources":["../../../../src/modules/auth/components/guard.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { redirect } from \"next/navigation\";\nimport { PropsWithChildren } from \"react\";\nimport { useSession } from \"../hooks/use-session\";\n\nexport function AuthGuard({ children }: PropsWithChildren) {\n const session = useSession();\n if (!session.data) redirect(\"/auth/login\");\n\n return <>{children}</>;\n}\n"],"mappings":";;;;;;;;AAMA,SAAgB,UAAU,EAAE,YAA+B;AAEzD,KAAI,CADY,YAAY,CACf,KAAM,UAAS,cAAc;AAE1C,QAAO,gCAAG,WAAY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/auth/components/login-page.client.d.ts
|
|
4
|
-
declare function LoginPage():
|
|
4
|
+
declare function LoginPage(): react_jsx_runtime102.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { LoginPage };
|
|
7
7
|
//# sourceMappingURL=login-page.client.d.ts.map
|
|
@@ -8,8 +8,8 @@ import { Form as Form$1, FormControl, FormField, FormItem, FormMessage } from ".
|
|
|
8
8
|
import { Input } from "../../../components/ui/input.js";
|
|
9
9
|
import { loginSchema } from "../lib/validators.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import React from "react";
|
|
12
11
|
import Link from "next/link";
|
|
12
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
13
13
|
import { useForm } from "react-hook-form";
|
|
14
14
|
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
|
|
15
15
|
import { toast } from "sonner";
|
|
@@ -18,9 +18,41 @@ import { parseAsString, useQueryState } from "nuqs";
|
|
|
18
18
|
|
|
19
19
|
//#region src/modules/auth/components/login-page.client.tsx
|
|
20
20
|
function LoginPage() {
|
|
21
|
+
const queryClient = useQueryClient();
|
|
21
22
|
const [callbackURL] = useQueryState("callbackURL", parseAsString);
|
|
22
23
|
const router = useRouter();
|
|
23
|
-
const
|
|
24
|
+
const { mutate, isPending } = useMutation({
|
|
25
|
+
mutationFn: async (data) => {
|
|
26
|
+
const result = await authClient.signIn.email(data);
|
|
27
|
+
if (result.error) throw result.error;
|
|
28
|
+
const session = await authClient.getSession();
|
|
29
|
+
if (session.error) throw session.error;
|
|
30
|
+
queryClient.setQueryData(["session"], session.data);
|
|
31
|
+
return result.data;
|
|
32
|
+
},
|
|
33
|
+
onSuccess: () => {
|
|
34
|
+
router.push(callbackURL ?? "/admin");
|
|
35
|
+
toast.success("Succesvol ingelogd");
|
|
36
|
+
},
|
|
37
|
+
onError: (err) => {
|
|
38
|
+
console.error("Login error: ", err);
|
|
39
|
+
if ("status" in err) {
|
|
40
|
+
if (err.status === 401) {
|
|
41
|
+
toast.error("Ongeldige email of wachtwoord");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (err.status === 403) {
|
|
45
|
+
toast.error("Account is geblokkeerd");
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (err.status === 429) {
|
|
49
|
+
toast.error("Te veel login pogingen");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
toast.error("Er is iets misgegaan");
|
|
54
|
+
}
|
|
55
|
+
});
|
|
24
56
|
const form = useForm({
|
|
25
57
|
resolver: standardSchemaResolver(loginSchema),
|
|
26
58
|
defaultValues: {
|
|
@@ -46,30 +78,7 @@ function LoginPage() {
|
|
|
46
78
|
...form,
|
|
47
79
|
children: /* @__PURE__ */ jsxs("form", {
|
|
48
80
|
className: "space-y-6",
|
|
49
|
-
onSubmit: form.handleSubmit((data) =>
|
|
50
|
-
await authClient.signIn.email(data, {
|
|
51
|
-
onSuccess: () => {
|
|
52
|
-
router.replace(callbackURL ?? "/");
|
|
53
|
-
toast.success("Succesvol ingelogd");
|
|
54
|
-
},
|
|
55
|
-
onError: ({ error }) => {
|
|
56
|
-
console.error("Login error: ", error);
|
|
57
|
-
if (error.status === 401) {
|
|
58
|
-
toast.error("Ongeldige email of wachtwoord");
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (error.status === 403) {
|
|
62
|
-
toast.error("Account is geblokkeerd");
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (error.status === 429) {
|
|
66
|
-
toast.error("Te veel login pogingen");
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
toast.error("Er is iets misgegaan");
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
})),
|
|
81
|
+
onSubmit: form.handleSubmit((data) => mutate(data)),
|
|
73
82
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
74
83
|
className: "flex flex-col gap-3",
|
|
75
84
|
children: [/* @__PURE__ */ jsx(FormField, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-page.client.js","names":["
|
|
1
|
+
{"version":3,"file":"login-page.client.js","names":["Form"],"sources":["../../../../src/modules/auth/components/login-page.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { Icons } from \"@/components/common/icons\";\nimport { Button } from \"@/components/ui/button\";\nimport { Form, FormControl, FormField, FormItem, FormMessage } from \"@/components/ui/form.client\";\nimport { Input } from \"@/components/ui/input\";\nimport { standardSchemaResolver } from \"@hookform/resolvers/standard-schema\";\nimport { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport Link from \"next/link\";\nimport { useRouter } from \"next/navigation\";\nimport { parseAsString, useQueryState } from \"nuqs\";\nimport { useForm } from \"react-hook-form\";\nimport { toast } from \"sonner\";\nimport * as z from \"zod\";\nimport { authClient } from \"../handler/client.client\";\nimport { loginSchema } from \"../lib/validators\";\n\nexport function LoginPage() {\n const queryClient = useQueryClient();\n const [callbackURL] = useQueryState(\"callbackURL\", parseAsString);\n\n const router = useRouter();\n\n const { mutate, isPending } = useMutation({\n mutationFn: async (data: z.infer<typeof loginSchema>) => {\n const result = await authClient.signIn.email(data);\n if (result.error) throw result.error;\n\n const session = await authClient.getSession();\n if (session.error) throw session.error;\n\n queryClient.setQueryData([\"session\"], session.data);\n\n return result.data;\n },\n onSuccess: () => {\n router.push(callbackURL ?? \"/admin\");\n toast.success(\"Succesvol ingelogd\");\n },\n onError: (err) => {\n console.error(\"Login error: \", err);\n\n if (\"status\" in err) {\n if (err.status === 401) {\n toast.error(\"Ongeldige email of wachtwoord\");\n return;\n }\n\n if (err.status === 403) {\n toast.error(\"Account is geblokkeerd\");\n return;\n }\n\n if (err.status === 429) {\n toast.error(\"Te veel login pogingen\");\n return;\n }\n }\n\n toast.error(\"Er is iets misgegaan\");\n },\n });\n\n const form = useForm<z.infer<typeof loginSchema>>({\n resolver: standardSchemaResolver(loginSchema),\n defaultValues: { email: \"\", password: \"\" },\n disabled: isPending,\n });\n\n return (\n <div className=\"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]\">\n <div className=\"flex flex-col space-y-2 text-center\">\n <h1 className=\"text-3xl font-semibold tracking-tight\">Login</h1>\n <p className=\"text-muted-foreground text-sm\">\n Schrijf je email en wachtwoord in om in te loggen.\n </p>\n </div>\n\n <Form {...form}>\n <form className=\"space-y-6\" onSubmit={form.handleSubmit((data) => mutate(data))}>\n <div className=\"flex flex-col gap-3\">\n <FormField\n control={form.control}\n name=\"email\"\n render={({ field }) => (\n <FormItem>\n <FormControl>\n <Input placeholder=\"email@example.be\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"password\"\n render={({ field }) => (\n <FormItem>\n <FormControl>\n <Input type=\"password\" placeholder=\"********\" {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n </div>\n\n <Button disabled={form.formState.disabled} className=\"w-full\">\n {isPending && <Icons.spinner className=\"mr-2 h-4 w-4 animate-spin\" />}\n Inloggen\n </Button>\n </form>\n </Form>\n\n <p className=\"text-muted-foreground px-8 text-center text-sm\">\n <Link\n href=\"/auth/forget-password\"\n className=\"hover:text-primary underline underline-offset-4\"\n >\n Wachtwoord vergeten\n </Link>\n </p>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAgB,YAAY;CAC1B,MAAM,cAAc,gBAAgB;CACpC,MAAM,CAAC,eAAe,cAAc,eAAe,cAAc;CAEjE,MAAM,SAAS,WAAW;CAE1B,MAAM,EAAE,QAAQ,cAAc,YAAY;EACxC,YAAY,OAAO,SAAsC;GACvD,MAAM,SAAS,MAAM,WAAW,OAAO,MAAM,KAAK;AAClD,OAAI,OAAO,MAAO,OAAM,OAAO;GAE/B,MAAM,UAAU,MAAM,WAAW,YAAY;AAC7C,OAAI,QAAQ,MAAO,OAAM,QAAQ;AAEjC,eAAY,aAAa,CAAC,UAAU,EAAE,QAAQ,KAAK;AAEnD,UAAO,OAAO;;EAEhB,iBAAiB;AACf,UAAO,KAAK,eAAe,SAAS;AACpC,SAAM,QAAQ,qBAAqB;;EAErC,UAAU,QAAQ;AAChB,WAAQ,MAAM,iBAAiB,IAAI;AAEnC,OAAI,YAAY,KAAK;AACnB,QAAI,IAAI,WAAW,KAAK;AACtB,WAAM,MAAM,gCAAgC;AAC5C;;AAGF,QAAI,IAAI,WAAW,KAAK;AACtB,WAAM,MAAM,yBAAyB;AACrC;;AAGF,QAAI,IAAI,WAAW,KAAK;AACtB,WAAM,MAAM,yBAAyB;AACrC;;;AAIJ,SAAM,MAAM,uBAAuB;;EAEtC,CAAC;CAEF,MAAM,OAAO,QAAqC;EAChD,UAAU,uBAAuB,YAAY;EAC7C,eAAe;GAAE,OAAO;GAAI,UAAU;GAAI;EAC1C,UAAU;EACX,CAAC;AAEF,QACE,qBAAC;EAAI,WAAU;;GACb,qBAAC;IAAI,WAAU;eACb,oBAAC;KAAG,WAAU;eAAwC;MAAU,EAChE,oBAAC;KAAE,WAAU;eAAgC;MAEzC;KACA;GAEN,oBAACA;IAAK,GAAI;cACR,qBAAC;KAAK,WAAU;KAAY,UAAU,KAAK,cAAc,SAAS,OAAO,KAAK,CAAC;gBAC7E,qBAAC;MAAI,WAAU;iBACb,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC,uBACC,oBAAC,yBACC,oBAAC;QAAM,aAAY;QAAmB,GAAI;SAAS,GACvC,EACd,oBAAC,gBAAc,IACN;QAEb,EAEF,oBAAC;OACC,SAAS,KAAK;OACd,MAAK;OACL,SAAS,EAAE,YACT,qBAAC,uBACC,oBAAC,yBACC,oBAAC;QAAM,MAAK;QAAW,aAAY;QAAW,GAAI;SAAS,GAC/C,EACd,oBAAC,gBAAc,IACN;QAEb;OACE,EAEN,qBAAC;MAAO,UAAU,KAAK,UAAU;MAAU,WAAU;iBAClD,aAAa,oBAAC,MAAM,WAAQ,WAAU,8BAA8B,EAAC;OAE/D;MACJ;KACF;GAEP,oBAAC;IAAE,WAAU;cACX,oBAAC;KACC,MAAK;KACL,WAAU;eACX;MAEM;KACL;;GACA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/auth/components/reset-password-page.client.d.ts
|
|
4
4
|
declare function ResetPasswordPage(params: {
|
|
@@ -6,7 +6,7 @@ declare function ResetPasswordPage(params: {
|
|
|
6
6
|
email: string;
|
|
7
7
|
otp: string;
|
|
8
8
|
}>;
|
|
9
|
-
}):
|
|
9
|
+
}): react_jsx_runtime103.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { ResetPasswordPage };
|
|
12
12
|
//# sourceMappingURL=reset-password-page.client.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UpdatePasswordSchema } from "../lib/validators.js";
|
|
2
2
|
import { CommandFormDialogTrigger } from "../../commands/components/form-dialog-command.client.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
4
4
|
import React from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/auth/components/update-password-command.d.ts
|
|
@@ -13,7 +13,7 @@ declare function UpdatePasswordCommand({
|
|
|
13
13
|
action,
|
|
14
14
|
defaultValues,
|
|
15
15
|
children
|
|
16
|
-
}: UpdatePasswordCommandProps):
|
|
16
|
+
}: UpdatePasswordCommandProps): react_jsx_runtime104.JSX.Element;
|
|
17
17
|
declare const UpdatePasswordCommandTrigger: typeof CommandFormDialogTrigger;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger };
|