@neo4j-ndl/react 4.9.26 → 4.9.28
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.
- package/lib/cjs/drawer/Drawer.js +14 -17
- package/lib/cjs/drawer/Drawer.js.map +1 -1
- package/lib/cjs/drawer/stories/drawer-overlay.story.js +4 -4
- package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -1
- package/lib/cjs/drawer/stories/drawer-portaled.story.js +6 -4
- package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -1
- package/lib/cjs/icons/generated/heroIcons/index.js.map +1 -1
- package/lib/cjs/timezone-picker/TimeZonePicker.js +1 -1
- package/lib/cjs/timezone-picker/TimeZonePicker.js.map +1 -1
- package/lib/esm/drawer/Drawer.js +16 -19
- package/lib/esm/drawer/Drawer.js.map +1 -1
- package/lib/esm/drawer/stories/drawer-overlay.story.js +5 -5
- package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -1
- package/lib/esm/drawer/stories/drawer-portaled.story.js +6 -4
- package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -1
- package/lib/esm/icons/generated/heroIcons/index.js.map +1 -1
- package/lib/esm/timezone-picker/TimeZonePicker.js +1 -1
- package/lib/esm/timezone-picker/TimeZonePicker.js.map +1 -1
- package/lib/types/drawer/Drawer.d.ts +4 -6
- package/lib/types/drawer/Drawer.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -43,22 +43,20 @@ type DrawerProps = {
|
|
|
43
43
|
/** Whether to portal the content. Only applies when type is "overlay". Type "modal" is always portaled.*/
|
|
44
44
|
isPortaled?: boolean;
|
|
45
45
|
/**
|
|
46
|
-
* Whether pressing Escape closes the drawer.
|
|
46
|
+
* Whether pressing Escape closes the drawer. Should be set to true for overlay drawers.
|
|
47
47
|
* - When type is "modal", this defaults to true.
|
|
48
48
|
* - When type is "overlay", this defaults to false.
|
|
49
49
|
* - When type is "push", no effect.
|
|
50
50
|
*/
|
|
51
51
|
closeOnEscape?: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* When type is "overlay", whether clicking outside the drawer closes it.
|
|
53
|
+
* When type is "overlay", whether clicking outside the drawer closes it. Should be set to true for overlay drawers.
|
|
54
54
|
* - When type is "overlay" or "modal", this defaults to false.
|
|
55
55
|
* - When type is "push", no effect.
|
|
56
56
|
*/
|
|
57
57
|
closeOnClickOutside?: boolean;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
* - When type is "overlay", this defaults to false.
|
|
61
|
-
* - When type is "push" or "modal", no effect.
|
|
59
|
+
* @deprecated overlay are now focus trapped by default, this prop has no effect anymore.
|
|
62
60
|
*/
|
|
63
61
|
closeOnFocusOut?: boolean;
|
|
64
62
|
/** The content to display within the drawer. */
|
|
@@ -93,7 +91,7 @@ type DrawerBodyProps = {
|
|
|
93
91
|
htmlAttributes?: HtmlAttributes<'div'>;
|
|
94
92
|
};
|
|
95
93
|
declare const Drawer: {
|
|
96
|
-
<T extends React.ElementType = "div">({ children, className, isExpanded, onExpandedChange, position, type, isResizeable, resizeableProps, isCloseable, isPortaled, portalProps, closeOnEscape, closeOnClickOutside,
|
|
94
|
+
<T extends React.ElementType = "div">({ children, className, isExpanded, onExpandedChange, position, type, isResizeable, resizeableProps, isCloseable, isPortaled, portalProps, closeOnEscape, closeOnClickOutside, ariaLabel, htmlAttributes, style, ref, as, ...restProps }: PolymorphicCommonProps<T, DrawerProps>): import("react/jsx-runtime").JSX.Element;
|
|
97
95
|
displayName: string;
|
|
98
96
|
} & {
|
|
99
97
|
Actions: ({ children, className, htmlAttributes, ...restProps }: DrawerActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/drawer/Drawer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAGL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAE5B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"version": "4.9.28",
|
|
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.9.
|
|
90
|
+
"@neo4j-ndl/base": "^4.9.16"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@dnd-kit/core": "6.3.1",
|