@oslokommune/punkt-react 2.0.3 → 3.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 +8 -0
- package/dist/alert/Alert.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/punkt-react.es.js +299 -265
- package/dist/punkt-react.umd.js +11 -11
- package/package.json +6 -6
- package/src/components/alert/Alert.tsx +61 -0
- package/src/components/icon/Icon.tsx +1 -1
- package/src/components/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0](https://github.com/oslokommune/punkt/compare/v2.0.3...v3.0.0) (2023-03-13)
|
|
7
|
+
|
|
8
|
+
Versjon 3 inneholder endringer på Alert-komponenten både i css og Vue2, og finnes nå også i React.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
* [#683](https://github.com/oslokommune/punkt/issues/683) Legg til Alert i React. Se mer informasjon på [nettsiden](https://punkt.oslo.kommune.no/3.0/komponenter/alert/kode/).
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.0.3](https://github.com/oslokommune/punkt/compare/v2.0.2...v2.0.3) (2023-03-09)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IPktAlert extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
skin?: 'error' | 'success' | 'warning' | 'info';
|
|
4
|
+
closeAlert?: boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
date?: string;
|
|
8
|
+
ariaLive?: 'off' | 'polite' | 'assertive';
|
|
9
|
+
}
|
|
10
|
+
export declare const PktAlert: React.FC<IPktAlert>;
|
package/dist/index.d.ts
CHANGED