@designbasekorea/wordpress-ui 0.1.3 → 0.1.5

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/browser.d.ts CHANGED
@@ -8,6 +8,7 @@ import { DbBreadcrumbs } from '@designbasekorea/ui-wc/components/db-breadcrumbs'
8
8
  import { DbButton } from '@designbasekorea/ui-wc/components/db-button';
9
9
  import { DbCheckbox } from '@designbasekorea/ui-wc/components/db-checkbox';
10
10
  import { DbChip } from '@designbasekorea/ui-wc/components/db-chip';
11
+ import { DbContainer } from '@designbasekorea/ui-wc/components/db-container';
11
12
  import { DbDrawer } from '@designbasekorea/ui-wc/components/db-drawer';
12
13
  import { DbDropdown } from '@designbasekorea/ui-wc/components/db-dropdown';
13
14
  import { DbEmptyState } from '@designbasekorea/ui-wc/components/db-empty-state';
@@ -31,6 +32,42 @@ import { DbTextarea } from '@designbasekorea/ui-wc/components/db-textarea';
31
32
  import { DbToast } from '@designbasekorea/ui-wc/components/db-toast';
32
33
  import { DbToggle } from '@designbasekorea/ui-wc/components/db-toggle';
33
34
 
35
+ /**
36
+ * WordPress admin의 반복 레이아웃을 하나의 vanilla Web Component로 제공합니다.
37
+ *
38
+ * `db-admin-shell`은 플러그인/테마가 소유한 화면 내부에서만 사용합니다.
39
+ * 직접 자식인 `db-page-header`는 header로 유지하고 나머지 Light DOM은
40
+ * `db-container`로 감싸므로 PHP 템플릿도 React 패턴과 같은 구조를 사용합니다.
41
+ */
42
+ declare class DbAdminShell extends HTMLElement {
43
+ static get observedAttributes(): string[];
44
+ private originalChildren;
45
+ private mediaQuery;
46
+ private mediaHandler;
47
+ private sidebarOpen;
48
+ private toggleButton;
49
+ connectedCallback(): void;
50
+ disconnectedCallback(): void;
51
+ attributeChangedCallback(): void;
52
+ private captureOriginalChildren;
53
+ private getOriginalElements;
54
+ private getSidebarItems;
55
+ private getSidebarSections;
56
+ private createBrand;
57
+ private createSidebar;
58
+ private createPageHeader;
59
+ private addHeaderToggle;
60
+ private render;
61
+ private getInitialSidebarOpen;
62
+ private setSidebarOpen;
63
+ private bindViewport;
64
+ }
65
+ declare global {
66
+ interface HTMLElementTagNameMap {
67
+ 'db-admin-shell': DbAdminShell;
68
+ }
69
+ }
70
+
34
71
  /**
35
72
  * Public vanilla Web Component surface for WordPress admin screens.
36
73
  *
@@ -40,9 +77,9 @@ import { DbToggle } from '@designbasekorea/ui-wc/components/db-toggle';
40
77
  */
41
78
 
42
79
  /** Components registered by the React-free browser entry. */
43
- declare const REGISTERED_COMPONENTS: (typeof DbAccordion | typeof DbAnimationBackground | typeof DbAlert | typeof DbAvatar | typeof DbBadge | typeof DbBanner | typeof DbBreadcrumbs | typeof DbButton | typeof DbCheckbox | typeof DbChip | typeof DbDrawer | typeof DbDropdown | typeof DbEmptyState | typeof DbInput | typeof DbLogo | typeof DbMenuItem | typeof DbModal | typeof DbPageHeader | typeof DbPagination | typeof DbRadio | typeof DbSearchBar | typeof DbSection | typeof DbSegmentControl | typeof DbSelect | typeof DbSidebar | typeof DbSkeleton | typeof DbSpinner | typeof DbTable | typeof DbTabs | typeof DbTextarea | typeof DbToast | typeof DbToggle)[];
80
+ declare const REGISTERED_COMPONENTS: (typeof DbAccordion | typeof DbAdminShell | typeof DbAnimationBackground | typeof DbAlert | typeof DbAvatar | typeof DbBadge | typeof DbBanner | typeof DbBreadcrumbs | typeof DbButton | typeof DbCheckbox | typeof DbChip | typeof DbDrawer | typeof DbDropdown | typeof DbContainer | typeof DbEmptyState | typeof DbInput | typeof DbLogo | typeof DbMenuItem | typeof DbModal | typeof DbPageHeader | typeof DbPagination | typeof DbRadio | typeof DbSearchBar | typeof DbSection | typeof DbSegmentControl | typeof DbSelect | typeof DbSidebar | typeof DbSkeleton | typeof DbSpinner | typeof DbTable | typeof DbTabs | typeof DbTextarea | typeof DbToast | typeof DbToggle)[];
44
81
 
45
- declare const WORDPRESS_UI_VERSION = "0.1.3";
82
+ declare const WORDPRESS_UI_VERSION = "0.1.5";
46
83
  interface AdminRuntimeOptions {
47
84
  root?: ParentNode;
48
85
  }