@apolitical/component-library 1.14.13 → 1.14.15
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/index.js +13 -13
- package/index.mjs +1104 -1048
- package/navigation/index.d.ts +1 -0
- package/navigation/tabs/index.d.ts +1 -0
- package/navigation/tabs/tabs.d.ts +21 -0
- package/navigation/tabs/tabs.mocks.d.ts +14 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_layout.scss +2 -0
- package/styles/variables/colors/_theme.scss +5 -0
- package/testing/helpers.d.ts +1 -1
package/navigation/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tabs } from './tabs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TabType {
|
|
3
|
+
/** An ID for the tab - this is used to create an anchor on the page */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** The text to show for the tab */
|
|
6
|
+
text: string;
|
|
7
|
+
/** The content to show for the tab */
|
|
8
|
+
content?: React.ReactNode | JSX.Element;
|
|
9
|
+
/** The link to use for the tab, if `content` has not been provided */
|
|
10
|
+
href?: string;
|
|
11
|
+
/** Whether the tab is the current selected tab */
|
|
12
|
+
current?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
/** The tab details */
|
|
16
|
+
tabs: TabType[];
|
|
17
|
+
/** Additional classes */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Tabs: ({ tabs, className }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default Tabs;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
tabs: ({
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
href?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
id: string;
|
|
9
|
+
text: string;
|
|
10
|
+
href: string;
|
|
11
|
+
content?: undefined;
|
|
12
|
+
})[];
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|