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