@vygruppen/spor-react 9.6.2 → 9.6.4

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@9.6.2 build
2
+ > @vygruppen/spor-react@9.6.4 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -10,11 +10,11 @@
10
10
  ESM Build start
11
11
  DTS Build start
12
12
  ESM dist/index.mjs 2.08 KB
13
- ESM dist/CountryCodeSelect-EZTV452W.mjs 1.19 KB
14
- ESM dist/chunk-7VZBL2PP.mjs 396.18 KB
15
- ESM ⚡️ Build success in 2224ms
16
- CJS dist/index.js 506.01 KB
17
- CJS ⚡️ Build success in 2225ms
18
- DTS ⚡️ Build success in 13063ms
19
- DTS dist/index.d.ts 348.14 KB
20
- DTS dist/index.d.mts 348.14 KB
13
+ ESM dist/CountryCodeSelect-7H2EVFV3.mjs 1.19 KB
14
+ ESM dist/chunk-V5JHGMIB.mjs 396.29 KB
15
+ ESM ⚡️ Build success in 2241ms
16
+ CJS dist/index.js 506.14 KB
17
+ CJS ⚡️ Build success in 2242ms
18
+ DTS ⚡️ Build success in 12386ms
19
+ DTS dist/index.d.ts 348.30 KB
20
+ DTS dist/index.d.mts 348.30 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 9.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 457fd2a: Stop Card from disregarding allowed styling related props
8
+
9
+ ## 9.6.3
10
+
11
+ ### Patch Changes
12
+
13
+ - d998cb8: Improve layout of tables when content overflow and in responsive views
14
+
3
15
  ## 9.6.2
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-7VZBL2PP.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-V5JHGMIB.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import tokens11__default from '@vygruppen/spor-design-tokens';
2
2
  import * as tokens11 from '@vygruppen/spor-design-tokens';
3
3
  export { tokens11 as tokens };
4
- import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, useStyleConfig, Box, Center, Flex, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, chakra, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, useFormControlContext, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, Button as Button$1, useControllableState, Radio as Radio$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Textarea as Textarea$1, Link, ModalHeader as ModalHeader$1, useModalContext, DrawerContent as DrawerContent$1, Tabs as Tabs$1, Table as Table$1, defineStyleConfig as defineStyleConfig$1, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, useColorMode, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, useColorModeValue, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerBody, DrawerHeader, useMediaQuery, DrawerCloseButton, DarkMode, PopoverCloseButton, usePopoverContext, UnorderedList, ChakraProvider, useToast as useToast$1, useInterval } from '@chakra-ui/react';
4
+ import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, useStyleConfig, Box, Center, Flex, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, useFormControlContext, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, chakra, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, Button as Button$1, useControllableState, Radio as Radio$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Textarea as Textarea$1, Link, ModalHeader as ModalHeader$1, useModalContext, DrawerContent as DrawerContent$1, Tabs as Tabs$1, Table as Table$1, defineStyleConfig as defineStyleConfig$1, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, useColorMode, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, useColorModeValue, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerBody, DrawerHeader, useMediaQuery, DrawerCloseButton, DarkMode, PopoverCloseButton, usePopoverContext, UnorderedList, ChakraProvider, useToast as useToast$1, useInterval } from '@chakra-ui/react';
5
5
  export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Box, Center, Collapse, Container, DarkMode, DrawerBody, DrawerCloseButton, DrawerFooter, DrawerOverlay, Fade, Flex, FormHelperText, Grid, GridItem, HStack, Image, Img, InputGroup, LightMode, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalOverlay, OrderedList, Portal, ScaleFade, SimpleGrid, Slide, SlideFade, Spacer, Tab, TabList, TabPanel, TabPanels, TableCaption, Tbody, Td, Tfoot, Th, Thead, Tr, UnorderedList, VStack, Wrap, WrapItem, defineStyleConfig, extendTheme, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToken } from '@chakra-ui/react';
6
6
  import * as React71 from 'react';
7
7
  import React71__default, { createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, useId, Suspense, useContext, useCallback, useMemo, useLayoutEffect } from 'react';
@@ -1553,7 +1553,7 @@ var Card = forwardRef(
1553
1553
  colorScheme,
1554
1554
  size: size2
1555
1555
  });
