@oslokommune/punkt-react 9.5.3 → 11.0.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 +22 -0
- package/CONTRIBUTING.md +6 -2
- package/README.md +10 -3
- package/dist/components/alert/Alert.test.d.ts +1 -0
- package/dist/components/backlink/BackLink.test.d.ts +1 -0
- package/dist/components/breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/dist/components/button/Button.test.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.test.d.ts +0 -0
- package/dist/components/footer/Footer.test.d.ts +0 -0
- package/dist/components/footerSimple/FooterSimple.test.d.ts +0 -0
- package/dist/components/header/Header.test.d.ts +0 -0
- package/dist/{icon → components/icon}/DefaultIconFetcher.d.ts +1 -1
- package/dist/components/icon/Icon.test.d.ts +0 -0
- package/dist/{icon → components/icon}/IconContext.d.ts +1 -0
- package/dist/components/linkcard/LinkCard.test.d.ts +0 -0
- package/dist/components/radio/RadioButton.test.d.ts +0 -0
- package/dist/components/searchinput/SearchInput.test.d.ts +0 -0
- package/dist/components/select/Select.test.d.ts +0 -0
- package/dist/components/table/Table.test.d.ts +1 -0
- package/dist/components/tag/Tag.test.d.ts +0 -0
- package/dist/components/textarea/Textarea.test.d.ts +0 -0
- package/dist/components/textinput/Textinput.test.d.ts +0 -0
- package/dist/punkt-react.es.js +1258 -1165
- package/dist/punkt-react.umd.js +17 -17
- package/package.json +10 -10
- /package/dist/{alert → components/alert}/Alert.d.ts +0 -0
- /package/dist/{backlink → components/backlink}/BackLink.d.ts +0 -0
- /package/dist/{breadcrumbs → components/breadcrumbs}/Breadcrumbs.d.ts +0 -0
- /package/dist/{button → components/button}/Button.d.ts +0 -0
- /package/dist/{checkbox → components/checkbox}/Checkbox.d.ts +0 -0
- /package/dist/{footer → components/footer}/Footer.d.ts +0 -0
- /package/dist/{footerSimple → components/footerSimple}/FooterSimple.d.ts +0 -0
- /package/dist/{header → components/header}/Header.d.ts +0 -0
- /package/dist/{icon → components/icon}/Icon.d.ts +0 -0
- /package/dist/{index.d.ts → components/index.d.ts} +0 -0
- /package/dist/{input → components/input}/Input.d.ts +0 -0
- /package/dist/{inputwrapper → components/inputwrapper}/InputWrapper.d.ts +0 -0
- /package/dist/{linkcard → components/linkcard}/LinkCard.d.ts +0 -0
- /package/dist/{messagebox → components/messagebox}/Messagebox.d.ts +0 -0
- /package/dist/{radio → components/radio}/RadioButton.d.ts +0 -0
- /package/dist/{searchinput → components/searchinput}/SearchInput.d.ts +0 -0
- /package/dist/{select → components/select}/Select.d.ts +0 -0
- /package/dist/{table → components/table}/Table.d.ts +0 -0
- /package/dist/{table → components/table}/TableData.d.ts +0 -0
- /package/dist/{table → components/table}/TableHeader.d.ts +0 -0
- /package/dist/{tag → components/tag}/Tag.d.ts +0 -0
- /package/dist/{textarea → components/textarea}/Textarea.d.ts +0 -0
- /package/dist/{textinput → components/textinput}/Textinput.d.ts +0 -0
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.0.0](https://github.com/oslokommune/punkt/compare/10.0.0...11.0.0) (2023-12-20)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Oppdater node- og vite-versjoner, samt litt feilretting (#1376).
|
|
18
|
+
* Tving publisering etter feilet bygg.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Chores
|
|
22
|
+
* Legg til vue i allowedScopes (#1373). * Legg til vue i allowedScopes
|
|
23
|
+
* Prøver igjen å tvinge bygget (#1372).
|
|
24
|
+
* Tving publisering etter feilet bygg (#1370).
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
|
|
8
30
|
## [9.5.1](https://github.com/oslokommune/punkt/compare/9.5.0...9.5.1) (2023-12-05)
|
|
9
31
|
|
|
10
32
|
### ⚠ BREAKING CHANGES
|
package/CONTRIBUTING.md
CHANGED
|
@@ -7,7 +7,8 @@ er at vi høflig ber deg endre på noe. **Vi setter pris på alle hyggelige bidr
|
|
|
7
7
|
👋 Happy coding!
|
|
8
8
|
|
|
9
9
|
## 📝 Forutsetninger
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
- nodejs 18.19
|
|
11
12
|
- Kunnskap om [Sass (SCSS)](https://sass-lang.com/) og [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS).
|
|
12
13
|
- Forståelse av [BEM-navnekonvensjoner](http://getbem.com/) som designsystemet følger.
|
|
13
14
|
- Noen skal ha designet komponenten i [Figma](https://www.figma.com/file/Eej5jm3jIUjeMfzLE0aOTB/Punkt---Origo-designsystem?node-id=0%3A1&t=VDbEaltk80wYiYn3-0) (Krever innlogging og tilgang).
|
|
@@ -37,13 +38,16 @@ utvikling i dette subrepoet:
|
|
|
37
38
|
```
|
|
38
39
|
|
|
39
40
|
### Figma
|
|
41
|
+
|
|
40
42
|
Sørg for at noen har designet komponenten i [Figma](https://www.figma.com/file/Eej5jm3jIUjeMfzLE0aOTB/Punkt---Origo-designsystem?node-id=0%3A1&t=VDbEaltk80wYiYn3-0)
|
|
41
43
|
(Krever innlogging og tilgang).
|
|
42
44
|
|
|
43
45
|
## 🛠️ Gjør arbeidet
|
|
46
|
+
|
|
44
47
|
Kod som om livet ditt avhenger av det, men ha det gøy mens du gjør det!
|
|
45
48
|
|
|
46
49
|
## 🤝 Lag PR
|
|
50
|
+
|
|
47
51
|
Når du er klar for en PR skriv din GitHub-message som sier hva som er gjort, og evt issue nummer.
|
|
48
52
|
|
|
49
53
|
Vi bruker [Conventional Commits](https://www.conventionalcommits.org/) for å beskrive commits gjennom
|
|
@@ -58,7 +62,7 @@ docs: Endre dokumentasjon # Endring i dokument
|
|
|
58
62
|
```
|
|
59
63
|
|
|
60
64
|
## 🔢 Publisering og versjonering
|
|
65
|
+
|
|
61
66
|
Vi tar oss av publisering av pakken og versjonering.
|
|
62
67
|
|
|
63
68
|
Punkt bruker [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html) for versjonering av pakkene.
|
|
64
|
-
|
package/README.md
CHANGED
|
@@ -7,8 +7,10 @@ Dette repoet inneholder Punkt sine UI-komponenter for React. Komponentene er lag
|
|
|
7
7
|
Se punkt-react i bruk i en [Vite-app med React og TypeScript](https://stackblitz.com/edit/vitejs-vite-ep2eyk?file=src/App.tsx).
|
|
8
8
|
|
|
9
9
|
## 📝 Forutsetninger
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
|
|
11
|
+
Peer dependencies:
|
|
12
|
+
|
|
13
|
+
- nodejs `18.19`
|
|
12
14
|
- react `>= 18`
|
|
13
15
|
- @oslokommune/punkt-assets `>= 1.0`
|
|
14
16
|
- @oslokommune/punkt-css `>= 1.0`
|
|
@@ -16,11 +18,13 @@ Peer dependencies:
|
|
|
16
18
|
## 🚀 Kom i gang - npm
|
|
17
19
|
|
|
18
20
|
### 1. Installer komponentbiblioteket
|
|
21
|
+
|
|
19
22
|
```sh
|
|
20
23
|
npm add @oslokommune/punkt-react
|
|
21
24
|
```
|
|
22
25
|
|
|
23
26
|
### 2. Importer komponentene
|
|
27
|
+
|
|
24
28
|
```js
|
|
25
29
|
// src/App.tsx
|
|
26
30
|
|
|
@@ -34,6 +38,7 @@ import { PktButton, PktInput } from "@oslokommune/punkt-react";
|
|
|
34
38
|
</PktButton>
|
|
35
39
|
|
|
36
40
|
```
|
|
41
|
+
|
|
37
42
|
## 🟪 Ikoner
|
|
38
43
|
|
|
39
44
|
Alle våre komponenter bruker PktIcon-komponenten for å importere
|
|
@@ -43,14 +48,16 @@ Om du har en content security policy(CSP) satt opp må du åpne for https://punk
|
|
|
43
48
|
|
|
44
49
|
Les mer om ikoner [her.](/ressurser/ikoner/kode)
|
|
45
50
|
|
|
46
|
-
|
|
47
51
|
## 🧩 Komponentbiblioteket
|
|
52
|
+
|
|
48
53
|
For beskrivelse av hvordan ta i bruk hver enkelt komponent se [om komponenter](/komponenter/om-komponenter).
|
|
49
54
|
|
|
50
55
|
## 🔢 Versjonering
|
|
56
|
+
|
|
51
57
|
Punkt bruker [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html) for versjonering av pakkene.
|
|
52
58
|
|
|
53
59
|
## 👮 Lisens
|
|
60
|
+
|
|
54
61
|
`Punkt` er distribuert under [MIT-lisens](https://github.com/oslokommune/punkt/blob/main/packages/react/LICENSE) for åpen kildekode.
|
|
55
62
|
|
|
56
63
|

|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconFetcher } from "./IconContext";
|
|
2
|
-
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/
|
|
2
|
+
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.0/icons/";
|
|
3
3
|
declare const defaultIconFetcher: IconFetcher;
|
|
4
4
|
export default defaultIconFetcher;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|