@vygruppen/spor-react 3.4.1 → 3.4.3

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.1 build
2
+ > @vygruppen/spor-react@3.4.3 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-LHZ4TUAK.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-GIXEJPV7.mjs".
14
- CJS dist/index.js 903.40 KB
15
- CJS ⚡️ Build success in 4807ms
16
14
  ESM dist/index.mjs 2.01 KB
17
- ESM dist/CountryCodeSelect-I6MGYQTH.mjs 350.82 KB
18
- ESM dist/chunk-GIXEJPV7.mjs 420.57 KB
19
- ESM ⚡️ Build success in 4808ms
20
- DTS ⚡️ Build success in 18338ms
15
+ ESM dist/CountryCodeSelect-EGTCLFUV.mjs 350.82 KB
16
+ ESM dist/chunk-LHZ4TUAK.mjs 420.93 KB
17
+ ESM ⚡️ Build success in 6586ms
18
+ CJS dist/index.js 903.79 KB
19
+ CJS ⚡️ Build success in 6587ms
20
+ DTS ⚡️ Build success in 22311ms
21
21
  DTS dist/index.d.ts 252.53 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 3.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6a74c8ab: Change when we use desktop font sizes
8
+
9
+ ## 3.4.2
10
+
11
+ ### Patch Changes
12
+
13
+ - f5fb6ae6: Card: Improve the way card outlines are generated
14
+ - 5b33fdc5: Card: Correct the colors of white cards
15
+
3
16
  ## 3.4.1
4
17
 
5
18
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-GIXEJPV7.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-LHZ4TUAK.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-I6MGYQTH.mjs'));
5087
+ var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-EGTCLFUV.mjs'));
5088
5088
  var Radio = forwardRef((props, ref) => {
5089
5089
  return /* @__PURE__ */ React49__default.createElement(Radio$1, { ...props, ref });
5090
5090
  });
