@vygruppen/spor-react 3.4.2 → 3.4.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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/{CountryCodeSelect-FTCKNVSB.mjs → CountryCodeSelect-7GGNROZW.mjs} +1 -1
- package/dist/{chunk-DOHLC4LS.mjs → chunk-QBIZVUPL.mjs} +10 -3
- package/dist/index.js +9 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/input/Input.tsx +8 -2
- package/src/theme/foundations/textStyles.ts +7 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@3.4.
|
2
|
+
> @vygruppen/spor-react@3.4.4 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-DOHLC4LS.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-QBIZVUPL.mjs".
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m903.84 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 6056ms
|
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
|
-
[32mCJS[39m ⚡️ Build success in 5056ms
|
20
|
-
[32mDTS[39m ⚡️ Build success in 18301ms
|
17
|
+
[32mESM[39m [1mdist/CountryCodeSelect-7GGNROZW.mjs [22m[32m350.82 KB[39m
|
18
|
+
[32mESM[39m [1mdist/chunk-QBIZVUPL.mjs [22m[32m420.97 KB[39m
|
19
|
+
[32mESM[39m ⚡️ Build success in 6061ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 22140ms
|
21
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m252.53 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 3.4.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 548d9b9f: Input: Make hover-effect work as expected over icons
|
8
|
+
|
9
|
+
## 3.4.3
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 6a74c8ab: Change when we use desktop font sizes
|
14
|
+
|
3
15
|
## 3.4.2
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -4692,7 +4692,7 @@ var Input = forwardRef(
|
|
4692
4692
|
const formControlProps = useFormControlContext();
|
4693
4693
|
const fallbackId = `input-${useId()}`;
|
4694
4694
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
4695
|
-
return /* @__PURE__ */ React49__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React49__default.createElement(InputLeftElement,
|
4695
|
+
return /* @__PURE__ */ React49__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React49__default.createElement(InputLeftElement, { pointerEvents: "none" }, leftIcon), /* @__PURE__ */ React49__default.createElement(
|
4696
4696
|
Input$1,
|
4697
4697
|
{
|
4698
4698
|
"data-attachable": true,
|
@@ -4703,7 +4703,7 @@ var Input = forwardRef(
|
|
4703
4703
|
ref,
|
4704
4704
|
placeholder: " "
|
4705
4705
|
}
|
4706
|
-
), /* @__PURE__ */ React49__default.createElement(FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React49__default.createElement(InputRightElement,
|
4706
|
+
), /* @__PURE__ */ React49__default.createElement(FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React49__default.createElement(InputRightElement, { pointerEvents: "none" }, rightIcon));
|
4707
4707
|
}
|
4708
4708
|
);
|
4709
4709
|
var InputLeftElement2 = forwardRef(
|
@@ -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-7GGNROZW.mjs'));
|
5088
5088
|
var Radio = forwardRef((props, ref) => {
|
5089
5089
|
return /* @__PURE__ */ React49__default.createElement(Radio$1, { ...props, ref });
|
5090
5090
|
});
|
@@ -10878,6 +10878,7 @@ var textStyles = {
|
|
10878
10878
|
fontSize: [
|
10879
10879
|
tokens10__default.font.style.xxl["font-size"].mobile,
|
10880
10880
|
null,
|
10881
|
+
null,
|
10881
10882
|
tokens10__default.font.style.xxl["font-size"].desktop
|
10882
10883
|
],
|
10883
10884
|
fontFamily: tokens10__default.font.style.xxl["font-family"],
|
@@ -10887,6 +10888,7 @@ var textStyles = {
|
|
10887
10888
|
fontSize: [
|
10888
10889
|
tokens10__default.font.style["xl-display"]["font-size"].mobile,
|
10889
10890
|
null,
|
10891
|
+
null,
|
10890
10892
|
tokens10__default.font.style["xl-display"]["font-size"].desktop
|
10891
10893
|
],
|
10892
10894
|
fontFamily: tokens10__default.font.style["xl-display"]["font-family"],
|
@@ -10896,6 +10898,7 @@ var textStyles = {
|
|
10896
10898
|
fontSize: [
|
10897
10899
|
tokens10__default.font.style["xl-sans"]["font-size"].mobile,
|
10898
10900
|
null,
|
10901
|
+
null,
|
10899
10902
|
tokens10__default.font.style["xl-sans"]["font-size"].desktop
|
10900
10903
|
],
|
10901
10904
|
fontFamily: tokens10__default.font.style["xl-sans"]["font-family"],
|
@@ -10905,6 +10908,7 @@ var textStyles = {
|
|
10905
10908
|
fontSize: [
|
10906
10909
|
tokens10__default.font.style.lg["font-size"].mobile,
|
10907
10910
|
null,
|
10911
|
+
null,
|
10908
10912
|
tokens10__default.font.style.lg["font-size"].desktop
|
10909
10913
|
],
|
10910
10914
|
fontFamily: tokens10__default.font.style.lg["font-family"],
|
@@ -10914,6 +10918,7 @@ var textStyles = {
|
|
10914
10918
|
fontSize: [
|
10915
10919
|
tokens10__default.font.style.md["font-size"].mobile,
|
10916
10920
|
null,
|
10921
|
+
null,
|
10917
10922
|
tokens10__default.font.style.md["font-size"].desktop
|
10918
10923
|
],
|
10919
10924
|
fontFamily: tokens10__default.font.style.md["font-family"],
|
@@ -10923,6 +10928,7 @@ var textStyles = {
|
|
10923
10928
|
fontSize: [
|
10924
10929
|
tokens10__default.font.style.sm["font-size"].mobile,
|
10925
10930
|
null,
|
10931
|
+
null,
|
10926
10932
|
tokens10__default.font.style.sm["font-size"].desktop
|
10927
10933
|
],
|
10928
10934
|
fontFamily: tokens10__default.font.style.sm["font-family"],
|
@@ -10932,6 +10938,7 @@ var textStyles = {
|
|
10932
10938
|
fontSize: [
|
10933
10939
|
tokens10__default.font.style.xs["font-size"].mobile,
|
10934
10940
|
null,
|
10941
|
+
null,
|
10935
10942
|
tokens10__default.font.style.xs["font-size"].desktop
|
10936
10943
|
],
|
10937
10944
|
fontFamily: tokens10__default.font.style.xs["font-family"],
|
package/dist/index.js
CHANGED
@@ -5243,7 +5243,7 @@ var init_Input = __esm({
|
|
5243
5243
|
const formControlProps = react.useFormControlContext();
|
5244
5244
|
const fallbackId = `input-${React49.useId()}`;
|
5245
5245
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
5246
|
-
return /* @__PURE__ */ React49__namespace.default.createElement(react.InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React49__namespace.default.createElement(react.InputLeftElement,
|
5246
|
+
return /* @__PURE__ */ React49__namespace.default.createElement(react.InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React49__namespace.default.createElement(react.InputLeftElement, { pointerEvents: "none" }, leftIcon), /* @__PURE__ */ React49__namespace.default.createElement(
|
5247
5247
|
react.Input,
|
5248
5248
|
{
|
5249
5249
|
"data-attachable": true,
|
@@ -5254,7 +5254,7 @@ var init_Input = __esm({
|
|
5254
5254
|
ref,
|
5255
5255
|
placeholder: " "
|
5256
5256
|
}
|
5257
|
-
), /* @__PURE__ */ React49__namespace.default.createElement(react.FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React49__namespace.default.createElement(react.InputRightElement,
|
5257
|
+
), /* @__PURE__ */ React49__namespace.default.createElement(react.FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React49__namespace.default.createElement(react.InputRightElement, { pointerEvents: "none" }, rightIcon));
|
5258
5258
|
}
|
5259
5259
|
);
|
5260
5260
|
}
|
@@ -18821,6 +18821,7 @@ var init_textStyles = __esm({
|
|
18821
18821
|
fontSize: [
|
18822
18822
|
tokens10__namespace.default.font.style.xxl["font-size"].mobile,
|
18823
18823
|
null,
|
18824
|
+
null,
|
18824
18825
|
tokens10__namespace.default.font.style.xxl["font-size"].desktop
|
18825
18826
|
],
|
18826
18827
|
fontFamily: tokens10__namespace.default.font.style.xxl["font-family"],
|
@@ -18830,6 +18831,7 @@ var init_textStyles = __esm({
|
|
18830
18831
|
fontSize: [
|
18831
18832
|
tokens10__namespace.default.font.style["xl-display"]["font-size"].mobile,
|
18832
18833
|
null,
|
18834
|
+
null,
|
18833
18835
|
tokens10__namespace.default.font.style["xl-display"]["font-size"].desktop
|
18834
18836
|
],
|
18835
18837
|
fontFamily: tokens10__namespace.default.font.style["xl-display"]["font-family"],
|
@@ -18839,6 +18841,7 @@ var init_textStyles = __esm({
|
|
18839
18841
|
fontSize: [
|
18840
18842
|
tokens10__namespace.default.font.style["xl-sans"]["font-size"].mobile,
|
18841
18843
|
null,
|
18844
|
+
null,
|
18842
18845
|
tokens10__namespace.default.font.style["xl-sans"]["font-size"].desktop
|
18843
18846
|
],
|
18844
18847
|
fontFamily: tokens10__namespace.default.font.style["xl-sans"]["font-family"],
|
@@ -18848,6 +18851,7 @@ var init_textStyles = __esm({
|
|
18848
18851
|
fontSize: [
|
18849
18852
|
tokens10__namespace.default.font.style.lg["font-size"].mobile,
|
18850
18853
|
null,
|
18854
|
+
null,
|
18851
18855
|
tokens10__namespace.default.font.style.lg["font-size"].desktop
|
18852
18856
|
],
|
18853
18857
|
fontFamily: tokens10__namespace.default.font.style.lg["font-family"],
|
@@ -18857,6 +18861,7 @@ var init_textStyles = __esm({
|
|
18857
18861
|
fontSize: [
|
18858
18862
|
tokens10__namespace.default.font.style.md["font-size"].mobile,
|
18859
18863
|
null,
|
18864
|
+
null,
|
18860
18865
|
tokens10__namespace.default.font.style.md["font-size"].desktop
|
18861
18866
|
],
|
18862
18867
|
fontFamily: tokens10__namespace.default.font.style.md["font-family"],
|
@@ -18866,6 +18871,7 @@ var init_textStyles = __esm({
|
|
18866
18871
|
fontSize: [
|
18867
18872
|
tokens10__namespace.default.font.style.sm["font-size"].mobile,
|
18868
18873
|
null,
|
18874
|
+
null,
|
18869
18875
|
tokens10__namespace.default.font.style.sm["font-size"].desktop
|
18870
18876
|
],
|
18871
18877
|
fontFamily: tokens10__namespace.default.font.style.sm["font-family"],
|
@@ -18875,6 +18881,7 @@ var init_textStyles = __esm({
|
|
18875
18881
|
fontSize: [
|
18876
18882
|
tokens10__namespace.default.font.style.xs["font-size"].mobile,
|
18877
18883
|
null,
|
18884
|
+
null,
|
18878
18885
|
tokens10__namespace.default.font.style.xs["font-size"].desktop
|
18879
18886
|
],
|
18880
18887
|
fontFamily: tokens10__namespace.default.font.style.xs["font-family"],
|
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-QBIZVUPL.mjs';
|
package/package.json
CHANGED
package/src/input/Input.tsx
CHANGED
@@ -40,7 +40,9 @@ export const Input = forwardRef<InputProps, "input">(
|
|
40
40
|
const inputId = id ?? formControlProps?.id ?? fallbackId;
|
41
41
|
return (
|
42
42
|
<InputGroup position="relative">
|
43
|
-
{leftIcon &&
|
43
|
+
{leftIcon && (
|
44
|
+
<InputLeftElement pointerEvents="none">{leftIcon}</InputLeftElement>
|
45
|
+
)}
|
44
46
|
<ChakraInput
|
45
47
|
data-attachable
|
46
48
|
paddingLeft={leftIcon ? 7 : undefined}
|
@@ -51,7 +53,11 @@ export const Input = forwardRef<InputProps, "input">(
|
|
51
53
|
placeholder=" " // This is needed to make the label work as expected
|
52
54
|
/>
|
53
55
|
<FormLabel htmlFor={inputId}>{label}</FormLabel>
|
54
|
-
{rightIcon &&
|
56
|
+
{rightIcon && (
|
57
|
+
<InputRightElement pointerEvents="none">
|
58
|
+
{rightIcon}
|
59
|
+
</InputRightElement>
|
60
|
+
)}
|
55
61
|
</InputGroup>
|
56
62
|
);
|
57
63
|
}
|
@@ -5,6 +5,7 @@ export const textStyles = {
|
|
5
5
|
fontSize: [
|
6
6
|
tokens.font.style.xxl["font-size"].mobile,
|
7
7
|
null,
|
8
|
+
null,
|
8
9
|
tokens.font.style.xxl["font-size"].desktop,
|
9
10
|
],
|
10
11
|
fontFamily: tokens.font.style.xxl["font-family"],
|
@@ -14,6 +15,7 @@ export const textStyles = {
|
|
14
15
|
fontSize: [
|
15
16
|
tokens.font.style["xl-display"]["font-size"].mobile,
|
16
17
|
null,
|
18
|
+
null,
|
17
19
|
tokens.font.style["xl-display"]["font-size"].desktop,
|
18
20
|
],
|
19
21
|
fontFamily: tokens.font.style["xl-display"]["font-family"],
|
@@ -23,6 +25,7 @@ export const textStyles = {
|
|
23
25
|
fontSize: [
|
24
26
|
tokens.font.style["xl-sans"]["font-size"].mobile,
|
25
27
|
null,
|
28
|
+
null,
|
26
29
|
tokens.font.style["xl-sans"]["font-size"].desktop,
|
27
30
|
],
|
28
31
|
fontFamily: tokens.font.style["xl-sans"]["font-family"],
|
@@ -32,6 +35,7 @@ export const textStyles = {
|
|
32
35
|
fontSize: [
|
33
36
|
tokens.font.style.lg["font-size"].mobile,
|
34
37
|
null,
|
38
|
+
null,
|
35
39
|
tokens.font.style.lg["font-size"].desktop,
|
36
40
|
],
|
37
41
|
fontFamily: tokens.font.style.lg["font-family"],
|
@@ -41,6 +45,7 @@ export const textStyles = {
|
|
41
45
|
fontSize: [
|
42
46
|
tokens.font.style.md["font-size"].mobile,
|
43
47
|
null,
|
48
|
+
null,
|
44
49
|
tokens.font.style.md["font-size"].desktop,
|
45
50
|
],
|
46
51
|
fontFamily: tokens.font.style.md["font-family"],
|
@@ -50,6 +55,7 @@ export const textStyles = {
|
|
50
55
|
fontSize: [
|
51
56
|
tokens.font.style.sm["font-size"].mobile,
|
52
57
|
null,
|
58
|
+
null,
|
53
59
|
tokens.font.style.sm["font-size"].desktop,
|
54
60
|
],
|
55
61
|
fontFamily: tokens.font.style.sm["font-family"],
|
@@ -59,6 +65,7 @@ export const textStyles = {
|
|
59
65
|
fontSize: [
|
60
66
|
tokens.font.style.xs["font-size"].mobile,
|
61
67
|
null,
|
68
|
+
null,
|
62
69
|
tokens.font.style.xs["font-size"].desktop,
|
63
70
|
],
|
64
71
|
fontFamily: tokens.font.style.xs["font-family"],
|