@loadsmart/miranda-react
Advanced tools
Comparing version 1.19.0 to 1.20.0
import * as React from 'react'; | ||
import type { HTMLAttributes } from 'react'; | ||
import { Text as WCText, TextProps as WCTextProps } from '@loadsmart/miranda-wc'; | ||
export type TextProps = React.HTMLAttributes<HTMLElement> & WCTextProps; | ||
type WCTextType = Omit<HTMLAttributes<WCText>, 'color'>; | ||
export interface TextProps extends WCTextType, WCTextProps { | ||
style?: React.CSSProperties & { | ||
'--m-text-display'?: string; | ||
'--m-text-max-width'?: string; | ||
}; | ||
} | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
'm-text': HTMLAttributes<WCText> & WCTextProps; | ||
'm-text': HTMLAttributes<WCText>; | ||
} | ||
@@ -10,0 +16,0 @@ } |
{ | ||
"name": "@loadsmart/miranda-react", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"description": "React component library based on Miranda Web Components", | ||
@@ -30,2 +30,3 @@ "main": "dist/index.js", | ||
"@testing-library/user-event": "^14.4.3", | ||
"@types/chance": "^1.1.3", | ||
"@types/react": "^18.2.5", | ||
@@ -32,0 +33,0 @@ "@types/react-dom": "^18.2.4", |
Sorry, the diff of this file is not supported yet
99141
1027
17