@neo4j-ndl/react 5.6.2 → 5.6.3

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.
@@ -1,4 +1,4 @@
1
- import { ArrowUpRightIconOutline } from "../icons/generated/heroIcons/ArrowUpRightIconOutline.mjs";
1
+ import SvgArrowUpRightOutline from "../icons/generated/custom/ArrowUpRightOutline.mjs";
2
2
  import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/objectWithoutProperties.mjs";
3
3
  import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/objectSpread2.mjs";
4
4
  import classNames from "classnames";
@@ -45,7 +45,7 @@ const TextLink = (_ref) => {
45
45
  ref,
46
46
  style,
47
47
  target
48
- }, restProps), htmlAttributes), {}, { children: [children, type === "external" && /* @__PURE__ */ jsx(ArrowUpRightIconOutline, { className: "ndl-external-link-icon" })] }));
48
+ }, restProps), htmlAttributes), {}, { children: [children, type === "external" && /* @__PURE__ */ jsx(SvgArrowUpRightOutline, { className: "ndl-external-link-icon" })] }));
49
49
  };
50
50
  export { TextLink };
51
51
 
@@ -1 +1 @@
1
- {"version":3,"file":"TextLink.mjs","names":[],"sources":["../../../src/text-link/TextLink.tsx"],"sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type PolymorphicCommonProps } from '../_common/types';\nimport { ArrowUpRightIconOutline } from '../icons/generated/heroIcons/ArrowUpRightIconOutline';\n\ntype TextLinkType = 'internal' | 'external';\n\ntype TextLinkProps = {\n /** The content displayed inside the link */\n children: React.ReactNode;\n\n /** The URL the link points to */\n href?: string;\n\n /**\n * The type of the text link.\n * All types render with an underline and primary text color by default. Additional color styling can be applied via `className`.\n * - 'internal': A link to another page within the application\n * - 'external': A link to an external website. An external link icon is appended.\n * @default 'internal'\n */\n type?: TextLinkType;\n\n /** Specifies where to open the linked document. If omitted and `type` is `\"external\"` it defaults to `\"_blank\"`. */\n target?: HTMLAnchorElement['target'];\n};\n\nexport const TextLink = <T extends React.ElementType = 'a'>({\n children,\n href,\n type = 'internal',\n as,\n className,\n target = type === 'external' ? '_blank' : '',\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, TextLinkProps>) => {\n const Component: React.ElementType = as ?? 'a';\n\n const classes = classNames('ndl-text-link', className, {\n 'ndl-external-link': type === 'external',\n });\n\n return (\n <Component\n className={classes}\n href={href}\n ref={ref}\n style={style}\n target={target}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n {type === 'external' && (\n <ArrowUpRightIconOutline className=\"ndl-external-link-icon\" />\n )}\n </Component>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;AATF,MAAa,YAA+C,SAWZ;CAXY,IAAA,EAC1D,UACA,MACA,OAAO,YACP,IACA,WACA,SAAS,SAAS,aAAa,WAAW,IAC1C,OACA,gBACA,QAAA,MACG,YAAA,yBAAA,MAAA,SAAA;CAEH,MAAM,YAA+B,OAAA,QAAA,OAAA,KAAA,IAAA,KAAM;CAE3C,MAAM,UAAU,WAAW,iBAAiB,WAAW,EACrD,qBAAqB,SAAS,WAChC,CAAC;CAED,OACE,qBAAC,WAAA,eAAA,eAAA,eAAA;EACC,WAAW;EACL;EACD;EACE;EACC;CACJ,GAAA,SAAA,GACA,cAAA,GAAA,CAAA,GAAA,EAAA,UAPN,CASG,UACA,SAAS,cACR,oBAAC,yBAAD,EAAyB,WAAU,yBAA0B,CAAA,CAEtD,EAAA,CAAA,CAAA;AAEf"}
1
+ {"version":3,"file":"TextLink.mjs","names":["ArrowUpRightOutlineIcon"],"sources":["../../../src/text-link/TextLink.tsx"],"sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type PolymorphicCommonProps } from '../_common/types';\nimport { ArrowUpRightOutlineIcon } from '../icons/generated/custom';\n\ntype TextLinkType = 'internal' | 'external';\n\ntype TextLinkProps = {\n /** The content displayed inside the link */\n children: React.ReactNode;\n\n /** The URL the link points to */\n href?: string;\n\n /**\n * The type of the text link.\n * All types render with an underline and primary text color by default. Additional color styling can be applied via `className`.\n * - 'internal': A link to another page within the application\n * - 'external': A link to an external website. An external link icon is appended.\n * @default 'internal'\n */\n type?: TextLinkType;\n\n /** Specifies where to open the linked document. If omitted and `type` is `\"external\"` it defaults to `\"_blank\"`. */\n target?: HTMLAnchorElement['target'];\n};\n\nexport const TextLink = <T extends React.ElementType = 'a'>({\n children,\n href,\n type = 'internal',\n as,\n className,\n target = type === 'external' ? '_blank' : '',\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, TextLinkProps>) => {\n const Component: React.ElementType = as ?? 'a';\n\n const classes = classNames('ndl-text-link', className, {\n 'ndl-external-link': type === 'external',\n });\n\n return (\n <Component\n className={classes}\n href={href}\n ref={ref}\n style={style}\n target={target}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n {type === 'external' && (\n <ArrowUpRightOutlineIcon className=\"ndl-external-link-icon\" />\n )}\n </Component>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;AATF,MAAa,YAA+C,SAWZ;CAXY,IAAA,EAC1D,UACA,MACA,OAAO,YACP,IACA,WACA,SAAS,SAAS,aAAa,WAAW,IAC1C,OACA,gBACA,QAAA,MACG,YAAA,yBAAA,MAAA,SAAA;CAEH,MAAM,YAA+B,OAAA,QAAA,OAAA,KAAA,IAAA,KAAM;CAE3C,MAAM,UAAU,WAAW,iBAAiB,WAAW,EACrD,qBAAqB,SAAS,WAChC,CAAC;CAED,OACE,qBAAC,WAAA,eAAA,eAAA,eAAA;EACC,WAAW;EACL;EACD;EACE;EACC;CACJ,GAAA,SAAA,GACA,cAAA,GAAA,CAAA,GAAA,EAAA,UAPN,CASG,UACA,SAAS,cACR,oBAACA,wBAAD,EAAyB,WAAU,yBAA0B,CAAA,CAEtD,EAAA,CAAA,CAAA;AAEf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "5.6.2",
3
+ "version": "5.6.3",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -429,7 +429,7 @@
429
429
  "@tanstack/react-table": "8.21.3",
430
430
  "react": ">=19.0.0",
431
431
  "react-dom": ">=19.0.0",
432
- "@neo4j-ndl/base": "^5.4.1"
432
+ "@neo4j-ndl/base": "^5.4.2"
433
433
  },
434
434
  "dependencies": {
435
435
  "@dnd-kit/core": "6.3.1",
@@ -2,7 +2,7 @@
2
2
  name: ndl-react
3
3
  metadata:
4
4
  package: '@neo4j-ndl/react'
5
- version: '5.6.2'
5
+ version: '5.6.3'
6
6
  description: >-
7
7
  Build and edit UI with the Neo4j Needle React design system
8
8
  (@neo4j-ndl/react). Use when adding, composing, or modifying Needle components
@@ -15,7 +15,7 @@ description: >-
15
15
 
16
16
  # Neo4j Needle (@neo4j-ndl/react)
17
17
 
18
- > 📌 Shipped with `@neo4j-ndl/react` v5.6.2. Once installed into your repo (e.g. via
18
+ > 📌 Shipped with `@neo4j-ndl/react` v5.6.3. Once installed into your repo (e.g. via
19
19
  > `npx skills add`) this folder is detached from the package — the installed
20
20
  > package (TypeScript types in `node_modules/@neo4j-ndl/react`) is the source of
21
21
  > truth.