@arkitektbedriftene/fe-lib 0.2.14 → 0.2.16

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,4 +1,4 @@
1
- export declare const colors: {
1
+ declare const colors: {
2
2
  black: string;
3
3
  blackWeb: string;
4
4
  white: string;
@@ -15,3 +15,4 @@ export declare const colors: {
15
15
  orangeLighter: string;
16
16
  orangeDarker: string;
17
17
  };
18
+ export { colors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.es.js",
@@ -34,6 +34,9 @@
34
34
  ],
35
35
  "hooks": [
36
36
  "dist/hook.d.ts"
37
+ ],
38
+ "colors": [
39
+ "dist/colors.d.ts"
37
40
  ]
38
41
  }
39
42
  },
package/src/App.tsx CHANGED
@@ -1,7 +1,8 @@
1
1
  import { useState } from 'react'
2
2
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
- import {ProductExternalIdToIcon} from './lib/icons/icons'
3
+ import './App.css'
4
+ import { ProductExternalIdToIcon } from './lib/icons/icons'
5
+ import { colors } from './lib/colors/colors'
5
6
 
6
7
  function App() {
7
8
  const [count, setCount] = useState(0)
@@ -9,7 +10,7 @@ function App() {
9
10
  return (
10
11
  <div className="App">
11
12
  <div>
12
-
13
+
13
14
  <a href="https://reactjs.org" target="_blank">
14
15
  <img src={reactLogo} className="logo react" alt="React logo" />
15
16
  </a>
@@ -24,6 +25,7 @@ function App() {
24
25
  </p>
25
26
  </div>
26
27
  <ProductExternalIdToIcon ExternalId='M_MEDLEM'></ProductExternalIdToIcon>
28
+ <div style={{ backgroundColor: colors.forestGreen }}>forestGreen</div>
27
29
  </div>
28
30
  )
29
31
  }
@@ -1,18 +1,19 @@
1
- export const colors = {
2
- black: '#000000',
3
- blackWeb: '#222',
4
- white: '#FFFFFF',
5
- mainGreenBlue : '#0f8999',
6
- mainGreenBlueLighter : '#6fb8c2',
7
- mainGreenBlueDarker : '#156974',
8
- lightAqua : '#3ea090',
9
- lightAquaLighter : '#8bc6bc',
10
- lightAquaDarker : '#36796e',
11
- forestGreen : '#2e7641',
12
- forestGreenLighter : '#82ad8d',
13
- forestGreenDarker : '#2b5c37',
14
- orange : '#d6751d',
15
- orangeLighter : '#e6ac77',
16
- orangeDarker : '#a05b1e',
1
+ const colors = {
2
+ black: "#000000",
3
+ blackWeb: "#222",
4
+ white: "#FFFFFF",
5
+ mainGreenBlue: "#0f8999",
6
+ mainGreenBlueLighter: "#6fb8c2",
7
+ mainGreenBlueDarker: "#156974",
8
+ lightAqua: "#3ea090",
9
+ lightAquaLighter: "#8bc6bc",
10
+ lightAquaDarker: "#36796e",
11
+ forestGreen: "#2e7641",
12
+ forestGreenLighter: "#82ad8d",
13
+ forestGreenDarker: "#2b5c37",
14
+ orange: "#d6751d",
15
+ orangeLighter: "#e6ac77",
16
+ orangeDarker: "#a05b1e",
17
+ };
17
18
 
18
- };
19
+ export { colors};