@neo4j-ndl/react 1.8.20 → 1.10.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 (35) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/LICENSES.txt +53 -1
  3. package/lib/NOTICE.txt +9 -0
  4. package/lib/cjs/accordion/Accordion.js +241 -0
  5. package/lib/cjs/accordion/Accordion.js.map +1 -0
  6. package/lib/cjs/accordion/index.js +38 -0
  7. package/lib/cjs/accordion/index.js.map +1 -0
  8. package/lib/cjs/date-picker/DatePicker.js +91 -0
  9. package/lib/cjs/date-picker/DatePicker.js.map +1 -0
  10. package/lib/cjs/date-picker/index.js +38 -0
  11. package/lib/cjs/date-picker/index.js.map +1 -0
  12. package/lib/cjs/index.js +2 -0
  13. package/lib/cjs/index.js.map +1 -1
  14. package/lib/esm/accordion/Accordion.js +237 -0
  15. package/lib/esm/accordion/Accordion.js.map +1 -0
  16. package/lib/esm/accordion/index.js +22 -0
  17. package/lib/esm/accordion/index.js.map +1 -0
  18. package/lib/esm/date-picker/DatePicker.js +85 -0
  19. package/lib/esm/date-picker/DatePicker.js.map +1 -0
  20. package/lib/esm/date-picker/index.js +22 -0
  21. package/lib/esm/date-picker/index.js.map +1 -0
  22. package/lib/esm/index.js +2 -0
  23. package/lib/esm/index.js.map +1 -1
  24. package/lib/types/accordion/Accordion.d.ts +60 -0
  25. package/lib/types/accordion/index.d.ts +21 -0
  26. package/lib/types/date-picker/DatePicker.d.ts +35 -0
  27. package/lib/types/date-picker/index.d.ts +21 -0
  28. package/lib/types/graph-label/GraphLabel.d.ts +1 -1
  29. package/lib/types/index.d.ts +2 -0
  30. package/lib/types/side-navigation/SideNavigation.d.ts +2 -2
  31. package/lib/types/table/Table.d.ts +1 -1
  32. package/lib/types/table-deprecated/Table.d.ts +1 -1
  33. package/lib/types/typography/Typography.d.ts +1 -1
  34. package/lib/types/view-selector/ViewSelector.d.ts +1 -1
  35. package/package.json +5 -2
@@ -70,7 +70,7 @@ declare const Table: {
70
70
  } & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>> & {
71
71
  state: Partial<PaginationTableState<T>>;
72
72
  rows: Row<T>[];
73
- } & UsePaginationInstanceProps<T> & Pick<UseTableInstanceProps<T>, "headerGroups"> & UseSortByInstanceProps<T>> & Omit<ElementBase<HTMLDivElement>, "data" | "controls" | "headers" | "rows">): JSX.Element;
73
+ } & UsePaginationInstanceProps<T> & Pick<UseTableInstanceProps<T>, "headerGroups"> & UseSortByInstanceProps<T>> & Omit<ElementBase<HTMLDivElement>, "controls" | "data" | "headers" | "rows">): JSX.Element;
74
74
  RowActions: (props: ElementBase<HTMLDivElement>) => JSX.Element;
75
75
  };
76
76
  export default Table;
@@ -20,7 +20,7 @@
20
20
  */
21
21
  /// <reference types="react" />
22
22
  import { AsType, ConditionalTypography } from './types';
23
- export declare const Typography: <TVar extends "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "subheading-large" | "subheading-medium" | "subheading-small" | "body-large" | "body-medium" | "body-small", TAs extends AsType = undefined>(props: {
23
+ export declare const Typography: <TVar extends "label" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subheading-large" | "subheading-medium" | "subheading-small" | "body-large" | "body-medium" | "body-small", TAs extends AsType = undefined>(props: {
24
24
  as?: TAs | undefined;
25
25
  variant: TVar;
26
26
  } & ConditionalTypography<TAs, TVar>) => JSX.Element;
@@ -43,7 +43,7 @@ export interface ViewSelectorProps<T extends ViewSelectorID> extends ElementBase
43
43
  children: React.ReactNode | string;
44
44
  }
45
45
  export declare const ViewSelector: <T extends ViewSelectorID>(props: ViewSelectorProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
46
- export declare const ViewSelectorItem: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "ref" | "size" | "as" | "selected" | "onChange"> & {
46
+ export declare const ViewSelectorItem: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
47
47
  as?: string | React.ComponentType<any> | undefined;
48
48
  } & {
49
49
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "1.8.20",
3
+ "version": "1.10.0",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -62,6 +62,7 @@
62
62
  "@testing-library/user-event": "^14.4.3",
63
63
  "@types/jest-axe": "^3.5.3",
64
64
  "@types/react": "17.0.62",
65
+ "@types/react-datepicker": "^4.11.2",
65
66
  "@types/react-dom": "17.0.18",
66
67
  "@types/react-syntax-highlighter": "^15.5.5",
67
68
  "@types/react-table": "^7.7.10",
@@ -92,12 +93,14 @@
92
93
  "@floating-ui/react": "^0.24.2",
93
94
  "@heroicons/react": "2.0.13",
94
95
  "@neo4j-cypher/react-codemirror": "^1.0.1",
95
- "@neo4j-ndl/base": "^1.8.14",
96
+ "@neo4j-ndl/base": "^1.10.0",
96
97
  "@tanstack/react-table": "^8.9.3",
97
98
  "classnames": "^2.3.1",
99
+ "date-fns": "^2.30.0",
98
100
  "detect-browser": "^5.3.0",
99
101
  "re-resizable": "^6.9.9",
100
102
  "react-aria": "^3.25.0",
103
+ "react-datepicker": "^4.14.1",
101
104
  "react-dropzone": "^14.0.0",
102
105
  "react-focus-lock": "^2.9.4",
103
106
  "react-select": "5.7.0",