@lax-wp/design-system 0.8.0 → 0.8.2
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/components/navigation/tabs/MoreButton.d.ts +2 -2
- package/dist/components/navigation/tabs/TabDragOverlay.d.ts +3 -3
- package/dist/components/navigation/tabs/TabSwitch.d.ts +1 -2
- package/dist/components/navigation/tabs/Tabs.d.ts +1 -1
- package/dist/components/navigation/tabs/icons/TrashIcon.d.ts +2 -0
- package/dist/components/navigation/tabs/icons/index.d.ts +1 -0
- package/dist/components/navigation/tabs/index.d.ts +6 -0
- package/dist/components/navigation/tabs/types.d.ts +13 -4
- package/dist/index.es.js +7047 -7024
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +30 -30
- package/dist/index.umd.js.map +1 -1
- package/dist/providers/design-system-provider/DesignSystemProvider.d.ts +7 -0
- package/dist/providers/design-system-provider/context.d.ts +2 -0
- package/dist/providers/design-system-provider/hooks.d.ts +5 -0
- package/dist/providers/design-system-provider/index.d.ts +3 -0
- package/dist/providers/{DesignSystemProvider.d.ts → design-system-provider/types.d.ts} +1 -10
- package/dist/providers/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/navigation/tabs/icons/PinIcon.d.ts +0 -7
- package/dist/components/navigation/tabs/icons/UnpinIcon.d.ts +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { DesignSystemConfig } from './types';
|
|
3
|
+
export type { TabConfig, DesignSystemConfig } from './types';
|
|
4
|
+
export declare const DesignSystemProvider: ({ config, children, }: {
|
|
5
|
+
config: DesignSystemConfig;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DesignSystemConfig, TabConfig } from './types';
|
|
2
|
+
/** Returns the full design system config, or undefined if no provider */
|
|
3
|
+
export declare const useDesignSystem: () => DesignSystemConfig | undefined;
|
|
4
|
+
/** Convenience hook — returns the tab config, or undefined if no provider */
|
|
5
|
+
export declare const useTabConfig: () => TabConfig | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { Tab, TabOptionConfig } from '../components/navigation/tabs/types';
|
|
1
|
+
import type { Tab, TabOptionConfig } from '../../components/navigation/tabs/types';
|
|
3
2
|
export type TabConfig = {
|
|
4
3
|
/** Look up persisted tab settings by key (e.g. from Redux/API) */
|
|
5
4
|
getTabSettings: (tabKey: string) => {
|
|
@@ -22,11 +21,3 @@ export type DesignSystemConfig = {
|
|
|
22
21
|
table?: Record<string, unknown>;
|
|
23
22
|
theme?: Record<string, unknown>;
|
|
24
23
|
};
|
|
25
|
-
export declare const DesignSystemProvider: ({ config, children, }: {
|
|
26
|
-
config: DesignSystemConfig;
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
/** Returns the full design system config, or undefined if no provider */
|
|
30
|
-
export declare const useDesignSystem: () => DesignSystemConfig | undefined;
|
|
31
|
-
/** Convenience hook — returns the tab config, or undefined if no provider */
|
|
32
|
-
export declare const useTabConfig: () => TabConfig | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DesignSystemProvider, useDesignSystem, useTabConfig
|
|
2
|
-
export type { DesignSystemConfig, TabConfig } from './
|
|
1
|
+
export { DesignSystemProvider, useDesignSystem, useTabConfig } from './design-system-provider';
|
|
2
|
+
export type { DesignSystemConfig, TabConfig } from './design-system-provider';
|
package/package.json
CHANGED