@ztwoint/z-ui 0.1.101 → 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.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/index.d.ts +1 -0
- package/dist/index.js +13 -8
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -25,5 +25,6 @@ export * from './components/breadcrumb/z2-breadcrumb';
|
|
|
25
25
|
export * from './components/radio/z2-radio';
|
|
26
26
|
export * from './components/assets/icons';
|
|
27
27
|
export * from './components/segmented-control';
|
|
28
|
+
export * from './components/popover/popover';
|
|
28
29
|
export * from './lib/theme.hook';
|
|
29
30
|
export * from './lib/utils';
|
package/dist/index.js
CHANGED
|
@@ -105,10 +105,11 @@ import { default as ea } from "./components/assets/icons/descending.js";
|
|
|
105
105
|
import { default as ta } from "./components/assets/icons/chain.js";
|
|
106
106
|
import { SegmentedControl as pa } from "./components/segmented-control/controller.js";
|
|
107
107
|
import { SegmentedControlItem as fa } from "./components/segmented-control/item.js";
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
108
|
+
import { Popover as ma, PopoverAnchor as da, PopoverContent as xa, PopoverTrigger as ua } from "./components/popover/popover.js";
|
|
109
|
+
import { useTheme as ca } from "./lib/theme.hook.js";
|
|
110
|
+
import { cn as Za } from "./lib/utils.js";
|
|
111
|
+
import { Z2PopoverTrigger as Sa } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
112
|
+
import { Z2PopoverContent as ba } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
112
113
|
export {
|
|
113
114
|
p as Alert,
|
|
114
115
|
m as AlertCirclesIcon,
|
|
@@ -163,6 +164,10 @@ export {
|
|
|
163
164
|
xr as PaginationInfo,
|
|
164
165
|
ir as PaginationQuickJumper,
|
|
165
166
|
vt as PinIcon,
|
|
167
|
+
ma as Popover,
|
|
168
|
+
da as PopoverAnchor,
|
|
169
|
+
xa as PopoverContent,
|
|
170
|
+
ua as PopoverTrigger,
|
|
166
171
|
j as SIDEBAR_WIDTH,
|
|
167
172
|
q as SIDEBAR_WIDTH_COLLAPSED,
|
|
168
173
|
pa as SegmentedControl,
|
|
@@ -243,8 +248,8 @@ export {
|
|
|
243
248
|
go as Z2DropdownSubTrigger,
|
|
244
249
|
Gt as Z2Icon,
|
|
245
250
|
k as Z2Popover,
|
|
246
|
-
|
|
247
|
-
|
|
251
|
+
ba as Z2PopoverContent,
|
|
252
|
+
Sa as Z2PopoverTrigger,
|
|
248
253
|
Gr as Z2RadioGroup,
|
|
249
254
|
Wr as Z2RadioGroupIndicator,
|
|
250
255
|
_r as Z2RadioGroupItem,
|
|
@@ -278,9 +283,9 @@ export {
|
|
|
278
283
|
sr as Z2Tooltip,
|
|
279
284
|
br as badgeVariants,
|
|
280
285
|
u as buttonVariants,
|
|
281
|
-
|
|
286
|
+
Za as cn,
|
|
282
287
|
De as extractCellValue,
|
|
283
288
|
Le as useTableContext,
|
|
284
|
-
|
|
289
|
+
ca as useTheme,
|
|
285
290
|
P as useZ2SideNavBar
|
|
286
291
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ export * from './components/breadcrumb/z2-breadcrumb';
|
|
|
26
26
|
export * from './components/radio/z2-radio';
|
|
27
27
|
export * from './components/assets/icons';
|
|
28
28
|
export * from './components/segmented-control';
|
|
29
|
+
export * from './components/popover/popover';
|
|
29
30
|
export * from './lib/theme.hook';
|
|
30
31
|
export * from './lib/utils';
|