@oslokommune/punkt-react 14.3.0 → 14.4.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/index.d.ts +2 -0
- package/dist/punkt-react.es.js +3160 -2990
- package/dist/punkt-react.umd.js +205 -205
- package/package.json +3 -3
- package/src/components/header/HeaderService.tsx +2 -0
- package/src/components/header/types.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-react",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.0",
|
|
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",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@lit-labs/ssr-dom-shim": "^1.2.1",
|
|
41
41
|
"@lit/react": "^1.0.7",
|
|
42
|
-
"@oslokommune/punkt-elements": "^14.
|
|
42
|
+
"@oslokommune/punkt-elements": "^14.4.0",
|
|
43
43
|
"classnames": "^2.5.1",
|
|
44
44
|
"prettier": "^3.3.3",
|
|
45
45
|
"react-hook-form": "^7.53.0"
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
104
104
|
},
|
|
105
105
|
"license": "MIT",
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "60b409e10bc60371f696d76a84ce6e0d25cb225a"
|
|
107
107
|
}
|
|
@@ -20,6 +20,7 @@ export const PktHeaderService = forwardRef(
|
|
|
20
20
|
mobileBreakpoint = 768,
|
|
21
21
|
tabletBreakpoint = 1280,
|
|
22
22
|
children,
|
|
23
|
+
className,
|
|
23
24
|
compact = false,
|
|
24
25
|
'data-mode': dataMode,
|
|
25
26
|
logOutButtonPlacement = 'none',
|
|
@@ -278,6 +279,7 @@ export const PktHeaderService = forwardRef(
|
|
|
278
279
|
isFixed && 'pkt-header-service--fixed',
|
|
279
280
|
shouldHideOnScroll && 'pkt-header-service--scroll-to-hide',
|
|
280
281
|
hidden && 'pkt-header-service--hidden',
|
|
282
|
+
className,
|
|
281
283
|
)}
|
|
282
284
|
data-mode={dataMode}
|
|
283
285
|
ref={setRefs}
|
|
@@ -46,6 +46,8 @@ export interface UserMenuFooterItem {
|
|
|
46
46
|
|
|
47
47
|
export interface IPktHeader {
|
|
48
48
|
children?: React.ReactNode
|
|
49
|
+
/** Additional CSS class name(s) to apply to the header */
|
|
50
|
+
className?: string
|
|
49
51
|
/** Set dark mode on the header */
|
|
50
52
|
'data-mode'?: 'dark'
|
|
51
53
|
/** Hide the Oslo logo. Default: false (logo is shown) */
|