@gapo_types/typography
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@gapo_types/typography", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Gapo UI components in React", | ||
@@ -18,5 +18,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@gapo_types/shared": "^0.2.0" | ||
"@gapo_types/shared": "^0.1.4" | ||
}, | ||
"gitHead": "48d5fd201c78288a862186f05aca04dfa80a8b9f" | ||
"gitHead": "5cd5eb6154a4f42e25909bce7ec77fbbfdd0a833" | ||
} |
@@ -8,13 +8,19 @@ import { | ||
} from '@gapo_types/shared' | ||
import { JSXElementConstructor, MouseEventHandler, ReactNode } from 'react' | ||
import {ElementType, JSXElementConstructor, MouseEvent, ReactNode} from 'react' | ||
export interface GapoTypographyProps<T> | ||
export interface GapoTypographyProps<T extends ElementType = 'div'> | ||
extends DOMProps, | ||
ViewStyleProps, | ||
CustomStyleProps { | ||
/** The content to display.*/ | ||
/** | ||
* The content to display. | ||
*/ | ||
children: ReactNode | ||
/** The visual color of the icon. */ | ||
/** | ||
* The visual color of the icon. | ||
*/ | ||
color?: GapoColorValue | ||
/** Sets the CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. Only use as a **last resort**. Use style props instead. */ | ||
/** | ||
* Sets the CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. Only use as a **last resort**. Use style props instead. | ||
*/ | ||
className?: string | ||
@@ -31,3 +37,5 @@ /** | ||
elementType?: T | JSXElementConstructor<any> | ||
/** Specify extra information about an element. */ | ||
/** | ||
* Specify extra information about an element. | ||
*/ | ||
title?: string | ||
@@ -44,3 +52,6 @@ /** | ||
lineClamp?: number | ||
onClick?: MouseEventHandler<T> | undefined | ||
/** | ||
* Handler that is called when the press is released over the target. | ||
*/ | ||
onClick?: (e: MouseEvent) => void | ||
} |
2112
53
+ Added@gapo_types/shared@0.1.4(transitive)
- Removed@gapo_types/shared@0.2.3(transitive)
Updated@gapo_types/shared@^0.1.4