@vygruppen/spor-react 3.4.0 → 3.4.2

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,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@3.4.0 build
2
+ > @vygruppen/spor-react@3.4.2 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,13 +9,13 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  DTS Build start
12
+ "toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-DOHLC4LS.mjs".
12
13
  "toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
13
- "toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-A7MCH3JW.mjs".
14
- CJS dist/index.js 903.25 KB
15
- CJS ⚡️ Build success in 6022ms
16
14
  ESM dist/index.mjs 2.01 KB
17
- ESM dist/CountryCodeSelect-J3XCI72L.mjs 350.82 KB
18
- ESM dist/chunk-A7MCH3JW.mjs 420.45 KB
19
- ESM ⚡️ Build success in 6024ms
20
- DTS ⚡️ Build success in 22767ms
21
- DTS dist/index.d.ts 252.35 KB
15
+ ESM dist/CountryCodeSelect-FTCKNVSB.mjs 350.82 KB
16
+ ESM dist/chunk-DOHLC4LS.mjs 420.85 KB
17
+ ESM ⚡️ Build success in 5055ms
18
+ CJS dist/index.js 903.69 KB
19
+ CJS ⚡️ Build success in 5056ms
20
+ DTS ⚡️ Build success in 18301ms
21
+ DTS dist/index.d.ts 252.53 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 3.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f5fb6ae6: Card: Improve the way card outlines are generated
8
+ - 5b33fdc5: Card: Correct the colors of white cards
9
+
10
+ ## 3.4.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 83976e0a: Card: Fix a bug with clickable cards that had to have the display property set to not break
15
+ - 4787d9e9: Hotfix breakpoints
16
+
3
17
  ## 3.4.0
4
18
 
5
19
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-A7MCH3JW.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-DOHLC4LS.mjs';
2
2
  import React from 'react';
3
3
 
4
4
  // ../../node_modules/awesome-phonenumber/index-esm.mjs
@@ -5084,7 +5084,7 @@ var texts14 = createTexts({
5084
5084
  sv: "Telefonnummer"
5085
5085
  }
5086
5086
  });
5087
- var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-J3XCI72L.mjs'));
5087
+ var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-FTCKNVSB.mjs'));
5088
5088
  var Radio = forwardRef((props, ref) => {
5089
5089
  return /* @__PURE__ */ React49__default.createElement(Radio$1, { ...props, ref });
5090
5090
  });
@@ -10768,6 +10768,7 @@ var borders2 = {
10768
10768
  "lg-dashed": `${tokens10__default.size.stroke.lg} dashed`
10769
10769
  };
