@vygruppen/spor-react 7.2.0 → 7.2.2

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@7.2.0 build
2
+ > @vygruppen/spor-react@7.2.2 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -8,15 +8,15 @@
8
8
  CLI Target: node16
9
9
  CJS Build start
10
10
  ESM Build start
11
- "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-D64WYI7V.mjs".
11
+ "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-PPXTF3R3.mjs".
12
12
  DTS Build start
13
13
  "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/index.js".
14
14
  ESM dist/index.mjs 2.16 KB
15
- ESM dist/CountryCodeSelect-QICAOALV.mjs 1.19 KB
16
- ESM dist/chunk-D64WYI7V.mjs 387.61 KB
17
- ESM ⚡️ Build success in 2217ms
18
- CJS dist/index.js 495.01 KB
19
- CJS ⚡️ Build success in 2217ms
20
- DTS ⚡️ Build success in 11050ms
21
- DTS dist/index.d.ts 265.56 KB
22
- DTS dist/index.d.mts 265.56 KB
15
+ ESM dist/CountryCodeSelect-K45HQCJC.mjs 1.19 KB
16
+ ESM dist/chunk-PPXTF3R3.mjs 387.65 KB
17
+ ESM ⚡️ Build success in 2188ms
18
+ CJS dist/index.js 495.05 KB
19
+ CJS ⚡️ Build success in 2188ms
20
+ DTS ⚡️ Build success in 11009ms
21
+ DTS dist/index.d.ts 265.46 KB
22
+ DTS dist/index.d.mts 265.46 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 7.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a36e39c: Lower the zIndex of form error messages
8
+
9
+ ## 7.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - a3159e5: Stepper: Change input to onBackButtonClick
14
+
3
15
  ## 7.2.0
4
16
 
