@dust-tt/sparkle 0.2.214-pr → 0.2.214

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.2.214-pr",
3
+ "version": "0.2.214",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && rollup -c",
6
6
  "build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
@@ -50,7 +50,6 @@
50
50
  "eslint-plugin-simple-import-sort": "^12.1.0",
51
51
  "eslint-plugin-storybook": "^0.8.0",
52
52
  "eslint-plugin-unused-imports": "^3.2.0",
53
- "next": "^14.2.3",
54
53
  "prettier": "^3.0",
55
54
  "prettier-plugin-tailwindcss": "^0.6.5",
56
55
  "react": "^18.3.1",
@@ -1,8 +1,8 @@
1
- import Link from "next/link";
2
1
  import type { ComponentType } from "react";
3
2
  import React from "react";
4
3
 
5
- import { ChevronRightIcon, Icon } from "@sparkle/index";
4
+ import { SparkleContextLinkType } from "@sparkle/context";
5
+ import { ChevronRightIcon, Icon, SparkleContext } from "@sparkle/index";
6
6
 
7
7
  type BreadcrumbProps = {
8
8
  items: {
@@ -13,6 +13,10 @@ type BreadcrumbProps = {
13
13
  };
14
14
 
15
15
  export function Breadcrumbs({ items }: BreadcrumbProps) {
16
+ const { components } = React.useContext(SparkleContext);
17
+
18
+ const Link: SparkleContextLinkType = components.link;
19
+
16
20
  return (
17
21
  <div className="gap-2 s-flex s-flex-row s-items-center">
18
22
  {items.map((item, index) => (
@@ -13,7 +13,7 @@ export default meta;
13
13
  export const BreadcrumbsExample = () => {
14
14
  const items1 = [
15
15
  { label: "Home", href: "#", icon: HomeIcon },
16
- { label: "Vaults", href: "#" },
16
+ { label: "Vaults", href: ".." },
17
17
  { label: "My Vault" },
18
18
  ];
19
19
  const items2 = [