@neo4j-ndl/react 4.11.7 → 4.12.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.
Files changed (105) hide show
  1. package/lib/cjs/avatar/Avatar.js +2 -2
  2. package/lib/cjs/avatar/Avatar.js.map +1 -1
  3. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js +31 -0
  4. package/lib/cjs/avatar/stories/avatar-custom-icon.story.js.map +1 -0
  5. package/lib/cjs/avatar/stories/index.js +5 -1
  6. package/lib/cjs/avatar/stories/index.js.map +1 -1
  7. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  8. package/lib/cjs/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  9. package/lib/cjs/index.js +3 -1
  10. package/lib/cjs/index.js.map +1 -1
  11. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  12. package/lib/cjs/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  13. package/lib/cjs/selectable-tag/SelectableTag.js +53 -0
  14. package/lib/cjs/selectable-tag/SelectableTag.js.map +1 -0
  15. package/lib/cjs/selectable-tag/index.js +26 -0
  16. package/lib/cjs/selectable-tag/index.js.map +1 -0
  17. package/lib/cjs/selectable-tag/stories/index.js +52 -0
  18. package/lib/cjs/selectable-tag/stories/index.js.map +1 -0
  19. package/lib/cjs/selectable-tag/stories/selectable-tag-default.story.js +32 -0
  20. package/lib/cjs/selectable-tag/stories/selectable-tag-default.story.js.map +1 -0
  21. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js +30 -0
  22. package/lib/cjs/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -0
  23. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js +33 -0
  24. package/lib/cjs/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -0
  25. package/lib/cjs/selectable-tag/stories/selectable-tag-truncation.story.js +33 -0
  26. package/lib/cjs/selectable-tag/stories/selectable-tag-truncation.story.js.map +1 -0
  27. package/lib/cjs/selectable-tag/stories/selectable-tag-with-badge.story.js +32 -0
  28. package/lib/cjs/selectable-tag/stories/selectable-tag-with-badge.story.js.map +1 -0
  29. package/lib/cjs/selectable-tag/stories/selectable-tag-with-leading-icon.story.js +33 -0
  30. package/lib/cjs/selectable-tag/stories/selectable-tag-with-leading-icon.story.js.map +1 -0
  31. package/lib/cjs/tag/Tag.js +2 -0
  32. package/lib/cjs/tag/Tag.js.map +1 -1
  33. package/lib/cjs/tag-base/stories/index.js +32 -0
  34. package/lib/cjs/tag-base/stories/index.js.map +1 -0
  35. package/lib/cjs/tag-base/stories/tag-variants.story.js +32 -0
  36. package/lib/cjs/tag-base/stories/tag-variants.story.js.map +1 -0
  37. package/lib/esm/avatar/Avatar.js +2 -2
  38. package/lib/esm/avatar/Avatar.js.map +1 -1
  39. package/lib/esm/avatar/stories/avatar-custom-icon.story.js +29 -0
  40. package/lib/esm/avatar/stories/avatar-custom-icon.story.js.map +1 -0
  41. package/lib/esm/avatar/stories/index.js +3 -0
  42. package/lib/esm/avatar/stories/index.js.map +1 -1
  43. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js +1 -1
  44. package/lib/esm/dismissible-tag/stories/dismissible-tag-sizes.story.js.map +1 -1
  45. package/lib/esm/index.js +1 -0
  46. package/lib/esm/index.js.map +1 -1
  47. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js +1 -1
  48. package/lib/esm/read-only-tag/stories/read-only-tag-sizes.story.js.map +1 -1
  49. package/lib/esm/selectable-tag/SelectableTag.js +46 -0
  50. package/lib/esm/selectable-tag/SelectableTag.js.map +1 -0
  51. package/lib/esm/selectable-tag/index.js +22 -0
  52. package/lib/esm/selectable-tag/index.js.map +1 -0
  53. package/lib/esm/selectable-tag/stories/index.js +40 -0
  54. package/lib/esm/selectable-tag/stories/index.js.map +1 -0
  55. package/lib/esm/selectable-tag/stories/selectable-tag-default.story.js +30 -0
  56. package/lib/esm/selectable-tag/stories/selectable-tag-default.story.js.map +1 -0
  57. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js +28 -0
  58. package/lib/esm/selectable-tag/stories/selectable-tag-disabled.story.js.map +1 -0
  59. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js +31 -0
  60. package/lib/esm/selectable-tag/stories/selectable-tag-sizes.story.js.map +1 -0
  61. package/lib/esm/selectable-tag/stories/selectable-tag-truncation.story.js +31 -0
  62. package/lib/esm/selectable-tag/stories/selectable-tag-truncation.story.js.map +1 -0
  63. package/lib/esm/selectable-tag/stories/selectable-tag-with-badge.story.js +30 -0
  64. package/lib/esm/selectable-tag/stories/selectable-tag-with-badge.story.js.map +1 -0
  65. package/lib/esm/selectable-tag/stories/selectable-tag-with-leading-icon.story.js +31 -0
  66. package/lib/esm/selectable-tag/stories/selectable-tag-with-leading-icon.story.js.map +1 -0
  67. package/lib/esm/tag/Tag.js +2 -0
  68. package/lib/esm/tag/Tag.js.map +1 -1
  69. package/lib/esm/tag-base/stories/index.js +25 -0
  70. package/lib/esm/tag-base/stories/index.js.map +1 -0
  71. package/lib/esm/tag-base/stories/tag-variants.story.js +30 -0
  72. package/lib/esm/tag-base/stories/tag-variants.story.js.map +1 -0
  73. package/lib/types/avatar/Avatar.d.ts +3 -1
  74. package/lib/types/avatar/Avatar.d.ts.map +1 -1
  75. package/lib/types/avatar/stories/avatar-custom-icon.story.d.ts +24 -0
  76. package/lib/types/avatar/stories/avatar-custom-icon.story.d.ts.map +1 -0
  77. package/lib/types/avatar/stories/index.d.ts +2 -0
  78. package/lib/types/avatar/stories/index.d.ts.map +1 -1
  79. package/lib/types/index.d.ts +1 -0
  80. package/lib/types/index.d.ts.map +1 -1
  81. package/lib/types/selectable-tag/SelectableTag.d.ts +42 -0
  82. package/lib/types/selectable-tag/SelectableTag.d.ts.map +1 -0
  83. package/lib/types/selectable-tag/index.d.ts +22 -0
  84. package/lib/types/selectable-tag/index.d.ts.map +1 -0
  85. package/lib/types/selectable-tag/stories/index.d.ts +33 -0
  86. package/lib/types/selectable-tag/stories/index.d.ts.map +1 -0
  87. package/lib/types/selectable-tag/stories/selectable-tag-default.story.d.ts +24 -0
  88. package/lib/types/selectable-tag/stories/selectable-tag-default.story.d.ts.map +1 -0
  89. package/lib/types/selectable-tag/stories/selectable-tag-disabled.story.d.ts +24 -0
  90. package/lib/types/selectable-tag/stories/selectable-tag-disabled.story.d.ts.map +1 -0
  91. package/lib/types/selectable-tag/stories/selectable-tag-sizes.story.d.ts +24 -0
  92. package/lib/types/selectable-tag/stories/selectable-tag-sizes.story.d.ts.map +1 -0
  93. package/lib/types/selectable-tag/stories/selectable-tag-truncation.story.d.ts +24 -0
  94. package/lib/types/selectable-tag/stories/selectable-tag-truncation.story.d.ts.map +1 -0
  95. package/lib/types/selectable-tag/stories/selectable-tag-with-badge.story.d.ts +24 -0
  96. package/lib/types/selectable-tag/stories/selectable-tag-with-badge.story.d.ts.map +1 -0
  97. package/lib/types/selectable-tag/stories/selectable-tag-with-leading-icon.story.d.ts +24 -0
  98. package/lib/types/selectable-tag/stories/selectable-tag-with-leading-icon.story.d.ts.map +1 -0
  99. package/lib/types/tag/Tag.d.ts +2 -0
  100. package/lib/types/tag/Tag.d.ts.map +1 -1
  101. package/lib/types/tag-base/stories/index.d.ts +23 -0
  102. package/lib/types/tag-base/stories/index.d.ts.map +1 -0
  103. package/lib/types/tag-base/stories/tag-variants.story.d.ts +24 -0
  104. package/lib/types/tag-base/stories/tag-variants.story.d.ts.map +1 -0
  105. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-disabled.story.d.ts","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-disabled.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CAWd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
