@kvell-group/ui 1.18.19 → 1.18.20

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kvell-group/ui",
3
3
  "author": "Kvell Group",
4
4
  "private": false,
5
- "version": "1.18.19",
5
+ "version": "1.18.20",
6
6
  "type": "module",
7
7
  "main": "src/index.ts",
8
8
  "types": "src/index.ts",
@@ -1,18 +1,17 @@
1
- import type { TextProps as TextBaseProps } from '@mantine/core'
1
+ import type { ElementProps, TextProps as TextBaseProps } from '@mantine/core'
2
2
  import { Text as TextBase } from '@mantine/core'
3
- import { forwardRef, type ReactNode, type Ref } from 'react'
3
+ import { forwardRef } from 'react'
4
4
 
5
5
  import classesNames from '../../styles/typography.module.css'
6
6
  import type { TextVariants } from './types'
7
7
 
8
8
  // ----------------------------------------------------------------------
9
9
 
10
- type TextProps = Omit<TextBaseProps, 'variant'> & {
11
- children: ReactNode
10
+ interface TextProps extends TextBaseProps, ElementProps<'p', keyof TextBaseProps> {
12
11
  variant?: TextVariants
13
12
  }
14
13
 
15
- export const Text = forwardRef((props: TextProps, ref: Ref<HTMLParagraphElement>) => (
14
+ export const Text = forwardRef<HTMLParagraphElement, TextProps>((props, ref) => (
16
15
  <TextBase
17
16
  ref={ref}
18
17
  {...props}