framepexls-ui-lib 2.1.0 → 2.2.1
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/AnalyticsCharts.d.mts +4 -4
- package/dist/AnalyticsCharts.d.ts +4 -4
- package/dist/AppTopbar.d.mts +1 -2
- package/dist/AppTopbar.d.ts +1 -2
- package/dist/AssetPerformanceCard.d.mts +50 -0
- package/dist/AssetPerformanceCard.d.ts +50 -0
- package/dist/AssetPerformanceCard.js +342 -0
- package/dist/AssetPerformanceCard.mjs +319 -0
- package/dist/AssetTickerRow.d.mts +26 -0
- package/dist/AssetTickerRow.d.ts +26 -0
- package/dist/AssetTickerRow.js +255 -0
- package/dist/AssetTickerRow.mjs +225 -0
- package/dist/AuthTopbar.d.mts +2 -2
- package/dist/AuthTopbar.d.ts +2 -2
- package/dist/AuthTopbar.js +2 -1
- package/dist/AuthTopbar.mjs +2 -1
- package/dist/AvatarGroup.d.mts +2 -2
- package/dist/AvatarGroup.d.ts +2 -2
- package/dist/AvatarSquare.d.mts +2 -2
- package/dist/AvatarSquare.d.ts +2 -2
- package/dist/AvatarSquare.js +29 -27
- package/dist/AvatarSquare.mjs +29 -27
- package/dist/Badge.d.mts +1 -2
- package/dist/Badge.d.ts +1 -2
- package/dist/BadgeCluster.d.mts +2 -3
- package/dist/BadgeCluster.d.ts +2 -3
- package/dist/Breadcrumb.d.mts +1 -2
- package/dist/Breadcrumb.d.ts +1 -2
- package/dist/CalendarPanel.d.mts +2 -2
- package/dist/CalendarPanel.d.ts +2 -2
- package/dist/Carousel.d.mts +1 -2
- package/dist/Carousel.d.ts +1 -2
- package/dist/ChangeHistory.d.mts +1 -2
- package/dist/ChangeHistory.d.ts +1 -2
- package/dist/ChartCard.d.mts +1 -2
- package/dist/ChartCard.d.ts +1 -2
- package/dist/ChatCenter.d.mts +2 -2
- package/dist/ChatCenter.d.ts +2 -2
- package/dist/ChatbotCenter.d.mts +1 -2
- package/dist/ChatbotCenter.d.ts +1 -2
- package/dist/CheckboxPillsGroup.d.mts +1 -2
- package/dist/CheckboxPillsGroup.d.ts +1 -2
- package/dist/ColorPicker.d.mts +2 -2
- package/dist/ColorPicker.d.ts +2 -2
- package/dist/ColumnSelector.d.mts +1 -2
- package/dist/ColumnSelector.d.ts +1 -2
- package/dist/ComboSelect.d.mts +1 -2
- package/dist/ComboSelect.d.ts +1 -2
- package/dist/DataPageLayout.d.mts +64 -0
- package/dist/DataPageLayout.d.ts +64 -0
- package/dist/DataPageLayout.js +191 -0
- package/dist/DataPageLayout.mjs +157 -0
- package/dist/DataTable.d.mts +1 -2
- package/dist/DataTable.d.ts +1 -2
- package/dist/DataTableCard.d.mts +1 -2
- package/dist/DataTableCard.d.ts +1 -2
- package/dist/DataTableCardFooter.d.mts +2 -2
- package/dist/DataTableCardFooter.d.ts +2 -2
- package/dist/DateTimeField.d.mts +1 -2
- package/dist/DateTimeField.d.ts +1 -2
- package/dist/Dialog.d.mts +6 -7
- package/dist/Dialog.d.ts +6 -7
- package/dist/DocumentEditor.d.mts +3 -3
- package/dist/DocumentEditor.d.ts +3 -3
- package/dist/Drawer.d.mts +4 -5
- package/dist/Drawer.d.ts +4 -5
- package/dist/Dropdown.d.mts +7 -8
- package/dist/Dropdown.d.ts +7 -8
- package/dist/EmptyState.d.mts +1 -2
- package/dist/EmptyState.d.ts +1 -2
- package/dist/FiltersMultiSelect.d.mts +1 -2
- package/dist/FiltersMultiSelect.d.ts +1 -2
- package/dist/HeliipLoader.d.mts +2 -2
- package/dist/HeliipLoader.d.ts +2 -2
- package/dist/ImpersonationDialog.d.mts +2 -2
- package/dist/ImpersonationDialog.d.ts +2 -2
- package/dist/ImpersonationSwitcher.d.mts +2 -2
- package/dist/ImpersonationSwitcher.d.ts +2 -2
- package/dist/InfoGrid.d.mts +1 -2
- package/dist/InfoGrid.d.ts +1 -2
- package/dist/KnowledgeBase.d.mts +1 -2
- package/dist/KnowledgeBase.d.ts +1 -2
- package/dist/KpiCard.d.mts +2 -3
- package/dist/KpiCard.d.ts +2 -3
- package/dist/LanguageSwitcher.d.mts +2 -2
- package/dist/LanguageSwitcher.d.ts +2 -2
- package/dist/LicenseStatus.d.mts +1 -2
- package/dist/LicenseStatus.d.ts +1 -2
- package/dist/Link.d.mts +1 -2
- package/dist/Link.d.ts +1 -2
- package/dist/Login.d.mts +1 -2
- package/dist/Login.d.ts +1 -2
- package/dist/LoginCarousel.d.mts +2 -3
- package/dist/LoginCarousel.d.ts +2 -3
- package/dist/LoginGallery.d.mts +2 -3
- package/dist/LoginGallery.d.ts +2 -3
- package/dist/LoginTools.d.mts +1 -2
- package/dist/LoginTools.d.ts +1 -2
- package/dist/Map.d.mts +4 -5
- package/dist/Map.d.ts +4 -5
- package/dist/MarkdownEditor.d.mts +2 -2
- package/dist/MarkdownEditor.d.ts +2 -2
- package/dist/MediaCard.d.mts +2 -2
- package/dist/MediaCard.d.ts +2 -2
- package/dist/MediaLibraryLayout.d.mts +89 -0
- package/dist/MediaLibraryLayout.d.ts +89 -0
- package/dist/MediaLibraryLayout.js +369 -0
- package/dist/MediaLibraryLayout.mjs +348 -0
- package/dist/MediaSelector.d.mts +2 -2
- package/dist/MediaSelector.d.ts +2 -2
- package/dist/MediaTile.d.mts +2 -2
- package/dist/MediaTile.d.ts +2 -2
- package/dist/Money.d.mts +2 -2
- package/dist/Money.d.ts +2 -2
- package/dist/MotionProvider.d.mts +1 -2
- package/dist/MotionProvider.d.ts +1 -2
- package/dist/MultiComboSelect.d.mts +2 -3
- package/dist/MultiComboSelect.d.ts +2 -3
- package/dist/NotificationsCenter.d.mts +1 -2
- package/dist/NotificationsCenter.d.ts +1 -2
- package/dist/Numeric.d.mts +2 -2
- package/dist/Numeric.d.ts +2 -2
- package/dist/OmniSearch.d.mts +2 -3
- package/dist/OmniSearch.d.ts +2 -3
- package/dist/OrderButton.d.mts +2 -2
- package/dist/OrderButton.d.ts +2 -2
- package/dist/PageScaffold.d.mts +1 -2
- package/dist/PageScaffold.d.ts +1 -2
- package/dist/PageScaffold.js +1 -1
- package/dist/PageScaffold.mjs +1 -1
- package/dist/PageTransition.d.mts +1 -2
- package/dist/PageTransition.d.ts +1 -2
- package/dist/PageTransition.js +33 -27
- package/dist/PageTransition.mjs +33 -27
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.d.ts +2 -2
- package/dist/PasswordField.d.mts +1 -2
- package/dist/PasswordField.d.ts +1 -2
- package/dist/ProductCatalog.d.mts +2 -3
- package/dist/ProductCatalog.d.ts +2 -3
- package/dist/PromotionsCatalog.d.mts +2 -3
- package/dist/PromotionsCatalog.d.ts +2 -3
- package/dist/QrCode.d.mts +2 -2
- package/dist/QrCode.d.ts +2 -2
- package/dist/QuickActionsDock.d.mts +26 -0
- package/dist/QuickActionsDock.d.ts +26 -0
- package/dist/QuickActionsDock.js +99 -0
- package/dist/QuickActionsDock.mjs +79 -0
- package/dist/QuoteEditor.d.mts +2 -2
- package/dist/QuoteEditor.d.ts +2 -2
- package/dist/RechartsBarCard.d.mts +1 -2
- package/dist/RechartsBarCard.d.ts +1 -2
- package/dist/RechartsDonutCard.d.mts +1 -2
- package/dist/RechartsDonutCard.d.ts +1 -2
- package/dist/RechartsTimeSeriesCard.d.mts +1 -2
- package/dist/RechartsTimeSeriesCard.d.ts +1 -2
- package/dist/ReviewHistory.d.mts +3 -3
- package/dist/ReviewHistory.d.ts +3 -3
- package/dist/Reviews.d.mts +1 -2
- package/dist/Reviews.d.ts +1 -2
- package/dist/SearchInput.d.mts +2 -2
- package/dist/SearchInput.d.ts +2 -2
- package/dist/SegmentedTabs.d.mts +1 -2
- package/dist/SegmentedTabs.d.ts +1 -2
- package/dist/Select.d.mts +2 -2
- package/dist/Select.d.ts +2 -2
- package/dist/ShareAccess.d.mts +1 -2
- package/dist/ShareAccess.d.ts +1 -2
- package/dist/Sidebar.d.mts +3 -2
- package/dist/Sidebar.d.ts +3 -2
- package/dist/Sidebar.js +590 -377
- package/dist/Sidebar.mjs +590 -377
- package/dist/StatCard.d.mts +1 -2
- package/dist/StatCard.d.ts +1 -2
- package/dist/Steps.d.mts +3 -3
- package/dist/Steps.d.ts +3 -3
- package/dist/StorageUsage.d.mts +1 -2
- package/dist/StorageUsage.d.ts +1 -2
- package/dist/SupportChatWidget.d.mts +128 -0
- package/dist/SupportChatWidget.d.ts +128 -0
- package/dist/SupportChatWidget.js +696 -0
- package/dist/SupportChatWidget.mjs +678 -0
- package/dist/Table.d.mts +4 -5
- package/dist/Table.d.ts +4 -5
- package/dist/TableRecordButton.d.mts +1 -2
- package/dist/TableRecordButton.d.ts +1 -2
- package/dist/TimeAgo.d.mts +2 -2
- package/dist/TimeAgo.d.ts +2 -2
- package/dist/TimePanel.d.mts +1 -2
- package/dist/TimePanel.d.ts +1 -2
- package/dist/TimeRangeField.d.mts +2 -2
- package/dist/TimeRangeField.d.ts +2 -2
- package/dist/Toast.d.mts +1 -2
- package/dist/Toast.d.ts +1 -2
- package/dist/Tooltip.d.mts +1 -2
- package/dist/Tooltip.d.ts +1 -2
- package/dist/UploadCard.d.mts +1 -2
- package/dist/UploadCard.d.ts +1 -2
- package/dist/WordEditor.d.mts +3 -3
- package/dist/WordEditor.d.ts +3 -3
- package/dist/WorkflowDiagram.d.mts +1 -2
- package/dist/WorkflowDiagram.d.ts +1 -2
- package/dist/{animations-CHrNeawW.d.mts → animations-Di5tQRLw.d.mts} +2 -2
- package/dist/{animations-CHrNeawW.d.ts → animations-Di5tQRLw.d.ts} +2 -2
- package/dist/animations.d.mts +1 -1
- package/dist/animations.d.ts +1 -1
- package/dist/charts.d.mts +2 -1
- package/dist/charts.d.ts +2 -1
- package/dist/charts.js +6 -0
- package/dist/charts.mjs +6 -2
- package/dist/i18n.d.mts +1 -2
- package/dist/i18n.d.ts +1 -2
- package/dist/iconos/WorkflowEdgesSvg.d.mts +1 -2
- package/dist/iconos/WorkflowEdgesSvg.d.ts +1 -2
- package/dist/iconos/index.d.mts +1546 -1547
- package/dist/iconos/index.d.ts +1546 -1547
- package/dist/iconos/regular-icons.js +2 -2
- package/dist/iconos/regular-icons.mjs +2 -2
- package/dist/index.d.mts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +30 -0
- package/dist/index.mjs +167 -148
- package/dist/internal/AutoSize.d.mts +1 -2
- package/dist/internal/AutoSize.d.ts +1 -2
- package/dist/map.css +1 -1
- package/dist/theme/FontSizeController.d.mts +2 -2
- package/dist/theme/FontSizeController.d.ts +2 -2
- package/dist/theme/FontSizeController.js +1 -1
- package/dist/theme/FontSizeController.mjs +1 -1
- package/dist/theme/ThemeController.d.mts +2 -3
- package/dist/theme/ThemeController.d.ts +2 -3
- package/dist/theme/ThemeProvider.d.mts +1 -2
- package/dist/theme/ThemeProvider.d.ts +1 -2
- package/dist/theme/ThemeScript.d.mts +2 -2
- package/dist/theme/ThemeScript.d.ts +2 -2
- package/dist/theme/ThemeToggle.d.mts +2 -2
- package/dist/theme/ThemeToggle.d.ts +2 -2
- package/dist/theme/ThemeToggle.js +4 -4
- package/dist/theme/ThemeToggle.mjs +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import AssetTickerRow from "./AssetTickerRow.mjs";
|
|
5
|
+
import DataTable from "./DataTable.mjs";
|
|
6
|
+
import DataTableCard from "./DataTableCard.mjs";
|
|
7
|
+
import DataTableCardFooter from "./DataTableCardFooter.mjs";
|
|
8
|
+
import EmptyState from "./EmptyState.mjs";
|
|
9
|
+
import PageScaffold from "./PageScaffold.mjs";
|
|
10
|
+
function cx(...values) {
|
|
11
|
+
return values.filter(Boolean).join(" ");
|
|
12
|
+
}
|
|
13
|
+
const accents = ["var(--primary)", "#0ea5e9", "#22c55e"];
|
|
14
|
+
function toNumericValue(value) {
|
|
15
|
+
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
16
|
+
if (typeof value === "string") {
|
|
17
|
+
const parsed = Number(value.replace(/[^\d.-]/g, ""));
|
|
18
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
function getSymbol(label, fallback) {
|
|
23
|
+
const words = label.normalize("NFD").replace(/[\u0300-\u036f]/g, "").split(/\s+/).filter(Boolean);
|
|
24
|
+
const initials = words.map((word) => word[0]).join("").slice(0, 3);
|
|
25
|
+
return (initials || fallback).toUpperCase();
|
|
26
|
+
}
|
|
27
|
+
function DataPageKpiTickerRow({
|
|
28
|
+
items,
|
|
29
|
+
className
|
|
30
|
+
}) {
|
|
31
|
+
const tickerItems = items.slice(0, 3).map((item, index) => {
|
|
32
|
+
var _a, _b, _c, _d, _e;
|
|
33
|
+
const price = (_a = item.numericValue) != null ? _a : toNumericValue(item.value);
|
|
34
|
+
const sparkline = (_b = item.sparkline) != null ? _b : [
|
|
35
|
+
Math.max(0, (price != null ? price : 0) * 0.72),
|
|
36
|
+
Math.max(0, (price != null ? price : 0) * 0.88),
|
|
37
|
+
Math.max(0, price != null ? price : 0)
|
|
38
|
+
];
|
|
39
|
+
return {
|
|
40
|
+
id: item.id,
|
|
41
|
+
name: item.label,
|
|
42
|
+
symbol: (_c = item.symbol) != null ? _c : getSymbol(item.label, String(index + 1)),
|
|
43
|
+
price,
|
|
44
|
+
change: item.change,
|
|
45
|
+
changePercent: item.changePercent,
|
|
46
|
+
sparkline,
|
|
47
|
+
accent: (_e = (_d = item.accent) != null ? _d : accents[index]) != null ? _e : "var(--primary)",
|
|
48
|
+
meta: item.helper,
|
|
49
|
+
displayValue: item.value
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
AssetTickerRow,
|
|
54
|
+
{
|
|
55
|
+
items: tickerItems,
|
|
56
|
+
className,
|
|
57
|
+
priceFormatter: (_, item) => item.displayValue
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
function renderEmptyState(emptyState) {
|
|
62
|
+
if (!emptyState) return /* @__PURE__ */ jsx(EmptyState, {});
|
|
63
|
+
if (React.isValidElement(emptyState)) return emptyState;
|
|
64
|
+
if (typeof emptyState === "string" || typeof emptyState === "number") {
|
|
65
|
+
return /* @__PURE__ */ jsx(EmptyState, { title: emptyState });
|
|
66
|
+
}
|
|
67
|
+
return /* @__PURE__ */ jsx(EmptyState, { ...emptyState });
|
|
68
|
+
}
|
|
69
|
+
function DataPageLayout({
|
|
70
|
+
title: _title,
|
|
71
|
+
subtitle: _subtitle,
|
|
72
|
+
breadcrumb,
|
|
73
|
+
breadcrumbItems,
|
|
74
|
+
top,
|
|
75
|
+
tickerItems,
|
|
76
|
+
tickerClassName,
|
|
77
|
+
beforeTable,
|
|
78
|
+
afterTable,
|
|
79
|
+
overlays,
|
|
80
|
+
cardClassName,
|
|
81
|
+
cardHeaderClassName,
|
|
82
|
+
bulkBar,
|
|
83
|
+
controlsLeft,
|
|
84
|
+
controlsRight,
|
|
85
|
+
toolbarColumns,
|
|
86
|
+
rows,
|
|
87
|
+
columns,
|
|
88
|
+
getRowId,
|
|
89
|
+
tableProps,
|
|
90
|
+
table,
|
|
91
|
+
tableContainerClassName,
|
|
92
|
+
empty,
|
|
93
|
+
emptyState,
|
|
94
|
+
emptyAction,
|
|
95
|
+
footer,
|
|
96
|
+
pagination,
|
|
97
|
+
error,
|
|
98
|
+
errorClassName,
|
|
99
|
+
children,
|
|
100
|
+
...pageProps
|
|
101
|
+
}) {
|
|
102
|
+
const resolvedBreadcrumb = breadcrumb != null ? breadcrumb : (breadcrumbItems == null ? void 0 : breadcrumbItems.length) ? { items: breadcrumbItems } : void 0;
|
|
103
|
+
const hasTicker = Boolean(tickerItems == null ? void 0 : tickerItems.length);
|
|
104
|
+
const tableRows = rows != null ? rows : [];
|
|
105
|
+
const resolvedEmpty = empty != null ? empty : !table && tableRows.length === 0;
|
|
106
|
+
const tableNode = table != null ? table : columns && getRowId ? /* @__PURE__ */ jsx(
|
|
107
|
+
DataTable,
|
|
108
|
+
{
|
|
109
|
+
rows: tableRows,
|
|
110
|
+
columns,
|
|
111
|
+
getRowId,
|
|
112
|
+
...tableProps != null ? tableProps : {}
|
|
113
|
+
}
|
|
114
|
+
) : null;
|
|
115
|
+
const footerNode = footer != null ? footer : pagination ? /* @__PURE__ */ jsx(
|
|
116
|
+
DataTableCardFooter,
|
|
117
|
+
{
|
|
118
|
+
page: pagination.page,
|
|
119
|
+
totalPages: pagination.totalPages,
|
|
120
|
+
pageSize: pagination.pageSize,
|
|
121
|
+
pageSizeOptions: pagination.pageSizeOptions,
|
|
122
|
+
onPageChange: pagination.onPageChange,
|
|
123
|
+
onPageSizeChange: pagination.onPageSizeChange
|
|
124
|
+
}
|
|
125
|
+
) : null;
|
|
126
|
+
const topNode = top || hasTicker ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
127
|
+
top,
|
|
128
|
+
hasTicker ? /* @__PURE__ */ jsx(DataPageKpiTickerRow, { items: tickerItems != null ? tickerItems : [], className: tickerClassName }) : null
|
|
129
|
+
] }) : void 0;
|
|
130
|
+
return /* @__PURE__ */ jsxs(PageScaffold, { ...pageProps, breadcrumb: resolvedBreadcrumb, top: topNode, columns: toolbarColumns, children: [
|
|
131
|
+
beforeTable,
|
|
132
|
+
children != null ? children : /* @__PURE__ */ jsx(
|
|
133
|
+
DataTableCard,
|
|
134
|
+
{
|
|
135
|
+
className: cardClassName,
|
|
136
|
+
headerClassName: cardHeaderClassName,
|
|
137
|
+
bulkBar,
|
|
138
|
+
controlsLeft,
|
|
139
|
+
controlsRight,
|
|
140
|
+
children: resolvedEmpty ? /* @__PURE__ */ jsxs("div", { className: "p-8", children: [
|
|
141
|
+
renderEmptyState(emptyState),
|
|
142
|
+
emptyAction ? /* @__PURE__ */ jsx("div", { className: "mt-4 flex justify-center", children: emptyAction }) : null
|
|
143
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
144
|
+
/* @__PURE__ */ jsx("div", { className: cx("overflow-auto", tableContainerClassName), children: tableNode }),
|
|
145
|
+
footerNode
|
|
146
|
+
] })
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
error ? /* @__PURE__ */ jsx("div", { className: cx("mt-4 rounded-xl border border-[var(--border)] px-4 py-3 text-sm text-[var(--muted)]", errorClassName), children: error }) : null,
|
|
150
|
+
afterTable,
|
|
151
|
+
overlays
|
|
152
|
+
] });
|
|
153
|
+
}
|
|
154
|
+
export {
|
|
155
|
+
DataPageKpiTickerRow,
|
|
156
|
+
DataPageLayout as default
|
|
157
|
+
};
|
package/dist/DataTable.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type Align = "left" | "center" | "right";
|
|
@@ -92,6 +91,6 @@ type Props<Row, K extends string> = {
|
|
|
92
91
|
previous: unknown;
|
|
93
92
|
}) => void;
|
|
94
93
|
};
|
|
95
|
-
declare function DataTable<Row, K extends string>({ rows, columns, getRowId, className, ariaLabel, loading, dense, stickyHeader, striped, hoverable, empty, resizableColumns, persistKey, animateSort, quickEdit, edicionRapida, rowClassName, sort, defaultSort, onSortChange, manualSort, onRowsChange, onCellCommit, onCellError, }: Props<Row, K>):
|
|
94
|
+
declare function DataTable<Row, K extends string>({ rows, columns, getRowId, className, ariaLabel, loading, dense, stickyHeader, striped, hoverable, empty, resizableColumns, persistKey, animateSort, quickEdit, edicionRapida, rowClassName, sort, defaultSort, onSortChange, manualSort, onRowsChange, onCellCommit, onCellError, }: Props<Row, K>): React__default.JSX.Element;
|
|
96
95
|
|
|
97
96
|
export { type DataTableColumn, type DataTableEditorArgs, type DataTableSort, DataTable as default };
|
package/dist/DataTable.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type Align = "left" | "center" | "right";
|
|
@@ -92,6 +91,6 @@ type Props<Row, K extends string> = {
|
|
|
92
91
|
previous: unknown;
|
|
93
92
|
}) => void;
|
|
94
93
|
};
|
|
95
|
-
declare function DataTable<Row, K extends string>({ rows, columns, getRowId, className, ariaLabel, loading, dense, stickyHeader, striped, hoverable, empty, resizableColumns, persistKey, animateSort, quickEdit, edicionRapida, rowClassName, sort, defaultSort, onSortChange, manualSort, onRowsChange, onCellCommit, onCellError, }: Props<Row, K>):
|
|
94
|
+
declare function DataTable<Row, K extends string>({ rows, columns, getRowId, className, ariaLabel, loading, dense, stickyHeader, striped, hoverable, empty, resizableColumns, persistKey, animateSort, quickEdit, edicionRapida, rowClassName, sort, defaultSort, onSortChange, manualSort, onRowsChange, onCellCommit, onCellError, }: Props<Row, K>): React__default.JSX.Element;
|
|
96
95
|
|
|
97
96
|
export { type DataTableColumn, type DataTableEditorArgs, type DataTableSort, DataTable as default };
|
package/dist/DataTableCard.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type DataTableCardProps = {
|
|
@@ -9,6 +8,6 @@ type DataTableCardProps = {
|
|
|
9
8
|
controlsRight?: React__default.ReactNode;
|
|
10
9
|
children: React__default.ReactNode;
|
|
11
10
|
};
|
|
12
|
-
declare function DataTableCard({ className, headerClassName, bulkBar, controlsLeft, controlsRight, children }: DataTableCardProps):
|
|
11
|
+
declare function DataTableCard({ className, headerClassName, bulkBar, controlsLeft, controlsRight, children }: DataTableCardProps): React__default.JSX.Element;
|
|
13
12
|
|
|
14
13
|
export { type DataTableCardProps, DataTableCard as default };
|
package/dist/DataTableCard.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type DataTableCardProps = {
|
|
@@ -9,6 +8,6 @@ type DataTableCardProps = {
|
|
|
9
8
|
controlsRight?: React__default.ReactNode;
|
|
10
9
|
children: React__default.ReactNode;
|
|
11
10
|
};
|
|
12
|
-
declare function DataTableCard({ className, headerClassName, bulkBar, controlsLeft, controlsRight, children }: DataTableCardProps):
|
|
11
|
+
declare function DataTableCard({ className, headerClassName, bulkBar, controlsLeft, controlsRight, children }: DataTableCardProps): React__default.JSX.Element;
|
|
13
12
|
|
|
14
13
|
export { type DataTableCardProps, DataTableCard as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type DataTableCardFooterProps = {
|
|
4
4
|
page: number;
|
|
@@ -8,6 +8,6 @@ type DataTableCardFooterProps = {
|
|
|
8
8
|
onPageSizeChange: (pageSize: number) => void;
|
|
9
9
|
onPageChange: (page: number) => void;
|
|
10
10
|
};
|
|
11
|
-
declare function DataTableCardFooter({ page, totalPages, pageSize, pageSizeOptions, onPageSizeChange, onPageChange, }: DataTableCardFooterProps):
|
|
11
|
+
declare function DataTableCardFooter({ page, totalPages, pageSize, pageSizeOptions, onPageSizeChange, onPageChange, }: DataTableCardFooterProps): React__default.JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { type DataTableCardFooterProps, DataTableCardFooter as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type DataTableCardFooterProps = {
|
|
4
4
|
page: number;
|
|
@@ -8,6 +8,6 @@ type DataTableCardFooterProps = {
|
|
|
8
8
|
onPageSizeChange: (pageSize: number) => void;
|
|
9
9
|
onPageChange: (page: number) => void;
|
|
10
10
|
};
|
|
11
|
-
declare function DataTableCardFooter({ page, totalPages, pageSize, pageSizeOptions, onPageSizeChange, onPageChange, }: DataTableCardFooterProps):
|
|
11
|
+
declare function DataTableCardFooter({ page, totalPages, pageSize, pageSizeOptions, onPageSizeChange, onPageChange, }: DataTableCardFooterProps): React__default.JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { type DataTableCardFooterProps, DataTableCardFooter as default };
|
package/dist/DateTimeField.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type PickerMode = "date" | "datetime-local" | "time";
|
|
@@ -12,6 +11,6 @@ type DateTimeFieldProps = Omit<React__default.InputHTMLAttributes<HTMLInputEleme
|
|
|
12
11
|
portalId?: string;
|
|
13
12
|
clearable?: boolean;
|
|
14
13
|
};
|
|
15
|
-
declare function DateTimeField({ type, value, min, max, onValueChange, portal, portalId, clearable, ...inputProps }: DateTimeFieldProps):
|
|
14
|
+
declare function DateTimeField({ type, value, min, max, onValueChange, portal, portalId, clearable, ...inputProps }: DateTimeFieldProps): React__default.JSX.Element;
|
|
16
15
|
|
|
17
16
|
export { type DateTimeFieldProps, DateTimeField as default };
|
package/dist/DateTimeField.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type PickerMode = "date" | "datetime-local" | "time";
|
|
@@ -12,6 +11,6 @@ type DateTimeFieldProps = Omit<React__default.InputHTMLAttributes<HTMLInputEleme
|
|
|
12
11
|
portalId?: string;
|
|
13
12
|
clearable?: boolean;
|
|
14
13
|
};
|
|
15
|
-
declare function DateTimeField({ type, value, min, max, onValueChange, portal, portalId, clearable, ...inputProps }: DateTimeFieldProps):
|
|
14
|
+
declare function DateTimeField({ type, value, min, max, onValueChange, portal, portalId, clearable, ...inputProps }: DateTimeFieldProps): React__default.JSX.Element;
|
|
16
15
|
|
|
17
16
|
export { type DateTimeFieldProps, DateTimeField as default };
|
package/dist/Dialog.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type Size = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full";
|
|
@@ -25,24 +24,24 @@ declare function DialogHeader({ title, description, onClose, showClose, actions,
|
|
|
25
24
|
actions?: React__default.ReactNode;
|
|
26
25
|
compact?: boolean;
|
|
27
26
|
className?: string;
|
|
28
|
-
}):
|
|
27
|
+
}): React__default.JSX.Element;
|
|
29
28
|
declare function DialogBody({ children, padded, className, noScroll }: {
|
|
30
29
|
children: React__default.ReactNode;
|
|
31
30
|
padded?: boolean;
|
|
32
31
|
className?: string;
|
|
33
32
|
noScroll?: boolean;
|
|
34
|
-
}):
|
|
33
|
+
}): React__default.JSX.Element;
|
|
35
34
|
declare function DialogFooter({ children, align, }: {
|
|
36
35
|
children: React__default.ReactNode;
|
|
37
36
|
align?: "start" | "center" | "end" | "between";
|
|
38
|
-
}):
|
|
37
|
+
}): React__default.JSX.Element;
|
|
39
38
|
declare function DialogField({ label, hint, required, children, className, }: {
|
|
40
39
|
label?: React__default.ReactNode;
|
|
41
40
|
hint?: React__default.ReactNode;
|
|
42
41
|
required?: boolean;
|
|
43
42
|
children: React__default.ReactNode;
|
|
44
43
|
className?: string;
|
|
45
|
-
}):
|
|
44
|
+
}): React__default.JSX.Element;
|
|
46
45
|
type FormDialogProps = DialogProps & {
|
|
47
46
|
onSubmit: (e: React__default.FormEvent) => void;
|
|
48
47
|
submitLabel?: string;
|
|
@@ -53,7 +52,7 @@ type FormDialogProps = DialogProps & {
|
|
|
53
52
|
footerExtra?: React__default.ReactNode;
|
|
54
53
|
footerAlign?: "start" | "center" | "end" | "between";
|
|
55
54
|
};
|
|
56
|
-
declare function FormDialog({ open, onClose, title, description, children, onSubmit, submitLabel, cancelLabel, submitting, submitDisabled, error, footerExtra, footerAlign, ...rest }: FormDialogProps):
|
|
55
|
+
declare function FormDialog({ open, onClose, title, description, children, onSubmit, submitLabel, cancelLabel, submitting, submitDisabled, error, footerExtra, footerAlign, ...rest }: FormDialogProps): React__default.JSX.Element;
|
|
57
56
|
type ConfirmDialogProps = {
|
|
58
57
|
open: boolean;
|
|
59
58
|
onClose: () => void;
|
|
@@ -69,7 +68,7 @@ type ConfirmDialogProps = {
|
|
|
69
68
|
disableEscClose?: boolean;
|
|
70
69
|
disableBackdropClose?: boolean;
|
|
71
70
|
};
|
|
72
|
-
declare function ConfirmDialog({ open, onClose, title, headerDescription, description, confirmLabel, cancelLabel, danger, loading, onConfirm, autoCloseOnConfirm, disableEscClose, disableBackdropClose, }: ConfirmDialogProps):
|
|
71
|
+
declare function ConfirmDialog({ open, onClose, title, headerDescription, description, confirmLabel, cancelLabel, danger, loading, onConfirm, autoCloseOnConfirm, disableEscClose, disableBackdropClose, }: ConfirmDialogProps): React__default.JSX.Element;
|
|
73
72
|
type DialogCompound = React__default.FC<DialogProps> & {
|
|
74
73
|
Header: typeof DialogHeader;
|
|
75
74
|
Body: typeof DialogBody;
|
package/dist/Dialog.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type Size = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full";
|
|
@@ -25,24 +24,24 @@ declare function DialogHeader({ title, description, onClose, showClose, actions,
|
|
|
25
24
|
actions?: React__default.ReactNode;
|
|
26
25
|
compact?: boolean;
|
|
27
26
|
className?: string;
|
|
28
|
-
}):
|
|
27
|
+
}): React__default.JSX.Element;
|
|
29
28
|
declare function DialogBody({ children, padded, className, noScroll }: {
|
|
30
29
|
children: React__default.ReactNode;
|
|
31
30
|
padded?: boolean;
|
|
32
31
|
className?: string;
|
|
33
32
|
noScroll?: boolean;
|
|
34
|
-
}):
|
|
33
|
+
}): React__default.JSX.Element;
|
|
35
34
|
declare function DialogFooter({ children, align, }: {
|
|
36
35
|
children: React__default.ReactNode;
|
|
37
36
|
align?: "start" | "center" | "end" | "between";
|
|
38
|
-
}):
|
|
37
|
+
}): React__default.JSX.Element;
|
|
39
38
|
declare function DialogField({ label, hint, required, children, className, }: {
|
|
40
39
|
label?: React__default.ReactNode;
|
|
41
40
|
hint?: React__default.ReactNode;
|
|
42
41
|
required?: boolean;
|
|
43
42
|
children: React__default.ReactNode;
|
|
44
43
|
className?: string;
|
|
45
|
-
}):
|
|
44
|
+
}): React__default.JSX.Element;
|
|
46
45
|
type FormDialogProps = DialogProps & {
|
|
47
46
|
onSubmit: (e: React__default.FormEvent) => void;
|
|
48
47
|
submitLabel?: string;
|
|
@@ -53,7 +52,7 @@ type FormDialogProps = DialogProps & {
|
|
|
53
52
|
footerExtra?: React__default.ReactNode;
|
|
54
53
|
footerAlign?: "start" | "center" | "end" | "between";
|
|
55
54
|
};
|
|
56
|
-
declare function FormDialog({ open, onClose, title, description, children, onSubmit, submitLabel, cancelLabel, submitting, submitDisabled, error, footerExtra, footerAlign, ...rest }: FormDialogProps):
|
|
55
|
+
declare function FormDialog({ open, onClose, title, description, children, onSubmit, submitLabel, cancelLabel, submitting, submitDisabled, error, footerExtra, footerAlign, ...rest }: FormDialogProps): React__default.JSX.Element;
|
|
57
56
|
type ConfirmDialogProps = {
|
|
58
57
|
open: boolean;
|
|
59
58
|
onClose: () => void;
|
|
@@ -69,7 +68,7 @@ type ConfirmDialogProps = {
|
|
|
69
68
|
disableEscClose?: boolean;
|
|
70
69
|
disableBackdropClose?: boolean;
|
|
71
70
|
};
|
|
72
|
-
declare function ConfirmDialog({ open, onClose, title, headerDescription, description, confirmLabel, cancelLabel, danger, loading, onConfirm, autoCloseOnConfirm, disableEscClose, disableBackdropClose, }: ConfirmDialogProps):
|
|
71
|
+
declare function ConfirmDialog({ open, onClose, title, headerDescription, description, confirmLabel, cancelLabel, danger, loading, onConfirm, autoCloseOnConfirm, disableEscClose, disableBackdropClose, }: ConfirmDialogProps): React__default.JSX.Element;
|
|
73
72
|
type DialogCompound = React__default.FC<DialogProps> & {
|
|
74
73
|
Header: typeof DialogHeader;
|
|
75
74
|
Body: typeof DialogBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { DocumentBlock } from './document.mjs';
|
|
3
3
|
|
|
4
4
|
type Template = {
|
|
@@ -27,10 +27,10 @@ type DocumentEditorProps = {
|
|
|
27
27
|
labels?: DocumentEditorLabels;
|
|
28
28
|
templates?: Template[];
|
|
29
29
|
};
|
|
30
|
-
declare function DocumentEditor({ value, onChange, disabled, className, labels, templates }: DocumentEditorProps):
|
|
30
|
+
declare function DocumentEditor({ value, onChange, disabled, className, labels, templates }: DocumentEditorProps): React__default.JSX.Element;
|
|
31
31
|
declare function DocumentPreview({ value, className }: {
|
|
32
32
|
value: string | null;
|
|
33
33
|
className?: string;
|
|
34
|
-
}):
|
|
34
|
+
}): React__default.JSX.Element;
|
|
35
35
|
|
|
36
36
|
export { type DocumentEditorLabels, type DocumentEditorProps, DocumentPreview, DocumentEditor as default };
|
package/dist/DocumentEditor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { DocumentBlock } from './document.js';
|
|
3
3
|
|
|
4
4
|
type Template = {
|
|
@@ -27,10 +27,10 @@ type DocumentEditorProps = {
|
|
|
27
27
|
labels?: DocumentEditorLabels;
|
|
28
28
|
templates?: Template[];
|
|
29
29
|
};
|
|
30
|
-
declare function DocumentEditor({ value, onChange, disabled, className, labels, templates }: DocumentEditorProps):
|
|
30
|
+
declare function DocumentEditor({ value, onChange, disabled, className, labels, templates }: DocumentEditorProps): React__default.JSX.Element;
|
|
31
31
|
declare function DocumentPreview({ value, className }: {
|
|
32
32
|
value: string | null;
|
|
33
33
|
className?: string;
|
|
34
|
-
}):
|
|
34
|
+
}): React__default.JSX.Element;
|
|
35
35
|
|
|
36
36
|
export { type DocumentEditorLabels, type DocumentEditorProps, DocumentPreview, DocumentEditor as default };
|
package/dist/Drawer.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type RootProps = {
|
|
@@ -9,7 +8,7 @@ type RootProps = {
|
|
|
9
8
|
children: React__default.ReactNode;
|
|
10
9
|
className?: string;
|
|
11
10
|
};
|
|
12
|
-
declare function Root({ open, onClose, widthClass, zIndex, children, className, }: RootProps):
|
|
11
|
+
declare function Root({ open, onClose, widthClass, zIndex, children, className, }: RootProps): React__default.JSX.Element;
|
|
13
12
|
type HeaderProps = {
|
|
14
13
|
title?: string;
|
|
15
14
|
right?: React__default.ReactNode;
|
|
@@ -17,18 +16,18 @@ type HeaderProps = {
|
|
|
17
16
|
hideClose?: boolean;
|
|
18
17
|
children?: React__default.ReactNode;
|
|
19
18
|
};
|
|
20
|
-
declare function Header({ title, right, className, hideClose, children }: HeaderProps):
|
|
19
|
+
declare function Header({ title, right, className, hideClose, children }: HeaderProps): React__default.JSX.Element;
|
|
21
20
|
type BodyProps = {
|
|
22
21
|
className?: string;
|
|
23
22
|
children: React__default.ReactNode;
|
|
24
23
|
};
|
|
25
|
-
declare function Body({ className, children }: BodyProps):
|
|
24
|
+
declare function Body({ className, children }: BodyProps): React__default.JSX.Element;
|
|
26
25
|
type FooterProps = {
|
|
27
26
|
className?: string;
|
|
28
27
|
children: React__default.ReactNode;
|
|
29
28
|
sticky?: boolean;
|
|
30
29
|
};
|
|
31
|
-
declare function Footer({ className, children, sticky }: FooterProps):
|
|
30
|
+
declare function Footer({ className, children, sticky }: FooterProps): React__default.JSX.Element;
|
|
32
31
|
declare const Drawer: {
|
|
33
32
|
Root: typeof Root;
|
|
34
33
|
Header: typeof Header;
|
package/dist/Drawer.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type RootProps = {
|
|
@@ -9,7 +8,7 @@ type RootProps = {
|
|
|
9
8
|
children: React__default.ReactNode;
|
|
10
9
|
className?: string;
|
|
11
10
|
};
|
|
12
|
-
declare function Root({ open, onClose, widthClass, zIndex, children, className, }: RootProps):
|
|
11
|
+
declare function Root({ open, onClose, widthClass, zIndex, children, className, }: RootProps): React__default.JSX.Element;
|
|
13
12
|
type HeaderProps = {
|
|
14
13
|
title?: string;
|
|
15
14
|
right?: React__default.ReactNode;
|
|
@@ -17,18 +16,18 @@ type HeaderProps = {
|
|
|
17
16
|
hideClose?: boolean;
|
|
18
17
|
children?: React__default.ReactNode;
|
|
19
18
|
};
|
|
20
|
-
declare function Header({ title, right, className, hideClose, children }: HeaderProps):
|
|
19
|
+
declare function Header({ title, right, className, hideClose, children }: HeaderProps): React__default.JSX.Element;
|
|
21
20
|
type BodyProps = {
|
|
22
21
|
className?: string;
|
|
23
22
|
children: React__default.ReactNode;
|
|
24
23
|
};
|
|
25
|
-
declare function Body({ className, children }: BodyProps):
|
|
24
|
+
declare function Body({ className, children }: BodyProps): React__default.JSX.Element;
|
|
26
25
|
type FooterProps = {
|
|
27
26
|
className?: string;
|
|
28
27
|
children: React__default.ReactNode;
|
|
29
28
|
sticky?: boolean;
|
|
30
29
|
};
|
|
31
|
-
declare function Footer({ className, children, sticky }: FooterProps):
|
|
30
|
+
declare function Footer({ className, children, sticky }: FooterProps): React__default.JSX.Element;
|
|
32
31
|
declare const Drawer: {
|
|
33
32
|
Root: typeof Root;
|
|
34
33
|
Header: typeof Header;
|
package/dist/Dropdown.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React__default, { ReactNode, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
1
|
+
import React__default, { ReactNode, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
2
|
|
|
4
3
|
declare function useDropdownKeepOpen(): ((el: HTMLElement | null) => () => void) | undefined;
|
|
5
4
|
declare function Dropdown({ children, align, onOpenChange, permissions, hasPermission, permStrategy, defaultHideUnauthorized, defaultDisableUnauthorized, }: {
|
|
@@ -11,11 +10,11 @@ declare function Dropdown({ children, align, onOpenChange, permissions, hasPermi
|
|
|
11
10
|
permStrategy?: "all" | "any";
|
|
12
11
|
defaultHideUnauthorized?: boolean;
|
|
13
12
|
defaultDisableUnauthorized?: boolean;
|
|
14
|
-
}):
|
|
13
|
+
}): React__default.JSX.Element;
|
|
15
14
|
declare function Trigger({ children, className, ...btnProps }: {
|
|
16
15
|
children: ReactNode;
|
|
17
16
|
className?: string;
|
|
18
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "ref" | "children">):
|
|
17
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "ref" | "children">): React__default.JSX.Element;
|
|
19
18
|
declare function Content({ children, className, maxHeight, }: {
|
|
20
19
|
children: ReactNode;
|
|
21
20
|
className?: string;
|
|
@@ -23,10 +22,10 @@ declare function Content({ children, className, maxHeight, }: {
|
|
|
23
22
|
}): React__default.ReactPortal | null;
|
|
24
23
|
declare function Label({ children }: {
|
|
25
24
|
children: ReactNode;
|
|
26
|
-
}):
|
|
25
|
+
}): React__default.JSX.Element;
|
|
27
26
|
declare function Separator({ className }: {
|
|
28
27
|
className?: string;
|
|
29
|
-
}):
|
|
28
|
+
}): React__default.JSX.Element;
|
|
30
29
|
declare function Item({ children, icon, kbd, danger, disabled, require, hideIfUnauthorized, disableIfUnauthorized, onSelect, className, ...rest }: {
|
|
31
30
|
children: ReactNode;
|
|
32
31
|
icon?: ReactNode;
|
|
@@ -37,7 +36,7 @@ declare function Item({ children, icon, kbd, danger, disabled, require, hideIfUn
|
|
|
37
36
|
hideIfUnauthorized?: boolean;
|
|
38
37
|
disableIfUnauthorized?: boolean;
|
|
39
38
|
onSelect?: () => void;
|
|
40
|
-
} & HTMLAttributes<HTMLButtonElement>):
|
|
39
|
+
} & HTMLAttributes<HTMLButtonElement>): React__default.JSX.Element | null;
|
|
41
40
|
declare const DropdownExport: typeof Dropdown & {
|
|
42
41
|
Trigger: typeof Trigger;
|
|
43
42
|
Content: typeof Content;
|
|
@@ -46,7 +45,7 @@ declare const DropdownExport: typeof Dropdown & {
|
|
|
46
45
|
Item: typeof Item;
|
|
47
46
|
MenuPuntosVerticalIcon: ({ className, clase, ...props }: React__default.SVGProps<SVGSVGElement> & {
|
|
48
47
|
clase?: string;
|
|
49
|
-
}) =>
|
|
48
|
+
}) => React__default.JSX.Element;
|
|
50
49
|
};
|
|
51
50
|
|
|
52
51
|
export { Content, Dropdown, Item, Label, Separator, Trigger, DropdownExport as default, useDropdownKeepOpen };
|
package/dist/Dropdown.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React__default, { ReactNode, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
1
|
+
import React__default, { ReactNode, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
2
|
|
|
4
3
|
declare function useDropdownKeepOpen(): ((el: HTMLElement | null) => () => void) | undefined;
|
|
5
4
|
declare function Dropdown({ children, align, onOpenChange, permissions, hasPermission, permStrategy, defaultHideUnauthorized, defaultDisableUnauthorized, }: {
|
|
@@ -11,11 +10,11 @@ declare function Dropdown({ children, align, onOpenChange, permissions, hasPermi
|
|
|
11
10
|
permStrategy?: "all" | "any";
|
|
12
11
|
defaultHideUnauthorized?: boolean;
|
|
13
12
|
defaultDisableUnauthorized?: boolean;
|
|
14
|
-
}):
|
|
13
|
+
}): React__default.JSX.Element;
|
|
15
14
|
declare function Trigger({ children, className, ...btnProps }: {
|
|
16
15
|
children: ReactNode;
|
|
17
16
|
className?: string;
|
|
18
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "ref" | "children">):
|
|
17
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "ref" | "children">): React__default.JSX.Element;
|
|
19
18
|
declare function Content({ children, className, maxHeight, }: {
|
|
20
19
|
children: ReactNode;
|
|
21
20
|
className?: string;
|
|
@@ -23,10 +22,10 @@ declare function Content({ children, className, maxHeight, }: {
|
|
|
23
22
|
}): React__default.ReactPortal | null;
|
|
24
23
|
declare function Label({ children }: {
|
|
25
24
|
children: ReactNode;
|
|
26
|
-
}):
|
|
25
|
+
}): React__default.JSX.Element;
|
|
27
26
|
declare function Separator({ className }: {
|
|
28
27
|
className?: string;
|
|
29
|
-
}):
|
|
28
|
+
}): React__default.JSX.Element;
|
|
30
29
|
declare function Item({ children, icon, kbd, danger, disabled, require, hideIfUnauthorized, disableIfUnauthorized, onSelect, className, ...rest }: {
|
|
31
30
|
children: ReactNode;
|
|
32
31
|
icon?: ReactNode;
|
|
@@ -37,7 +36,7 @@ declare function Item({ children, icon, kbd, danger, disabled, require, hideIfUn
|
|
|
37
36
|
hideIfUnauthorized?: boolean;
|
|
38
37
|
disableIfUnauthorized?: boolean;
|
|
39
38
|
onSelect?: () => void;
|
|
40
|
-
} & HTMLAttributes<HTMLButtonElement>):
|
|
39
|
+
} & HTMLAttributes<HTMLButtonElement>): React__default.JSX.Element | null;
|
|
41
40
|
declare const DropdownExport: typeof Dropdown & {
|
|
42
41
|
Trigger: typeof Trigger;
|
|
43
42
|
Content: typeof Content;
|
|
@@ -46,7 +45,7 @@ declare const DropdownExport: typeof Dropdown & {
|
|
|
46
45
|
Item: typeof Item;
|
|
47
46
|
MenuPuntosVerticalIcon: ({ className, clase, ...props }: React__default.SVGProps<SVGSVGElement> & {
|
|
48
47
|
clase?: string;
|
|
49
|
-
}) =>
|
|
48
|
+
}) => React__default.JSX.Element;
|
|
50
49
|
};
|
|
51
50
|
|
|
52
51
|
export { Content, Dropdown, Item, Label, Separator, Trigger, DropdownExport as default, useDropdownKeepOpen };
|
package/dist/EmptyState.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type EmptyStateProps = {
|
|
@@ -12,6 +11,6 @@ type EmptyStateProps = {
|
|
|
12
11
|
loadingMinDurationMs?: number;
|
|
13
12
|
className?: string;
|
|
14
13
|
};
|
|
15
|
-
declare function EmptyState({ title, subtitle, icon, actions, align, size, loading, loadingMinDurationMs, className, }: EmptyStateProps):
|
|
14
|
+
declare function EmptyState({ title, subtitle, icon, actions, align, size, loading, loadingMinDurationMs, className, }: EmptyStateProps): React__default.JSX.Element;
|
|
16
15
|
|
|
17
16
|
export { type EmptyStateProps, EmptyState as default };
|
package/dist/EmptyState.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type EmptyStateProps = {
|
|
@@ -12,6 +11,6 @@ type EmptyStateProps = {
|
|
|
12
11
|
loadingMinDurationMs?: number;
|
|
13
12
|
className?: string;
|
|
14
13
|
};
|
|
15
|
-
declare function EmptyState({ title, subtitle, icon, actions, align, size, loading, loadingMinDurationMs, className, }: EmptyStateProps):
|
|
14
|
+
declare function EmptyState({ title, subtitle, icon, actions, align, size, loading, loadingMinDurationMs, className, }: EmptyStateProps): React__default.JSX.Element;
|
|
16
15
|
|
|
17
16
|
export { type EmptyStateProps, EmptyState as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
import { PillsOption, CheckboxPillsGroupProps } from './CheckboxPillsGroup.mjs';
|
|
4
3
|
|
|
@@ -26,6 +25,6 @@ type FiltersMultiSelectProps = {
|
|
|
26
25
|
loadingMinDurationMs?: number;
|
|
27
26
|
disabled?: boolean;
|
|
28
27
|
};
|
|
29
|
-
declare function FiltersMultiSelect({ groups, onChange, className, gap, color, open: controlledOpen, onToggleOpen, triggerLabel, showActiveCount, align, loading, loadingMinDurationMs, disabled, }: FiltersMultiSelectProps):
|
|
28
|
+
declare function FiltersMultiSelect({ groups, onChange, className, gap, color, open: controlledOpen, onToggleOpen, triggerLabel, showActiveCount, align, loading, loadingMinDurationMs, disabled, }: FiltersMultiSelectProps): React__default.JSX.Element;
|
|
30
29
|
|
|
31
30
|
export { type FilterGroup, type FiltersMultiSelectProps, FiltersMultiSelect as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
import { PillsOption, CheckboxPillsGroupProps } from './CheckboxPillsGroup.js';
|
|
4
3
|
|
|
@@ -26,6 +25,6 @@ type FiltersMultiSelectProps = {
|
|
|
26
25
|
loadingMinDurationMs?: number;
|
|
27
26
|
disabled?: boolean;
|
|
28
27
|
};
|
|
29
|
-
declare function FiltersMultiSelect({ groups, onChange, className, gap, color, open: controlledOpen, onToggleOpen, triggerLabel, showActiveCount, align, loading, loadingMinDurationMs, disabled, }: FiltersMultiSelectProps):
|
|
28
|
+
declare function FiltersMultiSelect({ groups, onChange, className, gap, color, open: controlledOpen, onToggleOpen, triggerLabel, showActiveCount, align, loading, loadingMinDurationMs, disabled, }: FiltersMultiSelectProps): React__default.JSX.Element;
|
|
30
29
|
|
|
31
30
|
export { type FilterGroup, type FiltersMultiSelectProps, FiltersMultiSelect as default };
|