@yimingliao/cms 0.0.109 → 0.0.111

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.
@@ -9,7 +9,8 @@ import * as React$1 from 'react';
9
9
  import { HTMLAttributes, ReactNode, JSX, ComponentProps, InputHTMLAttributes, Dispatch, SetStateAction } from 'react';
10
10
  import { c as createVerifyAction, a as createSignOutAction, b as createSignInAction, d as createVerifyEmailAction, e as createEmailUnverifiedAction, f as createForgotPasswordAction, g as createResetPasswordAction, h as createChangePasswordAction } from '../create-reset-password-action-C-B3uh5m.js';
11
11
  import { LucideIcon } from 'lucide-react';
12
- import { S as Sidebar, B as ButtonProps$1, L as LabelProps } from '../sidebar-Dei7UxR1.js';
12
+ import { S as Sidebar, B as ButtonProps$1, L as LabelProps } from '../sidebar-BlYl83Yl.js';
13
+ export { a as SidebarContent, b as SidebarInset, c as SidebarProvider, u as useSidebar } from '../sidebar-BlYl83Yl.js';
13
14
  import { U as UIStates, F as FormData, a as FormFieldController } from '../types-BUmWwzpD.js';
14
15
  import { ClassValue } from 'clsx';
15
16
  import 'zod';
@@ -373,10 +374,10 @@ declare function createI18nSelector({ enabled, locales, localeDisplay, }: {
373
374
  localeDisplay: Record<string, string>;
374
375
  }): () => react_jsx_runtime.JSX.Element | null;
375
376
 
376
- declare function createSignOutButton(): ({ useCommand, signOutAction, }: {
377
+ declare function createSignOutButton({ useCommand, signOutAction, }: {
377
378
  useCommand: ReturnType<typeof createUseCommand>;
378
379
  signOutAction: ReturnType<typeof createSignOutAction>;
379
- }) => react_jsx_runtime.JSX.Element;
380
+ }): () => react_jsx_runtime.JSX.Element;
380
381
 
381
382
  interface PageHeaderTitleProps {
382
383
  icon?: LucideIcon;
@@ -588,4 +589,4 @@ declare const cn: (...inputs: ClassValue[]) => string;
588
589
 
589
590
  declare function useDeviceInfo(): DeviceInfo | null;
590
591
 
591
- export { AdminProvider, ArrayInput, Button, type ButtonProps, Checkbox, ContentContainer, ContentSkeleton, ControlFields, type ControlMeta, Field, FieldBody, FieldsContainer, Form, IndexField, Input, type InputProps, MainFields, type NavItem, NavMain, PageHeader, PasswordInput, ReturnButton, SearchInput, type ShowToastOption, SideFields, SidebarSkeleton, SlugField, Textarea, ThemeProvider, cn, createAdminInitializer, createChangePasswordPage, createEmailUnverifiedPage, createForgotPasswordPage, createI18nSelector, createNavbar, createRequestInterceptor, createResetPasswordPage, createResponseInterceptor, createSignInPage, createSignOutButton, createSmartFetch, createUseCommand, createUseQuery, createVerifyEmailPage, handleToast, useAdmin, useDeviceInfo };
592
+ export { AdminProvider, ArrayInput, Button, type ButtonProps, Checkbox, ContentContainer, ContentSkeleton, ControlFields, type ControlMeta, Field, FieldBody, FieldsContainer, Form, IndexField, Input, type InputProps, MainFields, type NavItem, NavMain, PageHeader, PasswordInput, ReturnButton, SearchInput, type ShowToastOption, SideFields, Sidebar, SidebarSkeleton, SlugField, Textarea, ThemeProvider, cn, createAdminInitializer, createChangePasswordPage, createEmailUnverifiedPage, createForgotPasswordPage, createI18nSelector, createNavbar, createRequestInterceptor, createResetPasswordPage, createResponseInterceptor, createSignInPage, createSignOutButton, createSmartFetch, createUseCommand, createUseQuery, createVerifyEmailPage, handleToast, useAdmin, useDeviceInfo };
@@ -1,5 +1,5 @@
1
1
  import { cn, useSidebar, SidebarMenuSkeleton, SidebarInset, SIDEBAR_WIDTH, Skeleton, SidebarGroup, SidebarMenu, Collapsible, SidebarMenuItem, SidebarMenuButton, Separator, CollapsibleTrigger, SidebarMenuAction, CollapsibleContent, SidebarMenuSub, SidebarMenuSubItem, SidebarMenuSubButton, Sidebar, Button, Spinner, useParentPathname, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, PAGE_HEADER_HEIGHT, Label, FORM_MIDDLE_GAP_WIDTH, FORM_SIDE_FIELDS_WIDTH, InputGroup, InputGroupAddon, InputGroupInput, InputGroupButton, Textarea, Card, useDeviceInfo, CardHeader, CardTitle, CardContent, useCountdown, CardDescription, NAVBAR_HEIGHT, isConfirm, Avatar, AvatarImage, AvatarFallback, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup } from '../chunk-Q654SMCX.js';
2
- export { cn, useDeviceInfo } from '../chunk-Q654SMCX.js';
2
+ export { Sidebar, SidebarContent, SidebarInset, SidebarProvider, cn, useDeviceInfo, useSidebar } from '../chunk-Q654SMCX.js';
3
3
  import { ensureArray, findTranslation, joinUrl } from '../chunk-VSV6SQWC.js';
4
4
  import { toast } from 'sonner';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -694,11 +694,11 @@ function createI18nSelector({
694
694
  ] });