@@ -10878,6 +10878,7 @@ var textStyles = {
10878
10878
  fontSize: [
10879
10879
  tokens10__default.font.style.xxl["font-size"].mobile,
10880
10880
  null,
10881
+ null,
10881
10882
  tokens10__default.font.style.xxl["font-size"].desktop
10882
10883
  ],
10883
10884
  fontFamily: tokens10__default.font.style.xxl["font-family"],
@@ -10887,6 +10888,7 @@ var textStyles = {
10887
10888
  fontSize: [
10888
10889
  tokens10__default.font.style["xl-display"]["font-size"].mobile,
10889
10890
  null,
10891
+ null,
10890
10892
  tokens10__default.font.style["xl-display"]["font-size"].desktop
10891
10893
  ],
10892
10894
  fontFamily: tokens10__default.font.style["xl-display"]["font-family"],
@@ -10896,6 +10898,7 @@ var textStyles = {
10896
10898
  fontSize: [
10897
10899
  tokens10__default.font.style["xl-sans"]["font-size"].mobile,
10898
10900
  null,
10901
+ null,
10899
10902
  tokens10__default.font.style["xl-sans"]["font-size"].desktop
10900
10903
  ],
10901
10904
  fontFamily: tokens10__default.font.style["xl-sans"]["font-family"],
@@ -10905,6 +10908,7 @@ var textStyles = {
10905
10908
  fontSize: [
10906
10909
  tokens10__default.font.style.lg["font-size"].mobile,
10907
10910
  null,
10911
+ null,
10908
10912
  tokens10__default.font.style.lg["font-size"].desktop
10909
10913
  ],
10910
10914
  fontFamily: tokens10__default.font.style.lg["font-family"],
@@ -10914,6 +10918,7 @@ var textStyles = {
10914
10918
  fontSize: [
10915
10919
  tokens10__default.font.style.md["font-size"].mobile,
10916
10920
  null,
10921
+ null,
10917
10922
  tokens10__default.font.style.md["font-size"].desktop
10918
10923
  ],
10919
10924
  fontFamily: tokens10__default.font.style.md["font-family"],
@@ -10923,6 +10928,7 @@ var textStyles = {
10923
10928
  fontSize: [
10924
10929
  tokens10__default.font.style.sm["font-size"].mobile,
10925
10930
  null,
10931
+ null,
10926
10932
  tokens10__default.font.style.sm["font-size"].desktop
10927
10933
  ],
10928
10934
  fontFamily: tokens10__default.font.style.sm["font-family"],
@@ -10932,6 +10938,7 @@ var textStyles = {
10932
10938
  fontSize: [
10933
10939
  tokens10__default.font.style.xs["font-size"].mobile,
10934
10940
  null,
10941
+ null,
10935
10942
  tokens10__default.font.style.xs["font-size"].desktop
10936
10943
  ],
10937
10944
  fontFamily: tokens10__default.font.style.xs["font-family"],
@@ -11468,7 +11475,8 @@ var config7 = defineStyleConfig$1({
11468
11475
  focus: {
11469
11476
  boxShadow: getBoxShadowString({
11470
11477
  borderColor: "greenHaze",
11471
- borderWidth: 2
11478
+ borderWidth: 2,
11479
+ isInset: false
11472
11480
  }),
11473
11481
  outline: "none",
11474
11482
  _active: getColorSchemeActiveProps(props)
@@ -11481,7 +11489,8 @@ var config7 = defineStyleConfig$1({
11481
11489
  _disabled: {
11482
11490
  backgroundColor: "platinum",
11483
11491
  boxShadow: getBoxShadowString({
11484
- borderColor: "silver"
11492
+ borderColor: "silver",
11493
+ isInset: false
11485
11494
  }),
11486
11495
  color: "osloGrey",
11487
11496
  pointerEvents: "none"
@@ -11495,7 +11504,7 @@ function getColorSchemeBaseProps({ colorScheme }) {
11495
11504
  switch (colorScheme) {
11496
11505
  case "white":
11497
11506
  return {
11498
- backgroundColor: "lightGrey"
11507
+ backgroundColor: "white"
11499
11508
  };
11500
11509
  case "grey":
11501
11510
  return {
@@ -11520,14 +11529,16 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
11520
11529
  return {
11521
11530
  boxShadow: getBoxShadowString({
11522
11531
  baseShadow,
11523
- borderColor: "silver"
11532
+ borderColor: "silver",
11533
+ isInset: false
11524
11534
  })
11525
11535
  };
11526
11536
  case "grey":
11527
11537
  return {
11528
11538
  boxShadow: getBoxShadowString({
11529
11539
  baseShadow,
11530
- borderColor: "steel"
11540
+ borderColor: "steel",
11541
+ isInset: false
11531
11542
  })
11532
11543
  };
11533
11544
  default:
@@ -11535,7 +11546,8 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
11535
11546
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum",
11536
11547
  boxShadow: getBoxShadowString({
11537
11548
  baseShadow,
11538
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
11549
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver",
11550
+ isInset: false
11539
11551
  })
11540
11552
  };
11541
11553
  }
@@ -11548,14 +11560,16 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
11548
11560
  return {
11549
11561
  boxShadow: getBoxShadowString({
11550
11562
  baseShadow,
11551
- borderColor: colors.steel
11563
+ borderColor: colors.steel,
11564
+ isInset: false
11552
11565
  })
11553
11566
  };
11554
11567
  case "grey":
11555
11568
  return {
11556
11569
  boxShadow: getBoxShadowString({
11557
11570
  baseShadow,
11558
- borderColor: colors.osloGrey
11571
+ borderColor: colors.osloGrey,
11572
+ isInset: false
11559
11573
  })
11560
11574
  };
11561
11575
  default:
@@ -11563,7 +11577,8 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
11563
11577
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[200]) ?? "silver",
11564
11578
  boxShadow: getBoxShadowString({
11565
11579
  baseShadow,
11566
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver
11580
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver,
11581
+ isInset: false
11567
11582
  })
11568
11583
  };
11569
11584
  }
@@ -11577,7 +11592,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
11577
11592
  backgroundColor: "mint",
11578
11593
  boxShadow: getBoxShadowString({
11579
11594
  baseShadow,
11580
- borderColor: colors.silver
11595
+ borderColor: colors.silver,
11596
+ isInset: false
11581
11597
  })
11582
11598
  };
11583
11599
  case "grey":
@@ -11585,7 +11601,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
11585
11601
  backgroundColor: "white",
11586
11602
  boxShadow: getBoxShadowString({
11587
11603
  baseShadow,
11588
- borderColor: colors.steel
11604
+ borderColor: colors.steel,
11605
+ isInset: false
11589
11606
  })
11590
11607
  };
11591
11608
  default:
@@ -11593,7 +11610,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
11593
11610
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[50]) ?? "lightGrey",
11594
11611
  boxShadow: getBoxShadowString({
11595
11612
  baseShadow,
11596
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver
11613
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver,
11614
+ isInset: false
11597
11615
  })
11598
11616
  };
11599
11617
  }
package/dist/index.js CHANGED
@@ -18821,6 +18821,7 @@ var init_textStyles = __esm({
18821
18821
  fontSize: [
18822
18822
  tokens10__namespace.default.font.style.xxl["font-size"].mobile,
18823
18823
  null,
18824
+ null,
18824
18825
  tokens10__namespace.default.font.style.xxl["font-size"].desktop
18825
18826
  ],
18826
18827
  fontFamily: tokens10__namespace.default.font.style.xxl["font-family"],
@@ -18830,6 +18831,7 @@ var init_textStyles = __esm({
18830
18831
  fontSize: [
18831
18832
  tokens10__namespace.default.font.style["xl-display"]["font-size"].mobile,
18832
18833
  null,
18834
+ null,
18833
18835
  tokens10__namespace.default.font.style["xl-display"]["font-size"].desktop
18834
18836
  ],
18835
18837
  fontFamily: tokens10__namespace.default.font.style["xl-display"]["font-family"],
@@ -18839,6 +18841,7 @@ var init_textStyles = __esm({
18839
18841
  fontSize: [
18840
18842
  tokens10__namespace.default.font.style["xl-sans"]["font-size"].mobile,
18841
18843
  null,
18844
+ null,
18842
18845
  tokens10__namespace.default.font.style["xl-sans"]["font-size"].desktop
18843
18846
  ],
18844
18847
  fontFamily: tokens10__namespace.default.font.style["xl-sans"]["font-family"],
@@ -18848,6 +18851,7 @@ var init_textStyles = __esm({
18848
18851
  fontSize: [
18849
18852
  tokens10__namespace.default.font.style.lg["font-size"].mobile,
18850
18853
  null,
18854
+ null,
18851
18855
  tokens10__namespace.default.font.style.lg["font-size"].desktop
18852
18856
  ],
18853
18857
  fontFamily: tokens10__namespace.default.font.style.lg["font-family"],
@@ -18857,6 +18861,7 @@ var init_textStyles = __esm({
18857
18861
  fontSize: [
18858
18862
  tokens10__namespace.default.font.style.md["font-size"].mobile,
18859
18863
  null,
18864
+ null,
18860
18865
  tokens10__namespace.default.font.style.md["font-size"].desktop
18861
18866
  ],
18862
18867
  fontFamily: tokens10__namespace.default.font.style.md["font-family"],
@@ -18866,6 +18871,7 @@ var init_textStyles = __esm({
18866
18871
  fontSize: [
18867
18872
  tokens10__namespace.default.font.style.sm["font-size"].mobile,
18868
18873
  null,
18874
+ null,
18869
18875
  tokens10__namespace.default.font.style.sm["font-size"].desktop
18870
18876
  ],
18871
18877
  fontFamily: tokens10__namespace.default.font.style.sm["font-family"],
@@ -18875,6 +18881,7 @@ var init_textStyles = __esm({
18875
18881
  fontSize: [
18876
18882
  tokens10__namespace.default.font.style.xs["font-size"].mobile,
18877
18883
  null,
18884
+ null,
18878
18885
  tokens10__namespace.default.font.style.xs["font-size"].desktop
18879
18886
  ],
18880
18887
  fontFamily: tokens10__namespace.default.font.style.xs["font-family"],
@@ -19472,7 +19479,7 @@ function getColorSchemeBaseProps({ colorScheme }) {
19472
19479
  switch (colorScheme) {
19473
19480
  case "white":
19474
19481
  return {
19475
- backgroundColor: "lightGrey"
19482
+ backgroundColor: "white"
19476
19483
  };
19477
19484
  case "grey":
19478
19485
  return {
@@ -19497,14 +19504,16 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
19497
19504
  return {
19498
19505
  boxShadow: getBoxShadowString({
19499
19506
  baseShadow,
19500
- borderColor: "silver"
19507
+ borderColor: "silver",
19508
+ isInset: false
19501
19509
  })
19502
19510
  };
19503
19511
  case "grey":
19504
19512
  return {
19505
19513
  boxShadow: getBoxShadowString({
19506
19514
  baseShadow,
19507
- borderColor: "steel"
19515
+ borderColor: "steel",
19516
+ isInset: false
19508
19517
  })
19509
19518
  };
19510
19519
  default:
@@ -19512,7 +19521,8 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
19512
19521
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum",
19513
19522
  boxShadow: getBoxShadowString({
19514
19523
  baseShadow,
19515
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
19524
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver",
19525
+ isInset: false
19516
19526
  })
19517
19527
  };
19518
19528
  }
@@ -19525,14 +19535,16 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
19525
19535
  return {
19526
19536
  boxShadow: getBoxShadowString({
19527
19537
  baseShadow,
19528
- borderColor: colors.steel
19538
+ borderColor: colors.steel,
19539
+ isInset: false
19529
19540
  })
19530
19541
  };
19531
19542
  case "grey":
19532
19543
  return {
19533
19544
  boxShadow: getBoxShadowString({
19534
19545
  baseShadow,
19535
- borderColor: colors.osloGrey
19546
+ borderColor: colors.osloGrey,
19547
+ isInset: false
19536
19548
  })
19537
19549
  };
19538
19550
  default:
@@ -19540,7 +19552,8 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
19540
19552
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[200]) ?? "silver",
19541
19553
  boxShadow: getBoxShadowString({
19542
19554
  baseShadow,
19543
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver
19555
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver,
19556
+ isInset: false
19544
19557
  })
19545
19558
  };
19546
19559
  }
@@ -19554,7 +19567,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
19554
19567
  backgroundColor: "mint",
19555
19568
  boxShadow: getBoxShadowString({
19556
19569
  baseShadow,
19557
- borderColor: colors.silver
19570
+ borderColor: colors.silver,
19571
+ isInset: false
19558
19572
  })
19559
19573
  };
19560
19574
  case "grey":
@@ -19562,7 +19576,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
19562
19576
  backgroundColor: "white",
19563
19577
  boxShadow: getBoxShadowString({
19564
19578
  baseShadow,
19565
- borderColor: colors.steel
19579
+ borderColor: colors.steel,
19580
+ isInset: false
19566
19581
  })
19567
19582
  };
19568
19583
  default:
@@ -19570,7 +19585,8 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
19570
19585
  backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[50]) ?? "lightGrey",
19571
19586
  boxShadow: getBoxShadowString({
19572
19587
  baseShadow,
19573
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver
19588
+ borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver,
19589
+ isInset: false
19574
19590
  })
19575
19591
  };
19576
19592
  }
@@ -19600,7 +19616,8 @@ var init_card2 = __esm({
19600
19616
  focus: {
19601
19617
  boxShadow: getBoxShadowString({
19602
19618
  borderColor: "greenHaze",
19603
- borderWidth: 2
19619
+ borderWidth: 2,
19620
+ isInset: false
19604
19621
  }),
19605
19622
  outline: "none",
19606
19623
  _active: getColorSchemeActiveProps(props)
@@ -19613,7 +19630,8 @@ var init_card2 = __esm({
19613
19630
  _disabled: {
19614
19631
  backgroundColor: "platinum",
19615
19632
  boxShadow: getBoxShadowString({
19616
- borderColor: "silver"
19633
+ borderColor: "silver",
19634
+ isInset: false
19617
19635
  }),
19618
19636
  color: "osloGrey",
19619
19637
  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-GIXEJPV7.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-LHZ4TUAK.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -24,6 +24,7 @@ const config = defineStyleConfig({
24
24
  boxShadow: getBoxShadowString({
25
25
  borderColor: "greenHaze",
26
26
  borderWidth: 2,
27
+ isInset: false,
27
28
  }),
28
29
  outline: "none",
29
30
  _active: getColorSchemeActiveProps(props),
@@ -37,6 +38,7 @@ const config = defineStyleConfig({
37
38
  backgroundColor: "platinum",
38
39
  boxShadow: getBoxShadowString({
39
40
  borderColor: "silver",
41
+ isInset: false,
40
42
  }),
41
43
  color: "osloGrey",
42
44
  pointerEvents: "none",
@@ -65,7 +67,7 @@ function getColorSchemeBaseProps({ colorScheme }: CardThemeProps): {
65
67
  switch (colorScheme) {
66
68
  case "white":
67
69
  return {
68
- backgroundColor: "lightGrey",
70
+ backgroundColor: "white",
69
71
  };
70
72
  case "grey":
71
73
  return {
@@ -91,6 +93,7 @@ function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
91
93
  boxShadow: getBoxShadowString({
92
94
  baseShadow,
93
95
  borderColor: "silver",
96
+ isInset: false,
94
97
  }),
95
98
  };
96
99
  case "grey":
@@ -98,6 +101,7 @@ function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
98
101
  boxShadow: getBoxShadowString({
99
102
  baseShadow,
100
103
  borderColor: "steel",
104
+ isInset: false,
101
105
  }),
102
106
  };
103
107
  default:
@@ -106,6 +110,7 @@ function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
106
110
  boxShadow: getBoxShadowString({
107
111
  baseShadow,
108
112
  borderColor: colors[colorScheme]?.[200] ?? "silver",
113
+ isInset: false,
109
114
  }),
110
115
  };
111
116
  }
@@ -119,6 +124,7 @@ function getColorSchemeHoverProps({ colorScheme, size }: CardThemeProps) {
119
124
  boxShadow: getBoxShadowString({
120
125
  baseShadow,
121
126
  borderColor: colors.steel,
127
+ isInset: false,
122
128
  }),
123
129
  };
124
130
  case "grey":
@@ -126,6 +132,7 @@ function getColorSchemeHoverProps({ colorScheme, size }: CardThemeProps) {
126
132
  boxShadow: getBoxShadowString({
127
133
  baseShadow,
128
134
  borderColor: colors.osloGrey,
135
+ isInset: false,
129
136
  }),
130
137
  };
131
138
  default:
@@ -134,6 +141,7 @@ function getColorSchemeHoverProps({ colorScheme, size }: CardThemeProps) {
134
141
  boxShadow: getBoxShadowString({
135
142
  baseShadow,
136
143
  borderColor: colors[colorScheme]?.[400] ?? colors.silver,
144
+ isInset: false,
137
145
  }),
138
146
  };
139
147
  }
@@ -148,6 +156,7 @@ function getColorSchemeActiveProps({ colorScheme, size }: CardThemeProps) {
148
156
  boxShadow: getBoxShadowString({
149
157
  baseShadow,
150
158
  borderColor: colors.silver,
159
+ isInset: false,
151
160
  }),
152
161
  };
153
162
  case "grey":
@@ -156,6 +165,7 @@ function getColorSchemeActiveProps({ colorScheme, size }: CardThemeProps) {
156
165
  boxShadow: getBoxShadowString({
157
166
  baseShadow,
158
167
  borderColor: colors.steel,
168
+ isInset: false,
159
169
  }),
160
170
  };
161
171
  default:
@@ -164,6 +174,7 @@ function getColorSchemeActiveProps({ colorScheme, size }: CardThemeProps) {
164
174
  boxShadow: getBoxShadowString({
165
175
  baseShadow,
166
176
  borderColor: colors[colorScheme]?.[100] ?? colors.silver,
177
+ isInset: false,
167
178
  }),
168
179
  };
169
180
  }
@@ -5,6 +5,7 @@ export const textStyles = {
5
5
  fontSize: [
6
6
  tokens.font.style.xxl["font-size"].mobile,
7
7
  null,
8
+ null,
8
9
  tokens.font.style.xxl["font-size"].desktop,
9
10
  ],
10
11
  fontFamily: tokens.font.style.xxl["font-family"],
@@ -14,6 +15,7 @@ export const textStyles = {
14
15
  fontSize: [
15
16
  tokens.font.style["xl-display"]["font-size"].mobile,
16
17
  null,
18
+ null,
17
19
  tokens.font.style["xl-display"]["font-size"].desktop,
18
20
  ],
19
21
  fontFamily: tokens.font.style["xl-display"]["font-family"],
@@ -23,6 +25,7 @@ export const textStyles = {
23
25
  fontSize: [
24
26
  tokens.font.style["xl-sans"]["font-size"].mobile,
25
27
  null,
28
+ null,
26
29
  tokens.font.style["xl-sans"]["font-size"].desktop,
27
30
  ],
28
31
  fontFamily: tokens.font.style["xl-sans"]["font-family"],
@@ -32,6 +35,7 @@ export const textStyles = {
32
35
  fontSize: [
33
36
  tokens.font.style.lg["font-size"].mobile,
34
37
  null,
38
+ null,
35
39
  tokens.font.style.lg["font-size"].desktop,
36
40
  ],
37
41
  fontFamily: tokens.font.style.lg["font-family"],
@@ -41,6 +45,7 @@ export const textStyles = {
41
45
  fontSize: [
42
46
  tokens.font.style.md["font-size"].mobile,
43
47
  null,
48
+ null,
44
49
  tokens.font.style.md["font-size"].desktop,
45
50
  ],
46
51
  fontFamily: tokens.font.style.md["font-family"],
@@ -50,6 +55,7 @@ export const textStyles = {
50
55
  fontSize: [
51
56
  tokens.font.style.sm["font-size"].mobile,
52
57
  null,
58
+ null,
53
59
  tokens.font.style.sm["font-size"].desktop,
54
60
  ],
55
61
  fontFamily: tokens.font.style.sm["font-family"],
@@ -59,6 +65,7 @@ export const textStyles = {
59
65
  fontSize: [
60
66
  tokens.font.style.xs["font-size"].mobile,
61
67
  null,
68
+ null,
62
69
  tokens.font.style.xs["font-size"].desktop,
63
70
  ],
64
71
  fontFamily: tokens.font.style.xs["font-family"],