@ztwoint/z-ui 0.1.113 → 0.1.115
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/assets/icons/eraser.d.ts +7 -0
- package/dist/components/assets/icons/eraser.js +61 -0
- package/dist/components/assets/icons/index.d.ts +1 -0
- package/dist/components/select/z2-select.d.ts +5 -3
- package/dist/components/select/z2-select.js +56 -54
- package/dist/index.js +72 -70
- package/dist/types/components/assets/icons/eraser.d.ts +7 -0
- package/dist/types/components/assets/icons/index.d.ts +1 -0
- package/dist/types/components/select/z2-select.d.ts +5 -3
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
secondaryfill?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function Eraser({ fill, secondaryfill, width, height, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Eraser;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
function h({
|
|
3
|
+
fill: e = "currentColor",
|
|
4
|
+
secondaryfill: t,
|
|
5
|
+
width: n = "1em",
|
|
6
|
+
height: s = "1em",
|
|
7
|
+
title: i = "Eraser",
|
|
8
|
+
...c
|
|
9
|
+
}) {
|
|
10
|
+
return t = t || e, /* @__PURE__ */ o(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
height: s,
|
|
14
|
+
width: n,
|
|
15
|
+
viewBox: "0 0 20 20",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
...c,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ r("title", { children: i }),
|
|
20
|
+
/* @__PURE__ */ o("g", { fill: e, children: [
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
"path",
|
|
23
|
+
{
|
|
24
|
+
d: "m6.5813,16c-.144-.1003-.2813-.2147-.4097-.3431l-2.0784-2.0784c-1.1716-1.1716-1.1716-3.0711,0-4.2426l4.7426-4.7426c1.1716-1.1716,3.0711-1.1716,4.2426,0l2.0784,2.0784c1.1716,1.1716,1.1716,3.0711,0,4.2426l-4.7426,4.7426c-.1285.1285-.2657.2429-.4098.3432",
|
|
25
|
+
fill: "none",
|
|
26
|
+
stroke: e,
|
|
27
|
+
strokeLinecap: "round",
|
|
28
|
+
strokeLinejoin: "round",
|
|
29
|
+
strokeWidth: "2"
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ r(
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "m15.1569,6.6716l-2.0784-2.0784c-1.1716-1.1716-3.071-1.1716-4.2426,0l-2.3713,2.3713,6.321,6.321,2.3713-2.3713c1.1716-1.1716,1.1716-3.071,0-4.2426Z",
|
|
36
|
+
fill: e,
|
|
37
|
+
strokeWidth: "0"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
"line",
|
|
42
|
+
{
|
|
43
|
+
fill: "none",
|
|
44
|
+
stroke: t,
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round",
|
|
47
|
+
strokeWidth: "2",
|
|
48
|
+
x1: "6.5813",
|
|
49
|
+
x2: "17",
|
|
50
|
+
y1: "16",
|
|
51
|
+
y2: "16"
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
h as default
|
|
61
|
+
};
|
|
@@ -41,3 +41,4 @@ export { default as ArrowLeftIcon } from './arrow-left';
|
|
|
41
41
|
export { default as FilterIcon } from './filter-icon';
|
|
42
42
|
export { default as DescendingSortingIcon } from './descending';
|
|
43
43
|
export { default as ChainIcon } from './chain';
|
|
44
|
+
export { default as EraserIcon } from './eraser';
|
|
@@ -2,9 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import * as Z2SelectPrimitive from '@radix-ui/react-select';
|
|
3
3
|
declare function Z2Select({ ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function Z2SelectGroup({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
type Z2SelectValueProps = Omit<React.ComponentProps<typeof Z2SelectPrimitive.Value>, 'placeholder'> & {
|
|
6
|
+
placeholder?: React.ReactNode;
|
|
7
|
+
leftIcon?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare function Z2SelectValue({ className, leftIcon, placeholder, ...props }: Z2SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
declare function Z2SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Trigger> & {
|
|
9
11
|
size?: 'sm' | 'default';
|
|
10
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "@radix-ui/react-select";
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import { cn as
|
|
3
|
+
import { ChevronDownIcon as i, ChevronUpIcon as d } from "lucide-react";
|
|
4
|
+
import { cn as l } from "../../lib/utils.js";
|
|
5
5
|
import u from "../assets/icons/circle-check-filled.js";
|
|
6
|
-
function h({ ...
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
function h({ ...t }) {
|
|
7
|
+
return /* @__PURE__ */ e(s.Root, { "data-slot": "select", ...t });
|
|
8
8
|
}
|
|
9
9
|
function b({
|
|
10
|
-
className:
|
|
10
|
+
className: t,
|
|
11
11
|
...a
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ e(
|
|
14
14
|
s.Group,
|
|
15
15
|
{
|
|
16
16
|
"data-slot": "select-group",
|
|
17
|
-
className:
|
|
17
|
+
className: l(
|
|
18
18
|
// layout
|
|
19
19
|
"flex w-full flex-col items-start gap-1 relative rounded-none",
|
|
20
|
-
|
|
20
|
+
t
|
|
21
21
|
),
|
|
22
22
|
...a
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
|
-
function g({
|
|
27
|
-
className:
|
|
28
|
-
|
|
29
|
-
})
|
|
30
|
-
|
|
26
|
+
function g({ className: t, leftIcon: a, placeholder: r, ...n }) {
|
|
27
|
+
const c = a ? /* @__PURE__ */ o("span", { className: "flex items-center gap-1", children: [
|
|
28
|
+
/* @__PURE__ */ e("span", { className: "flex w-3.5 h-3.5 items-center justify-center shrink-0", children: a }),
|
|
29
|
+
/* @__PURE__ */ e("span", { children: r })
|
|
30
|
+
] }) : r;
|
|
31
|
+
return /* @__PURE__ */ e(
|
|
31
32
|
s.Value,
|
|
32
33
|
{
|
|
33
34
|
"data-slot": "select-value",
|
|
34
|
-
className:
|
|
35
|
+
className: l(
|
|
35
36
|
// layout + text alignment
|
|
36
37
|
"w-full self-center items-start text-left flex gap-1",
|
|
37
|
-
|
|
38
|
+
t
|
|
38
39
|
),
|
|
39
|
-
|
|
40
|
+
placeholder: c,
|
|
41
|
+
...n
|
|
40
42
|
}
|
|
41
43
|
);
|
|
42
44
|
}
|
|
43
45
|
function w({
|
|
44
|
-
className:
|
|
46
|
+
className: t,
|
|
45
47
|
size: a = "default",
|
|
46
|
-
children:
|
|
48
|
+
children: r,
|
|
47
49
|
...n
|
|
48
50
|
}) {
|
|
49
51
|
return /* @__PURE__ */ o(
|
|
@@ -51,7 +53,7 @@ function w({
|
|
|
51
53
|
{
|
|
52
54
|
"data-slot": "select-trigger",
|
|
53
55
|
"data-size": a,
|
|
54
|
-
className:
|
|
56
|
+
className: l(
|
|
55
57
|
// base layout
|
|
56
58
|
"h-7.5 flex items-center justify-between w-full self-stretch transition-all cursor-pointer",
|
|
57
59
|
"gap-[6px] p-2 rounded-md",
|
|
@@ -79,84 +81,84 @@ function w({
|
|
|
79
81
|
"data-[state=open]:box-shadow-button-default-pressed",
|
|
80
82
|
// disabled
|
|
81
83
|
"data-[disabled]:bg-input-surface-disabled data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed",
|
|
82
|
-
|
|
84
|
+
t
|
|
83
85
|
),
|
|
84
86
|
...n,
|
|
85
87
|
children: [
|
|
86
|
-
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
+
r,
|
|
89
|
+
/* @__PURE__ */ e(s.Icon, { asChild: !0, children: /* @__PURE__ */ e(i, { className: "shrink-0 w-[14px] h-[14px] aspect-square text-text-neutral-muted" }) })
|
|
88
90
|
]
|
|
89
91
|
}
|
|
90
92
|
);
|
|
91
93
|
}
|
|
92
94
|
function v({
|
|
93
|
-
className:
|
|
95
|
+
className: t,
|
|
94
96
|
children: a,
|
|
95
|
-
position:
|
|
97
|
+
position: r = "popper",
|
|
96
98
|
...n
|
|
97
99
|
}) {
|
|
98
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ e(s.Portal, { children: /* @__PURE__ */ e(
|
|
99
101
|
s.Content,
|
|
100
102
|
{
|
|
101
103
|
"data-slot": "select-content",
|
|
102
|
-
className:
|
|
104
|
+
className: l(
|
|
103
105
|
"min-w-[var(--radix-select-trigger-width)] flex flex-col items-start p-1 rounded-xl",
|
|
104
106
|
// background stack (overlay on top + base)
|
|
105
107
|
"bg-dropdown-surface",
|
|
106
108
|
// elevation + hairline stroke
|
|
107
109
|
"box-shadow-medium-10",
|
|
108
|
-
|
|
110
|
+
t
|
|
109
111
|
),
|
|
110
112
|
sideOffset: 10,
|
|
111
|
-
position:
|
|
113
|
+
position: r,
|
|
112
114
|
...n,
|
|
113
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ e(s.Viewport, { className: "!w-full ", children: a })
|
|
114
116
|
}
|
|
115
117
|
) });
|
|
116
118
|
}
|
|
117
119
|
function N({
|
|
118
|
-
className:
|
|
120
|
+
className: t,
|
|
119
121
|
...a
|
|
120
122
|
}) {
|
|
121
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ e(
|
|
122
124
|
s.Label,
|
|
123
125
|
{
|
|
124
126
|
"data-slot": "select-label",
|
|
125
|
-
className:
|
|
127
|
+
className: l(
|
|
126
128
|
"flex items-center gap-1 self-stretch text-text-neutral-secondary",
|
|
127
129
|
"px-2 pt-2 pb-1",
|
|
128
130
|
"leading-none-medium-sm",
|
|
129
|
-
|
|
131
|
+
t
|
|
130
132
|
),
|
|
131
133
|
...a
|
|
132
134
|
}
|
|
133
135
|
);
|
|
134
136
|
}
|
|
135
|
-
function S({ className:
|
|
137
|
+
function S({ className: t, children: a, leftIcon: r, label: n, ...c }) {
|
|
136
138
|
return /* @__PURE__ */ o(
|
|
137
139
|
s.Item,
|
|
138
140
|
{
|
|
139
141
|
"data-slot": "select-item",
|
|
140
|
-
className:
|
|
142
|
+
className: l(
|
|
141
143
|
"border-none w-full relative self-stretch flex items-center justify-between gap-2 cursor-pointer outline-none rounded-md",
|
|
142
144
|
"data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:text-text-neutral-muted",
|
|
143
145
|
"p-2",
|
|
144
146
|
// hover/active surface
|
|
145
147
|
"data-[state=active]:surface-neutral-focused hover:surface-neutral-focused",
|
|
146
|
-
|
|
148
|
+
t
|
|
147
149
|
),
|
|
148
|
-
...
|
|
150
|
+
...c,
|
|
149
151
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
|
|
152
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ e(s.ItemText, { asChild: !0, children: /* @__PURE__ */ o("div", { className: "flex items-center justify-center gap-2 flex-1 leading-none-medium-sm", children: [
|
|
153
|
+
r && /* @__PURE__ */ e("div", { className: "flex w-3.5 h-3.5 items-center justify-center", children: r }),
|
|
154
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: a || n })
|
|
153
155
|
] }) }),
|
|
154
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ e(
|
|
155
157
|
s.ItemIndicator,
|
|
156
158
|
{
|
|
157
159
|
"data-slot": "select-item-indicator",
|
|
158
160
|
className: "flex w-[14px] h-[14px] items-center justify-center",
|
|
159
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ e(u, { className: "w-4 h-4" })
|
|
160
162
|
}
|
|
161
163
|
)
|
|
162
164
|
]
|
|
@@ -164,43 +166,43 @@ function S({ className: e, children: a, leftIcon: l, label: n, ...i }) {
|
|
|
164
166
|
);
|
|
165
167
|
}
|
|
166
168
|
function y({
|
|
167
|
-
className:
|
|
169
|
+
className: t,
|
|
168
170
|
...a
|
|
169
171
|
}) {
|
|
170
|
-
return /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ e(
|
|
171
173
|
s.Separator,
|
|
172
174
|
{
|
|
173
175
|
"data-slot": "select-separator",
|
|
174
|
-
className:
|
|
176
|
+
className: l("border-t-[1px] border-solid border-stroke-solid-light my-1 mx-1", t),
|
|
175
177
|
...a
|
|
176
178
|
}
|
|
177
179
|
);
|
|
178
180
|
}
|
|
179
181
|
function Z({
|
|
180
|
-
className:
|
|
182
|
+
className: t,
|
|
181
183
|
...a
|
|
182
184
|
}) {
|
|
183
|
-
return /* @__PURE__ */
|
|
185
|
+
return /* @__PURE__ */ e(
|
|
184
186
|
s.ScrollUpButton,
|
|
185
187
|
{
|
|
186
188
|
"data-slot": "select-scroll-up-button",
|
|
187
|
-
className:
|
|
189
|
+
className: l("flex cursor-default items-center justify-center py-1", t),
|
|
188
190
|
...a,
|
|
189
|
-
children: /* @__PURE__ */
|
|
191
|
+
children: /* @__PURE__ */ e(d, { className: "size-4" })
|
|
190
192
|
}
|
|
191
193
|
);
|
|
192
194
|
}
|
|
193
195
|
function j({
|
|
194
|
-
className:
|
|
196
|
+
className: t,
|
|
195
197
|
...a
|
|
196
198
|
}) {
|
|
197
|
-
return /* @__PURE__ */
|
|
199
|
+
return /* @__PURE__ */ e(
|
|
198
200
|
s.ScrollDownButton,
|
|
199
201
|
{
|
|
200
202
|
"data-slot": "select-scroll-down-button",
|
|
201
|
-
className:
|
|
203
|
+
className: l("flex cursor-default items-center justify-center py-1", t),
|
|
202
204
|
...a,
|
|
203
|
-
children: /* @__PURE__ */
|
|
205
|
+
children: /* @__PURE__ */ e(i, { className: "size-4" })
|
|
204
206
|
}
|
|
205
207
|
);
|
|
206
208
|
}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { AlertCirclesIcon as m } from "./components/alert/icons/circles-icon.js"
|
|
|
4
4
|
import { Button as x, buttonVariants as i } from "./components/button/button.js";
|
|
5
5
|
import { Z2SideNavBarProvider as Z } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
6
6
|
import { Z2SideNavBar as s, Z2SidebarVariants as b } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
|
|
7
|
-
import { Z2SideNavBarHeader as
|
|
7
|
+
import { Z2SideNavBarHeader as T } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
8
8
|
import { Z2SideNavBarContent as C } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
9
|
import { Z2SideNavBarFooter as g } from "./components/collapsible-side-nav-bar/side-nav-bar-footer.js";
|
|
10
10
|
import { Z2SideNavBarGroup as B } from "./components/collapsible-side-nav-bar/side-nav-bar-group.js";
|
|
@@ -13,7 +13,7 @@ import { Z2SideNavBarSeparator as M } from "./components/collapsible-side-nav-ba
|
|
|
13
13
|
import { useZ2SideNavBar as h } from "./components/collapsible-side-nav-bar/context.js";
|
|
14
14
|
import { Z2Popover as y } from "./components/collapsible-side-nav-bar/popover/popover.js";
|
|
15
15
|
import "react/jsx-runtime";
|
|
16
|
-
import { default as
|
|
16
|
+
import { default as E, default as H } from "./components/assets/icons/sub-nav-indicator.js";
|
|
17
17
|
import { default as F } from "./components/assets/icons/circles-icon.js";
|
|
18
18
|
import { default as W, default as _ } from "./components/assets/icons/database-copy.js";
|
|
19
19
|
import { default as U, default as O } from "./components/assets/icons/window-left-copy.js";
|
|
@@ -22,8 +22,8 @@ import { SIDEBAR_WIDTH as Y, SIDEBAR_WIDTH_COLLAPSED as j } from "./components/c
|
|
|
22
22
|
import { CountryFlags as K } from "./components/country-flags/country-flags.js";
|
|
23
23
|
import { Z2Checkbox as oo } from "./components/checkbox/checkbox.js";
|
|
24
24
|
import { Z2Dialog as ro, Z2DialogClose as to, Z2DialogContent as ao, Z2DialogDescription as po, Z2DialogFooter as lo, Z2DialogHeader as no, Z2DialogOverlay as fo, Z2DialogPortal as mo, Z2DialogTitle as xo, Z2DialogTrigger as io } from "./components/dialog/dialog.js";
|
|
25
|
-
import { DropdownContext as Zo, Z2Dropdown as co, Z2DropdownContent as so, Z2DropdownInput as bo, Z2DropdownItem as
|
|
26
|
-
import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as Bo, Z2DropdownMenuContent as vo, Z2DropdownMenuGroup as Lo, Z2DropdownMenuItem as Ro, Z2DropdownMenuLabel as Mo, Z2DropdownMenuPortal as Po, Z2DropdownMenuRadioGroup as ho, Z2DropdownMenuRadioItem as Ao, Z2DropdownMenuSeparator as yo, Z2DropdownMenuShortcut as ko, Z2DropdownMenuSub as
|
|
25
|
+
import { DropdownContext as Zo, Z2Dropdown as co, Z2DropdownContent as so, Z2DropdownInput as bo, Z2DropdownItem as Io, Z2DropdownSub as To, Z2DropdownSubContent as So, Z2DropdownSubItem as Co, Z2DropdownSubTrigger as Do } from "./components/dropdown/z2-dropdown.js";
|
|
26
|
+
import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as Bo, Z2DropdownMenuContent as vo, Z2DropdownMenuGroup as Lo, Z2DropdownMenuItem as Ro, Z2DropdownMenuLabel as Mo, Z2DropdownMenuPortal as Po, Z2DropdownMenuRadioGroup as ho, Z2DropdownMenuRadioItem as Ao, Z2DropdownMenuSeparator as yo, Z2DropdownMenuShortcut as ko, Z2DropdownMenuSub as Eo, Z2DropdownMenuSubContent as Ho, Z2DropdownMenuSubTrigger as No, Z2DropdownMenuTrigger as Fo } from "./components/dropdown-menu/z2-dropdown-menu.js";
|
|
27
27
|
import { FileUploadArea as Wo } from "./components/file-upload-area/file-upload-area.js";
|
|
28
28
|
import { DEFAULT_ACCEPT as Vo } from "./components/file-upload-area/file-upload-area.const.js";
|
|
29
29
|
import { Input as Oo } from "./components/input/input.js";
|
|
@@ -34,14 +34,14 @@ import { Z2Stepper as ne } from "./components/stepper/stepper.js";
|
|
|
34
34
|
import { Z2StepperItem as me } from "./components/stepper-item/stepper-item.js";
|
|
35
35
|
import { Z2Tabs as xe, Z2TabsContent as ie, Z2TabsList as ue, Z2TabsTrigger as Ze } from "./components/tab/tab.js";
|
|
36
36
|
import { Table as se, TableProvider as be } from "./components/table/table-provider.js";
|
|
37
|
-
import { TableBody as
|
|
37
|
+
import { TableBody as Te } from "./components/table/table.js";
|
|
38
38
|
import { extractCellValue as Ce } from "./components/table/table.utils.js";
|
|
39
39
|
import { DEFAULT_EMPTY_MESSAGE as ge, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
|
|
40
40
|
import { TableContext as ve, useTableContext as Le } from "./components/table/table.context.js";
|
|
41
41
|
import { TableCell as Me } from "./components/table/components/table-cell.js";
|
|
42
42
|
import { NumberCell as he } from "./components/table/components/cell/number-cell.js";
|
|
43
43
|
import { BooleanCell as ye } from "./components/table/components/cell/boolean-cell.js";
|
|
44
|
-
import { LinkCell as
|
|
44
|
+
import { LinkCell as Ee } from "./components/table/components/cell/link-cell.js";
|
|
45
45
|
import { DescriptionCell as Ne } from "./components/table/components/cell/description-cell.js";
|
|
46
46
|
import { AvatarCell as Ge } from "./components/table/components/cell/avatar-cell.js";
|
|
47
47
|
import { LabelCell as _e } from "./components/table/components/cell/label-cell.js";
|
|
@@ -61,12 +61,12 @@ import { PaginationQuickJumper as ur } from "./components/table/components/pagin
|
|
|
61
61
|
import "react";
|
|
62
62
|
import { Z2Tooltip as cr } from "./components/tooltip/tooltip.js";
|
|
63
63
|
import { default as br } from "./components/table-card/table-card.js";
|
|
64
|
-
import { Badge as
|
|
64
|
+
import { Badge as Tr, badgeVariants as Sr } from "./components/badge/badge.js";
|
|
65
65
|
import { Avatar as Dr, AvatarWithLabel as gr } from "./components/avatar/avatar.js";
|
|
66
66
|
import { Z2TextPreset as Br } from "./components/text-preset/text-preset.js";
|
|
67
67
|
import { ColumnReOrder as Lr } from "./components/column-reorder/column-reorder.js";
|
|
68
68
|
import { default as Mr } from "./components/tree-checkbox-select/TreeCheckboxSelect.js";
|
|
69
|
-
import { Z2Breadcrumb as hr, Z2BreadcrumbEllipsis as Ar, Z2BreadcrumbItem as yr, Z2BreadcrumbLink as kr, Z2BreadcrumbList as
|
|
69
|
+
import { Z2Breadcrumb as hr, Z2BreadcrumbEllipsis as Ar, Z2BreadcrumbItem as yr, Z2BreadcrumbLink as kr, Z2BreadcrumbList as Er, Z2BreadcrumbPage as Hr, Z2BreadcrumbSeparator as Nr } from "./components/breadcrumb/z2-breadcrumb.js";
|
|
70
70
|
import { Z2RadioGroup as Gr, Z2RadioGroupIndicator as Wr, Z2RadioGroupItem as _r } from "./components/radio/z2-radio.js";
|
|
71
71
|
import { default as Ur } from "./components/assets/icons/apartment-building.js";
|
|
72
72
|
import { Check as Xr } from "./components/assets/icons/check.js";
|
|
@@ -83,7 +83,7 @@ import { InfoIcon as xt } from "./components/assets/icons/info-icon.js";
|
|
|
83
83
|
import { default as ut } from "./components/assets/icons/left-arrow.js";
|
|
84
84
|
import { default as ct } from "./components/assets/icons/link.js";
|
|
85
85
|
import { default as bt } from "./components/assets/icons/list-tree.js";
|
|
86
|
-
import { default as
|
|
86
|
+
import { default as Tt } from "./components/assets/icons/media-record.js";
|
|
87
87
|
import { Minus as Ct } from "./components/assets/icons/minus.js";
|
|
88
88
|
import { default as gt } from "./components/assets/icons/octagon-warning-Copy.js";
|
|
89
89
|
import { default as Bt } from "./components/assets/icons/pin.js";
|
|
@@ -91,7 +91,7 @@ import { default as Lt } from "./components/assets/icons/sitemap.js";
|
|
|
91
91
|
import { default as Mt } from "./components/assets/icons/slider.js";
|
|
92
92
|
import { default as ht } from "./components/assets/icons/upload.js";
|
|
93
93
|
import { default as yt } from "./components/assets/icons/vector.js";
|
|
94
|
-
import { XMark as
|
|
94
|
+
import { XMark as Et } from "./components/assets/icons/x-mark.js";
|
|
95
95
|
import { default as Nt } from "./components/assets/icons/x.js";
|
|
96
96
|
import { default as Gt } from "./components/assets/icons/z2-icon.js";
|
|
97
97
|
import { default as _t } from "./components/assets/icons/z2-slash.js";
|
|
@@ -103,18 +103,19 @@ import { default as qt } from "./components/assets/icons/arrow-left.js";
|
|
|
103
103
|
import { default as $t } from "./components/assets/icons/filter-icon.js";
|
|
104
104
|
import { default as ea } from "./components/assets/icons/descending.js";
|
|
105
105
|
import { default as ta } from "./components/assets/icons/chain.js";
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
106
|
+
import { default as pa } from "./components/assets/icons/eraser.js";
|
|
107
|
+
import { SegmentedControl as na } from "./components/segmented-control/controller.js";
|
|
108
|
+
import { SegmentedControlItem as ma } from "./components/segmented-control/item.js";
|
|
109
|
+
import { Popover as xa, PopoverAnchor as ia, PopoverContent as ua, PopoverTrigger as Za } from "./components/popover/popover.js";
|
|
110
|
+
import { Z2Table as sa, Z2TableBase as ba, Z2TableBody as Ia, Z2TableBodyRow as Ta, Z2TableBodyRowCell as Sa, Z2TableBodyRowExpandded as Ca, Z2TableBodyRowSkeleton as Da, Z2TableBodyRowSkeletonCell as ga, Z2TableEmpty as wa, Z2TableHead as Ba, Z2TableHeadRow as va, Z2TableHeadRowCell as La, Z2TableHeadRowCellResize as Ra, Z2TableLoader as Ma, Z2TableRowSelect as Pa, Z2TableRowSelectAll as ha, Z2TableRowSpacer as Aa } from "./components/dynamic-table/z2-table.js";
|
|
111
|
+
import { Z2TableContainer as ka, Z2TableProvider as Ea, Z2TableRoot as Ha, useZ2Table as Na } from "./components/dynamic-table/z2-table-context.js";
|
|
112
|
+
import { Z2TablePagination as Ga } from "./components/dynamic-table/z2-table-pagination.js";
|
|
113
|
+
import { Z2TableColumnHeader as _a } from "./components/dynamic-table/z2-column-header.js";
|
|
114
|
+
import { Z2RadioCard as Ua } from "./components/radio-card/radio-card.js";
|
|
115
|
+
import { useTheme as Xa } from "./lib/theme.hook.js";
|
|
116
|
+
import { cn as Ja } from "./lib/utils.js";
|
|
117
|
+
import { Z2PopoverTrigger as Ya } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
118
|
+
import { Z2PopoverContent as qa } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
118
119
|
export {
|
|
119
120
|
p as Alert,
|
|
120
121
|
m as AlertCirclesIcon,
|
|
@@ -125,7 +126,7 @@ export {
|
|
|
125
126
|
Dr as Avatar,
|
|
126
127
|
Ge as AvatarCell,
|
|
127
128
|
gr as AvatarWithLabel,
|
|
128
|
-
|
|
129
|
+
Tr as Badge,
|
|
129
130
|
ye as BooleanCell,
|
|
130
131
|
x as Button,
|
|
131
132
|
ta as ChainIcon,
|
|
@@ -149,6 +150,7 @@ export {
|
|
|
149
150
|
pt as DoubleChevronRightIcon,
|
|
150
151
|
nt as DragHandleIcon,
|
|
151
152
|
Zo as DropdownContext,
|
|
153
|
+
pa as EraserIcon,
|
|
152
154
|
Wo as FileUploadArea,
|
|
153
155
|
$t as FilterIcon,
|
|
154
156
|
mt as HomeIcon,
|
|
@@ -156,11 +158,11 @@ export {
|
|
|
156
158
|
Oo as Input,
|
|
157
159
|
_e as LabelCell,
|
|
158
160
|
ut as LeftArrowIcon,
|
|
159
|
-
|
|
161
|
+
Ee as LinkCell,
|
|
160
162
|
ct as LinkIcon,
|
|
161
163
|
bt as ListTreeIcon,
|
|
162
164
|
mr as MagnifierIcon,
|
|
163
|
-
|
|
165
|
+
Tt as MediaRecordIcon,
|
|
164
166
|
Ct as MinusIcon,
|
|
165
167
|
zo as NavHeader,
|
|
166
168
|
Qo as NavItem,
|
|
@@ -169,23 +171,23 @@ export {
|
|
|
169
171
|
xr as PaginationInfo,
|
|
170
172
|
ur as PaginationQuickJumper,
|
|
171
173
|
Bt as PinIcon,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
xa as Popover,
|
|
175
|
+
ia as PopoverAnchor,
|
|
176
|
+
ua as PopoverContent,
|
|
177
|
+
Za as PopoverTrigger,
|
|
176
178
|
Y as SIDEBAR_WIDTH,
|
|
177
179
|
j as SIDEBAR_WIDTH_COLLAPSED,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
na as SegmentedControl,
|
|
181
|
+
ma as SegmentedControlItem,
|
|
180
182
|
z as SidebarLeftShowCopy,
|
|
181
183
|
J as SidebarLeftShowCopyIcon,
|
|
182
184
|
Lt as SitemapIcon,
|
|
183
185
|
Mt as SliderIcon,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
E as SubNavIndicator,
|
|
187
|
+
H as SubNavIndicatorIcon,
|
|
186
188
|
we as TABLE_CSS_CLASSES,
|
|
187
189
|
se as Table,
|
|
188
|
-
|
|
190
|
+
Te as TableBody,
|
|
189
191
|
br as TableCard,
|
|
190
192
|
Me as TableCell,
|
|
191
193
|
Jt as TableCols2Icon,
|
|
@@ -208,13 +210,13 @@ export {
|
|
|
208
210
|
U as WindowLeftCopy,
|
|
209
211
|
O as WindowLeftCopyIcon,
|
|
210
212
|
Nt as XIcon,
|
|
211
|
-
|
|
213
|
+
Et as XMarkIcon,
|
|
212
214
|
hr as Z2Breadcrumb,
|
|
213
215
|
Ar as Z2BreadcrumbEllipsis,
|
|
214
216
|
yr as Z2BreadcrumbItem,
|
|
215
217
|
kr as Z2BreadcrumbLink,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
+
Er as Z2BreadcrumbList,
|
|
219
|
+
Hr as Z2BreadcrumbPage,
|
|
218
220
|
Nr as Z2BreadcrumbSeparator,
|
|
219
221
|
oo as Z2Checkbox,
|
|
220
222
|
Ut as Z2DataIcon,
|
|
@@ -231,7 +233,7 @@ export {
|
|
|
231
233
|
co as Z2Dropdown,
|
|
232
234
|
so as Z2DropdownContent,
|
|
233
235
|
bo as Z2DropdownInput,
|
|
234
|
-
|
|
236
|
+
Io as Z2DropdownItem,
|
|
235
237
|
wo as Z2DropdownMenu,
|
|
236
238
|
Bo as Z2DropdownMenuCheckboxItem,
|
|
237
239
|
vo as Z2DropdownMenuContent,
|
|
@@ -243,19 +245,19 @@ export {
|
|
|
243
245
|
Ao as Z2DropdownMenuRadioItem,
|
|
244
246
|
yo as Z2DropdownMenuSeparator,
|
|
245
247
|
ko as Z2DropdownMenuShortcut,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
Eo as Z2DropdownMenuSub,
|
|
249
|
+
Ho as Z2DropdownMenuSubContent,
|
|
248
250
|
No as Z2DropdownMenuSubTrigger,
|
|
249
251
|
Fo as Z2DropdownMenuTrigger,
|
|
250
|
-
|
|
252
|
+
To as Z2DropdownSub,
|
|
251
253
|
So as Z2DropdownSubContent,
|
|
252
254
|
Co as Z2DropdownSubItem,
|
|
253
255
|
Do as Z2DropdownSubTrigger,
|
|
254
256
|
Gt as Z2Icon,
|
|
255
257
|
y as Z2Popover,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
258
|
+
qa as Z2PopoverContent,
|
|
259
|
+
Ya as Z2PopoverTrigger,
|
|
260
|
+
Ua as Z2RadioCard,
|
|
259
261
|
Gr as Z2RadioGroup,
|
|
260
262
|
Wr as Z2RadioGroupIndicator,
|
|
261
263
|
_r as Z2RadioGroupItem,
|
|
@@ -273,7 +275,7 @@ export {
|
|
|
273
275
|
C as Z2SideNavBarContent,
|
|
274
276
|
g as Z2SideNavBarFooter,
|
|
275
277
|
B as Z2SideNavBarGroup,
|
|
276
|
-
|
|
278
|
+
T as Z2SideNavBarHeader,
|
|
277
279
|
L as Z2SideNavBarItem,
|
|
278
280
|
Z as Z2SideNavBarProvider,
|
|
279
281
|
M as Z2SideNavBarSeparator,
|
|
@@ -281,28 +283,28 @@ export {
|
|
|
281
283
|
_t as Z2SlashIcon,
|
|
282
284
|
ne as Z2Stepper,
|
|
283
285
|
me as Z2StepperItem,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
286
|
+
sa as Z2Table,
|
|
287
|
+
ba as Z2TableBase,
|
|
288
|
+
Ia as Z2TableBody,
|
|
289
|
+
Ta as Z2TableBodyRow,
|
|
290
|
+
Sa as Z2TableBodyRowCell,
|
|
291
|
+
Ca as Z2TableBodyRowExpandded,
|
|
292
|
+
Da as Z2TableBodyRowSkeleton,
|
|
293
|
+
ga as Z2TableBodyRowSkeletonCell,
|
|
294
|
+
_a as Z2TableColumnHeader,
|
|
295
|
+
ka as Z2TableContainer,
|
|
296
|
+
wa as Z2TableEmpty,
|
|
297
|
+
Ba as Z2TableHead,
|
|
298
|
+
va as Z2TableHeadRow,
|
|
299
|
+
La as Z2TableHeadRowCell,
|
|
300
|
+
Ra as Z2TableHeadRowCellResize,
|
|
301
|
+
Ma as Z2TableLoader,
|
|
302
|
+
Ga as Z2TablePagination,
|
|
303
|
+
Ea as Z2TableProvider,
|
|
304
|
+
Ha as Z2TableRoot,
|
|
305
|
+
Pa as Z2TableRowSelect,
|
|
306
|
+
ha as Z2TableRowSelectAll,
|
|
307
|
+
Aa as Z2TableRowSpacer,
|
|
306
308
|
xe as Z2Tabs,
|
|
307
309
|
ie as Z2TabsContent,
|
|
308
310
|
ue as Z2TabsList,
|
|
@@ -311,10 +313,10 @@ export {
|
|
|
311
313
|
cr as Z2Tooltip,
|
|
312
314
|
Sr as badgeVariants,
|
|
313
315
|
i as buttonVariants,
|
|
314
|
-
|
|
316
|
+
Ja as cn,
|
|
315
317
|
Ce as extractCellValue,
|
|
316
318
|
Le as useTableContext,
|
|
317
|
-
|
|
319
|
+
Xa as useTheme,
|
|
318
320
|
h as useZ2SideNavBar,
|
|
319
|
-
|
|
321
|
+
Na as useZ2Table
|
|
320
322
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
secondaryfill?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function Eraser({ fill, secondaryfill, width, height, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Eraser;
|
|
@@ -41,3 +41,4 @@ export { default as ArrowLeftIcon } from './arrow-left';
|
|
|
41
41
|
export { default as FilterIcon } from './filter-icon';
|
|
42
42
|
export { default as DescendingSortingIcon } from './descending';
|
|
43
43
|
export { default as ChainIcon } from './chain';
|
|
44
|
+
export { default as EraserIcon } from './eraser';
|
|
@@ -2,9 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import * as Z2SelectPrimitive from '@radix-ui/react-select';
|
|
3
3
|
declare function Z2Select({ ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function Z2SelectGroup({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
type Z2SelectValueProps = Omit<React.ComponentProps<typeof Z2SelectPrimitive.Value>, 'placeholder'> & {
|
|
6
|
+
placeholder?: React.ReactNode;
|
|
7
|
+
leftIcon?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare function Z2SelectValue({ className, leftIcon, placeholder, ...props }: Z2SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
declare function Z2SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Trigger> & {
|
|
9
11
|
size?: 'sm' | 'default';
|
|
10
12
|
}): import("react/jsx-runtime").JSX.Element;
|