@lax-wp/design-system 0.3.31 → 0.3.32
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/design-system.css +1 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.es.js +13480 -19489
- package/dist/index.umd.js +55 -59
- package/package.json +1 -1
- package/dist/components/buttons/more-button/MoreButton.d.ts +0 -58
- package/dist/components/buttons/more-button/index.d.ts +0 -2
- package/dist/components/buttons/tab-drag-overlay/TabDragOverlay.d.ts +0 -12
- package/dist/components/navigation/tab-switch/Children.d.ts +0 -3
- package/dist/components/navigation/tab-switch/TabSwitch.d.ts +0 -12
- package/dist/components/navigation/tab-switch/index.d.ts +0 -4
- package/dist/components/navigation/tab-switch/types.d.ts +0 -59
- package/dist/components/navigation/tab-switch/useResolveTo.d.ts +0 -2
- package/dist/components/navigation/tabs/DropableWrapper.d.ts +0 -27
- package/dist/components/navigation/tabs/SortableTab.d.ts +0 -27
- package/dist/components/navigation/tabs/Tabs.d.ts +0 -158
- package/dist/components/navigation/tabs/index.d.ts +0 -5
- package/dist/components/navigation/tabs/types.d.ts +0 -108
- package/dist/components/navigation-2/Children.d.ts +0 -3
- package/dist/components/navigation-2/DropableWrapper.d.ts +0 -6
- package/dist/components/navigation-2/MoreButton.d.ts +0 -14
- package/dist/components/navigation-2/SortableTab.d.ts +0 -9
- package/dist/components/navigation-2/TabDragOverlay.d.ts +0 -13
- package/dist/components/navigation-2/TabSwitch.d.ts +0 -15
- package/dist/components/navigation-2/Tabs.d.ts +0 -75
- package/dist/components/navigation-2/Tooltip.d.ts +0 -13
- package/dist/components/navigation-2/index.d.ts +0 -5
- package/dist/components/navigation-2/types.d.ts +0 -65
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type TabVariant = 'default' | 'secondary' | 'switch';
|
|
3
|
-
export type TBaseTabProps<T extends string> = {
|
|
4
|
-
tabs: readonly T[];
|
|
5
|
-
initialHiddenTabs?: readonly T[];
|
|
6
|
-
activeTab: T;
|
|
7
|
-
onTabClick?(id: T): void;
|
|
8
|
-
counts?: Record<T, number>;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
tabIcons?: Record<string, ReactNode>;
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
className?: string;
|
|
13
|
-
title?: string;
|
|
14
|
-
iconsOnly?: boolean;
|
|
15
|
-
draggable?: boolean;
|
|
16
|
-
variant?: TabVariant;
|
|
17
|
-
fullWidth?: boolean;
|
|
18
|
-
color?: 'light' | 'dark';
|
|
19
|
-
};
|
|
20
|
-
export type Tab<T extends string> = {
|
|
21
|
-
name: T;
|
|
22
|
-
is_default: boolean;
|
|
23
|
-
is_hidden: boolean;
|
|
24
|
-
is_pinned?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export type TSize = 'sm' | 'md' | '';
|
|
27
|
-
export type TSuffixRecord<T extends string = string, V = string> = Record<T, V>;
|
|
28
|
-
export type TResolveToConfig = {
|
|
29
|
-
key: string;
|
|
30
|
-
defaultLink: string;
|
|
31
|
-
resolver?(title?: string): string;
|
|
32
|
-
onResolve?(searchParams?: URLSearchParams): void;
|
|
33
|
-
};
|
|
34
|
-
export type TPassedProps<T extends string = string> = {
|
|
35
|
-
linkConfig?: TResolveToConfig;
|
|
36
|
-
size?: TSize;
|
|
37
|
-
suffixRecord?: TSuffixRecord<T>;
|
|
38
|
-
};
|
|
39
|
-
export type TSharedProps = TPassedProps & {
|
|
40
|
-
onClick?(): void;
|
|
41
|
-
size?: TSize;
|
|
42
|
-
classValue: string;
|
|
43
|
-
selectedClassValue: string;
|
|
44
|
-
textClassValue: string;
|
|
45
|
-
isSelected?: boolean;
|
|
46
|
-
selectedId?: string;
|
|
47
|
-
icon?: ReactNode;
|
|
48
|
-
title?: string;
|
|
49
|
-
};
|
|
50
|
-
export type TChildrenProps = Pick<TSharedProps, 'isSelected' | 'selectedClassValue' | 'textClassValue' | 'selectedId'> & {
|
|
51
|
-
children: ReactNode;
|
|
52
|
-
disableAnimation?: boolean;
|
|
53
|
-
color?: string;
|
|
54
|
-
};
|
|
55
|
-
export declare const TYPES: readonly ["link", "button"];
|
|
56
|
-
export type TTypeKey = (typeof TYPES)[number];
|
|
57
|
-
export type TSwitchProps<T extends TTypeKey = 'button'> = TSharedProps & {
|
|
58
|
-
link?: any;
|
|
59
|
-
button?: any;
|
|
60
|
-
activeTab?: string;
|
|
61
|
-
iconsOnly?: boolean;
|
|
62
|
-
draggingTab?: boolean;
|
|
63
|
-
disableAnimation?: boolean;
|
|
64
|
-
tabOptions?: ReactNode;
|
|
65
|
-
};
|