@vygruppen/spor-react 3.3.4 → 3.4.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@3.3.4 build
2
+ > @vygruppen/spor-react@3.4.0 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-QHD5YJ6K.mjs".
13
12
  "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
14
16
  ESM dist/index.mjs 2.01 KB
15
- ESM dist/CountryCodeSelect-HKZBFK6T.mjs 350.82 KB
16
- ESM dist/chunk-QHD5YJ6K.mjs 420.68 KB
17
- ESM ⚡️ Build success in 6202ms
18
- CJS dist/index.js 903.47 KB
19
- CJS ⚡️ Build success in 6203ms
20
- DTS ⚡️ Build success in 23010ms
21
- DTS dist/index.d.ts 252.39 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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 349fe0a5: Implement new breakpoint structure
8
+
9
+ This change introduces a new breakpoint between sm and md, and changes the breakpoint values slightly.
10
+
11
+ When upgrading, please make sure to check your responsive layouts.
12
+
13
+ ### Patch Changes
14
+
15
+ - b18e847b: Card: Update design for non-interactive cards
16
+ - Updated dependencies [349fe0a5]
17
+ - @vygruppen/spor-design-tokens@3.2.0
18
+
3
19
  ## 3.3.4
4
20
 
5
21
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-QHD5YJ6K.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-A7MCH3JW.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-HKZBFK6T.mjs'));
5087
+ var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-J3XCI72L.mjs'));
5088
5088
  var Radio = forwardRef((props, ref) => {
5089
5089
  return /* @__PURE__ */ React49__default.createElement(Radio$1, { ...props, ref });
5090
5090
  });
@@ -10771,8 +10771,8 @@ var breakpoints2 = {
10771
10771
  sm: tokens10__default.size.breakpoint.sm,
10772
10772
  md: tokens10__default.size.breakpoint.md,
10773
10773
  lg: tokens10__default.size.breakpoint.lg,
10774
- xl: tokens10__default.size.breakpoint.lg,
10775
- "2xl": tokens10__default.size.breakpoint.lg
10774
+ xl: tokens10__default.size.breakpoint.xl,
10775
+ "2xl": tokens10__default.size.breakpoint.xl
10776
10776
  };
10777
10777
 
10778
10778
  // src/theme/foundations/config.ts
@@ -11482,28 +11482,24 @@ var config7 = defineStyleConfig$1({
11482
11482
  });
11483
11483
  var card_default = config7;
11484
11484
  function getColorSchemeBaseProps({ colorScheme }) {
11485
- var _a6, _b5;
11485
+ var _a6;
11486
11486
  switch (colorScheme) {
11487
11487
  case "white":
11488
11488
  return {
11489
- backgroundColor: "white",
11490
- boxShadow: getBoxShadowString({
11491
- borderColor: "silver"
11492
- })
11489
+ backgroundColor: "lightGrey"
11493
11490
  };
11494
11491
  case "grey":
11495
11492
  return {
11496
- backgroundColor: "lightGrey",
11497
- boxShadow: getBoxShadowString({
11498
- borderColor: "steel"
11499
- })
11493
+ backgroundColor: "lightGrey"
11494
+ };
11495
+ case "green": {
11496
+ return {
11497
+ backgroundColor: "seaMist"
11500
11498
  };
11499
+ }
11501
11500
  default:
11502
11501
  return {
11503
- backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum",
11504
- boxShadow: getBoxShadowString({
11505
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
11506
- })
11502
+ backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
11507
11503
  };
11508
11504
  }
11509
11505
  }
package/dist/index.d.ts CHANGED
@@ -2348,7 +2348,6 @@ declare const theme: {
2348
2348
  boxShadow: string;
2349
2349
  };
2350
2350
  backgroundColor: string;
2351
- boxShadow: string;
2352
2351
  appearance: string;
2353
2352
  border: string;
2354
2353
  overflow: string;
package/dist/index.js CHANGED
@@ -18668,8 +18668,8 @@ var init_breakpoints = __esm({
18668
18668
  sm: tokens10__namespace.default.size.breakpoint.sm,
18669
18669
  md: tokens10__namespace.default.size.breakpoint.md,
18670
18670
  lg: tokens10__namespace.default.size.breakpoint.lg,
18671
- xl: tokens10__namespace.default.size.breakpoint.lg,
18672
- "2xl": tokens10__namespace.default.size.breakpoint.lg
18671
+ xl: tokens10__namespace.default.size.breakpoint.xl,
18672
+ "2xl": tokens10__namespace.default.size.breakpoint.xl
18673
18673
  };
18674
18674
  }
18675
18675
  });
@@ -19460,28 +19460,24 @@ var init_button2 = __esm({
19460
19460
  }
19461
19461
  });
19462
19462
  function getColorSchemeBaseProps({ colorScheme }) {
19463
- var _a6, _b5;
19463
+ var _a6;
19464
19464
  switch (colorScheme) {
19465
19465
  case "white":
19466
19466
  return {
19467
- backgroundColor: "white",
19468
- boxShadow: getBoxShadowString({
19469
- borderColor: "silver"
19470
- })
19467
+ backgroundColor: "lightGrey"
19471
19468
  };
19472
19469
  case "grey":
19473
19470
  return {
19474
- backgroundColor: "lightGrey",
19475
- boxShadow: getBoxShadowString({
19476
- borderColor: "steel"
19477
- })
19471
+ backgroundColor: "lightGrey"
19478
19472
  };
19473
+ case "green": {
19474
+ return {
19475
+ backgroundColor: "seaMist"
19476
+ };
19477
+ }
19479
19478
  default:
19480
19479
  return {
19481
- backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum",
19482
- boxShadow: getBoxShadowString({
19483
- borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[200]) ?? "silver"
19484
- })
19480
+ backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
19485
19481
  };
19486
19482
  }
19487
19483
  }
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-QHD5YJ6K.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-A7MCH3JW.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "3.3.4",
3
+ "version": "3.4.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -60,29 +60,24 @@ type CardThemeProps = {
60
60
 
61
61
  function getColorSchemeBaseProps({ colorScheme }: CardThemeProps): {
62
62
  backgroundColor: string;
63
- boxShadow: string;
64
63
  } {
65
64
  switch (colorScheme) {
66
65
  case "white":
67
66
  return {
68
- backgroundColor: "white",
69
- boxShadow: getBoxShadowString({
70
- borderColor: "silver",
71
- }),
67
+ backgroundColor: "lightGrey",
72
68
  };
73
69
  case "grey":
74
70
  return {
75
71
  backgroundColor: "lightGrey",
76
- boxShadow: getBoxShadowString({
77
- borderColor: "steel",
78
- }),
79
72
  };
73
+ case "green": {
74
+ return {
75
+ backgroundColor: "seaMist",
76
+ };
77
+ }
80
78
  default:
81
79
  return {
82
80
  backgroundColor: colors[colorScheme]?.[100] ?? "platinum",
83
- boxShadow: getBoxShadowString({
84
- borderColor: colors[colorScheme]?.[200] ?? "silver",
85
- }),
86
81
  };
87
82
  }
88
83
  }
@@ -4,6 +4,6 @@ export const breakpoints = {
4
4
  sm: tokens.size.breakpoint.sm,
5
5
  md: tokens.size.breakpoint.md,
6
6
  lg: tokens.size.breakpoint.lg,
7
- xl: tokens.size.breakpoint.lg,
8
- "2xl": tokens.size.breakpoint.lg,
7
+ xl: tokens.size.breakpoint.xl,
8
+ "2xl": tokens.size.breakpoint.xl,
9
9
  };