@companix/uikit 0.0.74 → 0.0.75
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/dist/Drawer/index.d.ts +2 -1
- package/dist/bundle.es21.js +25 -15
- package/package.json +2 -2
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -4,10 +4,11 @@ export interface DrawerProps {
|
|
|
4
4
|
onOpenChange: (value: boolean) => void;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
direction?: 'bottom' | 'top' | 'left' | 'right';
|
|
7
|
+
onClosed?: () => void;
|
|
7
8
|
className?: string;
|
|
8
9
|
size?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare const Drawer: {
|
|
11
|
-
({ open, onOpenChange, children, size, direction, className }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
({ open, onClosed, onOpenChange, children, size, direction, className }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
Close: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
14
|
};
|
package/dist/bundle.es21.js
CHANGED
|
@@ -1,25 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import d from "classnames";
|
|
3
|
+
import * as e from "@radix-ui/react-dialog";
|
|
4
4
|
import { VisuallyHidden as i } from "@radix-ui/react-visually-hidden";
|
|
5
|
-
import { customCSS as
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { customCSS as p } from "@companix/utils-browser";
|
|
6
|
+
import { RemoveListener as f } from "./bundle.es54.js";
|
|
7
|
+
const h = ({
|
|
8
|
+
open: t,
|
|
9
|
+
onClosed: l,
|
|
10
|
+
onOpenChange: a,
|
|
11
|
+
children: m,
|
|
12
|
+
size: s,
|
|
13
|
+
direction: c,
|
|
14
|
+
className: n
|
|
15
|
+
}) => /* @__PURE__ */ r(e.Root, { open: t, onOpenChange: a, children: /* @__PURE__ */ o(e.Portal, { children: [
|
|
16
|
+
/* @__PURE__ */ r(e.Overlay, { className: "drawer-overlay" }),
|
|
8
17
|
/* @__PURE__ */ o(
|
|
9
|
-
|
|
18
|
+
e.Content,
|
|
10
19
|
{
|
|
11
|
-
style:
|
|
12
|
-
className:
|
|
13
|
-
"data-direction":
|
|
20
|
+
style: p({ "--drawer-size": s ?? "50%" }),
|
|
21
|
+
className: d("drawer", n),
|
|
22
|
+
"data-direction": c,
|
|
14
23
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
24
|
+
/* @__PURE__ */ r(f, { callback: l }),
|
|
25
|
+
/* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(e.Title, {}) }),
|
|
26
|
+
/* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(e.Description, {}) }),
|
|
27
|
+
m
|
|
18
28
|
]
|
|
19
29
|
}
|
|
20
30
|
)
|
|
21
31
|
] }) });
|
|
22
|
-
|
|
32
|
+
h.Close = e.Close;
|
|
23
33
|
export {
|
|
24
|
-
|
|
34
|
+
h as Drawer
|
|
25
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@companix/uikit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"main": "./dist/bundle.es.js",
|
|
5
5
|
"module": "./dist/bundle.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"author": "Pavel Victorov",
|
|
11
|
+
"author": "Pavel Victorov.",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"echo": "echo \"uikit\"",
|
|
14
14
|
"dev": "vite --config vite.config.ts",
|