@neo4j-ndl/react 4.25.9 → 4.25.10

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.
@@ -24,7 +24,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
25
  const react_1 = require("@neo4j-ndl/react");
26
26
  const Component = () => {
27
- return (0, jsx_runtime_1.jsx)(react_1.Switch, { label: "Label", isDisabled: true });
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-8", children: [(0, jsx_runtime_1.jsx)(react_1.Switch, { label: "Disabled off", isDisabled: true }), (0, jsx_runtime_1.jsx)(react_1.Switch, { label: "Disabled on", isChecked: true, isDisabled: true })] }));
28
28
  };
29
29
  exports.default = Component;
30
30
  //# sourceMappingURL=switch-disabled.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch-disabled.story.js","sourceRoot":"","sources":["../../../../src/switch/stories/switch-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,cAAM,IAAC,KAAK,EAAC,OAAO,EAAC,UAAU,SAAG,CAAC;AAC7C,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Switch } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return <Switch label=\"Label\" isDisabled />;\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"switch-disabled.story.js","sourceRoot":"","sources":["../../../../src/switch/stories/switch-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,cAAM,IAAC,KAAK,EAAC,cAAc,EAAC,UAAU,SAAG,EAC1C,uBAAC,cAAM,IAAC,KAAK,EAAC,aAAa,EAAC,SAAS,QAAC,UAAU,SAAG,IAC/C,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Switch } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-8\">\n <Switch label=\"Disabled off\" isDisabled />\n <Switch label=\"Disabled on\" isChecked isDisabled />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*!
3
3
  *
4
4
  * Copyright (c) "Neo4j"
@@ -22,7 +22,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
22
22
  import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
23
  import { Switch } from '@neo4j-ndl/react';
24
24
  const Component = () => {
25
- return _jsx(Switch, { label: "Label", isDisabled: true });
25
+ return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-8", children: [_jsx(Switch, { label: "Disabled off", isDisabled: true }), _jsx(Switch, { label: "Disabled on", isChecked: true, isDisabled: true })] }));
26
26
  };
27
27
  export default Component;
28
28
  //# sourceMappingURL=switch-disabled.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch-disabled.story.js","sourceRoot":"","sources":["../../../../src/switch/stories/switch-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,MAAM,IAAC,KAAK,EAAC,OAAO,EAAC,UAAU,SAAG,CAAC;AAC7C,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Switch } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return <Switch label=\"Label\" isDisabled />;\n};\n\nexport default Component;\n"]}
1
+ {"version":3,"file":"switch-disabled.story.js","sourceRoot":"","sources":["../../../../src/switch/stories/switch-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAC9C,KAAC,MAAM,IAAC,KAAK,EAAC,cAAc,EAAC,UAAU,SAAG,EAC1C,KAAC,MAAM,IAAC,KAAK,EAAC,aAAa,EAAC,SAAS,QAAC,UAAU,SAAG,IAC/C,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Switch } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"n-flex n-flex-col n-gap-token-8\">\n <Switch label=\"Disabled off\" isDisabled />\n <Switch label=\"Disabled on\" isChecked isDisabled />\n </div>\n );\n};\n\nexport default Component;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"switch-disabled.story.d.ts","sourceRoot":"","sources":["../../../../src/switch/stories/switch-disabled.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CAEd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"switch-disabled.story.d.ts","sourceRoot":"","sources":["../../../../src/switch/stories/switch-disabled.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CAOd,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "4.25.9",
3
+ "version": "4.25.10",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -424,7 +424,7 @@
424
424
  "@tanstack/react-table": "8.21.3",
425
425
  "react": ">=19.0.0",
426
426
  "react-dom": ">=19.0.0",
427
- "@neo4j-ndl/base": "^4.23.7"
427
+ "@neo4j-ndl/base": "^4.23.8"
428
428
  },
429
429
  "dependencies": {
430
430
  "@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: '4.25.9'
5
+ version: '4.25.10'
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` v4.25.9. Once installed into your repo (e.g. via
18
+ > 📌 Shipped with `@neo4j-ndl/react` v4.25.10. 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.
@@ -76,7 +76,12 @@ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
76
76
  import { Switch } from '@neo4j-ndl/react';
77
77
 
78
78
  const Component = () => {
79
- return <Switch label="Label" isDisabled />;
79
+ return (
80
+ <div className="n-flex n-flex-col n-gap-token-8">
81
+ <Switch label="Disabled off" isDisabled />
82
+ <Switch label="Disabled on" isChecked isDisabled />
83
+ </div>
84
+ );
80
85
  };
81
86
 
82
87
  export default Component;