@oslokommune/punkt-react 13.13.0 → 13.13.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": "13.13.0",
3
+ "version": "13.13.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": "^13.13.0",
42
+ "@oslokommune/punkt-elements": "^13.13.2",
43
43
  "classnames": "^2.5.1",
44
44
  "prettier": "^3.3.3",
45
45
  "react-element-to-jsx-string": "^15.0.0",
@@ -49,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "@babel/plugin-transform-private-property-in-object": "^7.25.9",
51
51
  "@oslokommune/punkt-assets": "^13.11.0",
52
- "@oslokommune/punkt-css": "^13.13.0",
52
+ "@oslokommune/punkt-css": "^13.13.2",
53
53
  "@testing-library/jest-dom": "^6.5.0",
54
54
  "@testing-library/react": "^16.0.1",
55
55
  "@testing-library/user-event": "^14.5.2",
@@ -106,5 +106,5 @@
106
106
  "url": "https://github.com/oslokommune/punkt/issues"
107
107
  },
108
108
  "license": "MIT",
109
- "gitHead": "dfda73999cbdf688f04f4fce0240779bd4fed111"
109
+ "gitHead": "7707f0d8e3d999702c6b5bf2d4986d8b75307ffb"
110
110
  }
@@ -16,6 +16,8 @@ export interface IPktButton extends ButtonHTMLAttributes<HTMLButtonElement> {
16
16
  secondIconName?: string
17
17
  mode?: 'light' | 'dark'
18
18
  size?: 'small' | 'medium' | 'large'
19
+ fullWidth?: boolean
20
+ fullWidthOnMobile?: boolean
19
21
  color?:
20
22
  | 'blue'
21
23
  | 'blue-outline'
@@ -45,6 +47,8 @@ export const PktButton = forwardRef(
45
47
  iconName = 'user',
46
48
  secondIconName = 'user',
47
49
  size = 'medium',
50
+ fullWidth = false,
51
+ fullWidthOnMobile = false,
48
52
  skin = 'primary',
49
53
  type = 'button',
50
54
  variant = 'label-only',
@@ -61,6 +65,8 @@ export const PktButton = forwardRef(
61
65
  className,
62
66
  'pkt-btn',
63
67
  size && `pkt-btn--${size}`,
68
+ fullWidth && 'pkt-btn--full',
69
+ fullWidthOnMobile && 'pkt-btn--full-small',
64
70
  skin && `pkt-btn--${skin}`,
65
71
  variant && `pkt-btn--${variant}`,
66
72
  color && `pkt-btn--${color}`,