@ztwoint/z-ui 0.1.90 → 0.1.92
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/index.d.ts +1 -0
- package/dist/components/assets/icons/triangle-warning.d.ts +7 -0
- package/dist/components/assets/icons/triangle-warning.js +34 -0
- package/dist/components/file-upload-area/file-upload-area.d.ts +6 -0
- package/dist/components/file-upload-area/file-upload-area.js +77 -55
- package/dist/components/table-card/table-card.js +1 -1
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/index.js +35 -33
- package/dist/types/components/assets/icons/index.d.ts +1 -0
- package/dist/types/components/assets/icons/triangle-warning.d.ts +7 -0
- package/dist/types/components/file-upload-area/file-upload-area.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Z2SideNavBarProvider as c } from "./components/collapsible-side-nav-bar
|
|
|
6
6
|
import { Z2SideNavBar as s, Z2SidebarVariants as I } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
|
|
7
7
|
import { Z2SideNavBarHeader as b } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
8
8
|
import { Z2SideNavBarContent as D } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
|
-
import { Z2SideNavBarFooter as
|
|
9
|
+
import { Z2SideNavBarFooter as T } 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 L } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
|
|
12
12
|
import { Z2SideNavBarSeparator as h } from "./components/collapsible-side-nav-bar/side-nav-bar-separator.js";
|
|
@@ -15,17 +15,17 @@ import { Z2Popover as k } from "./components/collapsible-side-nav-bar/popover/po
|
|
|
15
15
|
import "react/jsx-runtime";
|
|
16
16
|
import { default as R, 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
|
-
import { default as
|
|
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";
|
|
20
20
|
import { default as J, default as Q } from "./components/assets/icons/sidebar-left-show-copy.js";
|
|
21
21
|
import { SIDEBAR_WIDTH as j, SIDEBAR_WIDTH_COLLAPSED as q } from "./components/collapsible-side-nav-bar/constants.js";
|
|
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 no, Z2DialogHeader as fo, Z2DialogOverlay as lo, Z2DialogPortal as mo, Z2DialogTitle as xo, Z2DialogTrigger as uo } from "./components/dialog/dialog.js";
|
|
25
|
-
import { DropdownContext as co, Z2Dropdown as Zo, Z2DropdownContent as so, Z2DropdownInput as Io, Z2DropdownItem as So, Z2DropdownSub as bo, Z2DropdownSubContent as Co, Z2DropdownSubItem as Do, Z2DropdownSubTrigger as
|
|
25
|
+
import { DropdownContext as co, Z2Dropdown as Zo, Z2DropdownContent as so, Z2DropdownInput as Io, Z2DropdownItem as So, Z2DropdownSub as bo, Z2DropdownSubContent as Co, Z2DropdownSubItem as Do, Z2DropdownSubTrigger as go } from "./components/dropdown/z2-dropdown.js";
|
|
26
26
|
import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as vo, Z2DropdownMenuContent as Bo, Z2DropdownMenuGroup as Lo, Z2DropdownMenuItem as Mo, Z2DropdownMenuLabel as ho, Z2DropdownMenuPortal as Ao, Z2DropdownMenuRadioGroup as Po, Z2DropdownMenuRadioItem as No, Z2DropdownMenuSeparator as ko, Z2DropdownMenuShortcut as Eo, Z2DropdownMenuSub as Ro, Z2DropdownMenuSubContent as Ho, Z2DropdownMenuSubTrigger as yo, Z2DropdownMenuTrigger as Fo } from "./components/dropdown-menu/z2-dropdown-menu.js";
|
|
27
|
-
import { FileUploadArea as
|
|
28
|
-
import { DEFAULT_ACCEPT as
|
|
27
|
+
import { FileUploadArea as Wo } from "./components/file-upload-area/file-upload-area.js";
|
|
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";
|
|
30
30
|
import { NavHeader as Jo } from "./components/nav-header/nav-header.js";
|
|
31
31
|
import { NavItem as Yo } from "./components/nav-header/nav-item/nav-item.js";
|
|
@@ -36,7 +36,7 @@ import { Z2Tabs as xe, Z2TabsContent as ue, Z2TabsList as ie, Z2TabsTrigger as c
|
|
|
36
36
|
import { Table as se, TableProvider as Ie } from "./components/table/table-provider.js";
|
|
37
37
|
import { TableBody as be } from "./components/table/table.js";
|
|
38
38
|
import { extractCellValue as De } from "./components/table/table.utils.js";
|
|
39
|
-
import { DEFAULT_EMPTY_MESSAGE as
|
|
39
|
+
import { DEFAULT_EMPTY_MESSAGE as Te, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
|
|
40
40
|
import { TableContext as Be, useTableContext as Le } from "./components/table/table.context.js";
|
|
41
41
|
import { TableCell as he } from "./components/table/components/table-cell.js";
|
|
42
42
|
import { NumberCell as Pe } from "./components/table/components/cell/number-cell.js";
|
|
@@ -44,7 +44,7 @@ import { BooleanCell as ke } from "./components/table/components/cell/boolean-ce
|
|
|
44
44
|
import { LinkCell as Re } from "./components/table/components/cell/link-cell.js";
|
|
45
45
|
import { DescriptionCell as ye } from "./components/table/components/cell/description-cell.js";
|
|
46
46
|
import { AvatarCell as Ge } from "./components/table/components/cell/avatar-cell.js";
|
|
47
|
-
import { LabelCell as
|
|
47
|
+
import { LabelCell as _e } from "./components/table/components/cell/label-cell.js";
|
|
48
48
|
import { TableHeader as Ue } from "./components/table/components/table-header/table-header.js";
|
|
49
49
|
import { default as Xe } from "./components/assets/icons/chevron-down.js";
|
|
50
50
|
import { TableRow as Qe } from "./components/table/components/table-row.js";
|
|
@@ -62,12 +62,12 @@ import "react";
|
|
|
62
62
|
import { Z2Tooltip as Zr } from "./components/tooltip/tooltip.js";
|
|
63
63
|
import { default as Ir } from "./components/table-card/table-card.js";
|
|
64
64
|
import { Badge as br, badgeVariants as Cr } from "./components/badge/badge.js";
|
|
65
|
-
import { Avatar as
|
|
65
|
+
import { Avatar as gr, AvatarWithLabel as Tr } from "./components/avatar/avatar.js";
|
|
66
66
|
import { Z2TextPreset as vr } 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 hr } from "./components/tree-checkbox-select/TreeCheckboxSelect.js";
|
|
69
69
|
import { Z2Breadcrumb as Pr, Z2BreadcrumbEllipsis as Nr, Z2BreadcrumbItem as kr, Z2BreadcrumbLink as Er, Z2BreadcrumbList as Rr, Z2BreadcrumbPage as Hr, Z2BreadcrumbSeparator as yr } from "./components/breadcrumb/z2-breadcrumb.js";
|
|
70
|
-
import { Z2RadioGroup as Gr, Z2RadioGroupIndicator as
|
|
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";
|
|
73
73
|
import { default as Qr } from "./components/assets/icons/chevron-left.js";
|
|
@@ -85,7 +85,7 @@ import { default as Zt } from "./components/assets/icons/link.js";
|
|
|
85
85
|
import { default as It } from "./components/assets/icons/list-tree.js";
|
|
86
86
|
import { default as bt } from "./components/assets/icons/media-record.js";
|
|
87
87
|
import { Minus as Dt } from "./components/assets/icons/minus.js";
|
|
88
|
-
import { default as
|
|
88
|
+
import { default as Tt } from "./components/assets/icons/octagon-warning-Copy.js";
|
|
89
89
|
import { default as vt } from "./components/assets/icons/pin.js";
|
|
90
90
|
import { default as Lt } from "./components/assets/icons/sitemap.js";
|
|
91
91
|
import { default as ht } from "./components/assets/icons/slider.js";
|
|
@@ -94,23 +94,24 @@ import { default as kt } from "./components/assets/icons/vector.js";
|
|
|
94
94
|
import { XMark as Rt } from "./components/assets/icons/x-mark.js";
|
|
95
95
|
import { default as yt } from "./components/assets/icons/x.js";
|
|
96
96
|
import { default as Gt } from "./components/assets/icons/z2-icon.js";
|
|
97
|
-
import { default as
|
|
97
|
+
import { default as _t } from "./components/assets/icons/z2-slash.js";
|
|
98
98
|
import { default as Ut } from "./components/assets/icons/z2data.js";
|
|
99
99
|
import { default as Xt } from "./components/assets/icons/vector_3.js";
|
|
100
100
|
import { default as Qt } from "./components/assets/icons/table-cols-2.js";
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
101
|
+
import { default as jt } from "./components/assets/icons/triangle-warning.js";
|
|
102
|
+
import { useTheme as zt } from "./lib/theme.hook.js";
|
|
103
|
+
import { cn as $t } from "./lib/utils.js";
|
|
104
|
+
import { Z2PopoverTrigger as ea } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
105
|
+
import { Z2PopoverContent as ta } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
105
106
|
export {
|
|
106
107
|
p as Alert,
|
|
107
108
|
m as AlertCirclesIcon,
|
|
108
109
|
n as AlertDescription,
|
|
109
110
|
f as AlertTitle,
|
|
110
111
|
Ur as ApartmentBuildingIcon,
|
|
111
|
-
|
|
112
|
+
gr as Avatar,
|
|
112
113
|
Ge as AvatarCell,
|
|
113
|
-
|
|
114
|
+
Tr as AvatarWithLabel,
|
|
114
115
|
br as Badge,
|
|
115
116
|
ke as BooleanCell,
|
|
116
117
|
x as Button,
|
|
@@ -123,21 +124,21 @@ export {
|
|
|
123
124
|
F as CirclesIcon,
|
|
124
125
|
Lr as ColumnReOrder,
|
|
125
126
|
K as CountryFlags,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
Vo as DEFAULT_ACCEPT,
|
|
128
|
+
Te as DEFAULT_EMPTY_MESSAGE,
|
|
129
|
+
W as DatabaseCopy,
|
|
130
|
+
_ as DatabaseCopyIcon,
|
|
130
131
|
ye as DescriptionCell,
|
|
131
132
|
et as DotsIcon,
|
|
132
133
|
tt as DoubleChevronLeftIcon,
|
|
133
134
|
pt as DoubleChevronRightIcon,
|
|
134
135
|
ft as DragHandleIcon,
|
|
135
136
|
co as DropdownContext,
|
|
136
|
-
|
|
137
|
+
Wo as FileUploadArea,
|
|
137
138
|
mt as HomeIcon,
|
|
138
139
|
xt as InfoIcon,
|
|
139
140
|
Oo as Input,
|
|
140
|
-
|
|
141
|
+
_e as LabelCell,
|
|
141
142
|
it as LeftArrowIcon,
|
|
142
143
|
Re as LinkCell,
|
|
143
144
|
Zt as LinkIcon,
|
|
@@ -148,7 +149,7 @@ export {
|
|
|
148
149
|
Jo as NavHeader,
|
|
149
150
|
Yo as NavItem,
|
|
150
151
|
Pe as NumberCell,
|
|
151
|
-
|
|
152
|
+
Tt as OctagonWarningIcon,
|
|
152
153
|
xr as PaginationInfo,
|
|
153
154
|
ir as PaginationQuickJumper,
|
|
154
155
|
vt as PinIcon,
|
|
@@ -178,6 +179,7 @@ export {
|
|
|
178
179
|
Ie as TableProvider,
|
|
179
180
|
Qe as TableRow,
|
|
180
181
|
hr as TreeCheckboxSelect,
|
|
182
|
+
jt as TriangleWarningIcon,
|
|
181
183
|
Pt as UploadIcon,
|
|
182
184
|
Xt as Vector3Icon,
|
|
183
185
|
kt as VectorIcon,
|
|
@@ -226,14 +228,14 @@ export {
|
|
|
226
228
|
bo as Z2DropdownSub,
|
|
227
229
|
Co as Z2DropdownSubContent,
|
|
228
230
|
Do as Z2DropdownSubItem,
|
|
229
|
-
|
|
231
|
+
go as Z2DropdownSubTrigger,
|
|
230
232
|
Gt as Z2Icon,
|
|
231
233
|
k as Z2Popover,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
+
ta as Z2PopoverContent,
|
|
235
|
+
ea as Z2PopoverTrigger,
|
|
234
236
|
Gr as Z2RadioGroup,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
+
Wr as Z2RadioGroupIndicator,
|
|
238
|
+
_r as Z2RadioGroupItem,
|
|
237
239
|
qo as Z2Select,
|
|
238
240
|
zo as Z2SelectContent,
|
|
239
241
|
Ko as Z2SelectGroup,
|
|
@@ -246,14 +248,14 @@ export {
|
|
|
246
248
|
pe as Z2SelectValue,
|
|
247
249
|
s as Z2SideNavBar,
|
|
248
250
|
D as Z2SideNavBarContent,
|
|
249
|
-
|
|
251
|
+
T as Z2SideNavBarFooter,
|
|
250
252
|
v as Z2SideNavBarGroup,
|
|
251
253
|
b as Z2SideNavBarHeader,
|
|
252
254
|
L as Z2SideNavBarItem,
|
|
253
255
|
c as Z2SideNavBarProvider,
|
|
254
256
|
h as Z2SideNavBarSeparator,
|
|
255
257
|
I as Z2SidebarVariants,
|
|
256
|
-
|
|
258
|
+
_t as Z2SlashIcon,
|
|
257
259
|
fe as Z2Stepper,
|
|
258
260
|
me as Z2StepperItem,
|
|
259
261
|
xe as Z2Tabs,
|
|
@@ -264,9 +266,9 @@ export {
|
|
|
264
266
|
Zr as Z2Tooltip,
|
|
265
267
|
Cr as badgeVariants,
|
|
266
268
|
u as buttonVariants,
|
|
267
|
-
|
|
269
|
+
$t as cn,
|
|
268
270
|
De as extractCellValue,
|
|
269
271
|
Le as useTableContext,
|
|
270
|
-
|
|
272
|
+
zt as useTheme,
|
|
271
273
|
P as useZ2SideNavBar
|
|
272
274
|
};
|
|
@@ -36,3 +36,4 @@ export { default as Z2SlashIcon } from './z2-slash';
|
|
|
36
36
|
export { default as Z2DataIcon } from './z2data';
|
|
37
37
|
export { default as Vector3Icon } from './vector_3';
|
|
38
38
|
export { default as TableCols2Icon } from './table-cols-2';
|
|
39
|
+
export { default as TriangleWarningIcon } from './triangle-warning';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
strokewidth?: number;
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function TriangleWarningFilled({ fill, strokewidth, width, height, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TriangleWarningFilled;
|
|
@@ -5,6 +5,12 @@ export type FileUploadAreaProps = {
|
|
|
5
5
|
multiple?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
isError?: boolean;
|
|
9
|
+
Error?: {
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
};
|
|
8
14
|
};
|
|
9
15
|
/**
|
|
10
16
|
* FileUploadArea component provides a drag-and-drop and click-to-upload area for file selection.
|