@ztwoint/z-ui 0.1.54 → 0.1.56
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/table/components/index.d.ts +1 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/text-preset/text-preset.js +7 -7
- package/dist/index.js +87 -79
- package/dist/types/components/table/components/index.d.ts +1 -0
- package/dist/types/components/table/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,3 +6,4 @@ export { DEFAULT_EMPTY_MESSAGE, TABLE_CSS_CLASSES } from './table.const';
|
|
|
6
6
|
export { TableContext, useTableContext } from './table.context';
|
|
7
7
|
export { TableCell, TableHeader, TableRow, TableEmptyState, TableLoadingState, TablePagination, NumberCell, BooleanCell, TableHeaderWrapper, TableHeaderContent, TableFooter, TableFooterContent, } from './components';
|
|
8
8
|
export { PaginationInfo, PaginationQuickJumper } from './components/pagination/components';
|
|
9
|
+
export * from './components/cell';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cva as c } from "class-variance-authority";
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
3
|
+
import { cn as d } from "../../lib/utils.js";
|
|
4
|
+
const o = c("flex flex-col", {
|
|
5
5
|
variants: {
|
|
6
6
|
type: {
|
|
7
7
|
L: "text-left",
|
|
@@ -18,7 +18,7 @@ const d = c("flex flex-col", {
|
|
|
18
18
|
multiline: !1
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function x({
|
|
22
22
|
type: l = "L",
|
|
23
23
|
multiline: n = !1,
|
|
24
24
|
primaryFirst: i = !0,
|
|
@@ -26,10 +26,10 @@ function o({
|
|
|
26
26
|
supportText: t,
|
|
27
27
|
className: m
|
|
28
28
|
}) {
|
|
29
|
-
const r =
|
|
29
|
+
const r = d(o({ type: l, multiline: n }), m);
|
|
30
30
|
return i ? /* @__PURE__ */ s("div", { className: r, children: [
|
|
31
31
|
/* @__PURE__ */ e("span", { "data-slot": "primary-text", className: "text-text-neutral-primary leading-none-medium-sm", children: a }),
|
|
32
|
-
t && /* @__PURE__ */ e("span", { "data-slot": "support-text", className: "text-text-neutral-secondary", children: t })
|
|
32
|
+
t && /* @__PURE__ */ e("span", { "data-slot": "support-text", className: "text-text-neutral-secondary leading-none-regular-sm", children: t })
|
|
33
33
|
] }) : /* @__PURE__ */ s("div", { className: r, children: [
|
|
34
34
|
t && /* @__PURE__ */ e(
|
|
35
35
|
"p",
|
|
@@ -42,7 +42,7 @@ function o({
|
|
|
42
42
|
/* @__PURE__ */ e("p", { "data-slot": "primary-text", className: "text-text-neutral-primary", children: a })
|
|
43
43
|
] });
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
x.displayName = "Z2TextPreset";
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
x as Z2TextPreset
|
|
48
48
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { Alert as p, AlertDescription as n, AlertTitle as
|
|
2
|
+
import { Alert as p, AlertDescription as n, AlertTitle as l } from "./components/alert/alert.js";
|
|
3
3
|
import { AlertCirclesIcon as f } from "./components/alert/icons/circles-icon.js";
|
|
4
4
|
import { Button as i, buttonVariants as Z } from "./components/button/button.js";
|
|
5
5
|
import { Z2SideNavBarProvider as S } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
6
|
-
import { Z2SideNavBar as D, Z2SidebarVariants as
|
|
7
|
-
import { Z2SideNavBarHeader as
|
|
8
|
-
import { Z2SideNavBarContent as
|
|
6
|
+
import { Z2SideNavBar as D, Z2SidebarVariants as b } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
|
|
7
|
+
import { Z2SideNavBarHeader as C } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
8
|
+
import { Z2SideNavBarContent as c } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
9
|
import { Z2SideNavBarFooter as s } from "./components/collapsible-side-nav-bar/side-nav-bar-footer.js";
|
|
10
10
|
import { Z2SideNavBarGroup as v } from "./components/collapsible-side-nav-bar/side-nav-bar-group.js";
|
|
11
11
|
import { Z2SideNavBarItem as M } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
|
|
12
|
-
import { Z2SideNavBarSeparator as
|
|
12
|
+
import { Z2SideNavBarSeparator as L } from "./components/collapsible-side-nav-bar/side-nav-bar-separator.js";
|
|
13
13
|
import { useZ2SideNavBar as N } from "./components/collapsible-side-nav-bar/context.js";
|
|
14
14
|
import { Z2Popover as F } from "./components/collapsible-side-nav-bar/popover/popover.js";
|
|
15
15
|
import { ChevronUpIcon as _ } from "./components/assets/icons/chevron-up-icon.js";
|
|
@@ -20,9 +20,9 @@ import { default as k } from "./components/assets/icons/window-left-copy.js";
|
|
|
20
20
|
import { default as J } from "./components/assets/icons/sidebar-left-show-copy.js";
|
|
21
21
|
import { SIDEBAR_WIDTH as Y, SIDEBAR_WIDTH_COLLAPSED as j } from "./components/collapsible-side-nav-bar/constants.js";
|
|
22
22
|
import { CountryFlags as z } from "./components/country-flags/country-flags.js";
|
|
23
|
-
import { Z2Dialog as X, Z2DialogClose as $, Z2DialogContent as oo, Z2DialogDescription as ro, Z2DialogFooter as eo, Z2DialogHeader as to, Z2DialogOverlay as ao, Z2DialogPortal as po, Z2DialogTitle as no, Z2DialogTrigger as
|
|
24
|
-
import { DropdownContext as fo, Z2Dropdown as xo, Z2DropdownContent as io, Z2DropdownInput as Zo, Z2DropdownItem as So, Z2DropdownSub as uo, Z2DropdownSubContent as Do, Z2DropdownSubItem as
|
|
25
|
-
import { Z2DropdownMenu as
|
|
23
|
+
import { Z2Dialog as X, Z2DialogClose as $, Z2DialogContent as oo, Z2DialogDescription as ro, Z2DialogFooter as eo, Z2DialogHeader as to, Z2DialogOverlay as ao, Z2DialogPortal as po, Z2DialogTitle as no, Z2DialogTrigger as lo } from "./components/dialog/dialog.js";
|
|
24
|
+
import { DropdownContext as fo, Z2Dropdown as xo, Z2DropdownContent as io, Z2DropdownInput as Zo, Z2DropdownItem as So, Z2DropdownSub as uo, Z2DropdownSubContent as Do, Z2DropdownSubItem as bo, Z2DropdownSubTrigger as To } from "./components/dropdown/z2-dropdown.js";
|
|
25
|
+
import { Z2DropdownMenu as go, Z2DropdownMenuCheckboxItem as co, Z2DropdownMenuContent as wo, Z2DropdownMenuGroup as so, Z2DropdownMenuItem as Io, Z2DropdownMenuLabel as vo, Z2DropdownMenuPortal as Bo, Z2DropdownMenuRadioGroup as Mo, Z2DropdownMenuRadioItem as Ao, Z2DropdownMenuSeparator as Lo, Z2DropdownMenuShortcut as Po, Z2DropdownMenuSub as No, Z2DropdownMenuSubContent as Eo, Z2DropdownMenuSubTrigger as Fo, Z2DropdownMenuTrigger as Ho } from "./components/dropdown-menu/z2-dropdown-menu.js";
|
|
26
26
|
import { FileUploadArea as yo } from "./components/file-upload-area/file-upload-area.js";
|
|
27
27
|
import { DEFAULT_ACCEPT as Go } from "./components/file-upload-area/file-upload-area.const.js";
|
|
28
28
|
import { Input as Uo } from "./components/input/input.js";
|
|
@@ -31,85 +31,93 @@ import { NavItem as Oo } from "./components/nav-header/nav-item/nav-item.js";
|
|
|
31
31
|
import { Z2Select as Qo, Z2SelectContent as Yo, Z2SelectGroup as jo, Z2SelectItem as qo, Z2SelectLabel as zo, Z2SelectScrollDownButton as Ko, Z2SelectScrollUpButton as Xo, Z2SelectSeparator as $o, Z2SelectTrigger as or, Z2SelectValue as rr } from "./components/select/z2-select.js";
|
|
32
32
|
import { Z2Stepper as tr } from "./components/stepper/stepper.js";
|
|
33
33
|
import { Z2StepperItem as pr } from "./components/stepper-item/stepper-item.js";
|
|
34
|
-
import { Z2Tabs as
|
|
34
|
+
import { Z2Tabs as lr, Z2TabsContent as mr, Z2TabsList as fr, Z2TabsTrigger as xr } from "./components/tab/tab.js";
|
|
35
35
|
import { Table as Zr, TableProvider as dr } from "./components/table/table-provider.js";
|
|
36
36
|
import { TableBody as ur } from "./components/table/table.js";
|
|
37
|
-
import { extractCellValue as
|
|
38
|
-
import { DEFAULT_EMPTY_MESSAGE as
|
|
39
|
-
import { TableContext as
|
|
37
|
+
import { extractCellValue as br } from "./components/table/table.utils.js";
|
|
38
|
+
import { DEFAULT_EMPTY_MESSAGE as Cr, TABLE_CSS_CLASSES as gr } from "./components/table/table.const.js";
|
|
39
|
+
import { TableContext as wr, useTableContext as sr } from "./components/table/table.context.js";
|
|
40
40
|
import { TableCell as vr } from "./components/table/components/table-cell.js";
|
|
41
41
|
import { NumberCell as Mr } from "./components/table/components/cell/number-cell.js";
|
|
42
|
-
import { BooleanCell as
|
|
42
|
+
import { BooleanCell as Lr } from "./components/table/components/cell/boolean-cell.js";
|
|
43
|
+
import { LinkCell as Nr } from "./components/table/components/cell/link-cell.js";
|
|
44
|
+
import { DescriptionCell as Fr } from "./components/table/components/cell/description-cell.js";
|
|
45
|
+
import { AvatarCell as _r } from "./components/table/components/cell/avatar-cell.js";
|
|
46
|
+
import { LabelCell as hr } from "./components/table/components/cell/label-cell.js";
|
|
47
|
+
import { TableHeader as Rr } from "./components/table/components/table-header/table-header.js";
|
|
43
48
|
import "react/jsx-runtime";
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import { MagnifierIcon as
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { TableEmptyState as re } from "./components/table/components/table-empty-state.js";
|
|
56
|
-
import { TableLoadingState as te } from "./components/table/components/table-loading-state.js";
|
|
57
|
-
import { Pagination as pe } from "./components/table/components/pagination/pagination.js";
|
|
58
|
-
import { TableHeaderWrapper as me } from "./components/table/components/table-header-wrapper.js";
|
|
59
|
-
import { TableHeaderContent as fe } from "./components/table/components/table-header-content.js";
|
|
60
|
-
import { TableFooter as ie } from "./components/table/components/table-footer.js";
|
|
61
|
-
import { TableFooterContent as de } from "./components/table/components/table-footer-content.js";
|
|
62
|
-
import { PaginationInfo as ue } from "./components/table/components/pagination/components/pagination-info.js";
|
|
63
|
-
import { PaginationQuickJumper as Te } from "./components/table/components/pagination/components/pagination-quick-jumper.js";
|
|
49
|
+
import { TableRow as Vr } from "./components/table/components/table-row.js";
|
|
50
|
+
import { TableEmptyState as kr } from "./components/table/components/table-empty-state.js";
|
|
51
|
+
import { TableLoadingState as Jr } from "./components/table/components/table-loading-state.js";
|
|
52
|
+
import { Pagination as Yr } from "./components/table/components/pagination/pagination.js";
|
|
53
|
+
import { TableHeaderWrapper as qr } from "./components/table/components/table-header-wrapper.js";
|
|
54
|
+
import { TableHeaderContent as Kr } from "./components/table/components/table-header-content.js";
|
|
55
|
+
import { TableFooter as $r } from "./components/table/components/table-footer.js";
|
|
56
|
+
import { TableFooterContent as re } from "./components/table/components/table-footer-content.js";
|
|
57
|
+
import { MagnifierIcon as te } from "./components/assets/icons/magnifier-icon.js";
|
|
58
|
+
import { PaginationInfo as pe } from "./components/table/components/pagination/components/pagination-info.js";
|
|
59
|
+
import { PaginationQuickJumper as le } from "./components/table/components/pagination/components/pagination-quick-jumper.js";
|
|
64
60
|
import "react";
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
61
|
+
import { Z2Tooltip as fe } from "./components/tooltip/tooltip.js";
|
|
62
|
+
import { default as ie } from "./components/table-card/table-card.js";
|
|
63
|
+
import { Badge as de, badgeVariants as Se } from "./components/badge/badge.js";
|
|
64
|
+
import { Avatar as De, AvatarWithLabel as be } from "./components/avatar/avatar.js";
|
|
65
|
+
import { Z2TextPreset as Ce } from "./components/text-preset/text-preset.js";
|
|
66
|
+
import { InfoIcon as ce } from "./components/assets/icons/info-icon.js";
|
|
67
|
+
import { useTheme as se } from "./lib/theme.hook.js";
|
|
68
|
+
import { cn as ve } from "./lib/utils.js";
|
|
69
|
+
import { Z2PopoverTrigger as Me } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
70
|
+
import { Z2PopoverContent as Le } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
67
71
|
export {
|
|
68
72
|
p as Alert,
|
|
69
73
|
f as AlertCirclesIcon,
|
|
70
74
|
n as AlertDescription,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
l as AlertTitle,
|
|
76
|
+
De as Avatar,
|
|
77
|
+
_r as AvatarCell,
|
|
78
|
+
be as AvatarWithLabel,
|
|
79
|
+
de as Badge,
|
|
80
|
+
Lr as BooleanCell,
|
|
76
81
|
i as Button,
|
|
77
82
|
_ as ChevronUpIcon,
|
|
78
83
|
R as CirclesIcon,
|
|
79
84
|
z as CountryFlags,
|
|
80
85
|
Go as DEFAULT_ACCEPT,
|
|
81
|
-
|
|
86
|
+
Cr as DEFAULT_EMPTY_MESSAGE,
|
|
82
87
|
V as DatabaseCopy,
|
|
88
|
+
Fr as DescriptionCell,
|
|
83
89
|
fo as DropdownContext,
|
|
84
90
|
yo as FileUploadArea,
|
|
85
|
-
|
|
91
|
+
ce as InfoIcon,
|
|
86
92
|
Uo as Input,
|
|
87
|
-
|
|
93
|
+
hr as LabelCell,
|
|
94
|
+
Nr as LinkCell,
|
|
95
|
+
te as MagnifierIcon,
|
|
88
96
|
Wo as NavHeader,
|
|
89
97
|
Oo as NavItem,
|
|
90
98
|
Mr as NumberCell,
|
|
91
|
-
|
|
92
|
-
|
|
99
|
+
pe as PaginationInfo,
|
|
100
|
+
le as PaginationQuickJumper,
|
|
93
101
|
Y as SIDEBAR_WIDTH,
|
|
94
102
|
j as SIDEBAR_WIDTH_COLLAPSED,
|
|
95
103
|
J as SidebarLeftShowCopy,
|
|
96
104
|
h as SubNavIndicator,
|
|
97
|
-
|
|
105
|
+
gr as TABLE_CSS_CLASSES,
|
|
98
106
|
Zr as Table,
|
|
99
107
|
ur as TableBody,
|
|
100
|
-
|
|
108
|
+
ie as TableCard,
|
|
101
109
|
vr as TableCell,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
wr as TableContext,
|
|
111
|
+
kr as TableEmptyState,
|
|
112
|
+
$r as TableFooter,
|
|
113
|
+
re as TableFooterContent,
|
|
114
|
+
Rr as TableHeader,
|
|
115
|
+
Kr as TableHeaderContent,
|
|
116
|
+
qr as TableHeaderWrapper,
|
|
117
|
+
Jr as TableLoadingState,
|
|
118
|
+
Yr as TablePagination,
|
|
111
119
|
dr as TableProvider,
|
|
112
|
-
|
|
120
|
+
Vr as TableRow,
|
|
113
121
|
k as WindowLeftCopy,
|
|
114
122
|
X as Z2Dialog,
|
|
115
123
|
$ as Z2DialogClose,
|
|
@@ -120,33 +128,33 @@ export {
|
|
|
120
128
|
ao as Z2DialogOverlay,
|
|
121
129
|
po as Z2DialogPortal,
|
|
122
130
|
no as Z2DialogTitle,
|
|
123
|
-
|
|
131
|
+
lo as Z2DialogTrigger,
|
|
124
132
|
xo as Z2Dropdown,
|
|
125
133
|
io as Z2DropdownContent,
|
|
126
134
|
Zo as Z2DropdownInput,
|
|
127
135
|
So as Z2DropdownItem,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
go as Z2DropdownMenu,
|
|
137
|
+
co as Z2DropdownMenuCheckboxItem,
|
|
138
|
+
wo as Z2DropdownMenuContent,
|
|
131
139
|
so as Z2DropdownMenuGroup,
|
|
132
140
|
Io as Z2DropdownMenuItem,
|
|
133
141
|
vo as Z2DropdownMenuLabel,
|
|
134
142
|
Bo as Z2DropdownMenuPortal,
|
|
135
143
|
Mo as Z2DropdownMenuRadioGroup,
|
|
136
144
|
Ao as Z2DropdownMenuRadioItem,
|
|
137
|
-
|
|
138
|
-
|
|
145
|
+
Lo as Z2DropdownMenuSeparator,
|
|
146
|
+
Po as Z2DropdownMenuShortcut,
|
|
139
147
|
No as Z2DropdownMenuSub,
|
|
140
148
|
Eo as Z2DropdownMenuSubContent,
|
|
141
149
|
Fo as Z2DropdownMenuSubTrigger,
|
|
142
150
|
Ho as Z2DropdownMenuTrigger,
|
|
143
151
|
uo as Z2DropdownSub,
|
|
144
152
|
Do as Z2DropdownSubContent,
|
|
145
|
-
|
|
146
|
-
|
|
153
|
+
bo as Z2DropdownSubItem,
|
|
154
|
+
To as Z2DropdownSubTrigger,
|
|
147
155
|
F as Z2Popover,
|
|
148
|
-
|
|
149
|
-
|
|
156
|
+
Le as Z2PopoverContent,
|
|
157
|
+
Me as Z2PopoverTrigger,
|
|
150
158
|
Qo as Z2Select,
|
|
151
159
|
Yo as Z2SelectContent,
|
|
152
160
|
jo as Z2SelectGroup,
|
|
@@ -158,27 +166,27 @@ export {
|
|
|
158
166
|
or as Z2SelectTrigger,
|
|
159
167
|
rr as Z2SelectValue,
|
|
160
168
|
D as Z2SideNavBar,
|
|
161
|
-
|
|
169
|
+
c as Z2SideNavBarContent,
|
|
162
170
|
s as Z2SideNavBarFooter,
|
|
163
171
|
v as Z2SideNavBarGroup,
|
|
164
|
-
|
|
172
|
+
C as Z2SideNavBarHeader,
|
|
165
173
|
M as Z2SideNavBarItem,
|
|
166
174
|
S as Z2SideNavBarProvider,
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
L as Z2SideNavBarSeparator,
|
|
176
|
+
b as Z2SidebarVariants,
|
|
169
177
|
tr as Z2Stepper,
|
|
170
178
|
pr as Z2StepperItem,
|
|
171
|
-
|
|
172
|
-
|
|
179
|
+
lr as Z2Tabs,
|
|
180
|
+
mr as Z2TabsContent,
|
|
173
181
|
fr as Z2TabsList,
|
|
174
182
|
xr as Z2TabsTrigger,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
183
|
+
Ce as Z2TextPreset,
|
|
184
|
+
fe as Z2Tooltip,
|
|
185
|
+
Se as badgeVariants,
|
|
178
186
|
Z as buttonVariants,
|
|
179
|
-
|
|
180
|
-
|
|
187
|
+
ve as cn,
|
|
188
|
+
br as extractCellValue,
|
|
181
189
|
sr as useTableContext,
|
|
182
|
-
|
|
190
|
+
se as useTheme,
|
|
183
191
|
N as useZ2SideNavBar
|
|
184
192
|
};
|
|
@@ -6,3 +6,4 @@ export { DEFAULT_EMPTY_MESSAGE, TABLE_CSS_CLASSES } from './table.const';
|
|
|
6
6
|
export { TableContext, useTableContext } from './table.context';
|
|
7
7
|
export { TableCell, TableHeader, TableRow, TableEmptyState, TableLoadingState, TablePagination, NumberCell, BooleanCell, TableHeaderWrapper, TableHeaderContent, TableFooter, TableFooterContent, } from './components';
|
|
8
8
|
export { PaginationInfo, PaginationQuickJumper } from './components/pagination/components';
|
|
9
|
+
export * from './components/cell';
|