@oslokommune/punkt-react 11.1.0 → 11.2.0
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/CHANGELOG.md +18 -0
- package/dist/components/icon/DefaultIconFetcher.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/tabs/Tabs.d.ts +20 -0
- package/dist/components/tabs/Tabs.test.d.ts +0 -0
- package/dist/punkt-react.es.js +859 -803
- package/dist/punkt-react.umd.js +13 -13
- package/package.json +3 -3
- package/src/components/index.ts +1 -0
- package/src/components/tabs/Tabs.test.tsx +57 -0
- package/src/components/tabs/Tabs.tsx +108 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [11.2.0](https://github.com/oslokommune/punkt/compare/11.1.1...11.2.0) (2024-01-25)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Tabs (#1435).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [11.0.0](https://github.com/oslokommune/punkt/compare/10.0.0...11.0.0) (2023-12-20)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconFetcher } from "./IconContext";
|
|
2
|
-
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.
|
|
2
|
+
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.2/icons/";
|
|
3
3
|
declare const defaultIconFetcher: IconFetcher;
|
|
4
4
|
export default defaultIconFetcher;
|
|
@@ -18,6 +18,7 @@ export { PktSelect } from './select/Select';
|
|
|
18
18
|
export { PktTable } from './table/Table';
|
|
19
19
|
export { PktTableData } from './table/TableData';
|
|
20
20
|
export { PktTableHeader } from './table/TableHeader';
|
|
21
|
+
export { PktTabs } from './tabs/Tabs';
|
|
21
22
|
export { PktTag } from './tag/Tag';
|
|
22
23
|
export { PktTextarea } from './textarea/Textarea';
|
|
23
24
|
export { PktTextinput } from './textinput/Textinput';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TSkin = 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'blue-light';
|
|
3
|
+
export interface Tab {
|
|
4
|
+
text: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
action?: (index: number) => void;
|
|
7
|
+
icon?: string;
|
|
8
|
+
controls?: string;
|
|
9
|
+
tag?: {
|
|
10
|
+
text: string;
|
|
11
|
+
skin: TSkin | undefined;
|
|
12
|
+
};
|
|
13
|
+
active?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ITabs {
|
|
16
|
+
arrowNav?: boolean;
|
|
17
|
+
tabs: Tab[];
|
|
18
|
+
onTabSelected?: (index: number) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const PktTabs: React.ForwardRefExoticComponent<ITabs & React.RefAttributes<HTMLDivElement>>;
|
|
File without changes
|