@ztwoint/z-ui 0.1.74 → 0.1.76
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 -1
- package/dist/components/table/components/table-message-state.d.ts +8 -0
- package/dist/components/table/components/table-message-state.js +9 -0
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/table.const.d.ts +1 -0
- package/dist/components/table/table.const.js +1 -0
- package/dist/components/table/table.d.ts +1 -0
- package/dist/components/table/table.js +49 -28
- package/dist/components/table-card/table-card.js +13 -11
- package/dist/components/table-card/table-card.type.d.ts +1 -0
- package/dist/components/table-filter/table-filter-button.js +1 -1
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/index.js +11 -11
- package/dist/node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +2 -2
- package/dist/node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +2 -2
- package/dist/node_modules/bind-event-listener/dist/index.js +2 -2
- package/dist/types/components/table/components/index.d.ts +1 -1
- package/dist/types/components/table/components/table-message-state.d.ts +8 -0
- package/dist/types/components/table/index.d.ts +1 -1
- package/dist/types/components/table/table.const.d.ts +1 -0
- package/dist/types/components/table/table.d.ts +1 -0
- package/dist/types/components/table-card/table-card.type.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/table/components/table-empty-state.d.ts +0 -7
- package/dist/components/table/components/table-empty-state.js +0 -6
- package/dist/types/components/table/components/table-empty-state.d.ts +0 -7
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Z2SideNavBarHeader as T } from "./components/collapsible-side-nav-bar/s
|
|
|
8
8
|
import { Z2SideNavBarContent as c } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
9
|
import { Z2SideNavBarFooter as w } 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
|
-
import { Z2SideNavBarItem as
|
|
11
|
+
import { Z2SideNavBarItem as B } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
|
|
12
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 h } from "./components/collapsible-side-nav-bar/popover/popover.js";
|
|
@@ -23,7 +23,7 @@ import { CountryFlags as z } from "./components/country-flags/country-flags.js";
|
|
|
23
23
|
import { Z2Checkbox as X } from "./components/checkbox/checkbox.js";
|
|
24
24
|
import { Z2Dialog as oo, Z2DialogClose as eo, Z2DialogContent as ro, 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
25
|
import { DropdownContext as io, Z2Dropdown as Zo, Z2DropdownContent as uo, Z2DropdownInput as So, Z2DropdownItem as Do, Z2DropdownSub as bo, Z2DropdownSubContent as Co, Z2DropdownSubItem as To, Z2DropdownSubTrigger as go } from "./components/dropdown/z2-dropdown.js";
|
|
26
|
-
import { Z2DropdownMenu as so, Z2DropdownMenuCheckboxItem as wo, Z2DropdownMenuContent as Io, Z2DropdownMenuGroup as vo, Z2DropdownMenuItem as
|
|
26
|
+
import { Z2DropdownMenu as so, Z2DropdownMenuCheckboxItem as wo, Z2DropdownMenuContent as Io, Z2DropdownMenuGroup as vo, Z2DropdownMenuItem as Mo, Z2DropdownMenuLabel as Bo, Z2DropdownMenuPortal as Ao, Z2DropdownMenuRadioGroup as Lo, Z2DropdownMenuRadioItem as Po, Z2DropdownMenuSeparator as No, Z2DropdownMenuShortcut as Eo, Z2DropdownMenuSub as ho, Z2DropdownMenuSubContent as Fo, Z2DropdownMenuSubTrigger as Ho, Z2DropdownMenuTrigger as _o } from "./components/dropdown-menu/z2-dropdown-menu.js";
|
|
27
27
|
import { FileUploadArea as Ro } from "./components/file-upload-area/file-upload-area.js";
|
|
28
28
|
import { DEFAULT_ACCEPT as Go } from "./components/file-upload-area/file-upload-area.const.js";
|
|
29
29
|
import { Input as Vo } from "./components/input/input.js";
|
|
@@ -38,7 +38,7 @@ import { TableBody as be } from "./components/table/table.js";
|
|
|
38
38
|
import { extractCellValue as Te } from "./components/table/table.utils.js";
|
|
39
39
|
import { DEFAULT_EMPTY_MESSAGE as ce, TABLE_CSS_CLASSES as se } from "./components/table/table.const.js";
|
|
40
40
|
import { TableContext as Ie, useTableContext as ve } from "./components/table/table.context.js";
|
|
41
|
-
import { TableCell as
|
|
41
|
+
import { TableCell as Be } from "./components/table/components/table-cell.js";
|
|
42
42
|
import { NumberCell as Le } from "./components/table/components/cell/number-cell.js";
|
|
43
43
|
import { BooleanCell as Ne } from "./components/table/components/cell/boolean-cell.js";
|
|
44
44
|
import { LinkCell as he } from "./components/table/components/cell/link-cell.js";
|
|
@@ -48,7 +48,7 @@ import { LabelCell as ke } from "./components/table/components/cell/label-cell.j
|
|
|
48
48
|
import { TableHeader as Ue } from "./components/table/components/table-header/table-header.js";
|
|
49
49
|
import "react/jsx-runtime";
|
|
50
50
|
import { TableRow as We } from "./components/table/components/table-row.js";
|
|
51
|
-
import {
|
|
51
|
+
import { TableMessageState as Je } from "./components/table/components/table-message-state.js";
|
|
52
52
|
import { TableLoadingState as Ye } from "./components/table/components/table-loading-state.js";
|
|
53
53
|
import { Pagination as qe } from "./components/table/components/pagination/pagination.js";
|
|
54
54
|
import { TableHeaderWrapper as Ke } from "./components/table/components/table-header-wrapper.js";
|
|
@@ -66,7 +66,7 @@ import { Avatar as Cr, AvatarWithLabel as Tr } from "./components/avatar/avatar.
|
|
|
66
66
|
import { Z2TextPreset as cr } from "./components/text-preset/text-preset.js";
|
|
67
67
|
import { ColumnReOrder as wr } from "./components/column-reorder/column-reorder.js";
|
|
68
68
|
import { default as vr } from "./components/tree-checkbox-select/TreeCheckboxSelect.js";
|
|
69
|
-
import { InfoIcon as
|
|
69
|
+
import { InfoIcon as Br } from "./components/assets/icons/info-icon.js";
|
|
70
70
|
import { useTheme as Lr } from "./lib/theme.hook.js";
|
|
71
71
|
import { cn as Nr } from "./lib/utils.js";
|
|
72
72
|
import { Z2PopoverTrigger as hr } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
@@ -92,7 +92,7 @@ export {
|
|
|
92
92
|
He as DescriptionCell,
|
|
93
93
|
io as DropdownContext,
|
|
94
94
|
Ro as FileUploadArea,
|
|
95
|
-
|
|
95
|
+
Br as InfoIcon,
|
|
96
96
|
Vo as Input,
|
|
97
97
|
ke as LabelCell,
|
|
98
98
|
he as LinkCell,
|
|
@@ -110,15 +110,15 @@ export {
|
|
|
110
110
|
ue as Table,
|
|
111
111
|
be as TableBody,
|
|
112
112
|
dr as TableCard,
|
|
113
|
-
|
|
113
|
+
Be as TableCell,
|
|
114
114
|
Ie as TableContext,
|
|
115
|
-
Je as TableEmptyState,
|
|
116
115
|
er as TableFooter,
|
|
117
116
|
tr as TableFooterContent,
|
|
118
117
|
Ue as TableHeader,
|
|
119
118
|
$e as TableHeaderContent,
|
|
120
119
|
Ke as TableHeaderWrapper,
|
|
121
120
|
Ye as TableLoadingState,
|
|
121
|
+
Je as TableMessageState,
|
|
122
122
|
qe as TablePagination,
|
|
123
123
|
Se as TableProvider,
|
|
124
124
|
We as TableRow,
|
|
@@ -143,8 +143,8 @@ export {
|
|
|
143
143
|
wo as Z2DropdownMenuCheckboxItem,
|
|
144
144
|
Io as Z2DropdownMenuContent,
|
|
145
145
|
vo as Z2DropdownMenuGroup,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
Mo as Z2DropdownMenuItem,
|
|
147
|
+
Bo as Z2DropdownMenuLabel,
|
|
148
148
|
Ao as Z2DropdownMenuPortal,
|
|
149
149
|
Lo as Z2DropdownMenuRadioGroup,
|
|
150
150
|
Po as Z2DropdownMenuRadioItem,
|
|
@@ -176,7 +176,7 @@ export {
|
|
|
176
176
|
w as Z2SideNavBarFooter,
|
|
177
177
|
v as Z2SideNavBarGroup,
|
|
178
178
|
T as Z2SideNavBarHeader,
|
|
179
|
-
|
|
179
|
+
B as Z2SideNavBarItem,
|
|
180
180
|
u as Z2SideNavBarProvider,
|
|
181
181
|
L as Z2SideNavBarSeparator,
|
|
182
182
|
b as Z2SidebarVariants,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import p from "../../../../../raf-schd/dist/raf-schd.esm.js";
|
|
2
2
|
var s = p(function(a) {
|
|
3
3
|
return a();
|
|
4
|
-
}), d = /* @__PURE__ */ function() {
|
|
4
|
+
}), d = /* @__PURE__ */ (function() {
|
|
5
5
|
var a = null;
|
|
6
6
|
function n(l) {
|
|
7
7
|
var o = requestAnimationFrame(function() {
|
|
@@ -19,7 +19,7 @@ var s = p(function(a) {
|
|
|
19
19
|
schedule: n,
|
|
20
20
|
flush: t
|
|
21
21
|
};
|
|
22
|
-
}();
|
|
22
|
+
})();
|
|
23
23
|
function g(a) {
|
|
24
24
|
var n = a.source, t = a.initial, l = a.dispatchEvent, o = {
|
|
25
25
|
dropTargets: []
|
package/dist/node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js
CHANGED
|
@@ -21,7 +21,7 @@ function o(e) {
|
|
|
21
21
|
// The most I've seen is 3
|
|
22
22
|
{
|
|
23
23
|
type: "pointermove",
|
|
24
|
-
listener: /* @__PURE__ */ function() {
|
|
24
|
+
listener: /* @__PURE__ */ (function() {
|
|
25
25
|
var r = 0;
|
|
26
26
|
return function() {
|
|
27
27
|
if (r < 20) {
|
|
@@ -30,7 +30,7 @@ function o(e) {
|
|
|
30
30
|
}
|
|
31
31
|
n();
|
|
32
32
|
};
|
|
33
|
-
}()
|
|
33
|
+
})()
|
|
34
34
|
},
|
|
35
35
|
// ### Second detection: "pointerdown" events
|
|
36
36
|
// If we receive this event then we know that a drag operation has finished
|
|
@@ -3,7 +3,7 @@ import { __require as u } from "./bind.js";
|
|
|
3
3
|
import { __require as d } from "./bind-all.js";
|
|
4
4
|
var i;
|
|
5
5
|
function _() {
|
|
6
|
-
return i ? r : (i = 1, function(e) {
|
|
6
|
+
return i ? r : (i = 1, (function(e) {
|
|
7
7
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.bindAll = e.bind = void 0;
|
|
8
8
|
var n = /* @__PURE__ */ u();
|
|
9
9
|
Object.defineProperty(e, "bind", { enumerable: !0, get: function() {
|
|
@@ -13,7 +13,7 @@ function _() {
|
|
|
13
13
|
Object.defineProperty(e, "bindAll", { enumerable: !0, get: function() {
|
|
14
14
|
return t.bindAll;
|
|
15
15
|
} });
|
|
16
|
-
}(r), r);
|
|
16
|
+
})(r), r);
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
19
|
_ as __require
|
|
@@ -2,7 +2,7 @@ export { TableCell } from './table-cell';
|
|
|
2
2
|
export { NumberCell, BooleanCell, AvatarCell, DescriptionCell, LabelCell, LinkCell } from './cell';
|
|
3
3
|
export { TableHeader } from './table-header';
|
|
4
4
|
export { TableRow } from './table-row';
|
|
5
|
-
export {
|
|
5
|
+
export { TableMessageState } from './table-message-state';
|
|
6
6
|
export { TableLoadingState } from './table-loading-state';
|
|
7
7
|
export { Pagination as TablePagination } from './pagination/pagination';
|
|
8
8
|
export { TableHeaderWrapper } from './table-header-wrapper';
|
|
@@ -4,6 +4,6 @@ export type { TableProps, TableSchema, TableSchemaColumn, CellType, CellValue, C
|
|
|
4
4
|
export { extractCellValue } from './table.utils';
|
|
5
5
|
export { DEFAULT_EMPTY_MESSAGE, TABLE_CSS_CLASSES } from './table.const';
|
|
6
6
|
export { TableContext, useTableContext } from './table.context';
|
|
7
|
-
export { TableCell, TableHeader, TableRow,
|
|
7
|
+
export { TableCell, TableHeader, TableRow, TableMessageState, TableLoadingState, TablePagination, NumberCell, BooleanCell, TableHeaderWrapper, TableHeaderContent, TableFooter, TableFooterContent, } from './components';
|
|
8
8
|
export { PaginationInfo, PaginationQuickJumper } from './components/pagination/components';
|
|
9
9
|
export * from './components/cell';
|
|
@@ -26,5 +26,6 @@ export declare const TABLE_CSS_CLASSES: {
|
|
|
26
26
|
readonly sortIconActive: "ml-2 w-4 h-4 text-gray-600";
|
|
27
27
|
readonly row: " transition-colors duration-200 text-text-neutral-primary";
|
|
28
28
|
readonly emptyState: "px-4 py-8 text-center text-gray-500";
|
|
29
|
+
readonly dataErrorState: "px-4 py-8 text-center text-text-danger-primary";
|
|
29
30
|
readonly loading: "px-4 py-8 text-center text-gray-500";
|
|
30
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { TABLE_CSS_CLASSES as m } from "../table.const.js";
|
|
3
|
-
const a = ({ colSpan: r, message: e }) => /* @__PURE__ */ t("tbody", { children: /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: r, className: m.emptyState, children: e }) }) });
|
|
4
|
-
export {
|
|
5
|
-
a as TableEmptyState
|
|
6
|
-
};
|