@vygruppen/spor-react 11.0.1 → 11.0.3

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.3 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
12
+ CJS dist/index.js 542.21 KB
13
+ CJS ⚡️ Build success in 2273ms
14
14
  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
19
- DTS dist/index.d.ts 342.86 KB
20
- DTS dist/index.d.mts 342.86 KB
15
+ ESM dist/CountryCodeSelect-YX5EDQZV.mjs 1.22 KB
16
+ ESM dist/chunk-ILLONWJI.mjs 428.29 KB
17
+ ESM ⚡️ Build success in 2274ms
18
+ DTS ⚡️ Build success in 15604ms
19
+ DTS dist/index.d.ts 342.87 KB
20
+ DTS dist/index.d.mts 342.87 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 11.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5fe5e88: Add boxProps to ClosaleAlert"
8
+
9
+ ## 11.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 89d1702: Text for multiple notifications
14
+
3
15
  ## 11.0.1
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-LZYJMYST.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-ILLONWJI.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-YX5EDQZV.mjs'));
1848
1848
  var Radio = forwardRef((props, ref) => {
1849
1849
  return /* @__PURE__ */ React85__default.createElement(Radio$1, { ...props, ref });
1850
1850
  });
@@ -2806,7 +2806,8 @@ var ClosableAlert = ({
2806
2806
  title,
2807
2807
  children,
2808
2808
  onClose: externalOnClose = () => {
2809
- }
2809
+ },
2810
+ ...boxProps
2810
2811
  }) => {
2811
2812
  const { isOpen, onClose } = useDisclosure({ defaultIsOpen: true });
2812
2813
  const styles3 = useMultiStyleConfig("Alert", { variant });
@@ -2818,7 +2819,7 @@ var ClosableAlert = ({
2818
2819
  externalOnClose();
2819
2820
  onClose();
2820
2821
  };
2821
- return /* @__PURE__ */ React85__default.createElement(BaseAlert, { variant }, /* @__PURE__ */ React85__default.createElement(
2822
+ return /* @__PURE__ */ React85__default.createElement(BaseAlert, { variant, ...boxProps }, /* @__PURE__ */ React85__default.createElement(
2822
2823
  IconButton,
2823
2824
  {
2824
2825
  variant: "ghost",
@@ -2989,8 +2990,8 @@ var texts12 = createTexts({
2989
2990
  notification: (notification) => {
2990
2991
  const numNotification = Number(notification);
2991
2992
  return {
2992
- nb: `${numNotification} varsel`,
2993
- nn: `${numNotification} varsel`,
2993
+ nb: `${numNotification} ${numNotification > 1 ? "varsler" : "varsel"}`,
2994
+ nn: `${numNotification} ${numNotification > 1 ? "varslar" : "varsel"}`,
2994
2995
  sv: `${numNotification} ${numNotification > 1 ? "underr\xE4ttelser" : "underr\xE4ttelse"}`,
2995
2996
  en: `${numNotification} ${numNotification > 1 ? "notifications" : "notification"}`
2996
2997
  };
package/dist/index.d.mts CHANGED
@@ -329,7 +329,7 @@ type ClosableAlertProps = BaseAlertProps & {
329
329
  * <Text>Some info here</Text>
330
330
  * </ClosableAlert>
331
331
  */
332
- declare const ClosableAlert: ({ variant, title, children, onClose: externalOnClose, }: ClosableAlertProps) => React.JSX.Element | null;
332
+ declare const ClosableAlert: ({ variant, title, children, onClose: externalOnClose, ...boxProps }: ClosableAlertProps) => React.JSX.Element | null;
333
333
 
334
334
  type ExpandableAlertProps = BaseAlertProps & {
335
335
  /** The title string */
package/dist/index.d.ts CHANGED
@@ -329,7 +329,7 @@ type ClosableAlertProps = BaseAlertProps & {
329
329
  * <Text>Some info here</Text>
330
330
  * </ClosableAlert>
331
331
  */
332
- declare const ClosableAlert: ({ variant, title, children, onClose: externalOnClose, }: ClosableAlertProps) => React.JSX.Element | null;
332
+ declare const ClosableAlert: ({ variant, title, children, onClose: externalOnClose, ...boxProps }: ClosableAlertProps) => React.JSX.Element | null;
333
333
 
334
334
  type ExpandableAlertProps = BaseAlertProps & {
335
335
  /** The title string */
package/dist/index.js CHANGED
@@ -3307,7 +3307,8 @@ var init_ClosableAlert = __esm({
3307
3307
  title,
3308
3308
  children,
3309
3309
  onClose: externalOnClose = () => {
3310
- }
3310
+ },
3311
+ ...boxProps
3311
3312
  }) => {
3312
3313
  const { isOpen, onClose } = react.useDisclosure({ defaultIsOpen: true });
3313
3314
  const styles3 = react.useMultiStyleConfig("Alert", { variant });
@@ -3319,7 +3320,7 @@ var init_ClosableAlert = __esm({
3319
3320
  externalOnClose();
3320
3321
  onClose();
3321
3322
  };
3322
- return /* @__PURE__ */ React86__namespace.default.createElement(BaseAlert, { variant }, /* @__PURE__ */ React86__namespace.default.createElement(
3323
+ return /* @__PURE__ */ React86__namespace.default.createElement(BaseAlert, { variant, ...boxProps }, /* @__PURE__ */ React86__namespace.default.createElement(
3323
3324
  exports.IconButton,
3324
3325
  {
3325
3326
  variant: "ghost",
@@ -3512,8 +3513,8 @@ var init_ServiceAlert = __esm({
3512
3513
  notification: (notification) => {
3513
3514
  const numNotification = Number(notification);
3514
3515
  return {
3515
- nb: `${numNotification} varsel`,
3516
- nn: `${numNotification} varsel`,
3516
+ nb: `${numNotification} ${numNotification > 1 ? "varsler" : "varsel"}`,
3517
+ nn: `${numNotification} ${numNotification > 1 ? "varslar" : "varsel"}`,
3517
3518
  sv: `${numNotification} ${numNotification > 1 ? "underr\xE4ttelser" : "underr\xE4ttelse"}`,
3518
3519
  en: `${numNotification} ${numNotification > 1 ? "notifications" : "notification"}`
3519
3520
  };
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-ILLONWJI.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.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -42,6 +42,7 @@ export const ClosableAlert = ({
42
42
  title,
43
43
  children,
44
44
  onClose: externalOnClose = () => {},
45
+ ...boxProps
45
46
  }: ClosableAlertProps) => {
46
47
  const { isOpen, onClose } = useDisclosure({ defaultIsOpen: true });
47
48
  const styles = useMultiStyleConfig("Alert", { variant });
@@ -56,7 +57,7 @@ export const ClosableAlert = ({
56
57
  };
57
58
 
58
59
  return (
59
- <BaseAlert variant={variant}>
60
+ <BaseAlert variant={variant} {...boxProps}>
60
61
  <IconButton
61
62
  variant="ghost"
62
63
  size="sm"
@@ -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
  };