@stenajs-webui/core
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -7,6 +7,6 @@ import { FontWeightProperty, TextDecorationProperty, UserSelectProperty, WhiteSpaceProperty } from "csstype"; | ||
import { ThemeFontWeightField } from "../../theme/theme-types/ThemeFontWeights"; | ||
import { SpanProps } from "../../types/ElementProps"; | ||
import { Omit } from "../../types/Omit"; | ||
export interface TextProps extends TextThemeProps, TextBasePropsBase, Omit<SpanProps, "color"> { | ||
} | ||
declare type SpanProps = JSX.IntrinsicElements["span"]; | ||
export interface TextThemeProps { | ||
@@ -13,0 +13,0 @@ fontSize?: ThemeFontSizeField | string; |
@@ -19,3 +19,2 @@ export * from "./theme/hooks/UseTheme"; | ||
export * from "./components/layout/space/Space"; | ||
export * from "./components/layout/inline/Inline"; | ||
export * from "./components/text/TextTheme"; | ||
@@ -22,0 +21,0 @@ export { TextProps } from "./components/text/TextBase"; |
@@ -254,6 +254,2 @@ import { createContext, useContext, useMemo, createElement, useState, useCallback, useEffect, useRef } from 'react'; | ||
var Inline = function (props) { | ||
return createElement(Box, __assign({ display: "inline-block" }, props)); | ||
}; | ||
var defaultHeaderTextTheme = { | ||
@@ -460,3 +456,3 @@ fontSize: "huge", | ||
export { Absolute, Box, Clickable, Column, Indent, Inline, LargeText, Relative, Row, SeparatorLine, SmallText, SmallerText, Space, Spacing, StandardText, ThemeContext, TinyText, defaultHeaderTextTheme, defaultLargeTextTheme, defaultSectionHeaderTextTheme, defaultSmallTextTheme, defaultSmallerTextTheme, defaultTheme, defaultTinyTextTheme, useBoolean, useDebounce, useMultiOnClickOutside, useOnClickOutside, useOnNoMouseMovement, useTheme, useThemeFields, useThemeSelector }; | ||
export { Absolute, Box, Clickable, Column, Indent, LargeText, Relative, Row, SeparatorLine, SmallText, SmallerText, Space, Spacing, StandardText, ThemeContext, TinyText, defaultHeaderTextTheme, defaultLargeTextTheme, defaultSectionHeaderTextTheme, defaultSmallTextTheme, defaultSmallerTextTheme, defaultTheme, defaultTinyTextTheme, useBoolean, useDebounce, useMultiOnClickOutside, useOnClickOutside, useOnNoMouseMovement, useTheme, useThemeFields, useThemeSelector }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -260,6 +260,2 @@ 'use strict'; | ||
var Inline = function (props) { | ||
return React.createElement(Box, __assign({ display: "inline-block" }, props)); | ||
}; | ||
var defaultHeaderTextTheme = { | ||
@@ -471,3 +467,2 @@ fontSize: "huge", | ||
exports.Indent = Indent; | ||
exports.Inline = Inline; | ||
exports.LargeText = LargeText; | ||
@@ -474,0 +469,0 @@ exports.Relative = Relative; |
@@ -1,11 +0,16 @@ | ||
import { Ref } from "react"; | ||
import { Omit } from "./Omit"; | ||
import { MutableRefObject } from "react"; | ||
export interface InputProps extends Omit<JSX.IntrinsicElements["input"], "ref" | "value" | "onChange"> { | ||
inputRef?: Ref<HTMLInputElement>; | ||
/** Input ref to use. If omitted, an internal ref will be used. */ | ||
inputRef?: MutableRefObject<HTMLInputElement>; | ||
} | ||
export interface DivProps extends Omit<JSX.IntrinsicElements["div"], "ref"> { | ||
innerRef?: Ref<HTMLInputElement>; | ||
/** Input ref to use. If omitted, an internal ref will be used. */ | ||
innerRef?: MutableRefObject<HTMLInputElement>; | ||
} | ||
export interface SpanProps extends Omit<JSX.IntrinsicElements["span"], "ref"> { | ||
innerRef?: Ref<HTMLInputElement>; | ||
/** Input ref to use. If omitted, an internal ref will be used. */ | ||
innerRef?: MutableRefObject<HTMLInputElement>; | ||
} | ||
export interface WithInnerRef<TInputElement> { | ||
innerRef?: MutableRefObject<TInputElement>; | ||
} |
{ | ||
"name": "@stenajs-webui/core", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "", | ||
@@ -59,3 +59,3 @@ "author": "mattias800", | ||
], | ||
"gitHead": "0ba951f3ff2cebb6a0bfa542e24aa43f163a9455" | ||
"gitHead": "734ab0be176de4d7438d497eadda7f0c0747d8b0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
165450
59
1279