@oslokommune/punkt-react 11.5.4 → 11.7.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 +46 -0
- package/dist/components/button/Button.d.ts +1 -0
- package/dist/components/icon/DefaultIconFetcher.d.ts +1 -1
- package/dist/components/loader/Loader.d.ts +6 -0
- package/dist/punkt-react.es.js +559 -545
- package/dist/punkt-react.umd.js +13 -13
- package/package.json +3 -3
- package/src/components/button/Button.tsx +22 -1
- package/src/components/loader/Loader.tsx +32 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,52 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [11.7.0](https://github.com/oslokommune/punkt/compare/11.6.0...11.7.0) (2024-02-19)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* add spinner option to button (#1528). * feat(react): add loading to button:active
|
|
15
|
+
|
|
16
|
+
* feat(vue): add loading to button
|
|
17
|
+
|
|
18
|
+
* fix(css): update button example with loading
|
|
19
|
+
|
|
20
|
+
* chore(docs): update button docs with loading prop
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
Ingen
|
|
25
|
+
|
|
26
|
+
### Chores
|
|
27
|
+
Ingen
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## [11.6.0](https://github.com/oslokommune/punkt/compare/11.5.4...11.6.0) (2024-02-16)
|
|
33
|
+
|
|
34
|
+
### ⚠ BREAKING CHANGES
|
|
35
|
+
Ingen
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
* PktLoader kan utsette visning (#1520). * feat(vue,react): PktLoader kan utsette visning
|
|
39
|
+
|
|
40
|
+
* Fjern ReactNode
|
|
41
|
+
|
|
42
|
+
* className
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
Ingen
|
|
47
|
+
|
|
48
|
+
### Chores
|
|
49
|
+
Ingen
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
|
|
8
54
|
## [11.5.4](https://github.com/oslokommune/punkt/compare/11.5.3...11.5.4) (2024-02-16)
|
|
9
55
|
|
|
10
56
|
### ⚠ BREAKING CHANGES
|
|
@@ -9,6 +9,7 @@ export interface IPktButton extends React.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
9
9
|
variant?: 'label-only' | 'icon-left' | 'icon-right' | 'icon-only' | 'icons-right-and-left';
|
|
10
10
|
state?: 'normal' | 'focus' | 'hover' | 'active';
|
|
11
11
|
type?: 'button' | 'submit' | 'reset';
|
|
12
|
+
isLoading?: boolean;
|
|
12
13
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
14
|
}
|
|
14
15
|
export declare const PktButton: React.ForwardRefExoticComponent<IPktButton & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconFetcher } from "./IconContext";
|
|
2
|
-
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.
|
|
2
|
+
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.7/icons/";
|
|
3
3
|
declare const defaultIconFetcher: IconFetcher;
|
|
4
4
|
export default defaultIconFetcher;
|
|
@@ -16,5 +16,11 @@ export interface IPktLoader extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
* "shapes" oslo wave loader. Default is rainbow.
|
|
17
17
|
*/
|
|
18
18
|
variant?: 'blue' | 'rainbow' | 'shapes';
|
|
19
|
+
/**
|
|
20
|
+
* The `delay` prop controls how much time the loading should be given before the loader is displayed.
|
|
21
|
+
* This is handy for situations where the load time might be so short that loader is not necessary.
|
|
22
|
+
* Delay time is in milliseconds.
|
|
23
|
+
*/
|
|
24
|
+
delay?: number;
|
|
19
25
|
}
|
|
20
26
|
export declare const PktLoader: React.ForwardRefExoticComponent<IPktLoader & React.RefAttributes<HTMLDivElement>>;
|