@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@3.4.3 build
2
+ > @vygruppen/spor-react@3.4.4 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,13 +9,13 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  DTS 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
+ CJS dist/index.js 903.84 KB
15
+ CJS ⚡️ Build success in 6056ms
14
16
  ESM dist/index.mjs 2.01 KB
15
- ESM dist/CountryCodeSelect-EGTCLFUV.mjs 350.82 KB
16
- ESM dist/chunk-LHZ4TUAK.mjs 420.93 KB
17
- ESM ⚡️ Build success in 6586ms
18
- CJS dist/index.js 903.79 KB
19
- CJS ⚡️ Build success in 6587ms
20
- DTS ⚡️ Build success in 22311ms
17
+ ESM dist/CountryCodeSelect-7GGNROZW.mjs 350.82 KB
18
+ ESM dist/chunk-QBIZVUPL.mjs 420.97 KB
19
+ ESM ⚡️ Build success in 6061ms
20
+ DTS ⚡️ Build success in 22140ms
21
21
  DTS dist/index.d.ts 252.53 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 3.4.3
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-LHZ4TUAK.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-QBIZVUPL.mjs';
2
2
  import React from 'react';
3
3
 
4
4
  // ../../node_modules/awesome-phonenumber/index-esm.mjs
@@ -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, null, leftIcon), /* @__PURE__ */ React49__default.createElement(
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, null, rightIcon));
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-EGTCLFUV.mjs'));
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, null, leftIcon), /* @__PURE__ */ React49__namespace.default.createElement(
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, null, rightIcon));
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-LHZ4TUAK.mjs';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -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 && <InputLeftElement>{leftIcon}</InputLeftElement>}
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 && <InputRightElement>{rightIcon}</InputRightElement>}
56
+ {rightIcon && (
57
+ <InputRightElement pointerEvents="none">
58
+ {rightIcon}
59
+ </InputRightElement>
60
+ )}
55
61
  </InputGroup>
56
62
  );
57
63
  }