@designbasekorea/wordpress-ui 0.1.0 → 0.1.3
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/README.md +59 -5
- package/dist/browser.cjs +1 -1
- package/dist/browser.d.ts +14 -2
- package/dist/browser.esm.js +1 -1
- package/dist/browser.iife.js +1 -1
- package/dist/components.cjs +1 -0
- package/dist/components.d.ts +77 -0
- package/dist/components.esm.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +81 -2
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +62 -142
- package/dist/react/index.esm.js +1 -1
- package/dist/styles/controls.css +1 -1
- package/dist/styles/shell.css +1 -1
- package/dist/styles.css +1 -1
- package/docs/WORDPRESS-ADMIN-GUIDE.md +26 -7
- package/examples/react.tsx +16 -16
- package/examples/vanilla.html +28 -33
- package/package.json +16 -1
package/dist/browser.d.ts
CHANGED
|
@@ -31,8 +31,18 @@ import { DbTextarea } from '@designbasekorea/ui-wc/components/db-textarea';
|
|
|
31
31
|
import { DbToast } from '@designbasekorea/ui-wc/components/db-toast';
|
|
32
32
|
import { DbToggle } from '@designbasekorea/ui-wc/components/db-toggle';
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Public vanilla Web Component surface for WordPress admin screens.
|
|
36
|
+
*
|
|
37
|
+
* `@designbasekorea/ui-wc` is an implementation dependency of this package.
|
|
38
|
+
* Consumers should import these primitives from `wordpress-ui` so registration,
|
|
39
|
+
* styles, icons, and the WordPress admin scope stay under one contract.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/** Components registered by the React-free browser entry. */
|
|
34
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)[];
|
|
35
|
-
|
|
44
|
+
|
|
45
|
+
declare const WORDPRESS_UI_VERSION = "0.1.3";
|
|
36
46
|
interface AdminRuntimeOptions {
|
|
37
47
|
root?: ParentNode;
|
|
38
48
|
}
|
|
@@ -71,6 +81,8 @@ interface WordPressUIRuntime {
|
|
|
71
81
|
showConfirmModal(options?: WordPressConfirmOptions | string): Promise<boolean>;
|
|
72
82
|
closeAllModals(): void;
|
|
73
83
|
}
|
|
84
|
+
declare const runtime: WordPressUIRuntime;
|
|
85
|
+
|
|
74
86
|
declare function defineWordPressUI(options?: AdminRuntimeOptions): WordPressUIRuntime;
|
|
75
87
|
declare global {
|
|
76
88
|
interface Window {
|
|
@@ -78,5 +90,5 @@ declare global {
|
|
|
78
90
|
}
|
|
79
91
|
}
|
|
80
92
|
|
|
81
|
-
export { REGISTERED_COMPONENTS, WORDPRESS_UI_VERSION, defineWordPressUI };
|
|
93
|
+
export { REGISTERED_COMPONENTS, WORDPRESS_UI_VERSION, runtime as default, defineWordPressUI };
|
|
82
94
|
export type { AdminRuntimeOptions, WordPressConfirmOptions, WordPressModalOptions, WordPressToastOptions, WordPressToastVariant, WordPressUIRuntime };
|