@lax-wp/design-system 0.8.1 → 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 +2 -2
- 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 +2 -0
- package/dist/index.es.js +4225 -4228
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +30 -30
- package/dist/index.umd.js.map +1 -1
- 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
|
@@ -9,5 +9,5 @@ type MoreButtonProps = {
|
|
|
9
9
|
selectedId: string;
|
|
10
10
|
suffixRecord?: SuffixRecord;
|
|
11
11
|
};
|
|
12
|
-
declare const MoreButton: ({ variant, size, draggingOver, title, showMoreDropdown, handleShowMoreDropdown, selectedId, suffixRecord, }: MoreButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export
|
|
12
|
+
export declare const MoreButton: ({ variant, size, draggingOver, title, showMoreDropdown, handleShowMoreDropdown, selectedId, suffixRecord, }: MoreButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -7,5 +7,5 @@ type TabDragOverlayProps = {
|
|
|
7
7
|
selectedId: string;
|
|
8
8
|
parentContainer?: HTMLElement | null;
|
|
9
9
|
};
|
|
10
|
-
declare const TabDragOverlay: ({ draggingTab, suffixRecord, size, variant, selectedId, parentContainer, }: TabDragOverlayProps) => import("react").ReactPortal;
|
|
11
|
-
export
|
|
10
|
+
export declare const TabDragOverlay: ({ draggingTab, suffixRecord, size, variant, selectedId, parentContainer, }: TabDragOverlayProps) => import("react").ReactPortal;
|
|
11
|
+
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import type { TabSwitchProps } from './types';
|
|
2
|
-
declare const TabSwitch: ({ showCounts, title, icon, suffixRecord, classValue, isSelected, selectedClassValue, textClassValue, selectedId, iconsOnly, draggingTab, disableAnimation, tabOptions, color, href, onClick, }: TabSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default TabSwitch;
|
|
2
|
+
export declare const TabSwitch: ({ showCounts, title, icon, suffixRecord, classValue, isSelected, selectedClassValue, textClassValue, selectedId, iconsOnly, draggingTab, disableAnimation, tabOptions, color, href, onClick, }: TabSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { TabsProps } from './types';
|
|
2
|
-
export declare const Tabs: <T extends string>({ variant, tabs, activeTab, onTabClick, suffixRecord, isLoading, size, className, draggable, showAllItems, copyLink, isDisabled, color, iconsOnly, tabIcons, height, fullWidth, fitContentWidth, disableAnimation, onDelete, onCopyLink, allowPin, isFullWidth, rightSection, initialTabs: initialTabsProp, tabConfig: tabConfigProp, onTabConfigChange, onTabsChange, parentContainer, tabKey, linkConfig, }: TabsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Tabs: <T extends string>({ variant, tabs, activeTab, onTabClick, suffixRecord, isLoading, size, className, draggable, showAllItems, copyLink, isDisabled, color, iconsOnly, tabIcons, height, fullWidth, fitContentWidth, disableAnimation, onEdit, onDelete, onCopyLink, allowPin, isFullWidth, rightSection, initialTabs: initialTabsProp, tabConfig: tabConfigProp, onTabConfigChange, onTabsChange, parentContainer, tabKey, linkConfig, }: TabsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TrashIcon';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export { Tabs } from './Tabs';
|
|
2
|
+
export { DropableWrapper } from './DropableWrapper';
|
|
3
|
+
export { MoreButton } from './MoreButton';
|
|
4
|
+
export { SortableTab } from './SortableTab';
|
|
5
|
+
export { TabDragOverlay } from './TabDragOverlay';
|
|
6
|
+
export { TabOptions } from './TabOptions';
|
|
7
|
+
export { TabSwitch } from './TabSwitch';
|
|
2
8
|
export type { TabsProps, TabVariant, TabSize, Tab, TabOptionConfig, SuffixRecord, } from './types';
|
|
3
9
|
export { INITIAL_TAB_OPTION_CONFIG } from './types';
|
|
@@ -73,6 +73,8 @@ export type TabsProps<T extends string> = {
|
|
|
73
73
|
/** Show copy link option in tab context menu.
|
|
74
74
|
* Automatically enabled when `linkConfig` is provided. */
|
|
75
75
|
copyLink?: boolean;
|
|
76
|
+
/** Callback when a tab is edited — when provided, shows an "Edit" option in the tab context menu */
|
|
77
|
+
onEdit?(name: T): void;
|
|
76
78
|
/** Callback when a tab is deleted */
|
|
77
79
|
onDelete?(name: T): void;
|
|
78
80
|
/** Called after the tab link is copied to the clipboard.
|