@lax-wp/design-system 0.3.0 → 0.3.1
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/Tabs.d.ts +8 -1
- package/dist/index.es.js +5939 -5937
- package/dist/index.umd.js +85 -85
- package/package.json +1 -1
|
@@ -118,6 +118,13 @@ export type TabsProps<T extends string> = TBaseTabProps<T> & TPassedProps & {
|
|
|
118
118
|
useEventListener?: (event: string, handler: () => void) => void;
|
|
119
119
|
/** External components required by Tabs */
|
|
120
120
|
components: TabsExternalComponents;
|
|
121
|
+
/** Navigation function (optional, required if linkConfig is provided) */
|
|
122
|
+
navigate?: (options: {
|
|
123
|
+
pathname: string;
|
|
124
|
+
search: string;
|
|
125
|
+
}) => void;
|
|
126
|
+
/** Search params (optional, used with linkConfig) */
|
|
127
|
+
searchParams?: URLSearchParams;
|
|
121
128
|
};
|
|
122
129
|
/**
|
|
123
130
|
* Tabs Component
|
|
@@ -152,4 +159,4 @@ export type TabsProps<T extends string> = TBaseTabProps<T> & TPassedProps & {
|
|
|
152
159
|
* />
|
|
153
160
|
* ```
|
|
154
161
|
*/
|
|
155
|
-
export declare const Tabs: <T extends string>({ variant, linkConfig, tabs, activeTab, onTabClick, suffixRecord, isLoading, size, className, draggable, tabKey, parentContainer, showAllItems, copyLink, isDisabled, color, iconsOnly, tabIcons, height, fullWidth, fitContentWidth, onDelete, onEdit, allowPin, sortAlphabetically, rightSection, contextProps, selectTabSetting, setTabSettingsAction, utilServices, dispatch, systemMessages, formatNumber, randomHexString, useEventListener, components, }: TabsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
162
|
+
export declare const Tabs: <T extends string>({ variant, linkConfig, tabs, activeTab, onTabClick, suffixRecord, isLoading, size, className, draggable, tabKey, parentContainer, showAllItems, copyLink, isDisabled, color, iconsOnly, tabIcons, height, fullWidth, fitContentWidth, onDelete, onEdit, allowPin, sortAlphabetically, rightSection, contextProps, selectTabSetting, setTabSettingsAction, utilServices, dispatch, systemMessages, formatNumber, randomHexString, useEventListener, components, navigate: navigateProp, searchParams: searchParamsProp, }: TabsProps<T>) => import("react/jsx-runtime").JSX.Element;
|