@vygruppen/spor-react 11.0.2 → 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.2 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.21 KB
13
+ CJS ⚡️ Build success in 2273ms
12
14
  ESM dist/index.mjs 2.16 KB
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
- 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,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 11.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5fe5e88: Add boxProps to ClosaleAlert"
8
+
3
9
  ## 11.0.2
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-QXIAB7O5.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-AWMN54K6.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",
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",
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-QXIAB7O5.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.2",
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"