10770
10770
  var breakpoints2 = {
10771
+ base: "0px",
10771
10772
  sm: tokens10__default.size.breakpoint.sm,
10772
10773
  md: tokens10__default.size.breakpoint.md,
10773
10774
  lg: tokens10__default.size.breakpoint.lg,
@@ -10876,6 +10877,7 @@ var textStyles = {
10876
10877
  "2xl": {
10877
10878
  fontSize: [
10878
10879
  tokens10__default.font.style.xxl["font-size"].mobile,
10880
+ null,
10879
10881
  tokens10__default.font.style.xxl["font-size"].desktop
10880
10882
  ],
10881
10883
  fontFamily: tokens10__default.font.style.xxl["font-family"],
@@ -10884,6 +10886,7 @@ var textStyles = {
10884
10886
  "xl-display": {
10885
10887
  fontSize: [
10886
10888
  tokens10__default.font.style["xl-display"]["font-size"].mobile,
10889
+ null,
10887
10890
  tokens10__default.font.style["xl-display"]["font-size"].desktop
10888
10891
  ],
10889
10892
  fontFamily: tokens10__default.font.style["xl-display"]["font-family"],
@@ -10892,6 +10895,7 @@ var textStyles = {
10892
10895
  "xl-sans": {
10893
10896
  fontSize: [
10894
10897
  tokens10__default.font.style["xl-sans"]["font-size"].mobile,
10898
+ null,
10895
10899
  tokens10__default.font.style["xl-sans"]["font-size"].desktop
10896
10900
  ],
10897
10901
  fontFamily: tokens10__default.font.style["xl-sans"]["font-family"],
@@ -10900,6 +10904,7 @@ var textStyles = {
10900
10904
  lg: {
10901
10905
  fontSize: [
10902
10906
  tokens10__default.font.style.lg["font-size"].mobile,
10907
+ null,
10903
10908
  tokens10__default.font.style.lg["font-size"].desktop
10904
10909
  ],
10905
10910
  fontFamily: tokens10__default.font.style.lg["font-family"],
@@ -10908,6 +10913,7 @@ var textStyles = {
10908
10913
  md: {
10909
10914
  fontSize: [
10910
10915
  tokens10__default.font.style.md["font-size"].mobile,
10916
+ null,
10911
10917
  tokens10__default.font.style.md["font-size"].desktop
10912
10918
  ],
10913
10919
  fontFamily: tokens10__default.font.style.md["font-family"],
@@ -10916,6 +10922,7 @@ var textStyles = {
10916
10922
  sm: {
10917
10923
  fontSize: [
10918
10924
  tokens10__default.font.style.sm["font-size"].mobile,
10925
+ null,
10919
10926
  tokens10__default.font.style.sm["font-size"].desktop
10920
10927
  ],
10921
10928
  fontFamily: tokens10__default.font.style.sm["font-family"],
@@ -10924,6 +10931,7 @@ var textStyles = {
10924
10931
  xs: {
10925
10932
  fontSize: [
10926
10933
  tokens10__default.font.style.xs["font-size"].mobile,
10934
+ null,
10927
10935
  tokens10__default.font.style.xs["font-size"].desktop
10928
10936
  ],
10929
10937
  fontFamily: tokens10__default.font.style.xs["font-family"],
@@ -11447,6 +11455,7 @@ var config7 = defineStyleConfig$1({
11447
11455
  border: "none",
11448
11456
  overflow: "hidden",
11449
11457
  fontSize: "inherit",
11458
+ display: "block",
11450
11459
  transitionProperty: "common",
11451
11460
  transitionDuration: "fast",
11452
11461
  borderRadius: "md",
@@ -11459,7 +11468,8 @@ var config7 = defineStyleConfig$1({
11459
11468
  focus: {
11460
11469
  boxShadow: getBoxShadowString({
11461
11470
  borderColor: "greenHaze",
11462
- borderWidth: 2
11471
+ borderWidth: 2,
11472
+ isInset: false
11463
11473
  }),
11464
11474
  outline: "none",
11465
11475
  _active: getColorSchemeActiveProps(props)
@@ -11472,7 +11482,8 @@ var config7 = defineStyleConfig$1({
11472
11482
  _disabled: {
11473
11483
  backgroundColor: "platinum",
11474
11484
  boxShadow: getBoxShadowString({
11475
- borderColor: "silver"
11485
+ borderColor: "silver",
11486
+ isInset: false
11476
11487
  }),
11477
11488
  color: "osloGrey",
11478
11489
  pointerEvents: "none"
@@ -11486,7 +11497,7 @@ function getColorSchemeBaseProps({ colorScheme }) {
11486
11497
  switch (colorScheme) {
11487
11498
  case "white":
11488
11499
  return {
11489
- backgroundColor: "lightGrey"
11500
+ backgroundColor: "white"
11490
11501
  };
11491
11502
  case "grey":
11492
11503
  return {
@@ -11511,14 +11522,16 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
11511
11522
  return {
11512
11523
  boxShadow: getBoxShadowString({
11513
11524
  baseShadow,
11514
- borderColor: "silver"
11525
+ borderColor: "silver",
11526
+ isInset: false
11515
11527
  })
11516
11528
  };
11517
11529
  case "grey":
11518
11530
  return {
11519
11531
  boxShadow: getBoxShadowString({
11520
11532
  baseShadow,
11521
- borderColor: "steel"
11533
+ borderColor: "steel",
11534
+ isInset: false
11522
11535
  })
11523
11536
  };
11524
11537
  default:
@@ -11526,7 +11539,8 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
11526
11539
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum",
11527
11540
  boxShadow: getBoxShadowString({
11528
11541
  baseShadow,
11529
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
11542
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver",
11543
+ isInset: false
11530
11544
  })
11531
11545
  };
11532
11546
  }
@@ -11539,14 +11553,16 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
11539
11553
  return {
11540
11554
  boxShadow: getBoxShadowString({
11541
11555
  baseShadow,
11542
- borderColor: colors.steel
11556
+ borderColor: colors.steel,
11557
+ isInset: false
11543
11558
  })
11544
11559
  };
11545
11560
  case "grey":
11546
11561
  return {
11547
11562
  boxShadow: getBoxShadowString({
11548
11563
  baseShadow,
11549
- borderColor: colors.osloGrey
11564
+ borderColor: colors.osloGrey,
11565
+ isInset: false
11550
11566
  })
11551
11567
  };
11552
11568
  default:
@@ -11554,7 +11570,8 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
11554
11570
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[200]) ?? "silver",
11555
11571
  boxShadow: getBoxShadowString({
11556
11572
  baseShadow,
11557
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver
11573
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver,
11574
+ isInset: false
11558
11575
  })
11559
11576
  };
11560
11577
  }
@@ -11568,7 +11585,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
11568
11585
  backgroundColor: "mint",
11569
11586
  boxShadow: getBoxShadowString({
11570
11587
  baseShadow,
11571
- borderColor: colors.silver
11588
+ borderColor: colors.silver,
11589
+ isInset: false
11572
11590
  })
11573
11591
  };
11574
11592
  case "grey":
@@ -11576,7 +11594,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
11576
11594
  backgroundColor: "white",
11577
11595
  boxShadow: getBoxShadowString({
11578
11596
  baseShadow,
11579
- borderColor: colors.steel
11597
+ borderColor: colors.steel,
11598
+ isInset: false
11580
11599
  })
11581
11600
  };
11582
11601
  default:
@@ -11584,7 +11603,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
11584
11603
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[50]) ?? "lightGrey",
11585
11604
  boxShadow: getBoxShadowString({
11586
11605
  baseShadow,
11587
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver
11606
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver,
11607
+ isInset: false
11588
11608
  })
11589
11609
  };
11590
11610
  }
package/dist/index.d.ts CHANGED
@@ -1891,37 +1891,37 @@ type ColorsType = typeof tokens__default.color.alias & typeof tokens__default.co
1891
1891
 
1892
1892
  declare const textStyles: {
1893
1893
  "2xl": {
1894
- fontSize: string[];
1894
+ fontSize: (string | null)[];
1895
1895
  fontFamily: string;
1896
1896
  lineHeight: string;
1897
1897
  };
1898
1898
  "xl-display": {
1899
- fontSize: string[];
1899
+ fontSize: (string | null)[];
1900
1900
  fontFamily: string;
1901
1901
  lineHeight: string;
1902
1902
  };
1903
1903
  "xl-sans": {
1904
- fontSize: string[];
1904
+ fontSize: (string | null)[];
1905
1905
  fontFamily: string;
1906
1906
  lineHeight: string;
1907
1907
  };
1908
1908
  lg: {
1909
- fontSize: string[];
1909
+ fontSize: (string | null)[];
1910
1910
  fontFamily: string;
1911
1911
  lineHeight: string;
1912
1912
  };
1913
1913
  md: {
1914
- fontSize: string[];
1914
+ fontSize: (string | null)[];
1915
1915
  fontFamily: string;
1916
1916
  lineHeight: string;
1917
1917
  };
1918
1918
  sm: {
1919
- fontSize: string[];
1919
+ fontSize: (string | null)[];
1920
1920
  fontFamily: string;
1921
1921
  lineHeight: string;
1922
1922
  };
1923
1923
  xs: {
1924
- fontSize: string[];
1924
+ fontSize: (string | null)[];
1925
1925
  fontFamily: string;
1926
1926
  lineHeight: string;
1927
1927
  };
@@ -2352,6 +2352,7 @@ declare const theme: {
2352
2352
  border: string;
2353
2353
  overflow: string;
2354
2354
  fontSize: string;
2355
+ display: string;
2355
2356
  transitionProperty: string;
2356
2357
  transitionDuration: string;
2357
2358
  borderRadius: string;
@@ -6538,6 +6539,7 @@ declare const theme: {
6538
6539
  "lg-dashed": string;
6539
6540
  };
6540
6541
  breakpoints: {
6542
+ base: string;
6541
6543
  sm: string;
6542
6544
  md: string;
6543
6545
  lg: string;
@@ -6801,37 +6803,37 @@ declare const theme: {
6801
6803
  }, string>;
6802
6804
  textStyles: {
6803
6805
  "2xl": {
6804
- fontSize: string[];
6806
+ fontSize: (string | null)[];
6805
6807
  fontFamily: string;
6806
6808
  lineHeight: string;
6807
6809
  };
6808
6810
  "xl-display": {
6809
- fontSize: string[];
6811
+ fontSize: (string | null)[];
6810
6812
  fontFamily: string;
6811
6813
  lineHeight: string;
6812
6814
  };
6813
6815
  "xl-sans": {
6814
- fontSize: string[];
6816
+ fontSize: (string | null)[];
6815
6817
  fontFamily: string;
6816
6818
  lineHeight: string;
6817
6819
  };
6818
6820
  lg: {
6819
- fontSize: string[];
6821
+ fontSize: (string | null)[];
6820
6822
  fontFamily: string;
6821
6823
  lineHeight: string;
6822
6824
  };
6823
6825
  md: {
6824
- fontSize: string[];
6826
+ fontSize: (string | null)[];
6825
6827
  fontFamily: string;
6826
6828
  lineHeight: string;
6827
6829
  };
6828
6830
  sm: {
6829
- fontSize: string[];
6831
+ fontSize: (string | null)[];
6830
6832
  fontFamily: string;
6831
6833
  lineHeight: string;
6832
6834
  };
6833
6835
  xs: {
6834
- fontSize: string[];
6836
+ fontSize: (string | null)[];
6835
6837
  fontFamily: string;
6836
6838
  lineHeight: string;
6837
6839
  };
package/dist/index.js CHANGED
@@ -18665,6 +18665,7 @@ var breakpoints2;
18665
18665
  var init_breakpoints = __esm({
18666
18666
  "src/theme/foundations/breakpoints.ts"() {
18667
18667
  breakpoints2 = {
18668
+ base: "0px",
18668
18669
  sm: tokens10__namespace.default.size.breakpoint.sm,
18669
18670
  md: tokens10__namespace.default.size.breakpoint.md,
18670
18671
  lg: tokens10__namespace.default.size.breakpoint.lg,
@@ -18819,6 +18820,7 @@ var init_textStyles = __esm({
18819
18820
  "2xl": {
18820
18821
  fontSize: [
18821
18822
  tokens10__namespace.default.font.style.xxl["font-size"].mobile,
18823
+ null,
18822
18824
  tokens10__namespace.default.font.style.xxl["font-size"].desktop
18823
18825
  ],
18824
18826
  fontFamily: tokens10__namespace.default.font.style.xxl["font-family"],
@@ -18827,6 +18829,7 @@ var init_textStyles = __esm({
18827
18829
  "xl-display": {
18828
18830
  fontSize: [
18829
18831
  tokens10__namespace.default.font.style["xl-display"]["font-size"].mobile,
18832
+ null,
18830
18833
  tokens10__namespace.default.font.style["xl-display"]["font-size"].desktop
18831
18834
  ],
18832
18835
  fontFamily: tokens10__namespace.default.font.style["xl-display"]["font-family"],
@@ -18835,6 +18838,7 @@ var init_textStyles = __esm({
18835
18838
  "xl-sans": {
18836
18839
  fontSize: [
18837
18840
  tokens10__namespace.default.font.style["xl-sans"]["font-size"].mobile,
18841
+ null,
18838
18842
  tokens10__namespace.default.font.style["xl-sans"]["font-size"].desktop
18839
18843
  ],
18840
18844
  fontFamily: tokens10__namespace.default.font.style["xl-sans"]["font-family"],
@@ -18843,6 +18847,7 @@ var init_textStyles = __esm({
18843
18847
  lg: {
18844
18848
  fontSize: [
18845
18849
  tokens10__namespace.default.font.style.lg["font-size"].mobile,
18850
+ null,
18846
18851
  tokens10__namespace.default.font.style.lg["font-size"].desktop
18847
18852
  ],
18848
18853
  fontFamily: tokens10__namespace.default.font.style.lg["font-family"],
@@ -18851,6 +18856,7 @@ var init_textStyles = __esm({
18851
18856
  md: {
18852
18857
  fontSize: [
18853
18858
  tokens10__namespace.default.font.style.md["font-size"].mobile,
18859
+ null,
18854
18860
  tokens10__namespace.default.font.style.md["font-size"].desktop
18855
18861
  ],
18856
18862
  fontFamily: tokens10__namespace.default.font.style.md["font-family"],
@@ -18859,6 +18865,7 @@ var init_textStyles = __esm({
18859
18865
  sm: {
18860
18866
  fontSize: [
18861
18867
  tokens10__namespace.default.font.style.sm["font-size"].mobile,
18868
+ null,
18862
18869
  tokens10__namespace.default.font.style.sm["font-size"].desktop
18863
18870
  ],
18864
18871
  fontFamily: tokens10__namespace.default.font.style.sm["font-family"],
@@ -18867,6 +18874,7 @@ var init_textStyles = __esm({
18867
18874
  xs: {
18868
18875
  fontSize: [
18869
18876
  tokens10__namespace.default.font.style.xs["font-size"].mobile,
18877
+ null,
18870
18878
  tokens10__namespace.default.font.style.xs["font-size"].desktop
18871
18879
  ],
18872
18880
  fontFamily: tokens10__namespace.default.font.style.xs["font-family"],
@@ -19464,7 +19472,7 @@ function getColorSchemeBaseProps({ colorScheme }) {
19464
19472
  switch (colorScheme) {
19465
19473
  case "white":
19466
19474
  return {
19467
- backgroundColor: "lightGrey"
19475
+ backgroundColor: "white"
19468
19476
  };
19469
19477
  case "grey":
19470
19478
  return {
@@ -19489,14 +19497,16 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
19489
19497
  return {
19490
19498
  boxShadow: getBoxShadowString({
19491
19499
  baseShadow,
19492
- borderColor: "silver"
19500
+ borderColor: "silver",
19501
+ isInset: false
19493
19502
  })
19494
19503
  };
19495
19504
  case "grey":
19496
19505
  return {
19497
19506
  boxShadow: getBoxShadowString({
19498
19507
  baseShadow,
19499
- borderColor: "steel"
19508
+ borderColor: "steel",
19509
+ isInset: false
19500
19510
  })
19501
19511
  };
19502
19512
  default:
@@ -19504,7 +19514,8 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
19504
19514
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum",
19505
19515
  boxShadow: getBoxShadowString({
19506
19516
  baseShadow,
19507
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
19517
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver",
19518
+ isInset: false
19508
19519
  })
19509
19520
  };
19510
19521
  }
@@ -19517,14 +19528,16 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
19517
19528
  return {
19518
19529
  boxShadow: getBoxShadowString({
19519
19530
  baseShadow,
19520
- borderColor: colors.steel
19531
+ borderColor: colors.steel,
19532
+ isInset: false
19521
19533
  })
19522
19534
  };
19523
19535
  case "grey":
19524
19536
  return {
19525
19537
  boxShadow: getBoxShadowString({
19526
19538
  baseShadow,
19527
- borderColor: colors.osloGrey
19539
+ borderColor: colors.osloGrey,
19540
+ isInset: false
19528
19541
  })
19529
19542
  };
19530
19543
  default:
@@ -19532,7 +19545,8 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
19532
19545
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[200]) ?? "silver",
19533
19546
  boxShadow: getBoxShadowString({
19534
19547
  baseShadow,
19535
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver
19548
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver,
19549
+ isInset: false
19536
19550
  })
19537
19551
  };
19538
19552
  }
@@ -19546,7 +19560,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
19546
19560
  backgroundColor: "mint",
19547
19561
  boxShadow: getBoxShadowString({
19548
19562
  baseShadow,
19549
- borderColor: colors.silver
19563
+ borderColor: colors.silver,
19564
+ isInset: false
19550
19565
  })
19551
19566
  };
19552
19567
  case "grey":
@@ -19554,7 +19569,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
19554
19569
  backgroundColor: "white",
19555
19570
  boxShadow: getBoxShadowString({
19556
19571
  baseShadow,
19557
- borderColor: colors.steel
19572
+ borderColor: colors.steel,
19573
+ isInset: false
19558
19574
  })
19559
19575
  };
19560
19576
  default:
@@ -19562,7 +19578,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
19562
19578
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[50]) ?? "lightGrey",
19563
19579
  boxShadow: getBoxShadowString({
19564
19580
  baseShadow,
19565
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver
19581
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver,
19582
+ isInset: false
19566
19583
  })
19567
19584
  };
19568
19585
  }
@@ -19579,6 +19596,7 @@ var init_card2 = __esm({
19579
19596
  border: "none",
19580
19597
  overflow: "hidden",
19581
19598
  fontSize: "inherit",
19599
+ display: "block",
19582
19600
  transitionProperty: "common",
19583
19601
  transitionDuration: "fast",
19584
19602
  borderRadius: "md",
@@ -19591,7 +19609,8 @@ var init_card2 = __esm({
19591
19609
  focus: {
19592
19610
  boxShadow: getBoxShadowString({
19593
19611
  borderColor: "greenHaze",
19594
- borderWidth: 2
19612
+ borderWidth: 2,
19613
+ isInset: false
19595
19614
  }),
19596
19615
  outline: "none",
19597
19616
  _active: getColorSchemeActiveProps(props)
@@ -19604,7 +19623,8 @@ var init_card2 = __esm({
19604
19623
  _disabled: {
19605
19624
  backgroundColor: "platinum",
19606
19625
  boxShadow: getBoxShadowString({
19607
- borderColor: "silver"
19626
+ borderColor: "silver",
19627
+ isInset: false
19608
19628
  }),
19609
19629
  color: "osloGrey",
19610
19630
  pointerEvents: "none"
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-A7MCH3JW.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-DOHLC4LS.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -9,6 +9,7 @@ const config = defineStyleConfig({
9
9
  border: "none",
10
10
  overflow: "hidden",
11
11
  fontSize: "inherit",
12
+ display: "block",
12
13
  transitionProperty: "common",
13
14
  transitionDuration: "fast",
14
15
  borderRadius: "md",
@@ -23,6 +24,7 @@ const config = defineStyleConfig({
23
24
  boxShadow: getBoxShadowString({
24
25
  borderColor: "greenHaze",
25
26
  borderWidth: 2,
27
+ isInset: false,
26
28
  }),
27
29
  outline: "none",
28
30
  _active: getColorSchemeActiveProps(props),
@@ -36,6 +38,7 @@ const config = defineStyleConfig({
36
38
  backgroundColor: "platinum",
37
39
  boxShadow: getBoxShadowString({
38
40
  borderColor: "silver",
41
+ isInset: false,
39
42
  }),
40
43
  color: "osloGrey",
41
44
  pointerEvents: "none",
@@ -64,7 +67,7 @@ function getColorSchemeBaseProps({ colorScheme }: CardThemeProps): {
64
67
  switch (colorScheme) {
65
68
  case "white":
66
69
  return {
67
- backgroundColor: "lightGrey",
70
+ backgroundColor: "white",
68
71
  };
69
72
  case "grey":
70
73
  return {
@@ -90,6 +93,7 @@ function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
90
93
  boxShadow: getBoxShadowString({
91
94
  baseShadow,
92
95
  borderColor: "silver",
96
+ isInset: false,
93
97
  }),
94
98
  };
95
99
  case "grey":
@@ -97,6 +101,7 @@ function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
97
101
  boxShadow: getBoxShadowString({
98
102
  baseShadow,
99
103
  borderColor: "steel",
104
+ isInset: false,
100
105
  }),
101
106
  };
102
107
  default:
@@ -105,6 +110,7 @@ function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
105
110
  boxShadow: getBoxShadowString({
106
111
  baseShadow,
107
112
  borderColor: colors[colorScheme]?.[200] ?? "silver",
113
+ isInset: false,
108
114
  }),
109
115
  };
110
116
  }
@@ -118,6 +124,7 @@ function getColorSchemeHoverProps({ colorScheme, size }: CardThemeProps) {
118
124
  boxShadow: getBoxShadowString({
119
125
  baseShadow,
120
126
  borderColor: colors.steel,
127
+ isInset: false,
121
128
  }),
122
129
  };
123
130
  case "grey":
@@ -125,6 +132,7 @@ function getColorSchemeHoverProps({ colorScheme, size }: CardThemeProps) {
125
132
  boxShadow: getBoxShadowString({
126
133
  baseShadow,
127
134
  borderColor: colors.osloGrey,
135
+ isInset: false,
128
136
  }),
129
137
  };
130
138
  default:
@@ -133,6 +141,7 @@ function getColorSchemeHoverProps({ colorScheme, size }: CardThemeProps) {
133
141
  boxShadow: getBoxShadowString({
134
142
  baseShadow,
135
143
  borderColor: colors[colorScheme]?.[400] ?? colors.silver,
144
+ isInset: false,
136
145
  }),
137
146
  };
138
147
  }
@@ -147,6 +156,7 @@ function getColorSchemeActiveProps({ colorScheme, size }: CardThemeProps) {
147
156
  boxShadow: getBoxShadowString({
148
157
  baseShadow,
149
158
  borderColor: colors.silver,
159
+ isInset: false,
150
160
  }),
151
161
  };
152
162
  case "grey":
@@ -155,6 +165,7 @@ function getColorSchemeActiveProps({ colorScheme, size }: CardThemeProps) {
155
165
  boxShadow: getBoxShadowString({
156
166
  baseShadow,
157
167
  borderColor: colors.steel,
168
+ isInset: false,
158
169
  }),
159
170
  };
160
171
  default:
@@ -163,6 +174,7 @@ function getColorSchemeActiveProps({ colorScheme, size }: CardThemeProps) {
163
174
  boxShadow: getBoxShadowString({
164
175
  baseShadow,
165
176
  borderColor: colors[colorScheme]?.[100] ?? colors.silver,
177
+ isInset: false,
166
178
  }),
167
179
  };
168
180
  }
@@ -1,6 +1,7 @@
1
1
  import tokens from "@vygruppen/spor-design-tokens";
2
2
 
3
3
  export const breakpoints = {
4
+ base: "0px",
4
5
  sm: tokens.size.breakpoint.sm,
5
6
  md: tokens.size.breakpoint.md,
6
7
  lg: tokens.size.breakpoint.lg,
@@ -4,6 +4,7 @@ export const textStyles = {
4
4
  "2xl": {
5
5
  fontSize: [
6
6
  tokens.font.style.xxl["font-size"].mobile,
7
+ null,
7
8
  tokens.font.style.xxl["font-size"].desktop,
8
9
  ],
9
10
  fontFamily: tokens.font.style.xxl["font-family"],
@@ -12,6 +13,7 @@ export const textStyles = {
12
13
  "xl-display": {
13
14
  fontSize: [
14
15
  tokens.font.style["xl-display"]["font-size"].mobile,
16
+ null,
15
17
  tokens.font.style["xl-display"]["font-size"].desktop,
16
18
  ],
17
19
  fontFamily: tokens.font.style["xl-display"]["font-family"],
@@ -20,6 +22,7 @@ export const textStyles = {
20
22
  "xl-sans": {
21
23
  fontSize: [
22
24
  tokens.font.style["xl-sans"]["font-size"].mobile,
25
+ null,
23
26
  tokens.font.style["xl-sans"]["font-size"].desktop,
24
27
  ],
25
28
  fontFamily: tokens.font.style["xl-sans"]["font-family"],
@@ -28,6 +31,7 @@ export const textStyles = {
28
31
  lg: {
29
32
  fontSize: [
30
33
  tokens.font.style.lg["font-size"].mobile,
34
+ null,
31
35
  tokens.font.style.lg["font-size"].desktop,
32
36
  ],
33
37
  fontFamily: tokens.font.style.lg["font-family"],
@@ -36,6 +40,7 @@ export const textStyles = {
36
40
  md: {
37
41
  fontSize: [
38
42
  tokens.font.style.md["font-size"].mobile,
43
+ null,
39
44
  tokens.font.style.md["font-size"].desktop,
40
45
  ],
41
46
  fontFamily: tokens.font.style.md["font-family"],
@@ -44,6 +49,7 @@ export const textStyles = {
44
49
  sm: {
45
50
  fontSize: [
46
51
  tokens.font.style.sm["font-size"].mobile,
52
+ null,
47
53
  tokens.font.style.sm["font-size"].desktop,
48
54
  ],
49
55
  fontFamily: tokens.font.style.sm["font-family"],
@@ -52,6 +58,7 @@ export const textStyles = {
52
58
  xs: {
53
59
  fontSize: [
54
60
  tokens.font.style.xs["font-size"].mobile,
61
+ null,
55
62
  tokens.font.style.xs["font-size"].desktop,
56
63
  ],
57
64
  fontFamily: tokens.font.style.xs["font-family"],