@vygruppen/spor-react 9.6.3 → 9.6.5
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/{CountryCodeSelect-JV5KU4MM.mjs → CountryCodeSelect-VSNXCJ6M.mjs} +1 -1
- package/dist/{chunk-LZRG4IP5.mjs → chunk-F6WDIMSM.mjs} +20 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/card/Card.tsx +9 -4
- package/src/theme/components/static-card.ts +23 -4
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@9.6.
|
2
|
+
> @vygruppen/spor-react@9.6.5 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,12 +9,12 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m506.52 KB[39m
|
13
|
+
[32mCJS[39m ⚡️ Build success in 2221ms
|
12
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.08 KB[39m
|
13
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
16
|
-
[
|
17
|
-
[32mCJS[39m ⚡️ Build success in 2376ms
|
18
|
-
[32mDTS[39m ⚡️ Build success in 13847ms
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-VSNXCJ6M.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-F6WDIMSM.mjs [22m[32m396.60 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 2222ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 12894ms
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m348.30 KB[39m
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m348.30 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 9.6.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 50935a3: Added dark color variants to static card
|
8
|
+
|
9
|
+
## 9.6.4
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 457fd2a: Stop Card from disregarding allowed styling related props
|
14
|
+
|
3
15
|
## 9.6.3
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -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,
|
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(
|
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-
|
3368
|
+
var LazyCountryCodeSelect = React71__default.lazy(() => import('./CountryCodeSelect-VSNXCJ6M.mjs'));
|
3369
3369
|
var Radio = forwardRef((props, ref) => {
|
3370
3370
|
return /* @__PURE__ */ React71__default.createElement(Radio$1, { ...props, ref });
|
3371
3371
|
});
|
@@ -13543,6 +13543,23 @@ var getColorSchemeBaseProps2 = (props) => {
|
|
13543
13543
|
backgroundColor: "pink"
|
13544
13544
|
};
|
13545
13545
|
}
|
13546
|
+
case "darkBlue": {
|
13547
|
+
return {
|
13548
|
+
backgroundColor: "darkBlue",
|
13549
|
+
color: "white"
|
13550
|
+
};
|
13551
|
+
}
|
13552
|
+
case "darkGreen": {
|
13553
|
+
return {
|
13554
|
+
backgroundColor: "pine",
|
13555
|
+
color: "white"
|
13556
|
+
};
|
13557
|
+
}
|
13558
|
+
case "darkYellow": {
|
13559
|
+
return {
|
13560
|
+
backgroundColor: "banana"
|
13561
|
+
};
|
13562
|
+
}
|
13546
13563
|
default:
|
13547
13564
|
return {
|
13548
13565
|
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "default",
|
package/dist/index.d.mts
CHANGED
@@ -6975,16 +6975,16 @@ declare const theme: {
|
|
6975
6975
|
borderRadius: string;
|
6976
6976
|
} | {
|
6977
6977
|
backgroundColor: string;
|
6978
|
+
color: string;
|
6978
6979
|
appearance: string;
|
6979
6980
|
border: string;
|
6980
6981
|
overflow: string;
|
6981
6982
|
fontSize: string;
|
6982
6983
|
display: string;
|
6983
6984
|
borderRadius: string;
|
6984
|
-
color: string;
|
6985
6985
|
} | {
|
6986
|
-
color: string;
|
6987
6986
|
backgroundColor: string;
|
6987
|
+
color: string;
|
6988
6988
|
appearance: string;
|
6989
6989
|
border: string;
|
6990
6990
|
overflow: string;
|
package/dist/index.d.ts
CHANGED
@@ -6975,16 +6975,16 @@ declare const theme: {
|
|
6975
6975
|
borderRadius: string;
|
6976
6976
|
} | {
|
6977
6977
|
backgroundColor: string;
|
6978
|
+
color: string;
|
6978
6979
|
appearance: string;
|
6979
6980
|
border: string;
|
6980
6981
|
overflow: string;
|
6981
6982
|
fontSize: string;
|
6982
6983
|
display: string;
|
6983
6984
|
borderRadius: string;
|
6984
|
-
color: string;
|
6985
6985
|
} | {
|
6986
|
-
color: string;
|
6987
6986
|
backgroundColor: string;
|
6987
|
+
color: string;
|
6988
6988
|
appearance: string;
|
6989
6989
|
border: string;
|
6990
6990
|
overflow: string;
|
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.
|
1126
|
+
return /* @__PURE__ */ React71__namespace.default.createElement(react.Box, { __css: styles3, ...props, ref }, children);
|
1127
1127
|
}
|
1128
1128
|
);
|
1129
1129
|
}
|
@@ -15344,6 +15344,23 @@ var init_static_card = __esm({
|
|
15344
15344
|
backgroundColor: "pink"
|
15345
15345
|
};
|
15346
15346
|
}
|
15347
|
+
case "darkBlue": {
|
15348
|
+
return {
|
15349
|
+
backgroundColor: "darkBlue",
|
15350
|
+
color: "white"
|
15351
|
+
};
|
15352
|
+
}
|
15353
|
+
case "darkGreen": {
|
15354
|
+
return {
|
15355
|
+
backgroundColor: "pine",
|
15356
|
+
color: "white"
|
15357
|
+
};
|
15358
|
+
}
|
15359
|
+
case "darkYellow": {
|
15360
|
+
return {
|
15361
|
+
backgroundColor: "banana"
|
15362
|
+
};
|
15363
|
+
}
|
15347
15364
|
default:
|
15348
15365
|
return {
|
15349
15366
|
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "default",
|
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-
|
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-F6WDIMSM.mjs';
|
package/package.json
CHANGED
package/src/card/Card.tsx
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
-
import {
|
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
|
-
<
|
61
|
+
<Box __css={styles} {...props} ref={ref}>
|
57
62
|
{children}
|
58
|
-
</
|
63
|
+
</Box>
|
59
64
|
);
|
60
65
|
},
|
61
66
|
);
|
@@ -23,12 +23,14 @@ type CardThemeProps = {
|
|
23
23
|
colorScheme:
|
24
24
|
| "white"
|
25
25
|
| "grey"
|
26
|
-
| "blue"
|
27
26
|
| "green"
|
28
|
-
| "teal"
|
29
|
-
| "yellow"
|
30
27
|
| "orange"
|
31
|
-
| "red"
|
28
|
+
| "red"
|
29
|
+
| "yellow"
|
30
|
+
| "blue"
|
31
|
+
| "darkBlue"
|
32
|
+
| "darkGreen"
|
33
|
+
| "darkYellow";
|
32
34
|
theme: any;
|
33
35
|
colorMode: "light" | "dark";
|
34
36
|
};
|
@@ -58,6 +60,23 @@ const getColorSchemeBaseProps = (props: CardThemeProps) => {
|
|
58
60
|
backgroundColor: "pink",
|
59
61
|
};
|
60
62
|
}
|
63
|
+
case "darkBlue": {
|
64
|
+
return {
|
65
|
+
backgroundColor: "darkBlue",
|
66
|
+
color: "white",
|
67
|
+
};
|
68
|
+
}
|
69
|
+
case "darkGreen": {
|
70
|
+
return {
|
71
|
+
backgroundColor: "pine",
|
72
|
+
color: "white",
|
73
|
+
};
|
74
|
+
}
|
75
|
+
case "darkYellow": {
|
76
|
+
return {
|
77
|
+
backgroundColor: "banana",
|
78
|
+
};
|
79
|
+
}
|
61
80
|
default:
|
62
81
|
return {
|
63
82
|
backgroundColor: colors[props.colorScheme]?.[100] ?? "default",
|