@ztwoint/z-ui 0.1.100 → 0.1.102
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/components/popover/popover.d.ts +7 -0
- package/dist/components/popover/popover.js +39 -0
- package/dist/components/table/components/cell/avatar-cell.js +3 -2
- package/dist/components/table/table-provider.js +1 -0
- package/dist/components/table-card/table-card.js +3 -2
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -8
- package/dist/types/components/popover/popover.d.ts +7 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "@radix-ui/react-popover";
|
|
3
|
+
import "react";
|
|
4
|
+
import { cn as i } from "../../lib/utils.js";
|
|
5
|
+
function l({ ...o }) {
|
|
6
|
+
return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
|
|
7
|
+
}
|
|
8
|
+
function m({ ...o }) {
|
|
9
|
+
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
10
|
+
}
|
|
11
|
+
function f({
|
|
12
|
+
className: o,
|
|
13
|
+
align: r = "center",
|
|
14
|
+
sideOffset: a = 4,
|
|
15
|
+
...n
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
|
|
18
|
+
e.Content,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "popover-content",
|
|
21
|
+
align: r,
|
|
22
|
+
sideOffset: a,
|
|
23
|
+
className: i(
|
|
24
|
+
"bg-surface-neutral-default text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border border-stroke-solid-light p-4 outline-hidden",
|
|
25
|
+
o
|
|
26
|
+
),
|
|
27
|
+
...n
|
|
28
|
+
}
|
|
29
|
+
) });
|
|
30
|
+
}
|
|
31
|
+
function c({ ...o }) {
|
|
32
|
+
return /* @__PURE__ */ t(e.Anchor, { "data-slot": "popover-anchor", ...o });
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
l as Popover,
|
|
36
|
+
c as PopoverAnchor,
|
|
37
|
+
f as PopoverContent,
|
|
38
|
+
m as PopoverTrigger
|
|
39
|
+
};
|
|
@@ -41,7 +41,8 @@ import "../../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledg
|
|
|
41
41
|
import "@radix-ui/react-slot";
|
|
42
42
|
import "@radix-ui/react-radio-group";
|
|
43
43
|
import "../../../segmented-control/item.js";
|
|
44
|
-
|
|
44
|
+
import "@radix-ui/react-popover";
|
|
45
|
+
const it = ({
|
|
45
46
|
avatar: m,
|
|
46
47
|
value: a,
|
|
47
48
|
rightIcon: o,
|
|
@@ -79,5 +80,5 @@ const tt = ({
|
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
82
|
export {
|
|
82
|
-
|
|
83
|
+
it as AvatarCell
|
|
83
84
|
};
|
|
@@ -46,6 +46,7 @@ import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dis
|
|
|
46
46
|
import "@radix-ui/react-slot";
|
|
47
47
|
import "@radix-ui/react-radio-group";
|
|
48
48
|
import "../segmented-control/item.js";
|
|
49
|
+
import "@radix-ui/react-popover";
|
|
49
50
|
import { TableHeaderWrapper as T } from "./components/table-header-wrapper.js";
|
|
50
51
|
import { TableHeaderContent as b } from "./components/table-header-content.js";
|
|
51
52
|
import { TableFooter as s } from "./components/table-footer.js";
|
|
@@ -41,8 +41,9 @@ import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dis
|
|
|
41
41
|
import "@radix-ui/react-slot";
|
|
42
42
|
import "@radix-ui/react-radio-group";
|
|
43
43
|
import "../segmented-control/item.js";
|
|
44
|
+
import "@radix-ui/react-popover";
|
|
44
45
|
import "../table/table.context.js";
|
|
45
|
-
const
|
|
46
|
+
const be = ({
|
|
46
47
|
dataSource: w,
|
|
47
48
|
schema: B,
|
|
48
49
|
loading: b,
|
|
@@ -198,5 +199,5 @@ const Be = ({
|
|
|
198
199
|
] });
|
|
199
200
|
};
|
|
200
201
|
export {
|
|
201
|
-
|
|
202
|
+
be as default
|
|
202
203
|
};
|