@vygruppen/spor-react 3.0.0 → 3.0.1

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@3.0.0 build
2
+ > @vygruppen/spor-react@3.0.1 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,13 +9,13 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  DTS Build start
12
+ "toTime" is imported from external module "@internationalized/date" but never used in "dist/chunk-B6U7OYV3.mjs".
12
13
  "toTime" is imported from external module "@internationalized/date" but never used in "dist/index.js".
13
- "toTime" is imported from external module "@internationalized/date" but never used in "dist/chunk-YVNVHFTG.mjs".
14
- CJS dist/index.js 896.11 KB
15
- CJS ⚡️ Build success in 4412ms
16
- ESM dist/CountryCodeSelect-57KCWSW3.mjs 351.65 KB
17
14
  ESM dist/index.mjs 2.01 KB
18
- ESM dist/chunk-YVNVHFTG.mjs 416.38 KB
19
- ESM ⚡️ Build success in 4414ms
20
- DTS ⚡️ Build success in 17131ms
21
- DTS dist/index.d.ts 259.10 KB
15
+ ESM dist/CountryCodeSelect-ZP44HPNI.mjs 351.65 KB
16
+ ESM dist/chunk-B6U7OYV3.mjs 416.39 KB
17
+ ESM ⚡️ Build success in 4795ms
18
+ CJS dist/index.js 896.14 KB
19
+ CJS ⚡️ Build success in 4796ms
20
+ DTS ⚡️ Build success in 19473ms
21
+ DTS dist/index.d.ts 259.11 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 828e4f38: Fix a typing issue with Heading
8
+
3
9
  ## 3.0.0
4
10
 
5
11
  ### Major Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-YVNVHFTG.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-B6U7OYV3.mjs';
2
2
  import React from 'react';
3
3
 
4
4
  // ../../node_modules/awesome-phonenumber/index-esm.mjs
@@ -3226,7 +3226,11 @@ var Badge = forwardRef(
3226
3226
  }
3227
3227
  );
3228
3228
  var Code = forwardRef((props, ref) => /* @__PURE__ */ React49__default.createElement(Code$1, { ...props, ref }));
3229
- var Heading = ({ as, variant = "xl-display", ...props }) => {
3229
+ var Heading = ({
3230
+ as,
3231
+ variant = "xl-display",
3232
+ ...props
3233
+ }) => {
3230
3234
  return /* @__PURE__ */ React49__default.createElement(Text, { as, textStyle: variant, ...props });
3231
3235
  };
3232
3236
  var Text4 = forwardRef(
@@ -4921,7 +4925,7 @@ var texts13 = createTexts({
4921
4925
  sv: "Telefonnummer"
4922
4926
  }
4923
4927
  });
4924
- var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-57KCWSW3.mjs'));
4928
+ var LazyCountryCodeSelect = React49__default.lazy(() => import('./CountryCodeSelect-ZP44HPNI.mjs'));
4925
4929
  var Radio = forwardRef((props, ref) => {
4926
4930
  return /* @__PURE__ */ React49__default.createElement(Radio$1, { ...props, ref });
4927
4931
  });
package/dist/index.d.ts CHANGED
@@ -6988,7 +6988,7 @@ type HeadingProps = Omit<HeadingProps$1, "textStyle" | "as"> & {
6988
6988
  * <Heading as="h1" variant="2xl">Look at me!</Heading>
6989
6989
  * ```
6990
6990
  */
6991
- declare const Heading: ({ as, variant, ...props }: any) => React__default.JSX.Element;
6991
+ declare const Heading: ({ as, variant, ...props }: HeadingProps) => React__default.JSX.Element;
6992
6992
 
6993
6993
  type TextProps = Omit<TextProps$1, "textStyle"> & {
6994
6994
  /** The size and style of the text.
package/dist/index.js CHANGED
@@ -2825,7 +2825,11 @@ var init_Code = __esm({
2825
2825
  exports.Heading = void 0;
2826
2826
  var init_Heading = __esm({
2827
2827
  "src/typography/Heading.tsx"() {
2828
- exports.Heading = ({ as, variant = "xl-display", ...props }) => {
2828
+ exports.Heading = ({
2829
+ as,
2830
+ variant = "xl-display",
2831
+ ...props
2832
+ }) => {
2829
2833
  return /* @__PURE__ */ React49__namespace.default.createElement(react.Text, { as, textStyle: variant, ...props });
2830
2834
  };
2831
2835
  }
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, 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, 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, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, 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, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-YVNVHFTG.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, 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, 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, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, 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, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-B6U7OYV3.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -26,6 +26,10 @@ export type HeadingProps = Omit<ChakraHeadingProps, "textStyle" | "as"> & {
26
26
  * <Heading as="h1" variant="2xl">Look at me!</Heading>
27
27
  * ```
28
28
  */
29
- export const Heading = ({ as, variant = "xl-display", ...props }: any) => {
29
+ export const Heading = ({
30
+ as,
31
+ variant = "xl-display",
32
+ ...props
33
+ }: HeadingProps) => {
30
34
  return <Text as={as} textStyle={variant} {...props} />;
31
35
  };