@spark-ui/link-box 7.3.6 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.0.0](https://github.com/adevinta/spark/compare/v7.3.7...v8.0.0) (2025-01-13)
7
+
8
+ **Note:** Version bump only for package @spark-ui/link-box
9
+
10
+ ## [7.3.7](https://github.com/adevinta/spark/compare/v7.3.6...v7.3.7) (2025-01-08)
11
+
12
+ **Note:** Version bump only for package @spark-ui/link-box
13
+
6
14
  ## [7.3.6](https://github.com/adevinta/spark/compare/v7.3.5...v7.3.6) (2025-01-08)
7
15
 
8
16
  **Note:** Version bump only for package @spark-ui/link-box
package/dist/LinkBox.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export interface LinkBoxProps extends React.ComponentPropsWithoutRef<'div'> {
1
+ export interface LinkBoxProps extends React.ComponentPropsWithRef<'div'> {
2
2
  asChild?: boolean;
3
3
  }
4
- export declare const LinkBox: import("react").ForwardRefExoticComponent<LinkBoxProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const LinkBox: {
5
+ ({ className, asChild, ref, ...props }: LinkBoxProps): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -1,5 +1,8 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- export interface LinkBoxLinkProps extends ComponentPropsWithoutRef<'a'> {
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export interface LinkBoxLinkProps extends ComponentPropsWithRef<'a'> {
3
3
  asChild?: boolean;
4
4
  }
5
- export declare const LinkBoxLink: import("react").ForwardRefExoticComponent<LinkBoxLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
5
+ export declare const LinkBoxLink: {
6
+ ({ className, asChild, ref, ...props }: LinkBoxLinkProps): import("react").JSX.Element;
7
+ displayName: string;
8
+ };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),r=require("@spark-ui/slot"),l=require("class-variance-authority"),c=o.forwardRef(({className:e,asChild:a,...i},n)=>{const t=a?r.Slot:"div";return o.createElement(t,{ref:n,"data-spark-component":"link-box",className:l.cx("relative",e),...i})});c.displayName="LinkBox";const d=o.forwardRef(({className:e,asChild:a,...i},n)=>{const t=a?r.Slot:"a";return o.createElement(t,{ref:n,"data-spark-component":"link-box-link",className:l.cx("static before:absolute before:left-none before:top-none before:z-base before:block before:size-full before:content-['']",e),...i})});d.displayName="LinkBox.Link";const m=({className:e,...a})=>o.createElement(r.Slot,{className:l.cx("relative z-raised",e),...a});m.displayName="LinkBox.Raised";const s=Object.assign(c,{Link:d,Raised:m});s.displayName="LinkBox",s.Link.displayName="LinkBox.Link",s.Raised.displayName="LinkBox.Raised",exports.LinkBox=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),r=require("@spark-ui/slot"),l=require("class-variance-authority"),c=({className:e,asChild:a,ref:i,...o})=>{const n=a?r.Slot:"div";return t.createElement(n,{ref:i,"data-spark-component":"link-box",className:l.cx("relative",e),...o})};c.displayName="LinkBox";const d=({className:e,asChild:a,ref:i,...o})=>{const n=a?r.Slot:"a";return t.createElement(n,{ref:i,"data-spark-component":"link-box-link",className:l.cx("static before:absolute before:left-none before:top-none before:z-base before:block before:size-full before:content-['']",e),...o})};d.displayName="LinkBox.Link";const m=({className:e,...a})=>t.createElement(r.Slot,{className:l.cx("relative z-raised",e),...a});m.displayName="LinkBox.Raised";const s=Object.assign(c,{Link:d,Raised:m});s.displayName="LinkBox",s.Link.displayName="LinkBox.Link",s.Raised.displayName="LinkBox.Raised",exports.LinkBox=s;
package/dist/index.mjs CHANGED
@@ -1,19 +1,19 @@
1
- import t, { forwardRef as m } from "react";
1
+ import t from "react";
2
2
  import { Slot as r } from "@spark-ui/slot";
3
3
  import { cx as l } from "class-variance-authority";
4
- const c = m(({ className: e, asChild: a, ...s }, o) => {
4
+ const m = ({ className: e, asChild: a, ref: s, ...o }) => {
5
5
  const i = a ? r : "div";
6
- return t.createElement(i, { ref: o, "data-spark-component": "link-box", className: l("relative", e), ...s });
7
- });
8
- c.displayName = "LinkBox";
9
- const d = m(({ className: e, asChild: a, ...s }, o) => {
6
+ return t.createElement(i, { ref: s, "data-spark-component": "link-box", className: l("relative", e), ...o });
7
+ };
8
+ m.displayName = "LinkBox";
9
+ const c = ({ className: e, asChild: a, ref: s, ...o }) => {
10
10
  const i = a ? r : "a";
11
- return t.createElement(i, { ref: o, "data-spark-component": "link-box-link", className: l("static before:absolute before:left-none before:top-none before:z-base before:block before:size-full before:content-['']", e), ...s });
12
- });
13
- d.displayName = "LinkBox.Link";
11
+ return t.createElement(i, { ref: s, "data-spark-component": "link-box-link", className: l("static before:absolute before:left-none before:top-none before:z-base before:block before:size-full before:content-['']", e), ...o });
12
+ };
13
+ c.displayName = "LinkBox.Link";
14
14
  const k = ({ className: e, ...a }) => t.createElement(r, { className: l("relative z-raised", e), ...a });
15
15
  k.displayName = "LinkBox.Raised";
16
- const n = Object.assign(c, { Link: d, Raised: k });
16
+ const n = Object.assign(m, { Link: c, Raised: k });
17
17
  n.displayName = "LinkBox", n.Link.displayName = "LinkBox.Link", n.Raised.displayName = "LinkBox.Raised";
18
18
  export {
19
19
  n as LinkBox
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/link-box",
3
- "version": "7.3.6",
3
+ "version": "8.0.0",
4
4
  "description": "Semantic component used to wrap elements (cards, blog posts, articles, etc.) in a link.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,7 +23,7 @@
23
23
  "build": "vite build"
24
24
  },
25
25
  "dependencies": {
26
- "@spark-ui/slot": "^7.3.6",
26
+ "@spark-ui/slot": "^8.0.0",
27
27
  "class-variance-authority": "0.7.0"
28
28
  },
29
29
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  },
46
46
  "homepage": "https://sparkui.vercel.app",
47
47
  "license": "MIT",
48
- "gitHead": "969983868f32c57cf6d6ffc838de66b51fa4163d"
48
+ "gitHead": "309903aa55f44ebd43d2a1fe43691f110a5036ea"
49
49
  }