@spark-web/text
Advanced tools
Comparing version 2.0.0-rc.2 to 2.0.0-rc.3
# @spark-web/text | ||
## 2.0.0-rc.3 | ||
### Major Changes | ||
- upgrade package | ||
### Patch Changes | ||
- Updated dependencies []: | ||
- @spark-web/theme@4.0.0-rc.3 | ||
- @spark-web/utils@2.0.0-rc.3 | ||
- @spark-web/box@2.0.0-rc.3 | ||
## 2.0.0-rc.2 | ||
@@ -4,0 +17,0 @@ |
/// <reference types="react" /> | ||
export declare const TextContext: import("react").Context<{ | ||
size: "small" | "xsmall" | "standard" | "large"; | ||
tone: "disabled" | "link" | "muted" | "fieldAccent" | "accent" | "neutral" | "primary" | "secondary" | "caution" | "critical" | "info" | "positive" | "placeholder" | "primaryHover" | "primaryActive" | "secondaryHover" | "secondaryActive"; | ||
size: "xsmall" | "small" | "standard" | "large"; | ||
tone: "muted" | "disabled" | "fieldAccent" | "accent" | "neutral" | "primary" | "secondary" | "caution" | "critical" | "info" | "positive" | "link" | "placeholder" | "primaryHover" | "primaryActive" | "secondaryHover" | "secondaryActive"; | ||
weight: "regular" | "semibold"; | ||
} | undefined>; | ||
export declare function useTextContext(): { | ||
size: "small" | "xsmall" | "standard" | "large"; | ||
tone: "disabled" | "link" | "muted" | "fieldAccent" | "accent" | "neutral" | "primary" | "secondary" | "caution" | "critical" | "info" | "positive" | "placeholder" | "primaryHover" | "primaryActive" | "secondaryHover" | "secondaryActive"; | ||
size: "xsmall" | "small" | "standard" | "large"; | ||
tone: "muted" | "disabled" | "fieldAccent" | "accent" | "neutral" | "primary" | "secondary" | "caution" | "critical" | "info" | "positive" | "link" | "placeholder" | "primaryHover" | "primaryActive" | "secondaryHover" | "secondaryActive"; | ||
weight: "regular" | "semibold"; | ||
} | undefined; |
@@ -12,6 +12,6 @@ import type { ReactNode } from 'react'; | ||
export declare const useDefaultTextProps: ({ size: sizeProp, tone: toneProp, weight: weightProp, }: DefaultTextProps) => { | ||
size: "small" | "xsmall" | "standard" | "large"; | ||
tone: "disabled" | "link" | "muted" | "fieldAccent" | "accent" | "neutral" | "primary" | "secondary" | "caution" | "critical" | "info" | "positive" | "placeholder" | "primaryHover" | "primaryActive" | "secondaryHover" | "secondaryActive"; | ||
size: "xsmall" | "small" | "standard" | "large"; | ||
tone: "muted" | "disabled" | "fieldAccent" | "accent" | "neutral" | "primary" | "secondary" | "caution" | "critical" | "info" | "positive" | "link" | "placeholder" | "primaryHover" | "primaryActive" | "secondaryHover" | "secondaryActive"; | ||
weight: "regular" | "semibold"; | ||
}; | ||
export {}; |
@@ -33,4 +33,4 @@ import type { BoxProps } from '@spark-web/box'; | ||
as?: Comp | undefined; | ||
ref?: import("react").Ref<Comp extends "symbol" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | keyof HTMLElementTagNameMap ? (HTMLElementTagNameMap & Pick<SVGElementTagNameMap, "symbol" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">)[Comp] : Comp extends new (...args: any) => any ? InstanceType<Comp> : undefined> | undefined; | ||
ref?: import("react").Ref<Comp extends "symbol" | "text" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | keyof HTMLElementTagNameMap ? (HTMLElementTagNameMap & Pick<SVGElementTagNameMap, "symbol" | "text" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view">)[Comp] : Comp extends new (...args: any) => any ? InstanceType<Comp> : undefined> | undefined; | ||
} & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<Comp>>, "as"> & TextProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
export {}; |
{ | ||
"name": "@spark-web/text", | ||
"version": "2.0.0-rc.2", | ||
"version": "2.0.0-rc.3", | ||
"homepage": "https://github.com/brighte-labs/spark-web#readme", | ||
@@ -19,6 +19,6 @@ "repository": { | ||
"@babel/runtime": "^7.25.0", | ||
"@emotion/react": "^11.13.5", | ||
"@spark-web/box": "^2.0.0-rc.2", | ||
"@spark-web/theme": "^4.0.0-rc.2", | ||
"@spark-web/utils": "^2.0.0-rc.2" | ||
"@emotion/react": "^11.14.0", | ||
"@spark-web/box": "^2.0.0-rc.3", | ||
"@spark-web/theme": "^4.0.0-rc.3", | ||
"@spark-web/utils": "^2.0.0-rc.3" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
45680
Updated@emotion/react@^11.14.0
Updated@spark-web/box@^2.0.0-rc.3
Updated@spark-web/theme@^4.0.0-rc.3
Updated@spark-web/utils@^2.0.0-rc.3