24
+ //# sourceMappingURL=selectable-tag-sizes.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-sizes.story.d.ts","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-sizes.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAKjD,QAAA,MAAM,SAAS,+CAqCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
24
+ //# sourceMappingURL=selectable-tag-truncation.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-truncation.story.d.ts","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-truncation.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAQjD,QAAA,MAAM,SAAS,+CAmBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
24
+ //# sourceMappingURL=selectable-tag-with-badge.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-with-badge.story.d.ts","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-with-badge.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAKjD,QAAA,MAAM,SAAS,+CAYd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
24
+ //# sourceMappingURL=selectable-tag-with-leading-icon.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-tag-with-leading-icon.story.d.ts","sourceRoot":"","sources":["../../../../src/selectable-tag/stories/selectable-tag-with-leading-icon.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAMjD,QAAA,MAAM,SAAS,+CAYd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -32,6 +32,8 @@ interface TagProps {
32
32
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
33
33
  }
34
34
  /**
35
+ * @deprecated Use `ReadOnlyTag`, `DismissibleTag`, or `SelectableTag` instead. This component will be removed in v5.
36
+ *
35
37
  * Tag component is a small visual element that represents a tag.
36
38
  * A tag is always removable. If you want a non removable tag, use the StatusLabel component instead.
37
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src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.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export { default as TagVariants } from './tag-variants.story';
22
+ export declare const TagVariantsSource: string;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tag-base/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAK9D,eAAO,MAAM,iBAAiB,QAA4C,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
24
+ //# sourceMappingURL=tag-variants.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-variants.story.d.ts","sourceRoot":"","sources":["../../../../src/tag-base/stories/tag-variants.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAKjD,QAAA,MAAM,SAAS,+CAmBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "4.11.7",
3
+ "version": "4.12.0",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -87,7 +87,7 @@
87
87
  "@tanstack/react-table": "8.21.3",
88
88
  "react": ">=19.0.0",
89
89
  "react-dom": ">=19.0.0",
90
- "@neo4j-ndl/base": "^4.11.2"
90
+ "@neo4j-ndl/base": "^4.12.0"
91
91
  },
92
92
  "dependencies": {
93
93
  "@dnd-kit/core": "6.3.1",