@rendra-ui/web 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/README.md +11 -9
- package/bin/rendra.mjs +0 -0
- package/dist/base.css +1 -1
- package/dist/{button-DIcpJwK9.js → button-CO0x1yjg.js} +4 -4
- package/dist/{button-DIcpJwK9.js.map → button-CO0x1yjg.js.map} +1 -1
- package/dist/chart.js +5 -5
- package/dist/cli/auditar.js +1 -1
- package/dist/cli/codigos.js +2 -2
- package/dist/cli/help.js +1 -1
- package/dist/cli/trocar.js +2 -2
- package/dist/cli/typescript-loader.js +1 -1
- package/dist/{cn-DVPheE99.js → cn-BM6MSZpE.js} +2 -2
- package/dist/{cn-DVPheE99.js.map → cn-BM6MSZpE.js.map} +1 -1
- package/dist/{components-Cm2ezlPT.js → components-2fCoBfBU.js} +2 -2
- package/dist/{components-Cm2ezlPT.js.map → components-2fCoBfBU.js.map} +1 -1
- package/dist/components.css +1 -1
- package/dist/document-viewer.js +4 -4
- package/dist/{empty-state-DtyZAfYb.js → empty-state-8rIk7QlP.js} +3 -3
- package/dist/{empty-state-DtyZAfYb.js.map → empty-state-8rIk7QlP.js.map} +1 -1
- package/dist/index.js +34 -24
- package/dist/index.js.map +1 -1
- package/dist/{rendra-provider-cCnquOZy.js → rendra-provider-BC4KBTfU.js} +2 -2
- package/dist/{rendra-provider-cCnquOZy.js.map → rendra-provider-BC4KBTfU.js.map} +1 -1
- package/dist/rich-text-editor.js +3 -3
- package/dist/router-bridge.js +2 -2
- package/dist/tokens.css +1 -1
- package/dist/{tooltip-DyeuGPCc.js → tooltip-BLc_n2IB.js} +3 -3
- package/dist/{tooltip-DyeuGPCc.js.map → tooltip-BLc_n2IB.js.map} +1 -1
- package/dist/{use-breakpoint-BmXOZtF9.js → use-breakpoint-BqhYKT3L.js} +2 -2
- package/dist/{use-breakpoint-BmXOZtF9.js.map → use-breakpoint-BqhYKT3L.js.map} +1 -1
- package/dist/widget-grid.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! Rendra Design System v2.1
|
|
2
|
-
import { t as cn } from "./cn-
|
|
3
|
-
import { a as catalogByComponent, c as findComponentsWithoutDefault, d as findPresetCollisions, f as getCatalogEntry, i as assertCatalogIntegrity, l as findDuplicateCodes, n as CATALOG_EXCLUDED_FILES, o as filesMissingCatalogEntry, p as resolveCatalogCode, r as COMPONENT_CODE_PATTERN, s as findComponentsWithMultipleDefaults, t as CATALOG, u as findInvalidFormatCodes } from "./components-
|
|
4
|
-
import { i as usePrefersReducedMotion, n as buttonVariants, r as Spinner, t as Button } from "./button-
|
|
5
|
-
import { a as DropdownMenuContent, c as DropdownMenuLabel, d as DropdownMenuSeparator, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuCheckboxItem, l as DropdownMenuRadioGroup, m as DropdownMenuSubTrigger, n as TooltipProvider, o as DropdownMenuGroup, p as DropdownMenuSubContent, r as DropdownMenu, s as DropdownMenuItem, t as Tooltip, u as DropdownMenuRadioItem } from "./tooltip-
|
|
6
|
-
import { a as BrandContext, i as useBrand, n as BrandFeedbackIcon, r as feedbackLabels, t as EmptyState } from "./empty-state-
|
|
7
|
-
import { a as useRendraNavigate, i as useRendraLink, n as useCurrentPath, r as useRendraBreadcrumbs, t as RendraProvider } from "./rendra-provider-
|
|
8
|
-
import { n as useBreakpoint, t as breakpoints } from "./use-breakpoint-
|
|
1
|
+
/*! Rendra Design System v2.2.1 | MIT | © 2026 Bruno Magalhaes | brunomagalhaes.me */
|
|
2
|
+
import { t as cn } from "./cn-BM6MSZpE.js";
|
|
3
|
+
import { a as catalogByComponent, c as findComponentsWithoutDefault, d as findPresetCollisions, f as getCatalogEntry, i as assertCatalogIntegrity, l as findDuplicateCodes, n as CATALOG_EXCLUDED_FILES, o as filesMissingCatalogEntry, p as resolveCatalogCode, r as COMPONENT_CODE_PATTERN, s as findComponentsWithMultipleDefaults, t as CATALOG, u as findInvalidFormatCodes } from "./components-2fCoBfBU.js";
|
|
4
|
+
import { i as usePrefersReducedMotion, n as buttonVariants, r as Spinner, t as Button } from "./button-CO0x1yjg.js";
|
|
5
|
+
import { a as DropdownMenuContent, c as DropdownMenuLabel, d as DropdownMenuSeparator, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuCheckboxItem, l as DropdownMenuRadioGroup, m as DropdownMenuSubTrigger, n as TooltipProvider, o as DropdownMenuGroup, p as DropdownMenuSubContent, r as DropdownMenu, s as DropdownMenuItem, t as Tooltip, u as DropdownMenuRadioItem } from "./tooltip-BLc_n2IB.js";
|
|
6
|
+
import { a as BrandContext, i as useBrand, n as BrandFeedbackIcon, r as feedbackLabels, t as EmptyState } from "./empty-state-8rIk7QlP.js";
|
|
7
|
+
import { a as useRendraNavigate, i as useRendraLink, n as useCurrentPath, r as useRendraBreadcrumbs, t as RendraProvider } from "./rendra-provider-BC4KBTfU.js";
|
|
8
|
+
import { n as useBreakpoint, t as breakpoints } from "./use-breakpoint-BqhYKT3L.js";
|
|
9
9
|
import { ArrowDown, ArrowDownRight, ArrowLeft, ArrowRight, ArrowRightLeft, ArrowUp, ArrowUpRight, Bell, Bot, CalendarDays, Check, CheckCheck, CheckCircle2, ChevronDown, ChevronLeft, ChevronRight, ChevronsUpDown, Clock, Columns3, Download, EllipsisVertical, Eye, EyeOff, FileText, Film, Filter, Globe, GripVertical, Home, ImageIcon, ImagePlus, Info, LayoutTemplate, LogOut, Mail, MapPin, Menu, MessageCircle, MessagesSquare, Mic, Minus, Monitor, Moon, MoreHorizontal, Palette, PanelLeft, Paperclip, Pause, Pencil, Phone, Play, Plus, Reply, RotateCw, Search, Send, SkipForward, Smartphone, Smile, Star, Sun, Trash2, TriangleAlert, UploadCloud, User, VideoIcon, X, XCircle, Zap } from "lucide-react";
|
|
10
10
|
import { Accordion as Accordion$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible, ContextMenu, Dialog, Label as Label$1, NavigationMenu, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, VisuallyHidden } from "radix-ui";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -19,7 +19,7 @@ import { DayPicker } from "react-day-picker";
|
|
|
19
19
|
import { ptBR as ptBR$1 } from "react-day-picker/locale";
|
|
20
20
|
import { FormProvider, useController, useFormContext } from "react-hook-form";
|
|
21
21
|
import { Command } from "cmdk";
|
|
22
|
-
import {
|
|
22
|
+
import { columnFilteringFeature, columnVisibilityFeature, createExpandedRowModel, createFilteredRowModel, createPaginatedRowModel, createSortedRowModel, filterFn_includesString, globalFilteringFeature, rowExpandingFeature, rowPaginationFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_basic, tableFeatures, useTable } from "@tanstack/react-table";
|
|
23
23
|
import { Toaster as Toaster$1, toast as toast$1 } from "sonner";
|
|
24
24
|
import { z } from "zod";
|
|
25
25
|
//#region src/components/ui/accordion.tsx
|
|
@@ -7139,6 +7139,24 @@ function RowActions({ row, actions, mobile }) {
|
|
|
7139
7139
|
})] })]
|
|
7140
7140
|
});
|
|
7141
7141
|
}
|
|
7142
|
+
var tableFeatureSet = tableFeatures({
|
|
7143
|
+
rowSortingFeature,
|
|
7144
|
+
columnFilteringFeature,
|
|
7145
|
+
globalFilteringFeature,
|
|
7146
|
+
rowPaginationFeature,
|
|
7147
|
+
rowSelectionFeature,
|
|
7148
|
+
rowExpandingFeature,
|
|
7149
|
+
columnVisibilityFeature,
|
|
7150
|
+
sortedRowModel: createSortedRowModel(),
|
|
7151
|
+
filteredRowModel: createFilteredRowModel(),
|
|
7152
|
+
paginatedRowModel: createPaginatedRowModel(),
|
|
7153
|
+
expandedRowModel: createExpandedRowModel(),
|
|
7154
|
+
sortFns: {
|
|
7155
|
+
basic: sortFn_basic,
|
|
7156
|
+
alphanumeric: sortFn_alphanumeric
|
|
7157
|
+
},
|
|
7158
|
+
filterFns: { includesString: filterFn_includesString }
|
|
7159
|
+
});
|
|
7142
7160
|
/**
|
|
7143
7161
|
* Table única do sistema (TanStack Table). Tudo é prop: seleção, expansão, ordenação,
|
|
7144
7162
|
* busca, colunas visíveis, ações em massa e por linha, densidade e estados.
|
|
@@ -7236,9 +7254,10 @@ function Table({ data: dataProp, source, queryKey = "", columns: columnsProp, st
|
|
|
7236
7254
|
},
|
|
7237
7255
|
enableSorting: sortable && c.sortable !== false,
|
|
7238
7256
|
enableHiding: c.hideable !== false,
|
|
7239
|
-
|
|
7257
|
+
sortFn: c.kind === "number" || c.kind === "currency" || c.kind === "date" ? "basic" : "alphanumeric"
|
|
7240
7258
|
})), [columns, sortable]);
|
|
7241
|
-
const table =
|
|
7259
|
+
const table = useTable({
|
|
7260
|
+
features: tableFeatureSet,
|
|
7242
7261
|
data,
|
|
7243
7262
|
columns: defs,
|
|
7244
7263
|
getRowId: (r) => getRowId(r),
|
|
@@ -7258,19 +7277,10 @@ function Table({ data: dataProp, source, queryKey = "", columns: columnsProp, st
|
|
|
7258
7277
|
enableRowSelection: Boolean(selectable),
|
|
7259
7278
|
getRowCanExpand: () => Boolean(expandable),
|
|
7260
7279
|
globalFilterFn: "includesString",
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
manualSorting: true,
|
|
7266
|
-
manualFiltering: true,
|
|
7267
|
-
rowCount: server.total
|
|
7268
|
-
} : {
|
|
7269
|
-
getSortedRowModel: getSortedRowModel(),
|
|
7270
|
-
getFilteredRowModel: getFilteredRowModel(),
|
|
7271
|
-
...pageSize && !isMobile ? { getPaginationRowModel: getPaginationRowModel() } : {},
|
|
7272
|
-
autoResetPageIndex: true
|
|
7273
|
-
}
|
|
7280
|
+
manualSorting: remote,
|
|
7281
|
+
manualFiltering: remote,
|
|
7282
|
+
manualPagination: remote || !pageSize || isMobile,
|
|
7283
|
+
...remote ? { rowCount: server.total } : { autoResetPageIndex: true }
|
|
7274
7284
|
});
|
|
7275
7285
|
const colById = (id) => columns.find((c) => c.id === id);
|
|
7276
7286
|
const visibleCols = table.getVisibleLeafColumns().map((c) => colById(c.id));
|