@designbasekorea/wordpress-ui 0.1.5 → 0.1.6

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.
@@ -54,8 +54,14 @@ declare class DbAdminShell extends HTMLElement {
54
54
  attributeChangedCallback(): void;
55
55
  private captureOriginalChildren;
56
56
  private getOriginalElements;
57
+ private getBrandLabel;
57
58
  private getSidebarItems;
58
59
  private getSidebarSections;
60
+ /**
61
+ * 플러그인명은 사이드바 로고 슬롯에 둡니다. `sections`가 브랜드명과 같은
62
+ * 단일 그룹만 감싸고 있으면 섹션 제목 없이 `items`로 펼칩니다.
63
+ */
64
+ private resolveSidebarNav;
59
65
  private createBrand;
60
66
  private createSidebar;
61
67
  private createPageHeader;
@@ -127,6 +133,22 @@ interface AdminBreadcrumb {
127
133
  active?: boolean;
128
134
  disabled?: boolean;
129
135
  }
136
+ interface AdminTab {
137
+ id: string;
138
+ label: string;
139
+ disabled?: boolean;
140
+ }
141
+ interface AdminTableSort {
142
+ column: string;
143
+ direction: 'asc' | 'desc';
144
+ }
145
+ interface AdminTableColumn<Row> {
146
+ id: string;
147
+ header: string;
148
+ key?: keyof Row;
149
+ sortable?: boolean;
150
+ width?: string;
151
+ }
130
152
 
131
153
  interface AdminLayoutContextValue {
132
154
  hasSidebar: boolean;
@@ -144,6 +166,7 @@ interface AdminShellProps {
144
166
  children?: ReactNode;
145
167
  sidebar?: ReactNode;
146
168
  sidebarItems?: AdminNavItem[];
169
+ /** 사이드바 헤더 로고 슬롯에 넣는 플러그인명. 섹션 제목으로 쓰지 않습니다. */
147
170
  sidebarTitle?: string;
148
171
  className?: string;
149
172
  defaultSidebarOpen?: boolean;
@@ -189,4 +212,4 @@ declare function AdminPage({ children, className }: {
189
212
  declare function AdminPageContent({ children, maxWidth, className }: AdminPageContentProps): react_jsx_runtime.JSX.Element;
190
213
 
191
214
  export { Accordion, AdminPage, AdminPageContent, AdminPageHeader, AdminShell, AdminShellMenuButton, AdminWrapper, Alert, AnimationBackground, Avatar, Badge, Banner, Breadcrumbs, Button, Checkbox, Chip, Container, Drawer, Dropdown, EmptyState, Input, Logo, MenuItem, Modal, PageHeader, Pagination, REGISTERED_PRIMITIVES, Radio, SearchBar, Section, SegmentControl, Select, Sidebar, Skeleton, Spinner, Table, Tabs, Textarea, Toast, Toggle, useAdminLayout };
192
- export type { AdminLayoutContextValue, AdminPageContentProps, AdminPageHeaderProps, AdminShellProps, AdminWrapperProps, DbEventHandler, PrimitiveProps };
215
+ export type { AdminBreadcrumb, AdminLayoutContextValue, AdminNavItem, AdminPageContentProps, AdminPageHeaderProps, AdminShellProps, AdminTab, AdminTableColumn, AdminTableSort, AdminWrapperProps, DbEventHandler, PrimitiveProps };