@neo4j-ndl/react 2.12.2 → 2.13.1

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 (35) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/LICENSES.txt +205 -87
  3. package/lib/NOTICE.txt +21 -24
  4. package/lib/cjs/accordion/Accordion.js +18 -7
  5. package/lib/cjs/accordion/Accordion.js.map +1 -1
  6. package/lib/cjs/dropdown-button/DropdownButton.js +61 -0
  7. package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -0
  8. package/lib/cjs/dropdown-button/index.js +38 -0
  9. package/lib/cjs/dropdown-button/index.js.map +1 -0
  10. package/lib/cjs/dropzone/icons/Cloud.js +1 -1
  11. package/lib/cjs/dropzone/icons/Cloud.js.map +1 -1
  12. package/lib/cjs/dropzone/icons/File.js +1 -1
  13. package/lib/cjs/dropzone/icons/File.js.map +1 -1
  14. package/lib/cjs/dropzone/icons/InvalidFile.js +1 -1
  15. package/lib/cjs/dropzone/icons/InvalidFile.js.map +1 -1
  16. package/lib/cjs/index.js +1 -0
  17. package/lib/cjs/index.js.map +1 -1
  18. package/lib/esm/accordion/Accordion.js +18 -7
  19. package/lib/esm/accordion/Accordion.js.map +1 -1
  20. package/lib/esm/dropdown-button/DropdownButton.js +55 -0
  21. package/lib/esm/dropdown-button/DropdownButton.js.map +1 -0
  22. package/lib/esm/dropdown-button/index.js +22 -0
  23. package/lib/esm/dropdown-button/index.js.map +1 -0
  24. package/lib/esm/dropzone/icons/Cloud.js +1 -1
  25. package/lib/esm/dropzone/icons/Cloud.js.map +1 -1
  26. package/lib/esm/dropzone/icons/File.js +1 -1
  27. package/lib/esm/dropzone/icons/File.js.map +1 -1
  28. package/lib/esm/dropzone/icons/InvalidFile.js +1 -1
  29. package/lib/esm/dropzone/icons/InvalidFile.js.map +1 -1
  30. package/lib/esm/index.js +1 -0
  31. package/lib/esm/index.js.map +1 -1
  32. package/lib/types/dropdown-button/DropdownButton.d.ts +50 -0
  33. package/lib/types/dropdown-button/index.d.ts +21 -0
  34. package/lib/types/index.d.ts +1 -0
  35. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC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,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,50 @@
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 React, { type ReactElement } from 'react';
22
+ /**
23
+ *
24
+ *
25
+ * Types
26
+ *
27
+ *
28
+ */
29
+ export interface DropdownButtonProps extends React.ComponentPropsWithRef<'button'> {
30
+ /** Add Component type here */
31
+ children: React.ReactNode;
32
+ /** Size of button */
33
+ size?: 'small' | 'medium' | 'large';
34
+ /** If the button is in floating state */
35
+ isFloating?: boolean;
36
+ /** If the button is in disabled state */
37
+ isDisabled?: boolean;
38
+ /** Element to be shown as left icon */
39
+ leftIcon?: ReactElement;
40
+ /** If the dropdown is activated */
41
+ isOpen?: boolean;
42
+ }
43
+ /**
44
+ *
45
+ *
46
+ * DropdownButton Component
47
+ *
48
+ *
49
+ */
50
+ export declare const DropdownButton: React.ForwardRefExoticComponent<Omit<DropdownButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,21 @@
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
+ export * from './DropdownButton';
@@ -61,5 +61,6 @@ export * from './logo';
61
61
  export * from './clipboard-copier';
62
62
  export * from './slider';
63
63
  export * from './inline-edit';
64
+ export * from './dropdown-button';
64
65
  export * from './divider';
65
66
  export * from './tree-view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "2.12.2",
3
+ "version": "2.13.1",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -58,8 +58,8 @@
58
58
  "generate:hero-icons": "ts-node ./scripts/generatedHeroIcons.ts"
59
59
  },
60
60
  "devDependencies": {
61
- "@axe-core/playwright": "4.8.5",
62
- "@playwright/experimental-ct-react": "1.42.1",
61
+ "@axe-core/playwright": "4.9.0",
62
+ "@playwright/experimental-ct-react": "1.43.1",
63
63
  "@svgr/cli": "6.5.1",
64
64
  "@types/node": "20.11.21",
65
65
  "@types/react": "18.2.18",
@@ -90,7 +90,7 @@
90
90
  "@floating-ui/react": "0.25.1",
91
91
  "@heroicons/react": "2.0.13",
92
92
  "@neo4j-cypher/react-codemirror": "^1.0.1",
93
- "@neo4j-ndl/base": "^2.8.1",
93
+ "@neo4j-ndl/base": "^2.9.1",
94
94
  "@table-nav/core": "0.0.7",
95
95
  "@table-nav/react": "0.0.7",
96
96
  "@tanstack/react-table": "^8.9.3",