@arkitektbedriftene/fe-lib 0.2.13 → 0.2.15

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.
@@ -0,0 +1 @@
1
+ export * from './lib/colors/colors'
@@ -0,0 +1,20 @@
1
+ const e = {
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
+ };
18
+ export {
19
+ e as colors
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const colors: {
2
+ black: string;
3
+ blackWeb: string;
4
+ white: string;
5
+ mainGreenBlue: string;
6
+ mainGreenBlueLighter: string;
7
+ mainGreenBlueDarker: string;
8
+ lightAqua: string;
9
+ lightAquaLighter: string;
10
+ lightAquaDarker: string;
11
+ forestGreen: string;
12
+ forestGreenLighter: string;
13
+ forestGreenDarker: string;
14
+ orange: string;
15
+ orangeLighter: string;
16
+ orangeDarker: string;
17
+ };
18
+ export { colors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.es.js",
@@ -16,7 +16,10 @@
16
16
  },
17
17
  "./icons": {
18
18
  "import": "./dist/icons.es.js"
19
- }
19
+ },
20
+ "./colors": {
21
+ "import": "./dist/colors.es.js"
22
+ }
20
23
  },
21
24
  "typesVersions": {
22
25
  "*": {
@@ -30,7 +33,7 @@
30
33
  "dist/icons.d.ts"
31
34
  ],
32
35
  "hooks": [
33
- "dist/hooks.d.ts"
36
+ "dist/hook.d.ts"
34
37
  ]
35
38
  }
36
39
  },
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
  }
@@ -0,0 +1,19 @@
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
+ };
18
+
19
+ export { colors};
package/vite.config.ts CHANGED
@@ -11,6 +11,7 @@ export default defineConfig({
11
11
  "src/lib/oidc/oidc.tsx",
12
12
  "src/lib/hooks/hooks.ts",
13
13
  "src/lib/icons/icons.tsx",
14
+ "src/lib/colors/colors.ts",
14
15
  ],
15
16
  name: "fe-lib",
16
17
  formats: ["es"],