@vygruppen/spor-react 3.4.3 → 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 +6 -0
- package/dist/{CountryCodeSelect-EGTCLFUV.mjs → CountryCodeSelect-7GGNROZW.mjs} +1 -1
- package/dist/{chunk-LHZ4TUAK.mjs → chunk-QBIZVUPL.mjs} +3 -3
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/input/Input.tsx +8 -2
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-LHZ4TUAK.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 6587ms
|
20
|
-
[32mDTS[39m ⚡️ Build success in 22311ms
|
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
@@ -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
|
});
|
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
|
}
|
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
|
}
|