🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@spark-web/text-link

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spark-web/text-link - npm Package Compare versions

Comparing version
5.3.3
to
5.4.0
+19
-0
CHANGELOG.md
# @spark-web/text-link
## 5.4.0
### Minor Changes
- [#667](https://github.com/brighte-labs/spark-web/pull/667)
[`80d9c15`](https://github.com/brighte-labs/spark-web/commit/80d9c156a40bbcd2b1a91a2d0403b3c8e9b47b4e)
Thanks [@Leo704099](https://github.com/Leo704099)! - Support react 17 to 19
### Patch Changes
- Updated dependencies
[[`80d9c15`](https://github.com/brighte-labs/spark-web/commit/80d9c156a40bbcd2b1a91a2d0403b3c8e9b47b4e)]:
- @spark-web/theme@5.13.0
- @spark-web/utils@5.1.0
- @spark-web/a11y@5.3.0
- @spark-web/link@5.1.0
- @spark-web/text@5.3.0
- @spark-web/box@6.0.0
## 5.3.3

@@ -4,0 +23,0 @@

+2
-2
import type { DataAttributeMap } from '@spark-web/utils/internal';
import type { HTMLAttributes } from 'react';
import type { TextLinkProps } from "./text-link.js";
export declare type TextLinkButtonProps = {
export type TextLinkButtonProps = {
/** Sets data attributes on the component. */

@@ -11,3 +11,3 @@ data?: DataAttributeMap;

/** Sets data attributes on the component. */
data?: DataAttributeMap | undefined;
data?: DataAttributeMap;
} & HTMLAttributes<HTMLSpanElement> & Omit<TextLinkProps, "href"> & import("react").RefAttributes<HTMLSpanElement>>;

@@ -1,2 +0,1 @@

/// <reference types="react" />
import type { LinkComponentProps } from '@spark-web/link';

@@ -7,3 +6,3 @@ import type { ForegroundTone } from '@spark-web/text';

import type { DataAttributeMap } from '@spark-web/utils/internal';
export declare type TextLinkProps = {
export type TextLinkProps = {
/** Sets data attributes on the component. */

@@ -24,3 +23,3 @@ data?: DataAttributeMap;

*/
export declare const TextLink: <Comp extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "a">(props: {
export declare const TextLink: <Comp extends import("react").ElementType = "a">(props: {
as?: Comp | undefined;

@@ -30,9 +29,9 @@ 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;

/** Sets data attributes on the component. */
data?: DataAttributeMap | undefined;
data?: DataAttributeMap;
/** Overrides the tone of the Text Context */
tone?: string | number | undefined;
tone?: ForegroundTone;
/** Override the weight of the Text Link */
weight?: "bold" | "medium" | "light" | "thin" | "black" | "extralight" | "regular" | "semibold" | "extrabold" | undefined;
weight?: keyof SparkTheme["typography"]["fontWeight"];
/** Override the textDecoration of the Text Link */
textDecoration?: TextDecoration | undefined;
} & LinkComponentProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
textDecoration?: TextDecoration;
} & LinkComponentProps) => import("react").ReactElement;

@@ -1,2 +0,2 @@

export * from "./declarations/src/index";
export * from "./declarations/src/index.js";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLXRleHQtbGluay5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=

@@ -53,3 +53,3 @@ 'use strict';

// NOTE: we need `forwardRefWithAs` for TS, but we don't want consumers changing the underlying element
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function (_ref, ref) {

@@ -56,0 +56,0 @@ _ref.as;

@@ -53,3 +53,3 @@ 'use strict';

// NOTE: we need `forwardRefWithAs` for TS, but we don't want consumers changing the underlying element
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function (_ref, ref) {

@@ -56,0 +56,0 @@ _ref.as;

@@ -49,3 +49,3 @@ import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';

// NOTE: we need `forwardRefWithAs` for TS, but we don't want consumers changing the underlying element
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function (_ref, ref) {

@@ -52,0 +52,0 @@ _ref.as;

{
"name": "@spark-web/text-link",
"version": "5.3.3",
"version": "5.4.0",
"homepage": "https://github.com/brighte-labs/spark-web#readme",

@@ -20,15 +20,15 @@ "repository": {

"@emotion/react": "^11.14.0",
"@spark-web/a11y": "^5.0.0",
"@spark-web/box": "^5.2.2",
"@spark-web/link": "^5.0.2",
"@spark-web/text": "^5.2.3",
"@spark-web/theme": "^5.12.4",
"@spark-web/utils": "^5.0.0"
"@spark-web/a11y": "^5.3.0",
"@spark-web/box": "^6.0.0",
"@spark-web/link": "^5.1.0",
"@spark-web/text": "^5.3.0",
"@spark-web/theme": "^5.13.0",
"@spark-web/utils": "^5.1.0"
},
"devDependencies": {
"@types/react": "^18.2.0",
"react": "^18.2.0"
"@types/react": "^19.1.0",
"react": "^19.1.0"
},
"peerDependencies": {
"react": ">=17.0.2"
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
},

@@ -35,0 +35,0 @@ "engines": {