@sb1/ffe-icons-react 11.0.9 → 11.0.11

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.
@@ -1 +1 @@
1
- {"root":["../src/Icon.tsx","../src/index.tsx"],"version":"5.6.2"}
1
+ {"root":["../src/Icon.tsx","../src/index.tsx"],"version":"5.6.3"}
@@ -1 +1 @@
1
- {"root":["../src/Icon.tsx","../src/index.tsx"],"version":"5.6.2"}
1
+ {"root":["../src/Icon.tsx","../src/index.tsx"],"version":"5.6.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-icons-react",
3
- "version": "11.0.9",
3
+ "version": "11.0.11",
4
4
  "description": "React-komponenter for ffe-icons",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "671f9cd4a5c589643d12589a4454f40994eabb28"
44
+ "gitHead": "bc77548d36d946e33feeb6c3f39e8ca651a5c698"
45
45
  }
@@ -1,13 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Icon } from './Icon';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
- import house300Md from '@sb1/ffe-icons/icons/open/300/md/house.svg';
5
- import house400Md from '@sb1/ffe-icons/icons/open/400/md/house.svg';
6
- import house500Md from '@sb1/ffe-icons/icons/open/500/md/house.svg';
7
- import starSm from '@sb1/ffe-icons/icons/open/300/sm/star.svg';
8
- import starMd from '@sb1/ffe-icons/icons/open/300/md/star.svg';
9
- import starLg from '@sb1/ffe-icons/icons/open/300/lg/star.svg';
10
- import starXl from '@sb1/ffe-icons/icons/open/300/xl/star.svg';
11
4
 
12
5
  const meta: Meta<typeof Icon> = {
13
6
  title: 'components/icons/Icon',
@@ -21,7 +14,7 @@ export const Standard: Story = {
21
14
  args: {
22
15
  size: 'md',
23
16
  ariaLabel: 'hjem',
24
- fileUrl: house300Md,
17
+ fileUrl: './icons/open/300/md/house.svg',
25
18
  },
26
19
  render: args => <Icon {...args} />,
27
20
  };
@@ -40,10 +33,26 @@ export const Sizes: Story = {
40
33
  args: { ...Standard.args, ariaLabel: undefined },
41
34
  render: args => (
42
35
  <>
43
- <Icon fileUrl={starSm} size="sm" ariaLabel="sm stjerne" />
44
- <Icon fileUrl={starMd} size="md" ariaLabel="md stjerne" />
45
- <Icon fileUrl={starLg} size="lg" ariaLabel="lg stjerne" />
46
- <Icon fileUrl={starXl} size="xl" ariaLabel="xl stjerne" />
36
+ <Icon
37
+ fileUrl="./icons/open/300/sm/star.svg"
38
+ size="sm"
39
+ ariaLabel="sm stjerne"
40
+ />
41
+ <Icon
42
+ fileUrl="./icons/open/300/md/star.svg"
43
+ size="md"
44
+ ariaLabel="md stjerne"
45
+ />
46
+ <Icon
47
+ fileUrl="./icons/open/300/lg/star.svg"
48
+ size="lg"
49
+ ariaLabel="lg stjerne"
50
+ />
51
+ <Icon
52
+ fileUrl="./icons/open/300/xl/star.svg"
53
+ size="xl"
54
+ ariaLabel="xl stjerne"
55
+ />
47
56
  </>
48
57
  ),
49
58
  };
@@ -52,9 +61,21 @@ export const Weights: Story = {
52
61
  args: { ...Standard.args, ariaLabel: undefined },
53
62
  render: args => (
54
63
  <>
55
- <Icon fileUrl={house300Md} size="md" ariaLabel="hus" />
56
- <Icon fileUrl={house400Md} size="md" ariaLabel="hus" />
57
- <Icon fileUrl={house500Md} size="md" ariaLabel="hus" />
64
+ <Icon
65
+ fileUrl="./icons/open/300/md/house.svg"
66
+ size="md"
67
+ ariaLabel="hus"
68
+ />
69
+ <Icon
70
+ fileUrl="./icons/open/400/md/house.svg"
71
+ size="md"
72
+ ariaLabel="hus"
73
+ />
74
+ <Icon
75
+ fileUrl="./icons/open/500/md/house.svg"
76
+ size="md"
77
+ ariaLabel="hus"
78
+ />
58
79
  </>
59
80
  ),
60
81
  };
@@ -63,8 +84,12 @@ export const UniversellUtforming: Story = {
63
84
  args: { ...Standard.args, ariaLabel: undefined },
64
85
  render: args => (
65
86
  <>
66
- <Icon fileUrl={house300Md} size="md" ariaLabel="hus" />
67
- <Icon fileUrl={house300Md} size="md" />
87
+ <Icon
88
+ fileUrl="./icons/open/300/md/house.svg"
89
+ size="md"
90
+ ariaLabel="hus"
91
+ />
92
+ <Icon fileUrl="./icons/open/300/md/house.svg" size="md" />
68
93
  </>
69
94
  ),
70
95
  };
@@ -1 +1 @@
1
- {"root":["../src/Icon.tsx","../src/index.tsx"],"version":"5.6.2"}
1
+ {"root":["../src/Icon.tsx","../src/index.tsx"],"version":"5.6.3"}