ikoncomponents 1.2.9 → 1.3.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/ikoncomponents/form-fields/date-input/index.js +2 -2
- package/dist/ikoncomponents/main-layout/header.js +2 -2
- package/dist/ikoncomponents/work-in-progress/index.d.ts +1 -0
- package/dist/ikoncomponents/work-in-progress/index.js +4 -0
- package/dist/index.d.ts +22 -20
- package/dist/index.js +10 -8
- package/dist/shadcn/dropdown-menu.js +1 -1
- package/dist/styles.css +51 -32
- package/dist/utils/token-management/index.js +9 -5
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@ import { format } from "date-fns";
|
|
|
7
7
|
import { CalendarIcon } from "lucide-react";
|
|
8
8
|
import { Calendar } from "../../../shadcn/calendar";
|
|
9
9
|
export function FormDateInput({ formControl, name, label, placeholder, dateFormat, calendarDateDisabled, formDescription, disabled, }) {
|
|
10
|
-
return (_jsx(_Fragment, { children: _jsx(FormField, { control: formControl, name: name, render: ({ field }) => (_jsxs(FormItem, { children: [label && (
|
|
10
|
+
return (_jsx(_Fragment, { children: _jsx(FormField, { control: formControl, name: name, render: ({ field }) => (_jsxs(FormItem, { children: [label && (_jsx(_Fragment, { children: _jsx(FormLabel, { children: label }) })), _jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, className: "w-full", children: _jsx(FormControl, { children: _jsxs(Button, { variant: "outline", className: cn(!field.value && "text-foreground/50"), disabled: disabled, children: [field.value ? (format(field.value, dateFormat || "PPP")) : (_jsx("span", { children: placeholder || "Pick a date" })), _jsx(CalendarIcon, { className: "ml-auto h-4 w-4 opacity-50" })] }) }) }), _jsx(PopoverContent, { className: "w-auto p-0", align: "start", children: _jsx(Calendar, { mode: "single", selected: field.value, onSelect: field.onChange, disabled: calendarDateDisabled,
|
|
11
11
|
// disabled={(date) =>
|
|
12
12
|
// date > new Date() || date < new Date("1900-01-01")
|
|
13
13
|
// }
|
|
14
|
-
|
|
14
|
+
autoFocus: true }) })] }), formDescription && (_jsx(FormDescription, { children: formDescription })), _jsx(FormMessage, {})] })) }) }));
|
|
15
15
|
}
|
|
@@ -4,11 +4,11 @@ import { ThemeToggleBtn } from "../theme-toggle-btn";
|
|
|
4
4
|
import { Separator } from "../../shadcn/separator";
|
|
5
5
|
import { SidebarTrigger } from "../../shadcn/sidebar";
|
|
6
6
|
import { Bell, LayoutGrid, Play } from "lucide-react";
|
|
7
|
-
import { IconButton,
|
|
7
|
+
import { IconButton, IconTextButton } from "../buttons";
|
|
8
8
|
import { useSidebarNav } from "./SidebarNavContext";
|
|
9
9
|
export function Header() {
|
|
10
10
|
const { navItems } = useSidebarNav();
|
|
11
11
|
return (_jsx("header", { className: "ml-12 flex h-12 border-b shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12", children: _jsxs("div", { className: "flex items-center justify-between gap-2 px-4 w-full", children: [_jsxs("div", { className: "flex items-center gap-2", children: [(!navItems || navItems.length === 0) ? _jsx("div", {}) : _jsx(SidebarTrigger, { className: "-ml-1" }), (!navItems || navItems.length === 0) ?
|
|
12
12
|
_jsx("div", {}) :
|
|
13
|
-
_jsx(Separator, { orientation: "vertical", className: "mr-2 data-[orientation=vertical]:h-4" }), _jsx(AppBreadcrumb, {})] }), _jsxs("div", { className: "ml-auto flex gap-4", children: [_jsx(
|
|
13
|
+
_jsx(Separator, { orientation: "vertical", className: "mr-2 data-[orientation=vertical]:h-4" }), _jsx(AppBreadcrumb, {})] }), _jsxs("div", { className: "ml-auto flex gap-4", children: [_jsx(IconButton, { children: _jsx(Bell, {}) }), _jsx(ThemeToggleBtn, {}), _jsxs(IconTextButton, { variant: "default", children: [_jsx(Play, {}), "App Store"] }), _jsx(IconButton, { children: _jsx(LayoutGrid, {}) })] })] }) }));
|
|
14
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WorkInProgress(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function WorkInProgress() {
|
|
3
|
+
return (_jsx("div", { className: "flex h-full items-center justify-center", children: _jsxs("div", { className: "bg-background text-forefround rounded-xl p-6 text-center max-w-md", children: [_jsx("div", { className: "text-3xl font-bold mb-2 animate-pulse", children: "\uD83D\uDEA7 Work in Progress" }), _jsx("p", { className: "text-muted-foreground", children: "We\u2019re currently working on this section. Check back soon!" })] }) }));
|
|
4
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -43,28 +43,29 @@ export * from "./shadcn/input-otp";
|
|
|
43
43
|
export * from "./shadcn/toggle-group";
|
|
44
44
|
export * from "./shadcn/toggle";
|
|
45
45
|
export { ActionMenu } from "./ikoncomponents/action-menu";
|
|
46
|
-
export type { ActionMenuProps, ExtraActionParams } from "./ikoncomponents/action-menu/type";
|
|
46
|
+
export type { ActionMenuProps, ExtraActionParams, } from "./ikoncomponents/action-menu/type";
|
|
47
47
|
export { CustomAlertDialog } from "./ikoncomponents/alert-dialog";
|
|
48
|
-
export {
|
|
49
|
-
export
|
|
48
|
+
export { useDialog, DialogProvider, } from "./ikoncomponents/alert-dialog/dialog-context";
|
|
49
|
+
export { TextButton, TextButtonWithTooltip, IconTextButton, IconTextButtonWithTooltip, IconButton, IconButtonWithTooltip, } from "./ikoncomponents/buttons";
|
|
50
|
+
export type { ButtonProps, ButtonWithTooltipProps, } from "./ikoncomponents/buttons";
|
|
50
51
|
export { ComboboxInput } from "./ikoncomponents/combobox-input";
|
|
51
|
-
export type { ComboBoxInputProps, ComboboxItemProps } from "./ikoncomponents/combobox-input/type";
|
|
52
|
+
export type { ComboBoxInputProps, ComboboxItemProps, } from "./ikoncomponents/combobox-input/type";
|
|
52
53
|
export { DataTableColumnFilter } from "./ikoncomponents/data-table/datatable-column-filter";
|
|
53
54
|
export { DataTableFacetedFilter } from "./ikoncomponents/data-table/datatable-faceted-filter";
|
|
54
55
|
export { DataTableFilterMenu } from "./ikoncomponents/data-table/datatable-filter-menu";
|
|
55
|
-
export { convertFileToObject, FileUploader, getImageFromObject } from "./ikoncomponents/fileUpload";
|
|
56
|
+
export { convertFileToObject, FileUploader, getImageFromObject, } from "./ikoncomponents/fileUpload";
|
|
56
57
|
export type { FileUploaderProps } from "./ikoncomponents/fileUpload";
|
|
57
58
|
export { DataTablePagination } from "./ikoncomponents/data-table/datatable-pagination";
|
|
58
59
|
export { DataTableToolbar } from "./ikoncomponents/data-table/datatable-toolbar";
|
|
59
60
|
export { getDataTableColumnTitle } from "./ikoncomponents/data-table/function";
|
|
60
61
|
export { DataTable } from "./ikoncomponents/data-table";
|
|
61
|
-
export type { DataTableProps, DTColumnsProps, DTExtraParamsProps, DTActionMenuProps, DataTableViewOptionsProps, DTToolBarProps, DataTableFilterProps, DataTableFacetedFilterProps, DataTablePaginationProps, DragDropHeaderProp } from "./ikoncomponents/data-table/type";
|
|
62
|
+
export type { DataTableProps, DTColumnsProps, DTExtraParamsProps, DTActionMenuProps, DataTableViewOptionsProps, DTToolBarProps, DataTableFilterProps, DataTableFacetedFilterProps, DataTablePaginationProps, DragDropHeaderProp, } from "./ikoncomponents/data-table/type";
|
|
62
63
|
export { EChart } from "./ikoncomponents/e-chart";
|
|
63
64
|
export { FileInput } from "./ikoncomponents/file-input";
|
|
64
65
|
export { GlowingEffect } from "./ikoncomponents/glowing-effect";
|
|
65
66
|
export { Icon } from "./ikoncomponents/icon";
|
|
66
67
|
export { LoadingSpinner } from "./ikoncomponents/loading-spinner";
|
|
67
|
-
export type { ISVGProps, LoadingSpinnerProps } from "./ikoncomponents/loading-spinner";
|
|
68
|
+
export type { ISVGProps, LoadingSpinnerProps, } from "./ikoncomponents/loading-spinner";
|
|
68
69
|
export { MultiCombobox } from "./ikoncomponents/multi-combobox";
|
|
69
70
|
export { NoDataComponent } from "./ikoncomponents/no-data";
|
|
70
71
|
export { PageWrapper } from "./ikoncomponents/page-wrapper";
|
|
@@ -79,14 +80,14 @@ export { ThemeToggleBtn } from "./ikoncomponents/theme-toggle-btn";
|
|
|
79
80
|
export { TitleProgress } from "./ikoncomponents/title-progress";
|
|
80
81
|
export { TooltipComponent } from "./ikoncomponents/tooltip";
|
|
81
82
|
export { FrameworkItemDropdown } from "./ikoncomponents/twolevel-dropdown";
|
|
82
|
-
export type { FrameworkEntry, TreeNode, ParentEntry, ProcessedFrameworkData } from "./ikoncomponents/twolevel-dropdown";
|
|
83
|
+
export type { FrameworkEntry, TreeNode, ParentEntry, ProcessedFrameworkData, } from "./ikoncomponents/twolevel-dropdown";
|
|
83
84
|
export { Widgets } from "./ikoncomponents/widgets";
|
|
84
|
-
export type { WidgetProps, WidgetsFunctionProps } from "./ikoncomponents/widgets/type";
|
|
85
|
+
export type { WidgetProps, WidgetsFunctionProps, } from "./ikoncomponents/widgets/type";
|
|
85
86
|
export { BigCalendar } from "./ikoncomponents/big-calendar";
|
|
86
|
-
export type { BigCalendarProps, ExtraParamsEvent, BigCalendarEventProps, BigCalenderToolbarProps } from "./ikoncomponents/big-calendar/type";
|
|
87
|
-
export { BreadcrumbProvider, useBreadcrumb } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
87
|
+
export type { BigCalendarProps, ExtraParamsEvent, BigCalendarEventProps, BigCalenderToolbarProps, } from "./ikoncomponents/big-calendar/type";
|
|
88
|
+
export { BreadcrumbProvider, useBreadcrumb, } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
88
89
|
export type { BreadcrumbItemProps } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
89
|
-
export { AppBreadcrumb, RenderAppBreadcrumb } from "./ikoncomponents/app-breadcrumb";
|
|
90
|
+
export { AppBreadcrumb, RenderAppBreadcrumb, } from "./ikoncomponents/app-breadcrumb";
|
|
90
91
|
export { FormComboboxInput } from "./ikoncomponents/form-fields/combobox-input";
|
|
91
92
|
export { FormComboboxInputWithValue } from "./ikoncomponents/form-fields/combobox-input-value";
|
|
92
93
|
export { FormDateInput } from "./ikoncomponents/form-fields/date-input";
|
|
@@ -96,7 +97,7 @@ export { FormMultiComboboxInput } from "./ikoncomponents/form-fields/multi-combo
|
|
|
96
97
|
export { FormOtpInput } from "./ikoncomponents/form-fields/otp-input";
|
|
97
98
|
export { FormPhoneInput } from "./ikoncomponents/form-fields/phone-input";
|
|
98
99
|
export { FormTextarea } from "./ikoncomponents/form-fields/textarea";
|
|
99
|
-
export type { FormFieldProps, FormInputProps, FormTextareaProps, FormDateInputProps, FormComboboxInputProps, FormComboboxItemProps } from "./ikoncomponents/form-fields/types";
|
|
100
|
+
export type { FormFieldProps, FormInputProps, FormTextareaProps, FormDateInputProps, FormComboboxInputProps, FormComboboxItemProps, } from "./ikoncomponents/form-fields/types";
|
|
100
101
|
export { GradeTableLoader } from "./ikoncomponents/skeleton-loader/skeleton-table";
|
|
101
102
|
export type { GradeTableLoaderProps } from "./ikoncomponents/skeleton-loader/skeleton-table";
|
|
102
103
|
export { SkeletonWidget } from "./ikoncomponents/skeleton-loader/skeleton-widget";
|
|
@@ -104,17 +105,17 @@ export { UploadTab } from "./ikoncomponents/upload-tab";
|
|
|
104
105
|
export { AppSidebar } from "./ikoncomponents/main-layout/app-sidebar";
|
|
105
106
|
export { Footer } from "./ikoncomponents/main-layout/footer";
|
|
106
107
|
export { Header } from "./ikoncomponents/main-layout/header";
|
|
107
|
-
export type { Account, Software } from "./ikoncomponents/main-layout/main-sidebar";
|
|
108
|
+
export type { Account, Software, } from "./ikoncomponents/main-layout/main-sidebar";
|
|
108
109
|
export { MainSidebar } from "./ikoncomponents/main-layout/main-sidebar";
|
|
109
110
|
export { NavMain } from "./ikoncomponents/main-layout/nav-main";
|
|
110
|
-
export type { SidebarNavSubItem, SidebarNavItem, SidebarNavContextType } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
111
|
-
export { SidebarNavProvider, useSidebarNav } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
111
|
+
export type { SidebarNavSubItem, SidebarNavItem, SidebarNavContextType, } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
112
|
+
export { SidebarNavProvider, useSidebarNav, } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
112
113
|
export { MainLayout } from "./ikoncomponents/main-layout";
|
|
113
114
|
export { ProviderWrapper } from "./ikoncomponents/provider-wrapper";
|
|
114
115
|
export { ActivitySheet } from "./ikoncomponents/activity-sheet";
|
|
115
116
|
export type { ActivityLogProps } from "./ikoncomponents/activity-sheet";
|
|
116
|
-
export { ImageCropperProvider, useImageCropper } from "./ikoncomponents/image-cropper-upload";
|
|
117
|
-
export type { ImageCropperProps, OriginalImageProps, AspectRatioWiseImagesProps, ImageCropperContextProps } from "./ikoncomponents/image-cropper-upload";
|
|
117
|
+
export { ImageCropperProvider, useImageCropper, } from "./ikoncomponents/image-cropper-upload";
|
|
118
|
+
export type { ImageCropperProps, OriginalImageProps, AspectRatioWiseImagesProps, ImageCropperContextProps, } from "./ikoncomponents/image-cropper-upload";
|
|
118
119
|
export { ImageCropper } from "./ikoncomponents/image-cropper-upload/image-cropper";
|
|
119
120
|
export type { CropperImgProps } from "./ikoncomponents/image-cropper-upload/image-cropper";
|
|
120
121
|
export { CropperFormWithModal } from "./ikoncomponents/image-cropper-upload/cropper-form-with-modal";
|
|
@@ -123,13 +124,14 @@ export { NewCropperImg } from "./ikoncomponents/image-cropper-upload/components/
|
|
|
123
124
|
export type { CropperImgProps as NewCropperImgProps } from "./ikoncomponents/image-cropper-upload/components/newCropper";
|
|
124
125
|
export { NewImageForm } from "./ikoncomponents/image-cropper-upload/components/newImageUploadForm";
|
|
125
126
|
export type { ImageFormProps } from "./ikoncomponents/image-cropper-upload/components/newImageUploadForm";
|
|
127
|
+
export { WorkInProgress } from "./ikoncomponents/work-in-progress";
|
|
126
128
|
export { ThemeProvider } from "./utils/theme-provider";
|
|
127
129
|
export { RadiusProvider, useRadius } from "./utils/border-radius-provider";
|
|
128
130
|
export { FontProvider, useFont } from "./utils/font-provider";
|
|
129
131
|
export { cn } from "./utils/cn";
|
|
130
132
|
export type { CookieSessionOptionsProps } from "./utils/session/cookieSession";
|
|
131
|
-
export { setCookieSession, getCookieSession, clearCookieSession, clearAllCookieSession } from "./utils/session/cookieSession";
|
|
132
|
-
export { getValidAccessToken, refreshAccessToken, logOut } from "./utils/token-management";
|
|
133
|
+
export { setCookieSession, getCookieSession, clearCookieSession, clearAllCookieSession, } from "./utils/session/cookieSession";
|
|
134
|
+
export { getValidAccessToken, refreshAccessToken, logOut, } from "./utils/token-management";
|
|
133
135
|
export type { AccessTokenOptionsProps } from "./utils/token-management";
|
|
134
136
|
export type { TokenResponse } from "./utils/token-management/types";
|
|
135
137
|
export { useIsMobile } from "./hooks/use-mobile";
|
package/dist/index.js
CHANGED
|
@@ -44,12 +44,13 @@ export * from "./shadcn/toggle-group";
|
|
|
44
44
|
export * from "./shadcn/toggle";
|
|
45
45
|
export { ActionMenu } from "./ikoncomponents/action-menu";
|
|
46
46
|
export { CustomAlertDialog } from "./ikoncomponents/alert-dialog";
|
|
47
|
-
export {
|
|
47
|
+
export { useDialog, DialogProvider, } from "./ikoncomponents/alert-dialog/dialog-context";
|
|
48
|
+
export { TextButton, TextButtonWithTooltip, IconTextButton, IconTextButtonWithTooltip, IconButton, IconButtonWithTooltip, } from "./ikoncomponents/buttons";
|
|
48
49
|
export { ComboboxInput } from "./ikoncomponents/combobox-input";
|
|
49
50
|
export { DataTableColumnFilter } from "./ikoncomponents/data-table/datatable-column-filter";
|
|
50
51
|
export { DataTableFacetedFilter } from "./ikoncomponents/data-table/datatable-faceted-filter";
|
|
51
52
|
export { DataTableFilterMenu } from "./ikoncomponents/data-table/datatable-filter-menu";
|
|
52
|
-
export { convertFileToObject, FileUploader, getImageFromObject } from "./ikoncomponents/fileUpload";
|
|
53
|
+
export { convertFileToObject, FileUploader, getImageFromObject, } from "./ikoncomponents/fileUpload";
|
|
53
54
|
export { DataTablePagination } from "./ikoncomponents/data-table/datatable-pagination";
|
|
54
55
|
export { DataTableToolbar } from "./ikoncomponents/data-table/datatable-toolbar";
|
|
55
56
|
export { getDataTableColumnTitle } from "./ikoncomponents/data-table/function";
|
|
@@ -74,8 +75,8 @@ export { TooltipComponent } from "./ikoncomponents/tooltip";
|
|
|
74
75
|
export { FrameworkItemDropdown } from "./ikoncomponents/twolevel-dropdown";
|
|
75
76
|
export { Widgets } from "./ikoncomponents/widgets";
|
|
76
77
|
export { BigCalendar } from "./ikoncomponents/big-calendar";
|
|
77
|
-
export { BreadcrumbProvider, useBreadcrumb } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
78
|
-
export { AppBreadcrumb, RenderAppBreadcrumb } from "./ikoncomponents/app-breadcrumb";
|
|
78
|
+
export { BreadcrumbProvider, useBreadcrumb, } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
79
|
+
export { AppBreadcrumb, RenderAppBreadcrumb, } from "./ikoncomponents/app-breadcrumb";
|
|
79
80
|
export { FormComboboxInput } from "./ikoncomponents/form-fields/combobox-input";
|
|
80
81
|
export { FormComboboxInputWithValue } from "./ikoncomponents/form-fields/combobox-input-value";
|
|
81
82
|
export { FormDateInput } from "./ikoncomponents/form-fields/date-input";
|
|
@@ -93,20 +94,21 @@ export { Footer } from "./ikoncomponents/main-layout/footer";
|
|
|
93
94
|
export { Header } from "./ikoncomponents/main-layout/header";
|
|
94
95
|
export { MainSidebar } from "./ikoncomponents/main-layout/main-sidebar";
|
|
95
96
|
export { NavMain } from "./ikoncomponents/main-layout/nav-main";
|
|
96
|
-
export { SidebarNavProvider, useSidebarNav } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
97
|
+
export { SidebarNavProvider, useSidebarNav, } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
97
98
|
export { MainLayout } from "./ikoncomponents/main-layout";
|
|
98
99
|
export { ProviderWrapper } from "./ikoncomponents/provider-wrapper";
|
|
99
100
|
export { ActivitySheet } from "./ikoncomponents/activity-sheet";
|
|
100
|
-
export { ImageCropperProvider, useImageCropper } from "./ikoncomponents/image-cropper-upload";
|
|
101
|
+
export { ImageCropperProvider, useImageCropper, } from "./ikoncomponents/image-cropper-upload";
|
|
101
102
|
export { ImageCropper } from "./ikoncomponents/image-cropper-upload/image-cropper";
|
|
102
103
|
export { CropperFormWithModal } from "./ikoncomponents/image-cropper-upload/cropper-form-with-modal";
|
|
103
104
|
export { CropperForm } from "./ikoncomponents/image-cropper-upload/cropper-form";
|
|
104
105
|
export { NewCropperImg } from "./ikoncomponents/image-cropper-upload/components/newCropper";
|
|
105
106
|
export { NewImageForm } from "./ikoncomponents/image-cropper-upload/components/newImageUploadForm";
|
|
107
|
+
export { WorkInProgress } from "./ikoncomponents/work-in-progress";
|
|
106
108
|
export { ThemeProvider } from "./utils/theme-provider";
|
|
107
109
|
export { RadiusProvider, useRadius } from "./utils/border-radius-provider";
|
|
108
110
|
export { FontProvider, useFont } from "./utils/font-provider";
|
|
109
111
|
export { cn } from "./utils/cn";
|
|
110
|
-
export { setCookieSession, getCookieSession, clearCookieSession, clearAllCookieSession } from "./utils/session/cookieSession";
|
|
111
|
-
export { getValidAccessToken, refreshAccessToken, logOut } from "./utils/token-management";
|
|
112
|
+
export { setCookieSession, getCookieSession, clearCookieSession, clearAllCookieSession, } from "./utils/session/cookieSession";
|
|
113
|
+
export { getValidAccessToken, refreshAccessToken, logOut, } from "./utils/token-management";
|
|
112
114
|
export { useIsMobile } from "./hooks/use-mobile";
|
|
@@ -36,7 +36,7 @@ function DropdownMenuGroup(_a) {
|
|
|
36
36
|
}
|
|
37
37
|
function DropdownMenuItem(_a) {
|
|
38
38
|
var { className, inset, variant = "default" } = _a, props = __rest(_a, ["className", "inset", "variant"]);
|
|
39
|
-
return (_jsx(DropdownMenuPrimitive.Item, Object.assign({ "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("focus:bg-[var(--input)] dark:focus:bg-[var(--card)]
|
|
39
|
+
return (_jsx(DropdownMenuPrimitive.Item, Object.assign({ "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("focus:bg-[var(--input)] dark:focus:bg-[var(--card)] blue-dark:focus:bg-[var(--secondary)] focus:text-accent-foreground dark:text-foreground focus:dark:text-foreground blue-dark:text-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className) }, props)));
|
|
40
40
|
}
|
|
41
41
|
function DropdownMenuCheckboxItem(_a) {
|
|
42
42
|
var { className, children, checked } = _a, props = __rest(_a, ["className", "children", "checked"]);
|
package/dist/styles.css
CHANGED
|
@@ -4128,6 +4128,11 @@
|
|
|
4128
4128
|
color: var(--color-black);
|
|
4129
4129
|
}
|
|
4130
4130
|
}
|
|
4131
|
+
.dark\:text-foreground {
|
|
4132
|
+
&:is(.dark *) {
|
|
4133
|
+
color: var(--foreground);
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4131
4136
|
.dark\:text-gray-400 {
|
|
4132
4137
|
&:is(.dark *) {
|
|
4133
4138
|
color: var(--color-gray-400);
|
|
@@ -4215,6 +4220,13 @@
|
|
|
4215
4220
|
}
|
|
4216
4221
|
}
|
|
4217
4222
|
}
|
|
4223
|
+
.focus\:dark\:text-foreground {
|
|
4224
|
+
&:focus {
|
|
4225
|
+
&:is(.dark *) {
|
|
4226
|
+
color: var(--foreground);
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4218
4230
|
.dark\:focus-visible\:ring-\[\#15803D\]\/40 {
|
|
4219
4231
|
&:is(.dark *) {
|
|
4220
4232
|
&:focus-visible {
|
|
@@ -4338,6 +4350,13 @@
|
|
|
4338
4350
|
color: var(--muted-foreground);
|
|
4339
4351
|
}
|
|
4340
4352
|
}
|
|
4353
|
+
.blue-dark\:focus\:bg-\[var\(--secondary\)\] {
|
|
4354
|
+
&:is(.blue-dark *) {
|
|
4355
|
+
&:focus {
|
|
4356
|
+
background-color: var(--secondary);
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4341
4360
|
.blue-dark\:focus\:bg-destructive {
|
|
4342
4361
|
&:is(.blue-dark *) {
|
|
4343
4362
|
&:focus {
|
|
@@ -4958,9 +4977,9 @@
|
|
|
4958
4977
|
font-size: 14px;
|
|
4959
4978
|
}
|
|
4960
4979
|
.rbc-date-cell.rbc-now,
|
|
4961
|
-
.rbc-time-slot.rbc-now,
|
|
4962
|
-
.rbc-show-more,
|
|
4963
|
-
.rbc-header {
|
|
4980
|
+
.rbc-time-slot.rbc-now,
|
|
4981
|
+
.rbc-show-more,
|
|
4982
|
+
.rbc-header {
|
|
4964
4983
|
font-weight: normal !important;
|
|
4965
4984
|
}
|
|
4966
4985
|
.rbc-btn {
|
|
@@ -5006,13 +5025,13 @@
|
|
|
5006
5025
|
height: 100%;
|
|
5007
5026
|
}
|
|
5008
5027
|
.rbc-calendar *,
|
|
5009
|
-
.rbc-calendar *:before,
|
|
5010
|
-
.rbc-calendar *:after {
|
|
5028
|
+
.rbc-calendar *:before,
|
|
5029
|
+
.rbc-calendar *:after {
|
|
5011
5030
|
-webkit-box-sizing: inherit;
|
|
5012
5031
|
box-sizing: inherit;
|
|
5013
5032
|
}
|
|
5014
5033
|
.rbc-abs-full,
|
|
5015
|
-
.rbc-row-bg {
|
|
5034
|
+
.rbc-row-bg {
|
|
5016
5035
|
overflow: hidden;
|
|
5017
5036
|
position: absolute;
|
|
5018
5037
|
top: 0;
|
|
@@ -5021,9 +5040,9 @@
|
|
|
5021
5040
|
bottom: 0;
|
|
5022
5041
|
}
|
|
5023
5042
|
.rbc-ellipsis,
|
|
5024
|
-
.rbc-show-more,
|
|
5025
|
-
.rbc-row-segment .rbc-event-content,
|
|
5026
|
-
.rbc-event-label {
|
|
5043
|
+
.rbc-show-more,
|
|
5044
|
+
.rbc-row-segment .rbc-event-content,
|
|
5045
|
+
.rbc-event-label {
|
|
5027
5046
|
display: block;
|
|
5028
5047
|
overflow: hidden;
|
|
5029
5048
|
text-overflow: ellipsis;
|
|
@@ -5061,8 +5080,8 @@
|
|
|
5061
5080
|
border-right: 1px solid hsl(var(--border));
|
|
5062
5081
|
}
|
|
5063
5082
|
.rbc-header > a,
|
|
5064
|
-
.rbc-header > a:active,
|
|
5065
|
-
.rbc-header > a:visited {
|
|
5083
|
+
.rbc-header > a:active,
|
|
5084
|
+
.rbc-header > a:visited {
|
|
5066
5085
|
color: inherit;
|
|
5067
5086
|
text-decoration: none;
|
|
5068
5087
|
}
|
|
@@ -5103,7 +5122,7 @@
|
|
|
5103
5122
|
scrollbar-width: none;
|
|
5104
5123
|
}
|
|
5105
5124
|
.rbc-row-content-scrollable
|
|
5106
|
-
|
|
5125
|
+
.rbc-row-content-scroll-container::-webkit-scrollbar {
|
|
5107
5126
|
display: none;
|
|
5108
5127
|
}
|
|
5109
5128
|
.rbc-today {
|
|
@@ -5147,7 +5166,7 @@
|
|
|
5147
5166
|
white-space: nowrap;
|
|
5148
5167
|
}
|
|
5149
5168
|
.rbc-toolbar button:active,
|
|
5150
|
-
.rbc-toolbar button.rbc-active {
|
|
5169
|
+
.rbc-toolbar button.rbc-active {
|
|
5151
5170
|
background-image: none;
|
|
5152
5171
|
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
5153
5172
|
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
@@ -5155,9 +5174,9 @@
|
|
|
5155
5174
|
border-color: #adadad;
|
|
5156
5175
|
}
|
|
5157
5176
|
.rbc-toolbar button:active:hover,
|
|
5158
|
-
.rbc-toolbar button:active:focus,
|
|
5159
|
-
.rbc-toolbar button.rbc-active:hover,
|
|
5160
|
-
.rbc-toolbar button.rbc-active:focus {
|
|
5177
|
+
.rbc-toolbar button:active:focus,
|
|
5178
|
+
.rbc-toolbar button.rbc-active:hover,
|
|
5179
|
+
.rbc-toolbar button.rbc-active:focus {
|
|
5161
5180
|
color: #373a3c;
|
|
5162
5181
|
background-color: #d4d4d4;
|
|
5163
5182
|
border-color: #8c8c8c;
|
|
@@ -5205,7 +5224,7 @@
|
|
|
5205
5224
|
margin-right: -1px;
|
|
5206
5225
|
}
|
|
5207
5226
|
.rbc-btn-group + .rbc-btn-group,
|
|
5208
|
-
.rbc-btn-group + button {
|
|
5227
|
+
.rbc-btn-group + button {
|
|
5209
5228
|
margin-left: 10px;
|
|
5210
5229
|
}
|
|
5211
5230
|
@media (max-width: 767px) {
|
|
@@ -5217,7 +5236,7 @@
|
|
|
5217
5236
|
}
|
|
5218
5237
|
}
|
|
5219
5238
|
.rbc-event,
|
|
5220
|
-
.rbc-day-slot .rbc-background-event {
|
|
5239
|
+
.rbc-day-slot .rbc-background-event {
|
|
5221
5240
|
border: none;
|
|
5222
5241
|
-webkit-box-sizing: border-box;
|
|
5223
5242
|
box-sizing: border-box;
|
|
@@ -5233,17 +5252,17 @@
|
|
|
5233
5252
|
text-align: left;
|
|
5234
5253
|
}
|
|
5235
5254
|
.rbc-slot-selecting .rbc-event,
|
|
5236
|
-
.rbc-slot-selecting .rbc-day-slot .rbc-background-event,
|
|
5237
|
-
.rbc-day-slot .rbc-slot-selecting .rbc-background-event {
|
|
5255
|
+
.rbc-slot-selecting .rbc-day-slot .rbc-background-event,
|
|
5256
|
+
.rbc-day-slot .rbc-slot-selecting .rbc-background-event {
|
|
5238
5257
|
cursor: inherit;
|
|
5239
5258
|
pointer-events: none;
|
|
5240
5259
|
}
|
|
5241
5260
|
.rbc-event.rbc-selected,
|
|
5242
|
-
.rbc-day-slot .rbc-selected.rbc-background-event {
|
|
5261
|
+
.rbc-day-slot .rbc-selected.rbc-background-event {
|
|
5243
5262
|
background-color: #265985;
|
|
5244
5263
|
}
|
|
5245
5264
|
.rbc-event:focus,
|
|
5246
|
-
.rbc-day-slot .rbc-background-event:focus {
|
|
5265
|
+
.rbc-day-slot .rbc-background-event:focus {
|
|
5247
5266
|
outline: 5px auto #3b99fc;
|
|
5248
5267
|
}
|
|
5249
5268
|
.rbc-event-label {
|
|
@@ -5294,7 +5313,7 @@
|
|
|
5294
5313
|
color: hsl(var(--input));
|
|
5295
5314
|
}
|
|
5296
5315
|
.rbc-show-more:hover,
|
|
5297
|
-
.rbc-show-more:focus {
|
|
5316
|
+
.rbc-show-more:focus {
|
|
5298
5317
|
color: #265985;
|
|
5299
5318
|
}
|
|
5300
5319
|
.rbc-month-view {
|
|
@@ -5358,8 +5377,8 @@
|
|
|
5358
5377
|
font-weight: bold;
|
|
5359
5378
|
}
|
|
5360
5379
|
.rbc-date-cell > a,
|
|
5361
|
-
.rbc-date-cell > a:active,
|
|
5362
|
-
.rbc-date-cell > a:visited {
|
|
5380
|
+
.rbc-date-cell > a:active,
|
|
5381
|
+
.rbc-date-cell > a:visited {
|
|
5363
5382
|
color: inherit;
|
|
5364
5383
|
text-decoration: none;
|
|
5365
5384
|
}
|
|
@@ -5456,13 +5475,13 @@
|
|
|
5456
5475
|
text-transform: lowercase;
|
|
5457
5476
|
}
|
|
5458
5477
|
.rbc-agenda-time-cell .rbc-continues-after:after {
|
|
5459
|
-
content:
|
|
5478
|
+
content: " »";
|
|
5460
5479
|
}
|
|
5461
5480
|
.rbc-agenda-time-cell .rbc-continues-prior:before {
|
|
5462
|
-
content:
|
|
5481
|
+
content: "« ";
|
|
5463
5482
|
}
|
|
5464
5483
|
.rbc-agenda-date-cell,
|
|
5465
|
-
.rbc-agenda-time-cell {
|
|
5484
|
+
.rbc-agenda-time-cell {
|
|
5466
5485
|
white-space: nowrap;
|
|
5467
5486
|
}
|
|
5468
5487
|
.rbc-agenda-event-cell {
|
|
@@ -5495,7 +5514,7 @@
|
|
|
5495
5514
|
flex-flow: column nowrap;
|
|
5496
5515
|
}
|
|
5497
5516
|
.rbc-time-gutter,
|
|
5498
|
-
.rbc-header-gutter {
|
|
5517
|
+
.rbc-header-gutter {
|
|
5499
5518
|
-webkit-box-flex: 0;
|
|
5500
5519
|
-ms-flex: none;
|
|
5501
5520
|
flex: none;
|
|
@@ -5519,7 +5538,7 @@
|
|
|
5519
5538
|
right: 0;
|
|
5520
5539
|
}
|
|
5521
5540
|
.rbc-day-slot .rbc-event,
|
|
5522
|
-
.rbc-day-slot .rbc-background-event {
|
|
5541
|
+
.rbc-day-slot .rbc-background-event {
|
|
5523
5542
|
border: 1px solid #265985;
|
|
5524
5543
|
display: -webkit-box;
|
|
5525
5544
|
display: -ms-flexbox;
|
|
@@ -5560,7 +5579,7 @@
|
|
|
5560
5579
|
border-top: 1px solid hsl(var(--border));
|
|
5561
5580
|
}
|
|
5562
5581
|
.rbc-time-view-resources .rbc-time-gutter,
|
|
5563
|
-
.rbc-time-view-resources .rbc-time-header-gutter {
|
|
5582
|
+
.rbc-time-view-resources .rbc-time-header-gutter {
|
|
5564
5583
|
position: sticky;
|
|
5565
5584
|
left: 0;
|
|
5566
5585
|
background-color: white;
|
|
@@ -5586,7 +5605,7 @@
|
|
|
5586
5605
|
min-width: 140px;
|
|
5587
5606
|
}
|
|
5588
5607
|
.rbc-time-view-resources .rbc-header,
|
|
5589
|
-
.rbc-time-view-resources .rbc-day-bg {
|
|
5608
|
+
.rbc-time-view-resources .rbc-day-bg {
|
|
5590
5609
|
width: 140px;
|
|
5591
5610
|
-webkit-box-flex: 1;
|
|
5592
5611
|
-ms-flex: 1 1 0px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use server";
|
|
2
2
|
import { redirect } from "next/navigation";
|
|
3
|
-
import { clearAllCookieSession, getCookieSession, setCookieSession } from "../session/cookieSession";
|
|
3
|
+
import { clearAllCookieSession, getCookieSession, setCookieSession, } from "../session/cookieSession";
|
|
4
4
|
export async function getValidAccessToken(options) {
|
|
5
5
|
const accessToken = await getCookieSession("accessToken");
|
|
6
6
|
const refreshToken = await getCookieSession("refreshToken");
|
|
@@ -32,11 +32,15 @@ export async function refreshAccessToken(refreshToken, isSetToken) {
|
|
|
32
32
|
});
|
|
33
33
|
if (response.ok) {
|
|
34
34
|
const data = await response.json();
|
|
35
|
-
const { accessToken, refreshToken, expiresIn, refreshExpiresIn } = data;
|
|
35
|
+
const { accessToken, refreshToken, expiresIn, refreshExpiresIn, } = data;
|
|
36
36
|
if (isSetToken) {
|
|
37
37
|
try {
|
|
38
|
-
await setCookieSession("accessToken", accessToken, {
|
|
39
|
-
|
|
38
|
+
await setCookieSession("accessToken", accessToken, {
|
|
39
|
+
maxAge: expiresIn,
|
|
40
|
+
});
|
|
41
|
+
await setCookieSession("refreshToken", refreshToken, {
|
|
42
|
+
maxAge: refreshExpiresIn,
|
|
43
|
+
});
|
|
40
44
|
}
|
|
41
45
|
catch (error) {
|
|
42
46
|
console.error(error);
|
|
@@ -74,5 +78,5 @@ export async function refreshAccessToken(refreshToken, isSetToken) {
|
|
|
74
78
|
}
|
|
75
79
|
export async function logOut() {
|
|
76
80
|
await clearAllCookieSession();
|
|
77
|
-
redirect(
|
|
81
|
+
redirect("/login.html");
|
|
78
82
|
}
|