@yimingliao/cms 0.0.114 → 0.0.116

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,8 +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-BlYl83Yl.js';
13
- export { a as SidebarContent, b as SidebarInset, c as SidebarProvider, u as useSidebar } from '../sidebar-BlYl83Yl.js';
12
+ import { B as ButtonProps$1, L as LabelProps } from '../sidebar-BlYl83Yl.js';
13
+ export { S as Sidebar, a as SidebarContent, b as SidebarInset, c as SidebarProvider, u as useSidebar } from '../sidebar-BlYl83Yl.js';
14
14
  import { U as UIStates, F as FormData, a as FormFieldController } from '../types-BUmWwzpD.js';
15
15
  import { ClassValue } from 'clsx';
16
16
  import 'zod';
@@ -346,7 +346,7 @@ interface ContentContainerProps extends HTMLAttributes<HTMLDivElement> {
346
346
  }
347
347
  declare function ContentContainer({ className, children, isNotFound, isFixHeight, ...props }: ContentContainerProps): react_jsx_runtime.JSX.Element;
348
348
 
349
- declare function ContentSkeleton(): react_jsx_runtime.JSX.Element;
349
+ declare function LayoutSkeleton(): react_jsx_runtime.JSX.Element;
350
350
 
351
351
  interface NavItem {
352
352
  icon?: LucideIcon;
@@ -359,8 +359,6 @@ declare function NavMain({ items }: {
359
359
  items: NavItem[];
360
360
  }): react_jsx_runtime.JSX.Element;
361
361
 
362
- declare function SidebarSkeleton({ ...props }: React$1.ComponentProps<typeof Sidebar>): react_jsx_runtime.JSX.Element;
363
-
364
362
  declare function createNavbar({ webUrl, storageUrl, I18nSelector, SignOutButton, }: {
365
363
  webUrl: string;
366
364
  storageUrl: string;
@@ -593,4 +591,4 @@ declare const cn: (...inputs: ClassValue[]) => string;
593
591
 
594
592
  declare function useDeviceInfo(): DeviceInfo | null;
595
593
 
596
- export { AdminProvider, ArrayInput, Button, type ButtonProps, Checkbox, ContentContainer, ContentSkeleton, ControlFields, type ControlMeta, Field, FieldBody, FieldsContainer, Form, IndexField, Input, type InputProps, MainFields, NAVBAR_HEIGHT, type NavItem, NavMain, PAGE_HEADER_HEIGHT, PageHeader, PasswordInput, ReturnButton, SIDEBAR_WIDTH, 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 };
594
+ export { AdminProvider, ArrayInput, Button, type ButtonProps, Checkbox, ContentContainer, ControlFields, type ControlMeta, Field, FieldBody, FieldsContainer, Form, IndexField, Input, type InputProps, LayoutSkeleton, MainFields, NAVBAR_HEIGHT, type NavItem, NavMain, PAGE_HEADER_HEIGHT, PageHeader, PasswordInput, ReturnButton, SIDEBAR_WIDTH, SearchInput, type ShowToastOption, SideFields, SlugField, Textarea, ThemeProvider, cn, createAdminInitializer, createChangePasswordPage, createEmailUnverifiedPage, createForgotPasswordPage, createI18nSelector, createNavbar, createRequestInterceptor, createResetPasswordPage, createResponseInterceptor, createSignInPage, createSignOutButton, createSmartFetch, createUseCommand, createUseQuery, createVerifyEmailPage, handleToast, useAdmin, useDeviceInfo };
@@ -1,4 +1,4 @@
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-WU47KNJR.js';
1
+ import { cn, useSidebar, Sidebar, Skeleton, SidebarInset, SIDEBAR_WIDTH, SidebarGroup, SidebarMenu, Collapsible, SidebarMenuItem, SidebarMenuButton, Separator, CollapsibleTrigger, SidebarMenuAction, CollapsibleContent, SidebarMenuSub, SidebarMenuSubItem, SidebarMenuSubButton, 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-WU47KNJR.js';
2
2
  export { NAVBAR_HEIGHT, PAGE_HEADER_HEIGHT, SIDEBAR_WIDTH, Sidebar, SidebarContent, SidebarInset, SidebarProvider, cn, useDeviceInfo, useSidebar } from '../chunk-WU47KNJR.js';
3
3
  import { ensureArray, findTranslation, joinUrl } from '../chunk-VSV6SQWC.js';
4
4
  import { toast } from 'sonner';
@@ -285,10 +285,15 @@ function ContentContainer({
285
285
  }
286
286
  );
287
287
  }
288
- function ContentSkeleton() {
288
+ function LayoutSkeleton() {
289
289
  const { open } = useSidebar();
290
290
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-1", children: [
291
- /* @__PURE__ */ jsx(SidebarMenuSkeleton, {}),
291
+ /* @__PURE__ */ jsx(Sidebar, { className: "top-(--header-height) h-[calc(100svh-var(--header-height))]!", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 p-3", children: [
292
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
293
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
294
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
295
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
296
+ ] }) }),
292
297
  /* @__PURE__ */ jsx(
293
298
  SidebarInset,
294
299
  {
@@ -377,23 +382,6 @@ function NavMain({ items }) {
377
382
  );
378
383
  }) }) });
379
384
  }
380
- function SidebarSkeleton({
381
- ...props
382
- }) {
383
- return /* @__PURE__ */ jsx(
384
- Sidebar,
385
- {
386
- className: "top-(--header-height) h-[calc(100svh-var(--header-height))]!",
387
- ...props,
388
- children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 p-3", children: [
389
- /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
390
- /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
391
- /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
392
- /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
393
- ] })
394
- }
395
- );
396
- }
397
385
 
398
386
  // src/constants/keys/auth.ts
399
387
  var AUTH_KEYS = {
@@ -2330,4 +2318,4 @@ function createChangePasswordPage({
2330
2318
  };
2331
2319
  }
2332
2320
 
2333
- export { AdminProvider, ArrayInput, Button2 as Button, Checkbox, ContentContainer, ContentSkeleton, ControlFields, Field, FieldBody, FieldsContainer, Form, IndexField, Input, MainFields, NavMain, PageHeader, PasswordInput, ReturnButton, SearchInput, SideFields, SidebarSkeleton, SlugField, Textarea2 as Textarea, ThemeProvider, createAdminInitializer, createChangePasswordPage, createEmailUnverifiedPage, createForgotPasswordPage, createI18nSelector, createNavbar, createRequestInterceptor, createResetPasswordPage, createResponseInterceptor, createSignInPage, createSignOutButton, createSmartFetch, createUseCommand, createUseQuery, createVerifyEmailPage, handleToast, useAdmin };
2321
+ export { AdminProvider, ArrayInput, Button2 as Button, Checkbox, ContentContainer, ControlFields, Field, FieldBody, FieldsContainer, Form, IndexField, Input, LayoutSkeleton, MainFields, NavMain, PageHeader, PasswordInput, ReturnButton, SearchInput, SideFields, SlugField, Textarea2 as Textarea, ThemeProvider, createAdminInitializer, createChangePasswordPage, createEmailUnverifiedPage, createForgotPasswordPage, createI18nSelector, createNavbar, createRequestInterceptor, createResetPasswordPage, createResponseInterceptor, createSignInPage, createSignOutButton, createSmartFetch, createUseCommand, createUseQuery, createVerifyEmailPage, handleToast, useAdmin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",