695
695
  };
696
696
  }
697
- function createSignOutButton() {
698
- return function SignOutButton({
699
- useCommand,
700
- signOutAction
701
- }) {
697
+ function createSignOutButton({
698
+ useCommand,
699
+ signOutAction
700
+ }) {
701
+ return function SignOutButton() {
702
702
  const { t } = useTranslator();
703
703
  const router = useRouter();
704
704
  const { setAdmin } = useAdmin();
@@ -1,5 +1,5 @@
1
- import { a as Button } from '../../sidebar-Dei7UxR1.js';
2
- export { B as ButtonProps, I as Input, b as Label, L as LabelProps, c as SIDEBAR_COOKIE_NAME, d as Separator, S as Sidebar, e as SidebarContent, f as SidebarFooter, g as SidebarGroup, h as SidebarGroupAction, i as SidebarGroupContent, j as SidebarGroupLabel, k as SidebarHeader, l as SidebarInput, m as SidebarInset, n as SidebarMenu, o as SidebarMenuAction, p as SidebarMenuBadge, q as SidebarMenuButton, r as SidebarMenuItem, s as SidebarMenuSkeleton, t as SidebarMenuSub, u as SidebarMenuSubButton, v as SidebarMenuSubItem, w as SidebarProvider, x as SidebarRail, y as SidebarSeparator, z as SidebarTrigger, T as Tooltip, A as TooltipContent, C as TooltipProvider, D as TooltipTrigger, E as useSidebar } from '../../sidebar-Dei7UxR1.js';
1
+ import { d as Button } from '../../sidebar-BlYl83Yl.js';
2
+ export { B as ButtonProps, I as Input, e as Label, L as LabelProps, f as SIDEBAR_COOKIE_NAME, g as Separator, S as Sidebar, a as SidebarContent, h as SidebarFooter, i as SidebarGroup, j as SidebarGroupAction, k as SidebarGroupContent, l as SidebarGroupLabel, m as SidebarHeader, n as SidebarInput, b as SidebarInset, o as SidebarMenu, p as SidebarMenuAction, q as SidebarMenuBadge, r as SidebarMenuButton, s as SidebarMenuItem, t as SidebarMenuSkeleton, v as SidebarMenuSub, w as SidebarMenuSubButton, x as SidebarMenuSubItem, c as SidebarProvider, y as SidebarRail, z as SidebarSeparator, A as SidebarTrigger, T as Tooltip, C as TooltipContent, D as TooltipProvider, E as TooltipTrigger, u as useSidebar } from '../../sidebar-BlYl83Yl.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as React from 'react';
5
5
  import { ComponentProps } from 'react';
@@ -91,4 +91,4 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
91
91
  isActive?: boolean;
92
92
  }): react_jsx_runtime.JSX.Element;
93
93
 
94
- export { TooltipContent as A, type ButtonProps as B, TooltipProvider as C, TooltipTrigger as D, useSidebar as E, Input as I, type LabelProps as L, Sidebar as S, Tooltip as T, Button as a, Label as b, SIDEBAR_COOKIE_NAME as c, Separator as d, SidebarContent as e, SidebarFooter as f, SidebarGroup as g, SidebarGroupAction as h, SidebarGroupContent as i, SidebarGroupLabel as j, SidebarHeader as k, SidebarInput as l, SidebarInset as m, SidebarMenu as n, SidebarMenuAction as o, SidebarMenuBadge as p, SidebarMenuButton as q, SidebarMenuItem as r, SidebarMenuSkeleton as s, SidebarMenuSub as t, SidebarMenuSubButton as u, SidebarMenuSubItem as v, SidebarProvider as w, SidebarRail as x, SidebarSeparator as y, SidebarTrigger as z };
94
+ export { SidebarTrigger as A, type ButtonProps as B, TooltipContent as C, TooltipProvider as D, TooltipTrigger as E, Input as I, type LabelProps as L, Sidebar as S, Tooltip as T, SidebarContent as a, SidebarInset as b, SidebarProvider as c, Button as d, Label as e, SIDEBAR_COOKIE_NAME as f, Separator as g, SidebarFooter as h, SidebarGroup as i, SidebarGroupAction as j, SidebarGroupContent as k, SidebarGroupLabel as l, SidebarHeader as m, SidebarInput as n, SidebarMenu as o, SidebarMenuAction as p, SidebarMenuBadge as q, SidebarMenuButton as r, SidebarMenuItem as s, SidebarMenuSkeleton as t, useSidebar as u, SidebarMenuSub as v, SidebarMenuSubButton as w, SidebarMenuSubItem as x, SidebarRail as y, SidebarSeparator as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",