@ztwoint/z-ui 0.1.84 → 0.1.86
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/vector_3.d.ts +6 -0
- package/dist/components/assets/icons/vector_3.js +34 -0
- package/dist/components/radio/z2-radio.js +72 -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 +38 -36
- package/dist/components/table-card/table-card.type.d.ts +2 -1
- package/dist/components/table-filter/filters/boolean.js +28 -32
- package/dist/components/table-filter/filters/checkbox.js +24 -26
- package/dist/components/table-filter/filters/number/number.hook.d.ts +2 -12
- package/dist/components/table-filter/filters/number/number.hook.js +18 -18
- package/dist/components/table-filter/filters/text.js +25 -28
- package/dist/components/table-filter/table-filter-column-button.js +36 -39
- package/dist/components/table-filter/table-filter-provider.js +10 -10
- package/dist/components/table-filter/table-filter.hook.js +46 -42
- package/dist/components/table-filter/table-filter.type.d.ts +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +105 -99
- package/dist/types/components/assets/icons/index.d.ts +1 -0
- package/dist/types/components/assets/icons/vector_3.d.ts +6 -0
- package/dist/types/components/table-card/table-card.type.d.ts +2 -1
- package/dist/types/components/table-filter/filters/number/number.hook.d.ts +2 -12
- package/dist/types/components/table-filter/table-filter.type.d.ts +3 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Alert as p, AlertDescription as n, AlertTitle as f } from "./components
|
|
|
3
3
|
import { AlertCirclesIcon as m } from "./components/alert/icons/circles-icon.js";
|
|
4
4
|
import { Button as x, buttonVariants as u } from "./components/button/button.js";
|
|
5
5
|
import { Z2SideNavBarProvider as c } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
6
|
-
import { Z2SideNavBar as s, Z2SidebarVariants as
|
|
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
9
|
import { Z2SideNavBarFooter as T } from "./components/collapsible-side-nav-bar/side-nav-bar-footer.js";
|
|
@@ -13,19 +13,19 @@ import { Z2SideNavBarSeparator as h } from "./components/collapsible-side-nav-ba
|
|
|
13
13
|
import { useZ2SideNavBar as P } from "./components/collapsible-side-nav-bar/context.js";
|
|
14
14
|
import { Z2Popover as k } from "./components/collapsible-side-nav-bar/popover/popover.js";
|
|
15
15
|
import "react/jsx-runtime";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
16
|
+
import { default as R, default as H } from "./components/assets/icons/sub-nav-indicator.js";
|
|
17
|
+
import { default as F } from "./components/assets/icons/circles-icon.js";
|
|
18
|
+
import { default as _, default as V } 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
|
|
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
|
|
27
|
-
import { FileUploadArea as
|
|
28
|
-
import { DEFAULT_ACCEPT 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
|
+
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 _o } from "./components/file-upload-area/file-upload-area.js";
|
|
28
|
+
import { DEFAULT_ACCEPT as Wo } 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";
|
|
@@ -33,7 +33,7 @@ import { Z2Select as qo, Z2SelectContent as zo, Z2SelectGroup as Ko, Z2SelectIte
|
|
|
33
33
|
import { Z2Stepper as fe } 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 ue, Z2TabsList as ie, Z2TabsTrigger as ce } from "./components/tab/tab.js";
|
|
36
|
-
import { Table as se, TableProvider as
|
|
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
39
|
import { DEFAULT_EMPTY_MESSAGE as Te, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
|
|
@@ -41,9 +41,9 @@ import { TableContext as Be, useTableContext as Le } from "./components/table/ta
|
|
|
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";
|
|
43
43
|
import { BooleanCell as ke } from "./components/table/components/cell/boolean-cell.js";
|
|
44
|
-
import { LinkCell as
|
|
45
|
-
import { DescriptionCell as
|
|
46
|
-
import { AvatarCell as
|
|
44
|
+
import { LinkCell as Re } from "./components/table/components/cell/link-cell.js";
|
|
45
|
+
import { DescriptionCell as ye } from "./components/table/components/cell/description-cell.js";
|
|
46
|
+
import { AvatarCell as Ge } from "./components/table/components/cell/avatar-cell.js";
|
|
47
47
|
import { LabelCell as Ve } 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";
|
|
@@ -60,107 +60,109 @@ import { PaginationInfo as xr } from "./components/table/components/pagination/c
|
|
|
60
60
|
import { PaginationQuickJumper as ir } from "./components/table/components/pagination/components/pagination-quick-jumper.js";
|
|
61
61
|
import "react";
|
|
62
62
|
import { Z2Tooltip as Zr } from "./components/tooltip/tooltip.js";
|
|
63
|
-
import { default as
|
|
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
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
|
-
import { Z2Breadcrumb as Pr, Z2BreadcrumbEllipsis as Nr, Z2BreadcrumbItem as kr, Z2BreadcrumbLink as Er, Z2BreadcrumbList as
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
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 _r, Z2RadioGroupItem as Vr } from "./components/radio/z2-radio.js";
|
|
71
|
+
import { default as Ur } from "./components/assets/icons/apartment-building.js";
|
|
72
|
+
import { Check as Xr } from "./components/assets/icons/check.js";
|
|
73
|
+
import { default as Qr } from "./components/assets/icons/chevron-left.js";
|
|
74
|
+
import { default as jr } from "./components/assets/icons/chevron-right.js";
|
|
75
|
+
import { default as zr } from "./components/assets/icons/circle-check-filled.js";
|
|
76
|
+
import { default as $r } from "./components/assets/icons/circle-check.js";
|
|
77
|
+
import { default as et } from "./components/assets/icons/dots.js";
|
|
78
|
+
import { default as tt } from "./components/assets/icons/double-chevron-left.js";
|
|
79
|
+
import { default as pt } from "./components/assets/icons/double-chevron-right.js";
|
|
80
|
+
import { default as ft } from "./components/assets/icons/drag-handle.js";
|
|
81
|
+
import { default as mt } from "./components/assets/icons/home.js";
|
|
82
|
+
import { InfoIcon as xt } from "./components/assets/icons/info-icon.js";
|
|
83
|
+
import { default as it } from "./components/assets/icons/left-arrow.js";
|
|
84
|
+
import { default as Zt } from "./components/assets/icons/link.js";
|
|
85
|
+
import { default as It } from "./components/assets/icons/list-tree.js";
|
|
86
|
+
import { default as bt } from "./components/assets/icons/media-record.js";
|
|
87
|
+
import { Minus as Dt } from "./components/assets/icons/minus.js";
|
|
88
|
+
import { default as Tt } from "./components/assets/icons/octagon-warning-Copy.js";
|
|
89
|
+
import { default as vt } from "./components/assets/icons/pin.js";
|
|
90
|
+
import { default as Lt } from "./components/assets/icons/sitemap.js";
|
|
91
|
+
import { default as ht } from "./components/assets/icons/slider.js";
|
|
92
|
+
import { default as Pt } from "./components/assets/icons/upload.js";
|
|
93
|
+
import { default as kt } from "./components/assets/icons/vector.js";
|
|
94
|
+
import { XMark as Rt } from "./components/assets/icons/x-mark.js";
|
|
95
|
+
import { default as yt } from "./components/assets/icons/x.js";
|
|
96
|
+
import { default as Gt } from "./components/assets/icons/z2-icon.js";
|
|
97
|
+
import { default as Vt } from "./components/assets/icons/z2-slash.js";
|
|
98
|
+
import { default as Ut } from "./components/assets/icons/z2data.js";
|
|
99
|
+
import { default as Xt } from "./components/assets/icons/vector_3.js";
|
|
100
|
+
import { useTheme as Qt } from "./lib/theme.hook.js";
|
|
101
|
+
import { cn as jt } from "./lib/utils.js";
|
|
102
|
+
import { Z2PopoverTrigger as zt } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
103
|
+
import { Z2PopoverContent as $t } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
102
104
|
export {
|
|
103
105
|
p as Alert,
|
|
104
106
|
m as AlertCirclesIcon,
|
|
105
107
|
n as AlertDescription,
|
|
106
108
|
f as AlertTitle,
|
|
107
|
-
|
|
109
|
+
Ur as ApartmentBuildingIcon,
|
|
108
110
|
gr as Avatar,
|
|
109
|
-
|
|
111
|
+
Ge as AvatarCell,
|
|
110
112
|
Tr as AvatarWithLabel,
|
|
111
113
|
br as Badge,
|
|
112
114
|
ke as BooleanCell,
|
|
113
115
|
x as Button,
|
|
114
|
-
|
|
116
|
+
Xr as CheckIcon,
|
|
115
117
|
Xe as ChevronDownIcon,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
Qr as ChevronLeftIcon,
|
|
119
|
+
jr as ChevronRightIcon,
|
|
120
|
+
zr as CircleCheckFilledIcon,
|
|
121
|
+
$r as CircleCheckIcon,
|
|
122
|
+
F as CirclesIcon,
|
|
121
123
|
Lr as ColumnReOrder,
|
|
122
124
|
K as CountryFlags,
|
|
123
|
-
|
|
125
|
+
Wo as DEFAULT_ACCEPT,
|
|
124
126
|
Te as DEFAULT_EMPTY_MESSAGE,
|
|
125
|
-
|
|
127
|
+
_ as DatabaseCopy,
|
|
126
128
|
V as DatabaseCopyIcon,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
ye as DescriptionCell,
|
|
130
|
+
et as DotsIcon,
|
|
131
|
+
tt as DoubleChevronLeftIcon,
|
|
132
|
+
pt as DoubleChevronRightIcon,
|
|
133
|
+
ft as DragHandleIcon,
|
|
132
134
|
co as DropdownContext,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_o as FileUploadArea,
|
|
136
|
+
mt as HomeIcon,
|
|
137
|
+
xt as InfoIcon,
|
|
136
138
|
Oo as Input,
|
|
137
139
|
Ve as LabelCell,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
it as LeftArrowIcon,
|
|
141
|
+
Re as LinkCell,
|
|
142
|
+
Zt as LinkIcon,
|
|
143
|
+
It as ListTreeIcon,
|
|
142
144
|
mr as MagnifierIcon,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
bt as MediaRecordIcon,
|
|
146
|
+
Dt as MinusIcon,
|
|
145
147
|
Jo as NavHeader,
|
|
146
148
|
Yo as NavItem,
|
|
147
149
|
Pe as NumberCell,
|
|
148
|
-
|
|
150
|
+
Tt as OctagonWarningIcon,
|
|
149
151
|
xr as PaginationInfo,
|
|
150
152
|
ir as PaginationQuickJumper,
|
|
151
|
-
|
|
153
|
+
vt as PinIcon,
|
|
152
154
|
j as SIDEBAR_WIDTH,
|
|
153
155
|
q as SIDEBAR_WIDTH_COLLAPSED,
|
|
154
156
|
J as SidebarLeftShowCopy,
|
|
155
157
|
Q as SidebarLeftShowCopyIcon,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
Lt as SitemapIcon,
|
|
159
|
+
ht as SliderIcon,
|
|
160
|
+
R as SubNavIndicator,
|
|
161
|
+
H as SubNavIndicatorIcon,
|
|
160
162
|
we as TABLE_CSS_CLASSES,
|
|
161
163
|
se as Table,
|
|
162
164
|
be as TableBody,
|
|
163
|
-
|
|
165
|
+
Ir as TableCard,
|
|
164
166
|
he as TableCell,
|
|
165
167
|
Be as TableContext,
|
|
166
168
|
pr as TableFooter,
|
|
@@ -171,24 +173,25 @@ export {
|
|
|
171
173
|
ze as TableLoadingState,
|
|
172
174
|
je as TableMessageState,
|
|
173
175
|
$e as TablePagination,
|
|
174
|
-
|
|
176
|
+
Ie as TableProvider,
|
|
175
177
|
Qe as TableRow,
|
|
176
178
|
hr as TreeCheckboxSelect,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
Pt as UploadIcon,
|
|
180
|
+
Xt as Vector3Icon,
|
|
181
|
+
kt as VectorIcon,
|
|
179
182
|
U as WindowLeftCopy,
|
|
180
183
|
O as WindowLeftCopyIcon,
|
|
181
|
-
|
|
182
|
-
|
|
184
|
+
yt as XIcon,
|
|
185
|
+
Rt as XMarkIcon,
|
|
183
186
|
Pr as Z2Breadcrumb,
|
|
184
187
|
Nr as Z2BreadcrumbEllipsis,
|
|
185
188
|
kr as Z2BreadcrumbItem,
|
|
186
189
|
Er as Z2BreadcrumbLink,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
Rr as Z2BreadcrumbList,
|
|
191
|
+
Hr as Z2BreadcrumbPage,
|
|
192
|
+
yr as Z2BreadcrumbSeparator,
|
|
190
193
|
oo as Z2Checkbox,
|
|
191
|
-
|
|
194
|
+
Ut as Z2DataIcon,
|
|
192
195
|
ro as Z2Dialog,
|
|
193
196
|
to as Z2DialogClose,
|
|
194
197
|
ao as Z2DialogContent,
|
|
@@ -201,8 +204,8 @@ export {
|
|
|
201
204
|
uo as Z2DialogTrigger,
|
|
202
205
|
Zo as Z2Dropdown,
|
|
203
206
|
so as Z2DropdownContent,
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
Io as Z2DropdownInput,
|
|
208
|
+
So as Z2DropdownItem,
|
|
206
209
|
wo as Z2DropdownMenu,
|
|
207
210
|
vo as Z2DropdownMenuCheckboxItem,
|
|
208
211
|
Bo as Z2DropdownMenuContent,
|
|
@@ -214,18 +217,21 @@ export {
|
|
|
214
217
|
No as Z2DropdownMenuRadioItem,
|
|
215
218
|
ko as Z2DropdownMenuSeparator,
|
|
216
219
|
Eo as Z2DropdownMenuShortcut,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
Ro as Z2DropdownMenuSub,
|
|
221
|
+
Ho as Z2DropdownMenuSubContent,
|
|
222
|
+
yo as Z2DropdownMenuSubTrigger,
|
|
223
|
+
Fo as Z2DropdownMenuTrigger,
|
|
221
224
|
bo as Z2DropdownSub,
|
|
222
225
|
Co as Z2DropdownSubContent,
|
|
223
226
|
Do as Z2DropdownSubItem,
|
|
224
227
|
go as Z2DropdownSubTrigger,
|
|
225
|
-
|
|
228
|
+
Gt as Z2Icon,
|
|
226
229
|
k as Z2Popover,
|
|
227
|
-
|
|
228
|
-
|
|
230
|
+
$t as Z2PopoverContent,
|
|
231
|
+
zt as Z2PopoverTrigger,
|
|
232
|
+
Gr as Z2RadioGroup,
|
|
233
|
+
_r as Z2RadioGroupIndicator,
|
|
234
|
+
Vr as Z2RadioGroupItem,
|
|
229
235
|
qo as Z2Select,
|
|
230
236
|
zo as Z2SelectContent,
|
|
231
237
|
Ko as Z2SelectGroup,
|
|
@@ -244,8 +250,8 @@ export {
|
|
|
244
250
|
L as Z2SideNavBarItem,
|
|
245
251
|
c as Z2SideNavBarProvider,
|
|
246
252
|
h as Z2SideNavBarSeparator,
|
|
247
|
-
|
|
248
|
-
|
|
253
|
+
I as Z2SidebarVariants,
|
|
254
|
+
Vt as Z2SlashIcon,
|
|
249
255
|
fe as Z2Stepper,
|
|
250
256
|
me as Z2StepperItem,
|
|
251
257
|
xe as Z2Tabs,
|
|
@@ -256,9 +262,9 @@ export {
|
|
|
256
262
|
Zr as Z2Tooltip,
|
|
257
263
|
Cr as badgeVariants,
|
|
258
264
|
u as buttonVariants,
|
|
259
|
-
|
|
265
|
+
jt as cn,
|
|
260
266
|
De as extractCellValue,
|
|
261
267
|
Le as useTableContext,
|
|
262
|
-
|
|
268
|
+
Qt as useTheme,
|
|
263
269
|
P as useZ2SideNavBar
|
|
264
270
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableProps, TableSchema, TableSearch, TableSort } from '../table/table.type';
|
|
3
|
-
import { TableFilter } from '../table-filter/table-filter.type';
|
|
3
|
+
import { TableFilter, FilterRule } from '../table-filter/table-filter.type';
|
|
4
4
|
import { PaginationProps, PaginationInfoProps, PaginationQuickJumperProps } from '../table/components/pagination/pagination.type';
|
|
5
5
|
import { FilterSchema } from '../table-filter/table-filter.type';
|
|
6
6
|
export interface TableCardProps {
|
|
@@ -18,6 +18,7 @@ export interface TableCardProps {
|
|
|
18
18
|
quickFilters?: string[];
|
|
19
19
|
showFilterButton?: boolean;
|
|
20
20
|
filterSchema: FilterSchema;
|
|
21
|
+
onDynamicChange?: (filters: FilterRule[]) => void;
|
|
21
22
|
};
|
|
22
23
|
headerLeftContent?: React.ReactNode;
|
|
23
24
|
headerActions?: React.ReactNode;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
condition: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
onChange: (update: {
|
|
7
|
-
condition?: string;
|
|
8
|
-
value?: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const useNumberFilter: ({ value, onChange }: UseNumberFilterProps) => {
|
|
1
|
+
import { FilterComponentProps } from '../../table-filter.type';
|
|
2
|
+
export declare const useNumberFilter: ({ value, onChange }: FilterComponentProps) => {
|
|
12
3
|
specificAmount: string;
|
|
13
4
|
atLeast: string;
|
|
14
5
|
noMoreThan: string;
|
|
@@ -20,4 +11,3 @@ export declare const useNumberFilter: ({ value, onChange }: UseNumberFilterProps
|
|
|
20
11
|
resetAtLeast: () => void;
|
|
21
12
|
resetNoMoreThan: () => void;
|
|
22
13
|
};
|
|
23
|
-
export {};
|
|
@@ -21,6 +21,7 @@ export type FilterSchema = FilterSchemaField[];
|
|
|
21
21
|
export type TableFilter = {
|
|
22
22
|
value: FilterRule[];
|
|
23
23
|
onChange: (filters: FilterRule[]) => void;
|
|
24
|
+
onDynamicChange?: (filters: FilterRule[]) => void;
|
|
24
25
|
};
|
|
25
26
|
export interface TableFilterProps {
|
|
26
27
|
filterSchema: FilterSchema;
|
|
@@ -32,9 +33,9 @@ export type FilterComponentProps = {
|
|
|
32
33
|
condition?: string;
|
|
33
34
|
value?: string | string[];
|
|
34
35
|
}) => void;
|
|
35
|
-
value
|
|
36
|
+
value?: {
|
|
36
37
|
condition?: string;
|
|
37
|
-
value
|
|
38
|
+
value?: string | string[];
|
|
38
39
|
};
|
|
39
40
|
filterOptions?: FilterOption[];
|
|
40
41
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './components/text-preset/text-preset';
|
|
|
23
23
|
export * from './components/column-reorder';
|
|
24
24
|
export * from './components/tree-checkbox-select';
|
|
25
25
|
export * from './components/breadcrumb/z2-breadcrumb';
|
|
26
|
+
export * from './components/radio/z2-radio';
|
|
26
27
|
export * from './components/assets/icons';
|
|
27
28
|
export * from './lib/theme.hook';
|
|
28
29
|
export * from './lib/utils';
|