@oslokommune/punkt-react 12.29.2 → 12.29.3

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,23 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [12.29.3](https://github.com/oslokommune/punkt/compare/12.29.2...12.29.3) (2025-03-21)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ Ingen
18
+
19
+ ### Chores
20
+ Ingen
21
+
22
+ ---
23
+
24
+
8
25
  ## [12.29.2](https://github.com/oslokommune/punkt/compare/12.29.1...12.29.2) (2025-03-20)
9
26
 
10
27
  ### ⚠ BREAKING CHANGES
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { HTMLAttributes } from 'react';
11
11
  import { HTMLProps } from 'react';
12
12
  import { InputHTMLAttributes } from 'react';
13
13
  import { IPktButton as IPktButton_2 } from '@oslokommune/punkt-elements';
14
+ import { IPktLoader as IPktLoader_2 } from '@oslokommune/punkt-elements';
14
15
  import { IPktProgressbar as IPktProgressbar_2 } from '@oslokommune/punkt-elements';
15
16
  import { JSX as JSX_2 } from 'react/jsx-runtime';
16
17
  import { KeyboardEventHandler } from 'react';
@@ -35,6 +36,8 @@ declare interface Column {
35
36
 
36
37
  declare type ExtendedButton = IPktButton_2 & ButtonHTMLAttributes<HTMLButtonElement>;
37
38
 
39
+ declare type ExtendedLoader = IPktLoader_2 & PktElType;
40
+
38
41
  declare type ExtendedProgressbar = IPktProgressbar_2 & PktElType;
39
42
 
40
43
  declare interface IBreadcrumbs {
@@ -282,29 +285,7 @@ export declare interface IPktLinkCard extends PktElType {
282
285
  external?: boolean;
283
286
  }
284
287
 
285
- export declare interface IPktLoader extends HTMLAttributes<HTMLDivElement> {
286
- message?: string;
287
- inline?: boolean;
288
- /**
289
- * The boolean 'isLoading' decides whether the loader or the children will be displayed.
290
- * If set to false, the children will be displayed.
291
- */
292
- isLoading?: boolean;
293
- /**
294
- * Default size is set to "medium"
295
- */
296
- size?: 'small' | 'medium' | 'large';
297
- /**
298
- * Variants available are "blue" spinner, "rainbow" spinner and
299
- * "shapes" oslo wave loader. Default is rainbow.
300
- */
301
- variant?: 'blue' | 'rainbow' | 'shapes';
302
- /**
303
- * The `delay` prop controls how much time the loading should be given before the loader is displayed.
304
- * This is handy for situations where the load time might be so short that loader is not necessary.
305
- * Delay time is in milliseconds.
306
- */
307
- delay?: number;
288
+ export declare interface IPktLoader extends ExtendedLoader {
308
289
  }
309
290
 
310
291
  export declare interface IPktMessagebox extends PktElType {
@@ -649,7 +630,7 @@ export declare const PktLink: FC<IPktLink>;
649
630
 
650
631
  export declare const PktLinkCard: FC<IPktLinkCard>;
651
632
 
652
- export declare const PktLoader: default_2.ForwardRefExoticComponent<IPktLoader & default_2.RefAttributes<HTMLDivElement>>;
633
+ export declare const PktLoader: FC<IPktLoader>;
653
634
 
654
635
  export declare const PktMessagebox: FC<IPktMessagebox>;
655
636