@vygruppen/spor-react 3.8.0 → 3.8.1
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 +10 -10
- package/CHANGELOG.md +6 -0
- package/dist/{CountryCodeSelect-BA3A7ODU.mjs → CountryCodeSelect-UG3JHWO3.mjs} +1 -1
- package/dist/{chunk-HL3ESNVB.mjs → chunk-HCSXVAA5.mjs} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/theme/components/card.ts +7 -7
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@3.8.
|
2
|
+
> @vygruppen/spor-react@3.8.1 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -8,15 +8,15 @@
|
|
8
8
|
[34mCLI[39m Target: node16
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
|
-
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-HL3ESNVB.mjs".
|
12
11
|
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
|
12
|
+
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-HCSXVAA5.mjs".
|
13
13
|
[34mDTS[39m Build start
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m548.76 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 2577ms
|
14
16
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.09 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[
|
19
|
-
[
|
20
|
-
[32mDTS[39m
|
21
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m264.64 KB[39m
|
22
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m264.64 KB[39m
|
17
|
+
[32mESM[39m [1mdist/CountryCodeSelect-UG3JHWO3.mjs [22m[32m1.19 KB[39m
|
18
|
+
[32mESM[39m [1mdist/chunk-HCSXVAA5.mjs [22m[32m438.31 KB[39m
|
19
|
+
[32mESM[39m ⚡️ Build success in 2578ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 12922ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m264.69 KB[39m
|
22
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m264.69 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -5085,7 +5085,7 @@ var texts14 = createTexts({
|
|
5085
5085
|
sv: "Telefonnummer"
|
5086
5086
|
}
|
5087
5087
|
});
|
5088
|
-
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-
|
5088
|
+
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-UG3JHWO3.mjs'));
|
5089
5089
|
var Radio = forwardRef((props, ref) => {
|
5090
5090
|
return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
|
5091
5091
|
});
|
@@ -11679,7 +11679,7 @@ var config7 = defineStyleConfig$1({
|
|
11679
11679
|
transitionDuration: "fast",
|
11680
11680
|
borderRadius: "md",
|
11681
11681
|
...getColorSchemeBaseProps(props),
|
11682
|
-
"button&, a
|
11682
|
+
"button&, a&, label&, &.is-clickable": {
|
11683
11683
|
...getColorSchemeClickableProps(props),
|
11684
11684
|
_hover: getColorSchemeHoverProps(props),
|
11685
11685
|
_active: getColorSchemeActiveProps(props),
|
package/dist/index.d.mts
CHANGED
@@ -2411,7 +2411,7 @@ declare const theme: {
|
|
2411
2411
|
};
|
2412
2412
|
Card: {
|
2413
2413
|
baseStyle?: ((props: any) => {
|
2414
|
-
"button&, a
|
2414
|
+
"button&, a&, label&, &.is-clickable": {
|
2415
2415
|
_disabled: {
|
2416
2416
|
backgroundColor: string;
|
2417
2417
|
boxShadow: string;
|
@@ -2469,7 +2469,7 @@ declare const theme: {
|
|
2469
2469
|
transitionDuration: string;
|
2470
2470
|
borderRadius: string;
|
2471
2471
|
} | {
|
2472
|
-
"button&, a
|
2472
|
+
"button&, a&, label&, &.is-clickable": {
|
2473
2473
|
_disabled: {
|
2474
2474
|
backgroundColor: string;
|
2475
2475
|
boxShadow: string;
|
package/dist/index.d.ts
CHANGED
@@ -2411,7 +2411,7 @@ declare const theme: {
|
|
2411
2411
|
};
|
2412
2412
|
Card: {
|
2413
2413
|
baseStyle?: ((props: any) => {
|
2414
|
-
"button&, a
|
2414
|
+
"button&, a&, label&, &.is-clickable": {
|
2415
2415
|
_disabled: {
|
2416
2416
|
backgroundColor: string;
|
2417
2417
|
boxShadow: string;
|
@@ -2469,7 +2469,7 @@ declare const theme: {
|
|
2469
2469
|
transitionDuration: string;
|
2470
2470
|
borderRadius: string;
|
2471
2471
|
} | {
|
2472
|
-
"button&, a
|
2472
|
+
"button&, a&, label&, &.is-clickable": {
|
2473
2473
|
_disabled: {
|
2474
2474
|
backgroundColor: string;
|
2475
2475
|
boxShadow: string;
|
package/dist/index.js
CHANGED
@@ -13233,7 +13233,7 @@ var init_card2 = __esm({
|
|
13233
13233
|
transitionDuration: "fast",
|
13234
13234
|
borderRadius: "md",
|
13235
13235
|
...getColorSchemeBaseProps(props),
|
13236
|
-
"button&, a
|
13236
|
+
"button&, a&, label&, &.is-clickable": {
|
13237
13237
|
...getColorSchemeClickableProps(props),
|
13238
13238
|
_hover: getColorSchemeHoverProps(props),
|
13239
13239
|
_active: getColorSchemeActiveProps(props),
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, 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, 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, NumericStepper, OrderedList, 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, UnorderedList, 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, 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, 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, NumericStepper, OrderedList, 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, UnorderedList, 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-HCSXVAA5.mjs';
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineStyleConfig } from "@chakra-ui/react";
|
2
|
+
import { mode } from "@chakra-ui/theme-tools";
|
2
3
|
import { colors } from "../foundations";
|
3
4
|
import { getBoxShadowString } from "../utils/box-shadow-utils";
|
4
5
|
import { focusVisible } from "../utils/focus-utils";
|
5
|
-
import { mode } from "@chakra-ui/theme-tools";
|
6
6
|
|
7
7
|
const config = defineStyleConfig({
|
8
8
|
baseStyle: (props: any) => ({
|
@@ -16,7 +16,7 @@ const config = defineStyleConfig({
|
|
16
16
|
borderRadius: "md",
|
17
17
|
...getColorSchemeBaseProps(props),
|
18
18
|
|
19
|
-
"button&, a
|
19
|
+
"button&, a&, label&, &.is-clickable": {
|
20
20
|
...getColorSchemeClickableProps(props),
|
21
21
|
_hover: getColorSchemeHoverProps(props),
|
22
22
|
_active: getColorSchemeActiveProps(props),
|
@@ -62,7 +62,7 @@ type CardThemeProps = {
|
|
62
62
|
size: "sm" | "lg";
|
63
63
|
};
|
64
64
|
|
65
|
-
const getColorSchemeBaseProps= (props: CardThemeProps) => {
|
65
|
+
const getColorSchemeBaseProps = (props: CardThemeProps) => {
|
66
66
|
const { colorScheme, size } = props;
|
67
67
|
const baseShadow = size === "lg" ? "md" : "sm";
|
68
68
|
switch (colorScheme) {
|
@@ -89,7 +89,7 @@ const getColorSchemeBaseProps= (props: CardThemeProps) => {
|
|
89
89
|
backgroundColor: colors[colorScheme]?.[100] ?? "platinum",
|
90
90
|
};
|
91
91
|
}
|
92
|
-
}
|
92
|
+
};
|
93
93
|
|
94
94
|
function getColorSchemeClickableProps({ colorScheme, size }: CardThemeProps) {
|
95
95
|
const baseShadow = size === "lg" ? "md" : "sm";
|
@@ -129,7 +129,7 @@ const getColorSchemeHoverProps = (props: CardThemeProps) => {
|
|
129
129
|
case "white":
|
130
130
|
return {
|
131
131
|
backgroundColor: mode("white", "whiteAlpha.200")(props),
|
132
|
-
boxShadow: getBoxShadowString({
|
132
|
+
boxShadow: getBoxShadowString({
|
133
133
|
baseShadow,
|
134
134
|
borderColor: colors.steel,
|
135
135
|
isInset: false,
|
@@ -153,7 +153,7 @@ const getColorSchemeHoverProps = (props: CardThemeProps) => {
|
|
153
153
|
}),
|
154
154
|
};
|
155
155
|
}
|
156
|
-
}
|
156
|
+
};
|
157
157
|
const getColorSchemeActiveProps = (props: CardThemeProps) => {
|
158
158
|
const { colorScheme, size } = props;
|
159
159
|
const baseShadow = size === "lg" ? "sm" : "none";
|
@@ -186,4 +186,4 @@ const getColorSchemeActiveProps = (props: CardThemeProps) => {
|
|
186
186
|
}),
|
187
187
|
};
|
188
188
|
}
|
189
|
-
}
|
189
|
+
};
|