@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.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +16 -0
- package/dist/{CountryCodeSelect-HKZBFK6T.mjs → CountryCodeSelect-J3XCI72L.mjs} +1 -1
- package/dist/{chunk-QHD5YJ6K.mjs → chunk-A7MCH3JW.mjs} +12 -16
- package/dist/index.d.ts +0 -1
- package/dist/index.js +11 -15
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/theme/components/card.ts +6 -11
- package/src/theme/foundations/breakpoints.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@3.
|
2
|
+
> @vygruppen/spor-react@3.4.0 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,13 +9,13 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m 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
|
+
[32mCJS[39m [1mdist/index.js [22m[32m903.25 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 6022ms
|
14
16
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.01 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[
|
19
|
-
[
|
20
|
-
[32mDTS[39m ⚡️ Build success in 23010ms
|
21
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m252.39 KB[39m
|
17
|
+
[32mESM[39m [1mdist/CountryCodeSelect-J3XCI72L.mjs [22m[32m350.82 KB[39m
|
18
|
+
[32mESM[39m [1mdist/chunk-A7MCH3JW.mjs [22m[32m420.45 KB[39m
|
19
|
+
[32mESM[39m ⚡️ Build success in 6024ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 22767ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m252.35 KB[39m
|
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
|
@@ -5084,7 +5084,7 @@ var texts14 = createTexts({
|
|
5084
5084
|
sv: "Telefonnummer"
|
5085
5085
|
}
|
5086
5086
|
});
|
5087
|
-
var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-
|
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.
|
10775
|
-
"2xl": tokens10__default.size.breakpoint.
|
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
|
11485
|
+
var _a6;
|
11486
11486
|
switch (colorScheme) {
|
11487
11487
|
case "white":
|
11488
11488
|
return {
|
11489
|
-
backgroundColor: "
|
11490
|
-
boxShadow: getBoxShadowString({
|
11491
|
-
borderColor: "silver"
|
11492
|
-
})
|
11489
|
+
backgroundColor: "lightGrey"
|
11493
11490
|
};
|
11494
11491
|
case "grey":
|
11495
11492
|
return {
|
11496
|
-
backgroundColor: "lightGrey"
|
11497
|
-
|
11498
|
-
|
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
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.
|
18672
|
-
"2xl": tokens10__namespace.default.size.breakpoint.
|
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
|
19463
|
+
var _a6;
|
19464
19464
|
switch (colorScheme) {
|
19465
19465
|
case "white":
|
19466
19466
|
return {
|
19467
|
-
backgroundColor: "
|
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-
|
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
@@ -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: "
|
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.
|
8
|
-
"2xl": tokens.size.breakpoint.
|
7
|
+
xl: tokens.size.breakpoint.xl,
|
8
|
+
"2xl": tokens.size.breakpoint.xl,
|
9
9
|
};
|