@vygruppen/spor-react 11.0.1 → 11.0.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@11.0.1 build
2
+ > @vygruppen/spor-react@11.0.2 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,12 +9,12 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  DTS Build start
12
- CJS dist/index.js 542.11 KB
13
- CJS ⚡️ Build success in 2302ms
14
12
  ESM dist/index.mjs 2.16 KB
15
- ESM dist/CountryCodeSelect-BANGPTJ2.mjs 1.22 KB
16
- ESM dist/chunk-LZYJMYST.mjs 428.19 KB
17
- ESM ⚡️ Build success in 2302ms
18
- DTS ⚡️ Build success in 16073ms
13
+ ESM dist/CountryCodeSelect-AWMN54K6.mjs 1.22 KB
14
+ ESM dist/chunk-QXIAB7O5.mjs 428.26 KB
15
+ ESM ⚡️ Build success in 2120ms
16
+ CJS dist/index.js 542.18 KB
17
+ CJS ⚡️ Build success in 2120ms
18
+ DTS ⚡️ Build success in 15580ms
19
19
  DTS dist/index.d.ts 342.86 KB
20
20
  DTS dist/index.d.mts 342.86 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 11.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 89d1702: Text for multiple notifications
8
+
3
9
  ## 11.0.1
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-LZYJMYST.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-QXIAB7O5.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -1844,7 +1844,7 @@ var texts4 = createTexts({
1844
1844
  sv: "Landskod"
1845
1845
  }
1846
1846
  });
1847
- var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-BANGPTJ2.mjs'));
1847
+ var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-AWMN54K6.mjs'));
1848
1848
  var Radio = forwardRef((props, ref) => {
1849
1849
  return /* @__PURE__ */ React85__default.createElement(Radio$1, { ...props, ref });
1850
1850
  });
@@ -2989,8 +2989,8 @@ var texts12 = createTexts({
2989
2989
  notification: (notification) => {
2990
2990
  const numNotification = Number(notification);
2991
2991
  return {
2992
- nb: `${numNotification} varsel`,
2993
- nn: `${numNotification} varsel`,
2992
+ nb: `${numNotification} ${numNotification > 1 ? "varsler" : "varsel"}`,
2993
+ nn: `${numNotification} ${numNotification > 1 ? "varslar" : "varsel"}`,
2994
2994
  sv: `${numNotification} ${numNotification > 1 ? "underr\xE4ttelser" : "underr\xE4ttelse"}`,
2995
2995
  en: `${numNotification} ${numNotification > 1 ? "notifications" : "notification"}`
2996
2996
  };
package/dist/index.js CHANGED
@@ -3512,8 +3512,8 @@ var init_ServiceAlert = __esm({
3512
3512
  notification: (notification) => {
3513
3513
  const numNotification = Number(notification);
3514
3514
  return {
3515
- nb: `${numNotification} varsel`,
3516
- nn: `${numNotification} varsel`,
3515
+ nb: `${numNotification} ${numNotification > 1 ? "varsler" : "varsel"}`,
3516
+ nn: `${numNotification} ${numNotification > 1 ? "varslar" : "varsel"}`,
3517
3517
  sv: `${numNotification} ${numNotification > 1 ? "underr\xE4ttelser" : "underr\xE4ttelse"}`,
3518
3518
  en: `${numNotification} ${numNotification > 1 ? "notifications" : "notification"}`
3519
3519
  };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, CardSelect, CargonetLogo, 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, FullScreenDrawer, 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, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioGroup, ScaleFade, SearchInput, Section, ServiceAlert, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, 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, VyLogoPride, 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-LZYJMYST.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, CardSelect, CargonetLogo, 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, FullScreenDrawer, 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, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioGroup, ScaleFade, SearchInput, Section, ServiceAlert, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, 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, VyLogoPride, 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-QXIAB7O5.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -157,8 +157,8 @@ const texts = createTexts({
157
157
  notification: (notification) => {
158
158
  const numNotification = Number(notification);
159
159
  return {
160
- nb: `${numNotification} varsel`,
161
- nn: `${numNotification} varsel`,
160
+ nb: `${numNotification} ${numNotification > 1 ? "varsler" : "varsel"}`,
161
+ nn: `${numNotification} ${numNotification > 1 ? "varslar" : "varsel"}`,
162
162
  sv: `${numNotification} ${numNotification > 1 ? "underrättelser" : "underrättelse"}`,
163
163
  en: `${numNotification} ${numNotification > 1 ? "notifications" : "notification"}`,
164
164
  };