@g4rcez/components 0.0.61 → 0.0.62
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/index.css +1 -1
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2145 -2130
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +39 -39
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/display/empty.d.ts +7 -0
- package/dist/src/components/display/empty.d.ts.map +1 -0
- package/dist/src/components/display/empty.js +8 -0
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +2 -1
- package/dist/src/components/table/index.d.ts.map +1 -1
- package/dist/src/components/table/index.js +12 -9
- package/dist/src/hooks/use-components-provider.d.ts +3 -1
- package/dist/src/hooks/use-components-provider.d.ts.map +1 -1
- package/dist/src/hooks/use-components-provider.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type LucideProps } from "lucide-react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type EmptyProps = {
|
|
4
|
+
Icon?: React.FC<LucideProps>;
|
|
5
|
+
};
|
|
6
|
+
export declare const Empty: (props: EmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=empty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../../src/components/display/empty.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,UAAU,4CAStC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FileIcon } from "lucide-react";
|
|
3
|
+
import { useTranslations } from "../../hooks/use-components-provider";
|
|
4
|
+
export const Empty = (props) => {
|
|
5
|
+
const Icon = props.Icon ?? FileIcon;
|
|
6
|
+
const translate = useTranslations();
|
|
7
|
+
return (_jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-4 px-8 py-12", children: [_jsx(Icon, { size: 64, className: "text-disabled" }), _jsx("p", { className: "text-disabled", children: translate.emptyDataMessage })] }));
|
|
8
|
+
};
|
|
@@ -5,6 +5,7 @@ export * from "./core/tag";
|
|
|
5
5
|
export * from "./display/alert";
|
|
6
6
|
export * from "./display/calendar";
|
|
7
7
|
export * from "./display/card";
|
|
8
|
+
export * from "./display/empty";
|
|
8
9
|
export * from "./display/notifications";
|
|
9
10
|
export * from "./display/stats";
|
|
10
11
|
export * from "./display/tabs";
|
|
@@ -20,12 +21,12 @@ export * from "./form/date-picker";
|
|
|
20
21
|
export * from "./form/file-upload";
|
|
21
22
|
export * from "./form/form";
|
|
22
23
|
export * from "./form/input";
|
|
23
|
-
export * from "./form/textarea";
|
|
24
24
|
export * from "./form/input-field";
|
|
25
25
|
export * from "./form/radiobox";
|
|
26
26
|
export * from "./form/select";
|
|
27
27
|
export * from "./form/switch";
|
|
28
28
|
export * from "./form/task-list";
|
|
29
|
+
export * from "./form/textarea";
|
|
29
30
|
export * from "./form/transfer-list";
|
|
30
31
|
export * from "./table/index";
|
|
31
32
|
export { createColumns, createOptionCols, type ColType, useTablePreferences, type TablePagination } from "./table/table-lib";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAA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;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,OAAO,EAAE,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -5,6 +5,7 @@ export * from "./core/tag";
|
|
|
5
5
|
export * from "./display/alert";
|
|
6
6
|
export * from "./display/calendar";
|
|
7
7
|
export * from "./display/card";
|
|
8
|
+
export * from "./display/empty";
|
|
8
9
|
export * from "./display/notifications";
|
|
9
10
|
export * from "./display/stats";
|
|
10
11
|
export * from "./display/tabs";
|
|
@@ -20,12 +21,12 @@ export * from "./form/date-picker";
|
|
|
20
21
|
export * from "./form/file-upload";
|
|
21
22
|
export * from "./form/form";
|
|
22
23
|
export * from "./form/input";
|
|
23
|
-
export * from "./form/textarea";
|
|
24
24
|
export * from "./form/input-field";
|
|
25
25
|
export * from "./form/radiobox";
|
|
26
26
|
export * from "./form/select";
|
|
27
27
|
export * from "./form/switch";
|
|
28
28
|
export * from "./form/task-list";
|
|
29
|
+
export * from "./form/textarea";
|
|
29
30
|
export * from "./form/transfer-list";
|
|
30
31
|
export * from "./table/index";
|
|
31
32
|
export { createColumns, createOptionCols, useTablePreferences } from "./table/table-lib";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAA2B,cAAc,EAAoD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAA2B,cAAc,EAAoD,MAAM,OAAO,CAAC;AAOzH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,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,IAAI,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CACH,mBAAmB,CAAC,CAAC,CAAC,GAAG;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACvB,CACJ,CAAC;AASN,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,EAAE,SAAS,UAAU,CAAC,CAAC,CAAC,4CA6GvD,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { Is } from "sidekicker";
|
|
|
8
8
|
import { useReducer } from "use-typed-reducer";
|
|
9
9
|
import { useCallbackRef } from "../../hooks/use-callback-ref";
|
|
10
10
|
import { path } from "../../lib/fns";
|
|
11
|
+
import { Empty } from "../display/empty";
|
|
11
12
|
import { Metadata } from "./metadata";
|
|
12
13
|
import { Pagination } from "./pagination";
|
|
13
14
|
import { multiSort } from "./sort";
|
|
@@ -42,6 +43,8 @@ const components = {
|
|
|
42
43
|
TableFoot: TFoot,
|
|
43
44
|
};
|
|
44
45
|
const loadingArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
46
|
+
const SkeletonLoading = _jsx("div", { className: "h-2 w-10/12 animate-pulse rounded bg-table-border" });
|
|
47
|
+
const EmptyContent = (_, __, context) => (_jsx("td", { role: "cell", colSpan: context.cols.length, className: "hidden h-14 border-l border-table-border px-2 first:table-cell first:border-transparent md:table-cell", children: context.loading ? SkeletonLoading : _jsx(Empty, {}) }));
|
|
45
48
|
const ItemContent = (index, row, context) => {
|
|
46
49
|
const cols = context.cols;
|
|
47
50
|
const loading = context.loading;
|
|
@@ -50,11 +53,12 @@ const ItemContent = (index, row, context) => {
|
|
|
50
53
|
const value = path(row, col.id);
|
|
51
54
|
const Component = col.Element;
|
|
52
55
|
const className = col.cellProps?.className || "";
|
|
53
|
-
return (_createElement("td", { ...col.cellProps, role: "cell", "data-matrix": matrix, key: `accessor-${index}-${colIndex}`, className: `hidden h-14 border-l border-table-border px-2 first:table-cell first:border-transparent md:table-cell ${className}` }, loading ? (
|
|
56
|
+
return (_createElement("td", { ...col.cellProps, role: "cell", "data-matrix": matrix, key: `accessor-${index}-${colIndex}`, className: `hidden h-14 border-l border-table-border px-2 first:table-cell first:border-transparent md:table-cell ${className}` }, loading ? (SkeletonLoading) : Component ? (_jsx(Component, { row: row, matrix: matrix, col: col, rowIndex: index, value: value })) : (_jsx(Fragment, { children: Is.nil(value) ? "" : value }))));
|
|
54
57
|
}) }));
|
|
55
58
|
};
|
|
56
59
|
const Frag = () => _jsx(Fragment, {});
|
|
57
|
-
const
|
|
60
|
+
const emptyRows = [{}];
|
|
61
|
+
const InnerTable = ({ cols, filters, setCols, sorters, setFilters, setSorters, onScrollEnd, border = false, pagination = null, useControl = false, ...props }) => {
|
|
58
62
|
const ref = useRef(null);
|
|
59
63
|
const [showLoadingFooter, setShowLoadingFooter] = useState(false);
|
|
60
64
|
const onScrollEndRef = useCallbackRef(onScrollEnd);
|
|
@@ -73,9 +77,8 @@ const InnerTable = ({ filters, pagination = null, onScrollEnd, useControl = fals
|
|
|
73
77
|
return multiSort(linq.Select(), sorters);
|
|
74
78
|
}, [props.rows, filters, sorters, props.loading]);
|
|
75
79
|
useEffect(() => {
|
|
76
|
-
if (ref.current === null)
|
|
80
|
+
if (ref.current === null)
|
|
77
81
|
return () => { };
|
|
78
|
-
}
|
|
79
82
|
const div = ref.current;
|
|
80
83
|
const observer = new IntersectionObserver((entries) => {
|
|
81
84
|
const endOfPage = entries[entries.length - 1];
|
|
@@ -89,7 +92,7 @@ const InnerTable = ({ filters, pagination = null, onScrollEnd, useControl = fals
|
|
|
89
92
|
observer.observe(div);
|
|
90
93
|
return () => observer.disconnect();
|
|
91
94
|
}, []);
|
|
92
|
-
return (_jsxs("div", { className: "min-w-full", children: [_jsxs("div", { className: `group rounded-lg ${border ? "border border-table-border" : ""}`, children: [_jsx(TableVirtuoso, {
|
|
95
|
+
return (_jsxs("div", { className: "min-w-full", children: [_jsxs("div", { className: `group rounded-lg ${border ? "border border-table-border" : ""}`, children: [_jsx(TableVirtuoso, { useWindowScroll: true, followOutput: "smooth", components: components, totalCount: rows.length, data: rows.length === 0 ? emptyRows : rows, fixedFooterContent: showLoadingFooter ? Frag : null, itemContent: rows.length === 0 ? EmptyContent : ItemContent, context: { loading: props.loading, loadingMore: props.loadingMore, cols: cols }, fixedHeaderContent: () => (_jsx(TableHeader, { headers: cols, filters: filters, setCols: setCols, sorters: sorters, setFilters: setFilters, setSorters: setSorters, loading: !!props.loading, inlineFilter: props.inlineFilter, inlineSorter: props.inlineSorter })) }), _jsx("div", { "aria-hidden": "true", ref: ref, className: "h-0.5 w-full" })] }), pagination !== null ? _jsx(Pagination, { ...pagination }) : null] }));
|
|
93
96
|
};
|
|
94
97
|
const dispatcherFun = (prev, setter) => typeof setter === "function" ? setter(prev) : setter;
|
|
95
98
|
const compareAndExec = (prev, state, exec) => (prev === state ? undefined : exec?.(state));
|
|
@@ -99,9 +102,9 @@ export const Table = (props) => {
|
|
|
99
102
|
const optionCols = useMemo(() => createOptionCols(props.cols), [props.cols]);
|
|
100
103
|
const [state, dispatch] = useReducer({
|
|
101
104
|
cols: props.cols,
|
|
102
|
-
filters: (props.filters ?? []),
|
|
103
|
-
groups: (props.groups ?? []),
|
|
104
105
|
sorters: (props.sorters ?? []),
|
|
106
|
+
groups: (props.groups ?? []),
|
|
107
|
+
filters: (props.filters ?? []),
|
|
105
108
|
}, (get) => {
|
|
106
109
|
const create = (key) => (arg) => {
|
|
107
110
|
const state = get.state();
|
|
@@ -109,9 +112,9 @@ export const Table = (props) => {
|
|
|
109
112
|
};
|
|
110
113
|
return {
|
|
111
114
|
cols: create("cols"),
|
|
112
|
-
filters: create("filters"),
|
|
113
|
-
groups: create("groups"),
|
|
114
115
|
sorters: create("sorters"),
|
|
116
|
+
groups: create("groups"),
|
|
117
|
+
filters: create("filters"),
|
|
115
118
|
};
|
|
116
119
|
}, {
|
|
117
120
|
postMiddleware: [
|
|
@@ -2,6 +2,7 @@ import React, { PropsWithChildren } from "react";
|
|
|
2
2
|
import { parsers } from "../../preset.tailwind";
|
|
3
3
|
import { Locales } from "the-mask-input";
|
|
4
4
|
declare const defaultTranslations: {
|
|
5
|
+
emptyDataMessage: string;
|
|
5
6
|
inputCaretDown: string;
|
|
6
7
|
datePickerCalendarButtonLabel: string;
|
|
7
8
|
inputOptionalLabel: string;
|
|
@@ -50,7 +51,7 @@ declare const defaultTranslations: {
|
|
|
50
51
|
calendarToDate: string;
|
|
51
52
|
calendarToday: string;
|
|
52
53
|
};
|
|
53
|
-
type Translations = typeof defaultTranslations;
|
|
54
|
+
export type Translations = typeof defaultTranslations;
|
|
54
55
|
type ContextProps = Partial<{
|
|
55
56
|
map: Partial<Translations>;
|
|
56
57
|
locale: Locales | undefined;
|
|
@@ -59,6 +60,7 @@ type ContextProps = Partial<{
|
|
|
59
60
|
export declare const ComponentsProvider: (props: PropsWithChildren<ContextProps>) => import("react/jsx-runtime").JSX.Element;
|
|
60
61
|
export declare const useLocale: () => Locales | undefined;
|
|
61
62
|
export declare const useTranslations: () => {
|
|
63
|
+
emptyDataMessage: string;
|
|
62
64
|
inputCaretDown: string;
|
|
63
65
|
datePickerCalendarButtonLabel: string;
|
|
64
66
|
inputOptionalLabel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-components-provider.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-components-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA2B,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC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Ac,wCAI1B,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { createContext, Fragment, useContext, useMemo } from "react";
|
|
4
4
|
import { parsers } from "../../preset.tailwind";
|
|
5
5
|
const defaultTranslations = {
|
|
6
|
+
emptyDataMessage: "No data",
|
|
6
7
|
inputCaretDown: "Click to see all options",
|
|
7
8
|
datePickerCalendarButtonLabel: "Click to open a date picker",
|
|
8
9
|
inputOptionalLabel: "Optional",
|