@oslokommune/punkt-react 11.13.0 → 11.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/CHANGELOG.md CHANGED
@@ -5,6 +5,28 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [11.13.1](https://github.com/oslokommune/punkt/compare/11.13.0...11.13.1) (2024-05-23)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * Ekstern lenke over flere lenker viser ikke ikon rett, pluss grønn LinkCard (#1687). * fix(css): Ekstern lenke over flere lenker viser ikke ikon rett
18
+
19
+ * chore(css,react,vue): Støtte for grønn bakgrunn i LinkCard
20
+
21
+ * chore(docs): Legg til ny LinkCard-farge i docs
22
+
23
+
24
+ ### Chores
25
+ Ingen
26
+
27
+ ---
28
+
29
+
8
30
  ## [11.13.0](https://github.com/oslokommune/punkt/compare/11.12.8...11.13.0) (2024-05-22)
9
31
 
10
32
  ### ⚠ BREAKING CHANGES
@@ -1,7 +1,7 @@
1
1
  import { default as React } from '../../../node_modules/@types/react';
2
2
 
3
3
  export interface IPktLinkCard extends React.HTMLAttributes<HTMLAnchorElement> {
4
- skin?: 'normal' | 'blue' | 'beige' | 'beige-outline' | 'grey-outline';
4
+ skin?: 'normal' | 'blue' | 'beige' | 'beige-outline' | 'green' | 'grey-outline';
5
5
  title?: string;
6
6
  href?: string;
7
7
  iconName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "11.13.0",
3
+ "version": "11.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",
@@ -32,8 +32,8 @@
32
32
  "test": "react-scripts test --env=jsdom"
33
33
  },
34
34
  "devDependencies": {
35
- "@oslokommune/punkt-assets": "^11.9.4",
36
- "@oslokommune/punkt-css": "^11.13.0",
35
+ "@oslokommune/punkt-assets": "^11.13.2",
36
+ "@oslokommune/punkt-css": "^11.13.2",
37
37
  "@testing-library/jest-dom": "^6.4.5",
38
38
  "@testing-library/react": "^15.0.7",
39
39
  "@testing-library/user-event": "^14.5.2",
@@ -91,5 +91,5 @@
91
91
  "url": "https://github.com/oslokommune/punkt/issues"
92
92
  },
93
93
  "license": "MIT",
94
- "gitHead": "50259618f1329f0e1c61286f14a37f8c352f8a97"
94
+ "gitHead": "6f42516f8ea54808ba227247a390d119aef1fbe5"
95
95
  }
@@ -3,7 +3,7 @@ import React, { ForwardedRef, forwardRef } from 'react'
3
3
  import { PktIcon } from '../icon/Icon'
4
4
 
5
5
  export interface IPktLinkCard extends React.HTMLAttributes<HTMLAnchorElement> {
6
- skin?: 'normal' | 'blue' | 'beige' | 'beige-outline' | 'grey-outline'
6
+ skin?: 'normal' | 'blue' | 'beige' | 'beige-outline' | 'green' | 'grey-outline'
7
7
  title?: string
8
8
  href?: string
9
9
  iconName?: string
@@ -26,9 +26,7 @@ export const PktLinkCard = forwardRef(
26
26
  }: IPktLinkCard,
27
27
  ref: ForwardedRef<HTMLAnchorElement>,
28
28
  ) => {
29
- const classes = [className, 'pkt-linkcard', skin && `pkt-linkcard--${skin}`]
30
- .filter(Boolean)
31
- .join(' ')
29
+ const classes = [className, 'pkt-linkcard', skin && `pkt-linkcard--${skin}`].filter(Boolean).join(' ')
32
30
  return (
33
31
  <a
34
32
  {...props}
@@ -40,9 +38,7 @@ export const PktLinkCard = forwardRef(
40
38
  >
41
39
  <PktIcon className="pkt-link__icon" name={iconName}></PktIcon>
42
40
  <div className="pkt-linkcard__content">
43
- <div className={`pkt-linkcard__title ${external ? 'pkt-link pkt-link--external' : ''}`}>
44
- {title}
45
- </div>
41
+ <div className={`pkt-linkcard__title ${external ? 'pkt-link pkt-link--external' : ''}`}>{title}</div>
46
42
  <div className="pkt-linkcard__text">{children}</div>
47
43
  </div>
48
44
  </a>