@vygruppen/spor-react 13.5.0 → 13.6.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
3
  "type": "module",
4
- "version": "13.5.0",
4
+ "version": "13.6.0",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  "react-stately": "^3.31.1",
47
47
  "react-swipeable": "^7.0.1",
48
48
  "usehooks-ts": "^3.1.0",
49
- "@vygruppen/spor-design-tokens": "5.0.6",
49
+ "@vygruppen/spor-design-tokens": "5.1.0",
50
50
  "@vygruppen/spor-icon-react": "5.0.2",
51
51
  "@vygruppen/spor-loader": "0.7.0"
52
52
  },
@@ -1,6 +1,11 @@
1
1
  export enum Brand {
2
2
  VyDigital = "VyDigital",
3
+ /**
4
+ * @deprecated The VyUtvikling theme is deprecated and will be removed in a
5
+ * future major version. Use {@link Brand.VyTeknologi} instead.
6
+ */
3
7
  VyUtvikling = "VyUtvikling",
8
+ VyTeknologi = "VyTeknologi",
4
9
  CargoNet = "CargoNet",
5
10
  }
6
11
 
@@ -48,6 +48,10 @@ export const themes = {
48
48
  defaultBaseConfig,
49
49
  generateTheme(Brand.VyUtvikling),
50
50
  ),
51
+ [Brand.VyTeknologi]: createSystem(
52
+ defaultBaseConfig,
53
+ generateTheme(Brand.VyTeknologi),
54
+ ),
51
55
  };
52
56
 
53
57
  export const system = themes[Brand.VyDigital];
@@ -3,7 +3,12 @@ import tokens from "@vygruppen/spor-design-tokens/raw-tokens";
3
3
 
4
4
  export enum Brand {
5
5
  VyDigital = "VyDigital",
6
+ /**
7
+ * @deprecated The VyUtvikling theme is deprecated and will be removed in a
8
+ * future major version. Use {@link Brand.VyTeknologi} instead.
9
+ */
6
10
  VyUtvikling = "VyUtvikling",
11
+ VyTeknologi = "VyTeknologi",
7
12
  CargoNet = "CargoNet",
8
13
  }
9
14
 
@@ -11,10 +16,18 @@ export const vyDigitalColors = defineSemanticTokens.colors({
11
16
  ...tokens.color["vy-digital"].color.vyDigital,
12
17
  });
13
18
 
19
+ /**
20
+ * @deprecated The VyUtvikling theme is deprecated and will be removed in a
21
+ * future major version. Use {@link vyTeknologiColors} instead.
22
+ */
14
23
  export const vyUtviklingColors = defineSemanticTokens.colors({
15
24
  ...tokens.color["vy-utvikling"].color.vyUtvikling,
16
25
  });
17
26
 
27
+ export const vyTeknologiColors = defineSemanticTokens.colors({
28
+ ...tokens.color["vy-teknologi"].color.vyTeknologi,
29
+ });
30
+
18
31
  export const cargonetColors = defineSemanticTokens.colors({
19
32
  ...tokens.color["cargonet"].color.cargonet,
20
33
  });
@@ -1,5 +1,10 @@
1
1
  import { Brand } from "../brand";
2
- import { cargonetColors, vyDigitalColors, vyUtviklingColors } from "./colors";
2
+ import {
3
+ cargonetColors,
4
+ vyDigitalColors,
5
+ vyTeknologiColors,
6
+ vyUtviklingColors,
7
+ } from "./colors";
3
8
  import { radii } from "./radii";
4
9
  import { shadows } from "./shadows";
5
10
 
@@ -13,6 +18,10 @@ export const semanticTokens = {
13
18
  ...baseSemanticTokens,
14
19
  colors: vyUtviklingColors,
15
20
  },
21
+ [Brand.VyTeknologi]: {
22
+ ...baseSemanticTokens,
23
+ colors: vyTeknologiColors,
24
+ },
16
25
  [Brand.CargoNet]: {
17
26
  ...baseSemanticTokens,
18
27
  colors: cargonetColors,