@kystverket/styrbord 1.1.24 → 1.1.25

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.
@@ -6,14 +6,6 @@ export type SvgImageProps = {
6
6
  size?: SvgImageSize;
7
7
  className?: string;
8
8
  };
9
- type BaseSvgImageProps = {
10
- src: string;
11
- name?: string;
12
- 'data-color'?: SvgImageColor;
13
- size?: SvgImageSize;
14
- className?: string;
15
- };
16
- export declare const SvgImage: ({ name, src, "data-color": dataColor, className, ...props }: BaseSvgImageProps) => React.JSX.Element;
17
9
  export declare const ImageHais: (props: SvgImageProps) => React.JSX.Element;
18
10
  export declare const ImageAisSat: (props: SvgImageProps) => React.JSX.Element;
19
11
  export declare const ImageDatakatalog: (props: SvgImageProps) => React.JSX.Element;
@@ -58,4 +50,3 @@ export declare const ImageBwNais: (props: SvgImageProps) => React.JSX.Element;
58
50
  export declare const ImageBwOhoi: (props: SvgImageProps) => React.JSX.Element;
59
51
  export declare const ImageBwBoelgevarsel: (props: SvgImageProps) => React.JSX.Element;
60
52
  export declare const ImageBwArcticinfo: (props: SvgImageProps) => React.JSX.Element;
61
- export {};
@@ -1,13 +1,8 @@
1
1
  import type { StoryFn } from '@storybook/react';
2
+ import { SvgImageProps } from './svgImage';
2
3
  declare const meta: {
3
4
  title: string;
4
- component: ({ name, src, "data-color": dataColor, className, ...props }: {
5
- src: string;
6
- name?: string;
7
- 'data-color'?: import("~/main").SvgImageColor;
8
- size?: import("~/main").SvgImageSize;
9
- className?: string;
10
- }) => React.JSX.Element;
5
+ component: (props: SvgImageProps) => React.JSX.Element;
11
6
  decorators: ((Story: import("@storybook/types").PartialStoryFn) => React.JSX.Element)[];
12
7
  tags: string[];
13
8
  argTypes: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kystverket/styrbord",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "repository": {
@@ -89,7 +89,8 @@
89
89
  "tslib": "^2.8.1",
90
90
  "typescript": "^5.8.2",
91
91
  "typescript-eslint": "^8.26.1",
92
- "vite": "^5.4.14"
92
+ "vite": "^5.4.14",
93
+ "vite-plugin-svgr": "^4.5.0"
93
94
  },
94
95
  "eslintConfig": {
95
96
  "extends": [
@@ -102,7 +103,6 @@
102
103
  "esbuild": "^0.24.2",
103
104
  "exifr": "^7.1.3",
104
105
  "react-datepicker": "^8.4.0",
105
- "react-svg": "^16.3.0",
106
106
  "uuid": "^11.1.0"
107
107
  },
108
108
  "//": "Override is a workaround until issue is resolved for typescript > 5.8.0 - https://github.com/storybookjs/eslint-plugin-storybook/issues/193",