1556
- return /* @__PURE__ */ React71__default.createElement(chakra.div, { sx: styles3, ...props, ref }, children);
1556
+ return /* @__PURE__ */ React71__default.createElement(Box, { __css: styles3, ...props, ref }, children);
1557
1557
  }
1558
1558
  );
1559
1559
  var StaticCard = ({ colorScheme, ...props }) => {
@@ -3365,7 +3365,7 @@ var texts14 = createTexts({
3365
3365
  sv: "Telefonnummer"
3366
3366
  }
3367
3367
  });
3368
- var LazyCountryCodeSelect = React71__default.lazy(() => import('./CountryCodeSelect-EZTV452W.mjs'));
3368
+ var LazyCountryCodeSelect = React71__default.lazy(() => import('./CountryCodeSelect-7H2EVFV3.mjs'));
3369
3369
  var Radio = forwardRef((props, ref) => {
3370
3370
  return /* @__PURE__ */ React71__default.createElement(Radio$1, { ...props, ref });
3371
3371
  });
@@ -4587,7 +4587,7 @@ var Tabs = forwardRef((props, ref) => {
4587
4587
  });
4588
4588
  var Table = forwardRef((props, ref) => {
4589
4589
  const { variant, size: size2, colorScheme, children, ...rest } = props;
4590
- return /* @__PURE__ */ React71__default.createElement(Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React71__default.createElement(Box, { overflowX: "auto" }, /* @__PURE__ */ React71__default.createElement(
4590
+ return /* @__PURE__ */ React71__default.createElement(Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React71__default.createElement(Box, { overflowX: "auto", role: "region" }, /* @__PURE__ */ React71__default.createElement(
4591
4591
  Table$1,
4592
4592
  {
4593
4593
  variant,
@@ -13189,14 +13189,18 @@ var config38 = helpers28.defineMultiStyleConfig({
13189
13189
  table: {
13190
13190
  borderCollapse: "collapse",
13191
13191
  ...baseText("default", props),
13192
- width: "100%"
13192
+ width: "100%",
13193
+ minWidth: "600px"
13193
13194
  },
13194
13195
  th: {
13195
13196
  fontWeight: "bold",
13196
- textAlign: "start"
13197
+ textAlign: "start",
13198
+ verticalAlign: "top",
13199
+ minWidth: "68px"
13197
13200
  },
13198
13201
  td: {
13199
- textAlign: "start"
13202
+ textAlign: "start",
13203
+ verticalAlign: "top"
13200
13204
  },
13201
13205
  tfoot: {
13202
13206
  tr: {
package/dist/index.d.mts CHANGED
@@ -6393,15 +6393,19 @@ declare const theme: {
6393
6393
  baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
6394
6394
  table: {
6395
6395
  width: string;
6396
+ minWidth: string;
6396
6397
  color: string;
6397
6398
  borderCollapse: string;
6398
6399
  };
6399
6400
  th: {
6400
6401
  fontWeight: string;
6401
6402
  textAlign: string;
6403
+ verticalAlign: string;
6404
+ minWidth: string;
6402
6405
  };
6403
6406
  td: {
6404
6407
  textAlign: string;
6408
+ verticalAlign: string;
6405
6409
  };
6406
6410
  tfoot: {
6407
6411
  tr: {
package/dist/index.d.ts CHANGED
@@ -6393,15 +6393,19 @@ declare const theme: {
6393
6393
  baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
6394
6394
  table: {
6395
6395
  width: string;
6396
+ minWidth: string;
6396
6397
  color: string;
6397
6398
  borderCollapse: string;
6398
6399
  };
6399
6400
  th: {
6400
6401
  fontWeight: string;
6401
6402
  textAlign: string;
6403
+ verticalAlign: string;
6404
+ minWidth: string;
6402
6405
  };
6403
6406
  td: {
6404
6407
  textAlign: string;
6408
+ verticalAlign: string;
6405
6409
  };
6406
6410
  tfoot: {
6407
6411
  tr: {
package/dist/index.js CHANGED
@@ -1123,7 +1123,7 @@ var init_Card = __esm({
1123
1123
  colorScheme,
1124
1124
  size: size2
1125
1125
  });
1126
- return /* @__PURE__ */ React71__namespace.default.createElement(react.chakra.div, { sx: styles3, ...props, ref }, children);
1126
+ return /* @__PURE__ */ React71__namespace.default.createElement(react.Box, { __css: styles3, ...props, ref }, children);
1127
1127
  }
1128
1128
  );
1129
1129
  }
@@ -5511,7 +5511,7 @@ var init_Table = __esm({
5511
5511
  "src/table/Table.tsx"() {
5512
5512
  exports.Table = react.forwardRef((props, ref) => {
5513
5513
  const { variant, size: size2, colorScheme, children, ...rest } = props;
5514
- return /* @__PURE__ */ React71__namespace.default.createElement(react.Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React71__namespace.default.createElement(react.Box, { overflowX: "auto" }, /* @__PURE__ */ React71__namespace.default.createElement(
5514
+ return /* @__PURE__ */ React71__namespace.default.createElement(react.Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React71__namespace.default.createElement(react.Box, { overflowX: "auto", role: "region" }, /* @__PURE__ */ React71__namespace.default.createElement(
5515
5515
  react.Table,
5516
5516
  {
5517
5517
  variant,
@@ -14962,14 +14962,18 @@ var init_table2 = __esm({
14962
14962
  table: {
14963
14963
  borderCollapse: "collapse",
14964
14964
  ...baseText("default", props),
14965
- width: "100%"
14965
+ width: "100%",
14966
+ minWidth: "600px"
14966
14967
  },
14967
14968
  th: {
14968
14969
  fontWeight: "bold",
14969
- textAlign: "start"
14970
+ textAlign: "start",
14971
+ verticalAlign: "top",
14972
+ minWidth: "68px"
14970
14973
  },
14971
14974
  td: {
14972
- textAlign: "start"
14975
+ textAlign: "start",
14976
+ verticalAlign: "top"
14973
14977
  },
14974
14978
  tfoot: {
14975
14979
  tr: {
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, 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, FullScreenDrawer, 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, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-7VZBL2PP.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, 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, FullScreenDrawer, 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, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-V5JHGMIB.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "9.6.2",
3
+ "version": "9.6.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
package/src/card/Card.tsx CHANGED
@@ -1,6 +1,11 @@
1
- import { As, chakra, forwardRef, useStyleConfig } from "@chakra-ui/react";
1
+ import {
2
+ As,
3
+ Box,
4
+ BoxProps,
5
+ forwardRef,
6
+ useStyleConfig,
7
+ } from "@chakra-ui/react";
2
8
  import React from "react";
3
- import { BoxProps } from "../layout";
4
9
 
5
10
  export type CardProps = Exclude<BoxProps, "size"> & {
6
11
  size?: "sm" | "lg";
@@ -53,9 +58,9 @@ export const Card = forwardRef<CardProps, As>(
53
58
  });
54
59
 
55
60
  return (
56
- <chakra.div sx={styles} {...props} ref={ref}>
61
+ <Box __css={styles} {...props} ref={ref}>
57
62
  {children}
58
- </chakra.div>
63
+ </Box>
59
64
  );
60
65
  },
61
66
  );
@@ -32,7 +32,7 @@ export const Table = forwardRef<TableProps, "table">((props, ref) => {
32
32
  const { variant, size, colorScheme, children, ...rest } = props;
33
33
  return (
34
34
  <Box {...rest} {...getStyleProps(props)}>
35
- <Box overflowX="auto">
35
+ <Box overflowX="auto" role="region">
36
36
  <ChakraTable
37
37
  variant={variant}
38
38
  size={size}
@@ -17,13 +17,17 @@ const config = helpers.defineMultiStyleConfig({
17
17
  borderCollapse: "collapse",
18
18
  ...baseText("default", props),
19
19
  width: "100%",
20
+ minWidth: "600px",
20
21
  },
21
22
  th: {
22
23
  fontWeight: "bold",
23
24
  textAlign: "start",
25
+ verticalAlign: "top",
26
+ minWidth: "68px",
24
27
  },
25
28
  td: {
26
29
  textAlign: "start",
30
+ verticalAlign: "top",
27
31
  },
28
32
  tfoot: {
29
33
  tr: {