@oslokommune/punkt-react 16.17.3 → 16.17.4
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/index.d.ts +4 -9
- package/dist/shared-types/index.d.ts +1 -1
- package/dist/shared-types/skin.d.ts +4 -0
- package/package.json +2 -2
- package/src/components/card/Card.tsx +1 -3
- package/src/components/tabs/TabItem.tsx +4 -4
- package/src/components/tabs/Tabs.tsx +3 -3
- package/src/components/tag/Tag.tsx +3 -1
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
|
+
## [16.17.4](https://github.com/oslokommune/punkt/compare/16.17.3...16.17.4) (2026-05-28)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
* legg til TTagSkin-type i shared-types (#3498).
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [16.17.3](https://github.com/oslokommune/punkt/compare/16.17.2...16.17.3) (2026-05-27)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -54,9 +54,10 @@ import { TProgressbarStatusPlacement } from './shared-types';
|
|
|
54
54
|
import { TProgressbarStatusType } from './shared-types';
|
|
55
55
|
import { TProgressbarTitlePosition } from './shared-types';
|
|
56
56
|
import { TSlotMenuVariant } from './shared-types';
|
|
57
|
+
import { TTagSkin } from './shared-types';
|
|
57
58
|
|
|
58
59
|
declare interface BasePktTagProps {
|
|
59
|
-
skin?:
|
|
60
|
+
skin?: TTagSkin;
|
|
60
61
|
textStyle?: 'normal-text' | 'thin-text';
|
|
61
62
|
size?: 'small' | 'medium' | 'large';
|
|
62
63
|
closeTag?: boolean;
|
|
@@ -766,7 +767,7 @@ export declare interface IPktTab {
|
|
|
766
767
|
controls?: string;
|
|
767
768
|
tag?: {
|
|
768
769
|
text: string;
|
|
769
|
-
skin:
|
|
770
|
+
skin: TTagSkin | undefined;
|
|
770
771
|
};
|
|
771
772
|
active?: boolean;
|
|
772
773
|
}
|
|
@@ -780,7 +781,7 @@ declare interface IPktTabItem {
|
|
|
780
781
|
icon?: string;
|
|
781
782
|
controls?: string;
|
|
782
783
|
tag?: string;
|
|
783
|
-
tagSkin?:
|
|
784
|
+
tagSkin?: TTagSkin;
|
|
784
785
|
index?: number;
|
|
785
786
|
}
|
|
786
787
|
|
|
@@ -1281,14 +1282,8 @@ export declare type TQueueOperationContext = {
|
|
|
1281
1282
|
|
|
1282
1283
|
declare type TQueueOperationLabel = string | ((fileItem: FileItem) => string);
|
|
1283
1284
|
|
|
1284
|
-
declare type TSkin = 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray' | 'blue-light';
|
|
1285
|
-
|
|
1286
|
-
declare type TSkin_2 = IPktTag['skin'];
|
|
1287
|
-
|
|
1288
1285
|
declare type TStepStatus = 'completed' | 'incomplete' | 'current';
|
|
1289
1286
|
|
|
1290
|
-
declare type TTagSkin = 'blue' | 'blue-light' | 'blue-dark' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray';
|
|
1291
|
-
|
|
1292
1287
|
export declare type TTransferItemInProgress = TFileAndTransfer & {
|
|
1293
1288
|
progress: number;
|
|
1294
1289
|
};
|
|
@@ -9,7 +9,7 @@ export { DEFAULT_HEADER_FOOTER_URL } from './header-menu';
|
|
|
9
9
|
export type { TLayout, TVerticalPosition, THorizontalPosition, TPosition, TPositionWithCenter, } from './layout';
|
|
10
10
|
export type { THTMLButtonType, TSelectionMode } from './form';
|
|
11
11
|
export type { TSize3, TSize5, TSize7 } from './size';
|
|
12
|
-
export type { TAlertSkin, TMessageboxSkin, TAccordionSkin, TCardSkin } from './skin';
|
|
12
|
+
export type { TAlertSkin, TMessageboxSkin, TAccordionSkin, TCardSkin, TTagSkin } from './skin';
|
|
13
13
|
export type { IDateConstraints, ICalendarGridDimensions, IGridCellPosition, TDateRangeMap, ISelectionState, ISelectionOptions, } from './calendar';
|
|
14
14
|
export type { IDatepickerStrings } from './datepicker';
|
|
15
15
|
export { defaultSingleStrings, defaultRangeStrings } from './datepicker';
|
|
@@ -22,3 +22,7 @@ export type TAccordionSkin = 'borderless' | 'outlined' | 'beige' | 'blue' | 'plu
|
|
|
22
22
|
* Card component skin variants
|
|
23
23
|
*/
|
|
24
24
|
export type TCardSkin = 'outlined' | 'outlined-beige' | 'gray' | 'beige' | 'green' | 'blue';
|
|
25
|
+
/**
|
|
26
|
+
* Tag component skin variants
|
|
27
|
+
*/
|
|
28
|
+
export type TTagSkin = 'blue' | 'blue-light' | 'blue-dark' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-react",
|
|
3
|
-
"version": "16.17.
|
|
3
|
+
"version": "16.17.4",
|
|
4
4
|
"description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
110
110
|
},
|
|
111
111
|
"license": "MIT",
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "28b1f5b48d08a18a1b237b2220f9f1f1e88a5b7f"
|
|
113
113
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames'
|
|
4
4
|
import { forwardRef, HTMLAttributes, ReactNode, Ref } from 'react'
|
|
5
|
-
import type { TCardSkin, TLayout } from 'shared-types'
|
|
5
|
+
import type { TCardSkin, TLayout, TTagSkin } from 'shared-types'
|
|
6
6
|
|
|
7
7
|
import { PktTag } from '../tag/Tag'
|
|
8
8
|
|
|
@@ -12,8 +12,6 @@ type TCardImageShape = 'square' | 'round'
|
|
|
12
12
|
type TCardTagPosition = 'top' | 'bottom'
|
|
13
13
|
type THeadingLevel = 1 | 2 | 3 | 4 | 5 | 6
|
|
14
14
|
|
|
15
|
-
type TTagSkin = 'blue' | 'blue-light' | 'blue-dark' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray'
|
|
16
|
-
|
|
17
15
|
interface ICardTag {
|
|
18
16
|
skin?: TTagSkin
|
|
19
17
|
iconName?: string
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { forwardRef, type KeyboardEvent, type MouseEvent, type ReactNode } from 'react'
|
|
4
4
|
|
|
5
5
|
import { PktIcon } from '../icon/Icon'
|
|
6
|
-
import
|
|
7
|
-
import { useTabsContext } from './Tabs'
|
|
6
|
+
import type { TTagSkin } from 'shared-types'
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
import { PktTag } from '../tag/Tag'
|
|
9
|
+
import { useTabsContext } from './Tabs'
|
|
10
10
|
|
|
11
11
|
export interface IPktTabItem {
|
|
12
12
|
children: ReactNode
|
|
@@ -17,7 +17,7 @@ export interface IPktTabItem {
|
|
|
17
17
|
icon?: string
|
|
18
18
|
controls?: string
|
|
19
19
|
tag?: string
|
|
20
|
-
tagSkin?:
|
|
20
|
+
tagSkin?: TTagSkin
|
|
21
21
|
index?: number
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
useRef,
|
|
13
13
|
} from 'react'
|
|
14
14
|
|
|
15
|
+
import type { TTagSkin } from 'shared-types'
|
|
16
|
+
|
|
15
17
|
import { PktIcon } from '../icon/Icon'
|
|
16
18
|
import { PktTabItem } from './TabItem'
|
|
17
19
|
|
|
18
|
-
export type TSkin = 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray' | 'blue-light'
|
|
19
|
-
|
|
20
20
|
// Context for passing tab navigation logic to children
|
|
21
21
|
interface ITabsContext {
|
|
22
22
|
arrowNav: boolean
|
|
@@ -48,7 +48,7 @@ export interface IPktTab {
|
|
|
48
48
|
controls?: string
|
|
49
49
|
tag?: {
|
|
50
50
|
text: string
|
|
51
|
-
skin:
|
|
51
|
+
skin: TTagSkin | undefined
|
|
52
52
|
}
|
|
53
53
|
active?: boolean
|
|
54
54
|
}
|
|
@@ -14,10 +14,12 @@ import {
|
|
|
14
14
|
useState,
|
|
15
15
|
} from 'react'
|
|
16
16
|
|
|
17
|
+
import type { TTagSkin } from 'shared-types'
|
|
18
|
+
|
|
17
19
|
import { PktIcon } from '..'
|
|
18
20
|
|
|
19
21
|
interface BasePktTagProps {
|
|
20
|
-
skin?:
|
|
22
|
+
skin?: TTagSkin
|
|
21
23
|
textStyle?: 'normal-text' | 'thin-text'
|
|
22
24
|
size?: 'small' | 'medium' | 'large'
|
|
23
25
|
closeTag?: boolean
|