5
17
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-D64WYI7V.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-PPXTF3R3.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -2801,7 +2801,7 @@ var FormErrorMessage = ({
2801
2801
  position: "absolute",
2802
2802
  top: -0.5,
2803
2803
  left: 3,
2804
- zIndex: "popover",
2804
+ zIndex: "dropdown",
2805
2805
  maxWidth: "50ch",
2806
2806
  ...errorMessageProps,
2807
2807
  ...boxProps
@@ -3420,7 +3420,7 @@ var texts14 = createTexts({
3420
3420
  sv: "Telefonnummer"
3421
3421
  }
3422
3422
  });
3423
- var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-QICAOALV.mjs'));
3423
+ var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-K45HQCJC.mjs'));
3424
3424
  var Radio = forwardRef((props, ref) => {
3425
3425
  return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
3426
3426
  });
@@ -4311,10 +4311,11 @@ var Stepper = ({
4311
4311
  size: "sm",
4312
4312
  visibility: hideBackButtonOnFirstStep ? "hidden" : "visible",
4313
4313
  onClick: () => {
4314
+ const stepToGoTo = activeStep - 1;
4314
4315
  if (onBackButtonClick) {
4315
- onBackButtonClick(activeStep === 1);
4316
+ onBackButtonClick(stepToGoTo);
4316
4317
  }
4317
- onClick(activeStep - 1);
4318
+ onClick(stepToGoTo);
4318
4319
  }
4319
4320
  }
4320
4321
  ),
package/dist/index.d.mts CHANGED
@@ -1956,11 +1956,10 @@ type StepperProps = {
1956
1956
  /** Callback for when a step is clicked */
1957
1957
  onClick: (clickedStep: number) => void;
1958
1958
  /** Callback for when the back button is clicked (on smaller screens).
1959
- * A boolean indicating whether or not the user is on the first step is passed as an argument.
1960
1959
  *
1961
1960
  * If this is not provided, the back button will not be shown on smaller screens on the first step.
1962
1961
  */
1963
- onBackButtonClick?: (isFirstStep: boolean) => void;
1962
+ onBackButtonClick?: (stepNumberToGoTo: number) => void;
1964
1963
  /**
1965
1964
  * Heading shown on smaller devices
1966
1965
  * @deprecated Use `heading` instead
package/dist/index.d.ts CHANGED
@@ -1956,11 +1956,10 @@ type StepperProps = {
1956
1956
  /** Callback for when a step is clicked */
1957
1957
  onClick: (clickedStep: number) => void;
1958
1958
  /** Callback for when the back button is clicked (on smaller screens).
1959
- * A boolean indicating whether or not the user is on the first step is passed as an argument.
1960
1959
  *
1961
1960
  * If this is not provided, the back button will not be shown on smaller screens on the first step.
1962
1961
  */
1963
- onBackButtonClick?: (isFirstStep: boolean) => void;
1962
+ onBackButtonClick?: (stepNumberToGoTo: number) => void;
1964
1963
  /**
1965
1964
  * Heading shown on smaller devices
1966
1965
  * @deprecated Use `heading` instead
package/dist/index.js CHANGED
@@ -3320,7 +3320,7 @@ var init_FormErrorMessage = __esm({
3320
3320
  position: "absolute",
3321
3321
  top: -0.5,
3322
3322
  left: 3,
3323
- zIndex: "popover",
3323
+ zIndex: "dropdown",
3324
3324
  maxWidth: "50ch",
3325
3325
  ...errorMessageProps,
3326
3326
  ...boxProps
@@ -5184,10 +5184,11 @@ var init_Stepper = __esm({
5184
5184
  size: "sm",
5185
5185
  visibility: hideBackButtonOnFirstStep ? "hidden" : "visible",
5186
5186
  onClick: () => {
5187
+ const stepToGoTo = activeStep - 1;
5187
5188
  if (onBackButtonClick) {
5188
- onBackButtonClick(activeStep === 1);
5189
+ onBackButtonClick(stepToGoTo);
5189
5190
  }
5190
- onClick(activeStep - 1);
5191
+ onClick(stepToGoTo);
5191
5192
  }
5192
5193
  }
5193
5194
  ),
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, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, Portal, ProgressBar, ProgressIndicator, 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, 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-D64WYI7V.mjs';
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, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, Portal, ProgressBar, ProgressIndicator, 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, 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-PPXTF3R3.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "7.2.0",
3
+ "version": "7.2.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -60,7 +60,7 @@ export const FormErrorMessage = ({
60
60
  position="absolute"
61
61
  top={-0.5}
62
62
  left={3}
63
- zIndex="popover"
63
+ zIndex="dropdown"
64
64
  maxWidth="50ch"
65
65
  {...errorMessageProps}
66
66
  {...boxProps}
@@ -9,11 +9,10 @@ type StepperProps = {
9
9
  /** Callback for when a step is clicked */
10
10
  onClick: (clickedStep: number) => void;
11
11
  /** Callback for when the back button is clicked (on smaller screens).
12
- * A boolean indicating whether or not the user is on the first step is passed as an argument.
13
12
  *
14
13
  * If this is not provided, the back button will not be shown on smaller screens on the first step.
15
14
  */
16
- onBackButtonClick?: (isFirstStep: boolean) => void;
15
+ onBackButtonClick?: (stepNumberToGoTo: number) => void;
17
16
  /**
18
17
  * Heading shown on smaller devices
19
18
  * @deprecated Use `heading` instead
@@ -92,10 +91,11 @@ export const Stepper = ({
92
91
  size="sm"
93
92
  visibility={hideBackButtonOnFirstStep ? "hidden" : "visible"}
94
93
  onClick={() => {
94
+ const stepToGoTo = activeStep - 1;
95
95
  if (onBackButtonClick) {
96
- onBackButtonClick(activeStep === 1);
96
+ onBackButtonClick(stepToGoTo);
97
97
  }
98
- onClick(activeStep - 1);
98
+ onClick(stepToGoTo);
99
99
  }}
100
100
  />
101
101
  {shownHeading && (