@oslokommune/punkt-react 16.7.0 → 16.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "16.7.0",
3
+ "version": "16.7.2",
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": "^16.7.0",
42
+ "@oslokommune/punkt-elements": "^16.7.1",
43
43
  "classnames": "^2.5.1",
44
44
  "prettier": "^3.3.3",
45
45
  "react-hook-form": "^7.53.0"
@@ -50,7 +50,7 @@
50
50
  "@eslint/eslintrc": "^3.3.3",
51
51
  "@eslint/js": "^9.37.0",
52
52
  "@oslokommune/punkt-assets": "^16.0.0",
53
- "@oslokommune/punkt-css": "^16.7.0",
53
+ "@oslokommune/punkt-css": "^16.7.2",
54
54
  "@testing-library/jest-dom": "^6.5.0",
55
55
  "@testing-library/react": "^16.0.1",
56
56
  "@testing-library/user-event": "^14.5.2",
@@ -109,5 +109,5 @@
109
109
  "url": "https://github.com/oslokommune/punkt/issues"
110
110
  },
111
111
  "license": "MIT",
112
- "gitHead": "782a591e43ea062ca4ef23fe5415aca5f2d523b5"
112
+ "gitHead": "faea83c2082eb3fcdbf73da603fb76a852d8e2c1"
113
113
  }
@@ -468,7 +468,7 @@ export const PktHeaderService = forwardRef(
468
468
  </>
469
469
  )}
470
470
 
471
- {isTablet && logOut && (logOutButtonPlacement === 'header' || logOutButtonPlacement === 'both') && (
471
+ {isMobile && logOut && (logOutButtonPlacement === 'header' || logOutButtonPlacement === 'both') && (
472
472
  <PktButton
473
473
  skin="secondary"
474
474
  size={isMobile ? 'small' : 'medium'}
@@ -79,7 +79,14 @@ export const PktTimepicker = forwardRef<HTMLDivElement, IPktTimepicker>((props,
79
79
  )
80
80
 
81
81
  const renderContainer = () => (
82
- <div className="pkt-input__container">
82
+ <div
83
+ className="pkt-input__container"
84
+ onClick={(e) => {
85
+ const target = e.target as HTMLElement
86
+ if (target.closest('button, input')) return
87
+ state.hoursInputRef.current?.focus()
88
+ }}
89
+ >
83
90
  {state.stepArrows && (
84
91
  <button
85
92
  type="button"