@vygruppen/spor-react 8.0.0 → 8.0.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 +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/{CountryCodeSelect-NCM6JIBM.mjs → CountryCodeSelect-SCMCRKY4.mjs} +1 -1
- package/dist/{chunk-EGC6XZHT.mjs → chunk-5VZ5S46A.mjs} +10 -10
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/nudge/Nudge.tsx +12 -12
- package/src/theme/components/popover.ts +7 -7
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@8.0.
|
2
|
+
> @vygruppen/spor-react@8.0.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
|
+
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-5VZ5S46A.mjs".
|
11
12
|
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/index.js".
|
12
13
|
[34mDTS[39m Build start
|
13
|
-
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-EGC6XZHT.mjs".
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[32m500.06 KB[39m
|
15
|
-
[32mCJS[39m ⚡️ Build success in 2156ms
|
16
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.01 KB[39m
|
17
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
18
|
-
[32mESM[39m [1mdist/chunk-
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
20
|
-
[
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-SCMCRKY4.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-5VZ5S46A.mjs [22m[32m393.00 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 2110ms
|
18
|
+
[32mCJS[39m [1mdist/index.js [22m[32m500.11 KB[39m
|
19
|
+
[32mCJS[39m ⚡️ Build success in 2110ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 10383ms
|
21
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m268.53 KB[39m
|
22
22
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m268.53 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -3429,7 +3429,7 @@ var texts14 = createTexts({
|
|
3429
3429
|
sv: "Telefonnummer"
|
3430
3430
|
}
|
3431
3431
|
});
|
3432
|
-
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-
|
3432
|
+
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-SCMCRKY4.mjs'));
|
3433
3433
|
var Radio = forwardRef((props, ref) => {
|
3434
3434
|
return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
|
3435
3435
|
});
|
@@ -4115,7 +4115,7 @@ var Nudge = ({
|
|
4115
4115
|
}
|
4116
4116
|
return null;
|
4117
4117
|
}
|
4118
|
-
return /* @__PURE__ */ React69__default.createElement(
|
4118
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4119
4119
|
Popover,
|
4120
4120
|
{
|
4121
4121
|
arrowSize: 12,
|
@@ -4124,8 +4124,8 @@ var Nudge = ({
|
|
4124
4124
|
...props
|
4125
4125
|
},
|
4126
4126
|
/* @__PURE__ */ React69__default.createElement(PopoverAnchor, null, children),
|
4127
|
-
/* @__PURE__ */ React69__default.createElement(PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React69__default.createElement(PopoverArrow, null), /* @__PURE__ */ React69__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React69__default.createElement(PopoverBody, { margin: 1 }, /* @__PURE__ */ React69__default.createElement(Box, { marginRight: 4 }, content), /* @__PURE__ */ React69__default.createElement(Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React69__default.createElement(ButtonGroup, null, /* @__PURE__ */ React69__default.createElement(Button, { variant: "tertiary", size: "xs" }, t2(texts20.close)), /* @__PURE__ */ React69__default.createElement(Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts20.showMe))))))
|
4128
|
-
)
|
4127
|
+
/* @__PURE__ */ React69__default.createElement(PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React69__default.createElement(DarkMode, null, /* @__PURE__ */ React69__default.createElement(PopoverArrow, null), /* @__PURE__ */ React69__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React69__default.createElement(PopoverBody, { margin: 1 }, /* @__PURE__ */ React69__default.createElement(Box, { marginRight: 4 }, content), /* @__PURE__ */ React69__default.createElement(Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React69__default.createElement(ButtonGroup, null, /* @__PURE__ */ React69__default.createElement(Button, { variant: "tertiary", size: "xs" }, t2(texts20.close)), /* @__PURE__ */ React69__default.createElement(Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts20.showMe)))))))
|
4128
|
+
);
|
4129
4129
|
};
|
4130
4130
|
var texts20 = createTexts({
|
4131
4131
|
close: {
|
@@ -12611,10 +12611,10 @@ var config27 = helpers18.defineMultiStyleConfig({
|
|
12611
12611
|
zIndex: "popover"
|
12612
12612
|
},
|
12613
12613
|
content: {
|
12614
|
-
[$popperBg2.variable]:
|
12614
|
+
[$popperBg2.variable]: mode("colors.darkTeal", "colors.pine")(props),
|
12615
12615
|
backgroundColor: $popperBg2.reference,
|
12616
12616
|
[$arrowBg3.variable]: $popperBg2.reference,
|
12617
|
-
[$arrowShadowColor2.variable]:
|
12617
|
+
[$arrowShadowColor2.variable]: "blackAlpha.300",
|
12618
12618
|
color: "white",
|
12619
12619
|
borderRadius: "sm",
|
12620
12620
|
padding: 1.5,
|
@@ -12634,15 +12634,15 @@ var config27 = helpers18.defineMultiStyleConfig({
|
|
12634
12634
|
position: "absolute",
|
12635
12635
|
color: "white",
|
12636
12636
|
...focusVisibleStyles(props),
|
12637
|
+
_hover: {
|
12638
|
+
backgroundColor: "whiteAlpha.100"
|
12639
|
+
},
|
12637
12640
|
_active: {
|
12638
12641
|
backgroundColor: "whiteAlpha.200"
|
12639
12642
|
},
|
12640
12643
|
borderRadius: "sm",
|
12641
12644
|
top: 2,
|
12642
|
-
right:
|
12643
|
-
width: 2,
|
12644
|
-
height: 2,
|
12645
|
-
padding: 1
|
12645
|
+
right: 1
|
12646
12646
|
}
|
12647
12647
|
}),
|
12648
12648
|
sizes: {
|
package/dist/index.d.mts
CHANGED
@@ -4563,15 +4563,15 @@ declare const theme: {
|
|
4563
4563
|
clipPath: string;
|
4564
4564
|
};
|
4565
4565
|
closeButton: {
|
4566
|
+
_hover: {
|
4567
|
+
backgroundColor: string;
|
4568
|
+
};
|
4566
4569
|
_active: {
|
4567
4570
|
backgroundColor: string;
|
4568
4571
|
};
|
4569
4572
|
borderRadius: string;
|
4570
4573
|
top: number;
|
4571
4574
|
right: number;
|
4572
|
-
width: number;
|
4573
|
-
height: number;
|
4574
|
-
padding: number;
|
4575
4575
|
_focusVisible: {
|
4576
4576
|
outlineWidth: string;
|
4577
4577
|
outlineColor: string;
|
package/dist/index.d.ts
CHANGED
@@ -4563,15 +4563,15 @@ declare const theme: {
|
|
4563
4563
|
clipPath: string;
|
4564
4564
|
};
|
4565
4565
|
closeButton: {
|
4566
|
+
_hover: {
|
4567
|
+
backgroundColor: string;
|
4568
|
+
};
|
4566
4569
|
_active: {
|
4567
4570
|
backgroundColor: string;
|
4568
4571
|
};
|
4569
4572
|
borderRadius: string;
|
4570
4573
|
top: number;
|
4571
4574
|
right: number;
|
4572
|
-
width: number;
|
4573
|
-
height: number;
|
4574
|
-
padding: number;
|
4575
4575
|
_focusVisible: {
|
4576
4576
|
outlineWidth: string;
|
4577
4577
|
outlineColor: string;
|
package/dist/index.js
CHANGED
@@ -4927,7 +4927,7 @@ var init_Nudge = __esm({
|
|
4927
4927
|
}
|
4928
4928
|
return null;
|
4929
4929
|
}
|
4930
|
-
return /* @__PURE__ */ React69__namespace.default.createElement(
|
4930
|
+
return /* @__PURE__ */ React69__namespace.default.createElement(
|
4931
4931
|
react.Popover,
|
4932
4932
|
{
|
4933
4933
|
arrowSize: 12,
|
@@ -4936,8 +4936,8 @@ var init_Nudge = __esm({
|
|
4936
4936
|
...props
|
4937
4937
|
},
|
4938
4938
|
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverAnchor, null, children),
|
4939
|
-
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverArrow, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverCloseButton, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverBody, { margin: 1 }, /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { marginRight: 4 }, content), /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React69__namespace.default.createElement(exports.ButtonGroup, null, /* @__PURE__ */ React69__namespace.default.createElement(exports.Button, { variant: "tertiary", size: "xs" }, t2(texts21.close)), /* @__PURE__ */ React69__namespace.default.createElement(exports.Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts21.showMe))))))
|
4940
|
-
)
|
4939
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React69__namespace.default.createElement(react.DarkMode, null, /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverArrow, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverCloseButton, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverBody, { margin: 1 }, /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { marginRight: 4 }, content), /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React69__namespace.default.createElement(exports.ButtonGroup, null, /* @__PURE__ */ React69__namespace.default.createElement(exports.Button, { variant: "tertiary", size: "xs" }, t2(texts21.close)), /* @__PURE__ */ React69__namespace.default.createElement(exports.Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts21.showMe)))))))
|
4940
|
+
);
|
4941
4941
|
};
|
4942
4942
|
texts21 = createTexts({
|
4943
4943
|
close: {
|
@@ -14226,10 +14226,10 @@ var init_popover = __esm({
|
|
14226
14226
|
zIndex: "popover"
|
14227
14227
|
},
|
14228
14228
|
content: {
|
14229
|
-
[$popperBg2.variable]:
|
14229
|
+
[$popperBg2.variable]: themeTools.mode("colors.darkTeal", "colors.pine")(props),
|
14230
14230
|
backgroundColor: $popperBg2.reference,
|
14231
14231
|
[$arrowBg3.variable]: $popperBg2.reference,
|
14232
|
-
[$arrowShadowColor2.variable]:
|
14232
|
+
[$arrowShadowColor2.variable]: "blackAlpha.300",
|
14233
14233
|
color: "white",
|
14234
14234
|
borderRadius: "sm",
|
14235
14235
|
padding: 1.5,
|
@@ -14249,15 +14249,15 @@ var init_popover = __esm({
|
|
14249
14249
|
position: "absolute",
|
14250
14250
|
color: "white",
|
14251
14251
|
...focusVisibleStyles(props),
|
14252
|
+
_hover: {
|
14253
|
+
backgroundColor: "whiteAlpha.100"
|
14254
|
+
},
|
14252
14255
|
_active: {
|
14253
14256
|
backgroundColor: "whiteAlpha.200"
|
14254
14257
|
},
|
14255
14258
|
borderRadius: "sm",
|
14256
14259
|
top: 2,
|
14257
|
-
right:
|
14258
|
-
width: 2,
|
14259
|
-
height: 2,
|
14260
|
-
padding: 1
|
14260
|
+
right: 1
|
14261
14261
|
}
|
14262
14262
|
}),
|
14263
14263
|
sizes: {
|
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, 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, Nudge, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, 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, 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, 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, Nudge, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, 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, 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-5VZ5S46A.mjs';
|
package/package.json
CHANGED
package/src/nudge/Nudge.tsx
CHANGED
@@ -98,15 +98,15 @@ export const Nudge = ({
|
|
98
98
|
return null;
|
99
99
|
}
|
100
100
|
return (
|
101
|
-
<
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
>
|
108
|
-
|
109
|
-
<
|
101
|
+
<Popover
|
102
|
+
arrowSize={12}
|
103
|
+
arrowShadowColor="none"
|
104
|
+
defaultIsOpen={true}
|
105
|
+
{...props}
|
106
|
+
>
|
107
|
+
<PopoverAnchor>{children}</PopoverAnchor>
|
108
|
+
<PopoverContent borderRadius="sm">
|
109
|
+
<DarkMode>
|
110
110
|
<PopoverArrow />
|
111
111
|
<PopoverCloseButton />
|
112
112
|
<PopoverBody margin={1}>
|
@@ -124,9 +124,9 @@ export const Nudge = ({
|
|
124
124
|
)}
|
125
125
|
</Box>
|
126
126
|
</PopoverBody>
|
127
|
-
</
|
128
|
-
</
|
129
|
-
</
|
127
|
+
</DarkMode>
|
128
|
+
</PopoverContent>
|
129
|
+
</Popover>
|
130
130
|
);
|
131
131
|
};
|
132
132
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { popoverAnatomy as parts } from "@chakra-ui/anatomy";
|
2
2
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
3
|
-
import { cssVar } from "@chakra-ui/theme-tools";
|
3
|
+
import { cssVar, mode } from "@chakra-ui/theme-tools";
|
4
4
|
import { focusVisibleStyles } from "../utils/focus-util";
|
5
5
|
|
6
6
|
const $popperBg = cssVar("popper-bg");
|
@@ -15,10 +15,10 @@ const config = helpers.defineMultiStyleConfig({
|
|
15
15
|
zIndex: "popover",
|
16
16
|
},
|
17
17
|
content: {
|
18
|
-
[$popperBg.variable]:
|
18
|
+
[$popperBg.variable]: mode("colors.darkTeal", "colors.pine")(props),
|
19
19
|
backgroundColor: $popperBg.reference,
|
20
20
|
[$arrowBg.variable]: $popperBg.reference,
|
21
|
-
[$arrowShadowColor.variable]:
|
21
|
+
[$arrowShadowColor.variable]: "blackAlpha.300",
|
22
22
|
color: "white",
|
23
23
|
borderRadius: "sm",
|
24
24
|
padding: 1.5,
|
@@ -39,15 +39,15 @@ const config = helpers.defineMultiStyleConfig({
|
|
39
39
|
position: "absolute",
|
40
40
|
color: "white",
|
41
41
|
...focusVisibleStyles(props),
|
42
|
+
_hover: {
|
43
|
+
backgroundColor: "whiteAlpha.100",
|
44
|
+
},
|
42
45
|
_active: {
|
43
46
|
backgroundColor: "whiteAlpha.200",
|
44
47
|
},
|
45
48
|
borderRadius: "sm",
|
46
49
|
top: 2,
|
47
|
-
right:
|
48
|
-
width: 2,
|
49
|
-
height: 2,
|
50
|
-
padding: 1,
|
50
|
+
right: 1,
|
51
51
|
},
|
52
52
|
}),
|
53
53
|
sizes: {
|