@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.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +12 -0
- package/dist/{CountryCodeSelect-BANGPTJ2.mjs → CountryCodeSelect-YX5EDQZV.mjs} +1 -1
- package/dist/{chunk-LZYJMYST.mjs → chunk-ILLONWJI.mjs} +6 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/alert/ClosableAlert.tsx +2 -1
- package/src/alert/ServiceAlert.tsx +2 -2
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@11.0.
|
2
|
+
> @vygruppen/spor-react@11.0.3 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,12 +9,12 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
-
[32mCJS[39m [1mdist/index.js [22m[32m542.
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m542.21 KB[39m
|
13
|
+
[32mCJS[39m ⚡️ Build success in 2273ms
|
14
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.16 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m342.
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m342.
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-YX5EDQZV.mjs [22m[32m1.22 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-ILLONWJI.mjs [22m[32m428.29 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 2274ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 15604ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m342.87 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m342.87 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1844,7 +1844,7 @@ var texts4 = createTexts({
|
|
1844
1844
|
sv: "Landskod"
|
1845
1845
|
}
|
1846
1846
|
});
|
1847
|
-
var LazyCountryCodeSelect = React85__default.lazy(() => import('./CountryCodeSelect-
|
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-
|
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
@@ -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
|
};
|