@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
|
@@ -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
|
|
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
|
-
|
|
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
|
|
14
|
+
export const Text = forwardRef<HTMLParagraphElement, TextProps>((props, ref) => (
|
|
16
15
|
<TextBase
|
|
17
16
|
ref={ref}
|
|
18
17
|
{...props}
|