@bizapps/ui 1.7.0 → 1.9.0

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/main.d.cts CHANGED
@@ -1279,6 +1279,12 @@ type AnimationTokens = typeof animation;
1279
1279
 
1280
1280
  declare function useAppForm<T extends ZodType>(schema: T, options?: Omit<UseFormProps<z.infer<T> & FieldValues>, 'resolver'>): react_hook_form.UseFormReturn<z.core.output<T> & FieldValues, any, z.core.output<T> & FieldValues>;
1281
1281
 
1282
+ /**
1283
+ * Brand logo assets served from the CDN.
1284
+ *
1285
+ * Keys are flat and prefixed by brand: unprefixed keys belong to Total Civil,
1286
+ * `millwork*` keys belong to Total Millwork.
1287
+ */
1282
1288
  declare const logos: {
1283
1289
  readonly color: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_Color.webp";
1284
1290
  readonly colorAna: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_Color-ANA.webp";
@@ -1288,6 +1294,9 @@ declare const logos: {
1288
1294
  readonly grayScale: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_gray_scale.webp";
1289
1295
  readonly monochBlack: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_monochB.webp";
1290
1296
  readonly monochOrange: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_monochO.webp";
1297
+ readonly isotype: "https://dibt9vplwriap.cloudfront.net/logos/Isotipo_Total_Color.webp";
1298
+ readonly millworkColor: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Millwork_Color.webp";
1299
+ readonly millworkNegative: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Millwork_Negative.webp";
1291
1300
  };
1292
1301
  type LogoKey = keyof typeof logos;
1293
1302
 
@@ -1355,11 +1364,23 @@ type SortDirection = 'asc' | 'desc' | false;
1355
1364
  type CellAlignment = 'left' | 'center' | 'right';
1356
1365
  interface ColumnMeta {
1357
1366
  align?: CellAlignment;
1367
+ /**
1368
+ * Per-column density override. This is NOT a width — use `width`, or the column
1369
+ * definition's top-level `size`, for that.
1370
+ */
1358
1371
  size?: TableCellSize;
1359
1372
  sortable?: boolean;
1360
1373
  filterable?: boolean;
1361
1374
  ellipsis?: boolean;
1362
1375
  variant?: 'default' | 'numeric';
1376
+ /**
1377
+ * Fixed column width, applied as both `width` and `min-width`. A number is treated as
1378
+ * pixels, a string as any CSS length (`'8rem'`, `'20%'`, `'100px'`).
1379
+ *
1380
+ * Authoritative only while `enableColumnResizing` is off. With resizing enabled the
1381
+ * rendered width comes from the column definition's top-level `size` / `minSize` /
1382
+ * `maxSize` and this value acts as a `min-width` floor only.
1383
+ */
1363
1384
  width?: string | number;
1364
1385
  className?: string;
1365
1386
  pinned?: 'left' | 'right' | false;
@@ -1491,6 +1512,31 @@ declare const TablePagination: react.MemoExoticComponent<typeof TablePaginationB
1491
1512
 
1492
1513
  declare function useTableContext<T = unknown>(): TableContextType<T>;
1493
1514
 
1515
+ /**
1516
+ * TanStack Table v8 data table with sorting, filtering, global search, pagination, row
1517
+ * selection, column visibility, resizing, density control, sticky headers, column pinning
1518
+ * and an automatic mobile card layout.
1519
+ *
1520
+ * Per-column presentation belongs in `meta` (`ColumnMeta`) on each column definition rather
1521
+ * than in per-cell `className` strings: `align`, `size` (density override), `sortable`,
1522
+ * `filterable`, `ellipsis`, `variant`, `width`, `className`, `pinned`, `cardLabel`,
1523
+ * `hideInCard` and `resizable`.
1524
+ *
1525
+ * Column width has two authorities. With `enableColumnResizing` off (the default),
1526
+ * `meta.width` drives both `width` and `min-width` on the header and body cells; a number is
1527
+ * pixels and a string is any CSS length (`'8rem'`, `'20%'`, `'100px'`). With
1528
+ * `enableColumnResizing` on, the rendered width instead comes from TanStack's own top-level
1529
+ * `size` / `minSize` / `maxSize` on the column definition (`size` defaults to 150px) and
1530
+ * `meta.width` degrades to a `min-width` floor. Note that `meta.size` is cell density, not a
1531
+ * width — the pixel width is the top-level `size`.
1532
+ *
1533
+ * The table element is `w-full` under the browser's default `table-layout: auto`, so `width`
1534
+ * is only a hint and `min-width` is what actually holds. Pass
1535
+ * `classNames={{ table: 'table-fixed' }}` when exact widths must be honoured.
1536
+ *
1537
+ * Set `tableId` to persist column visibility, sizing and density to `localStorage` under
1538
+ * `tcce-table:{tableId}:*`.
1539
+ */
1494
1540
  declare function DataTable<T>({ data, columns, size, variant, isLoading, stickyHeader, maxHeight, sorting, defaultSorting, onSortingChange, enableSorting, manualSorting, columnFilters, defaultColumnFilters, onColumnFiltersChange, enableFiltering, manualFiltering, onRowClick, classNames, getUniqueValues, emptyState, rowSelection, defaultRowSelection, onRowSelectionChange, enableRowSelection, onSelectedRowsChange, responsiveBreakpoint, disableResponsive, skeletonRowCount, onTableReady, tableId, globalFilter, defaultGlobalFilter, onGlobalFilterChange, columnVisibility, defaultColumnVisibility, onColumnVisibilityChange, columnSizing, defaultColumnSizing, onColumnSizingChange, enableColumnResizing, onSizeChange, toolbar, }: DataTableProps<T>): react.JSX.Element;
1495
1541
 
1496
1542
  interface FilterOptionProps {
package/dist/main.d.ts CHANGED
@@ -1279,6 +1279,12 @@ type AnimationTokens = typeof animation;
1279
1279
 
1280
1280
  declare function useAppForm<T extends ZodType>(schema: T, options?: Omit<UseFormProps<z.infer<T> & FieldValues>, 'resolver'>): react_hook_form.UseFormReturn<z.core.output<T> & FieldValues, any, z.core.output<T> & FieldValues>;
1281
1281
 
1282
+ /**
1283
+ * Brand logo assets served from the CDN.
1284
+ *
1285
+ * Keys are flat and prefixed by brand: unprefixed keys belong to Total Civil,
1286
+ * `millwork*` keys belong to Total Millwork.
1287
+ */
1282
1288
  declare const logos: {
1283
1289
  readonly color: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_Color.webp";
1284
1290
  readonly colorAna: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_Color-ANA.webp";
@@ -1288,6 +1294,9 @@ declare const logos: {
1288
1294
  readonly grayScale: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_gray_scale.webp";
1289
1295
  readonly monochBlack: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_monochB.webp";
1290
1296
  readonly monochOrange: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Total_monochO.webp";
1297
+ readonly isotype: "https://dibt9vplwriap.cloudfront.net/logos/Isotipo_Total_Color.webp";
1298
+ readonly millworkColor: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Millwork_Color.webp";
1299
+ readonly millworkNegative: "https://dibt9vplwriap.cloudfront.net/logos/Logo_Millwork_Negative.webp";
1291
1300
  };
1292
1301
  type LogoKey = keyof typeof logos;
1293
1302
 
@@ -1355,11 +1364,23 @@ type SortDirection = 'asc' | 'desc' | false;
1355
1364
  type CellAlignment = 'left' | 'center' | 'right';
1356
1365
  interface ColumnMeta {
1357
1366
  align?: CellAlignment;
1367
+ /**
1368
+ * Per-column density override. This is NOT a width — use `width`, or the column
1369
+ * definition's top-level `size`, for that.
1370
+ */
1358
1371
  size?: TableCellSize;
1359
1372
  sortable?: boolean;
1360
1373
  filterable?: boolean;
1361
1374
  ellipsis?: boolean;
1362
1375
  variant?: 'default' | 'numeric';
1376
+ /**
1377
+ * Fixed column width, applied as both `width` and `min-width`. A number is treated as
1378
+ * pixels, a string as any CSS length (`'8rem'`, `'20%'`, `'100px'`).
1379
+ *
1380
+ * Authoritative only while `enableColumnResizing` is off. With resizing enabled the
1381
+ * rendered width comes from the column definition's top-level `size` / `minSize` /
1382
+ * `maxSize` and this value acts as a `min-width` floor only.
1383
+ */
1363
1384
  width?: string | number;
1364
1385
  className?: string;
1365
1386
  pinned?: 'left' | 'right' | false;
@@ -1491,6 +1512,31 @@ declare const TablePagination: react.MemoExoticComponent<typeof TablePaginationB
1491
1512
 
1492
1513
  declare function useTableContext<T = unknown>(): TableContextType<T>;
1493
1514
 
1515
+ /**
1516
+ * TanStack Table v8 data table with sorting, filtering, global search, pagination, row
1517
+ * selection, column visibility, resizing, density control, sticky headers, column pinning
1518
+ * and an automatic mobile card layout.
1519
+ *
1520
+ * Per-column presentation belongs in `meta` (`ColumnMeta`) on each column definition rather
1521
+ * than in per-cell `className` strings: `align`, `size` (density override), `sortable`,
1522
+ * `filterable`, `ellipsis`, `variant`, `width`, `className`, `pinned`, `cardLabel`,
1523
+ * `hideInCard` and `resizable`.
1524
+ *
1525
+ * Column width has two authorities. With `enableColumnResizing` off (the default),
1526
+ * `meta.width` drives both `width` and `min-width` on the header and body cells; a number is
1527
+ * pixels and a string is any CSS length (`'8rem'`, `'20%'`, `'100px'`). With
1528
+ * `enableColumnResizing` on, the rendered width instead comes from TanStack's own top-level
1529
+ * `size` / `minSize` / `maxSize` on the column definition (`size` defaults to 150px) and
1530
+ * `meta.width` degrades to a `min-width` floor. Note that `meta.size` is cell density, not a
1531
+ * width — the pixel width is the top-level `size`.
1532
+ *
1533
+ * The table element is `w-full` under the browser's default `table-layout: auto`, so `width`
1534
+ * is only a hint and `min-width` is what actually holds. Pass
1535
+ * `classNames={{ table: 'table-fixed' }}` when exact widths must be honoured.
1536
+ *
1537
+ * Set `tableId` to persist column visibility, sizing and density to `localStorage` under
1538
+ * `tcce-table:{tableId}:*`.
1539
+ */
1494
1540
  declare function DataTable<T>({ data, columns, size, variant, isLoading, stickyHeader, maxHeight, sorting, defaultSorting, onSortingChange, enableSorting, manualSorting, columnFilters, defaultColumnFilters, onColumnFiltersChange, enableFiltering, manualFiltering, onRowClick, classNames, getUniqueValues, emptyState, rowSelection, defaultRowSelection, onRowSelectionChange, enableRowSelection, onSelectedRowsChange, responsiveBreakpoint, disableResponsive, skeletonRowCount, onTableReady, tableId, globalFilter, defaultGlobalFilter, onGlobalFilterChange, columnVisibility, defaultColumnVisibility, onColumnVisibilityChange, columnSizing, defaultColumnSizing, onColumnSizingChange, enableColumnResizing, onSizeChange, toolbar, }: DataTableProps<T>): react.JSX.Element;
1495
1541
 
1496
1542
  interface FilterOptionProps {
package/dist/main.js CHANGED
@@ -7080,6 +7080,7 @@ function useAppForm(schema, options) {
7080
7080
  // src/lib/cdn.ts
7081
7081
  var CDN_BASE = "https://dibt9vplwriap.cloudfront.net";
7082
7082
  var logos = {
7083
+ // Total Civil
7083
7084
  color: `${CDN_BASE}/logos/Logo_Total_Color.webp`,
7084
7085
  colorAna: `${CDN_BASE}/logos/Logo_Total_Color-ANA.webp`,
7085
7086
  colorAnaa: `${CDN_BASE}/logos/Logo_Total_Color-ANAA.webp`,
@@ -7087,7 +7088,11 @@ var logos = {
7087
7088
  positive: `${CDN_BASE}/logos/Logo_Total_Positive.webp`,
7088
7089
  grayScale: `${CDN_BASE}/logos/Logo_Total_gray_scale.webp`,
7089
7090
  monochBlack: `${CDN_BASE}/logos/Logo_Total_monochB.webp`,
7090
- monochOrange: `${CDN_BASE}/logos/Logo_Total_monochO.webp`
7091
+ monochOrange: `${CDN_BASE}/logos/Logo_Total_monochO.webp`,
7092
+ isotype: `${CDN_BASE}/logos/Isotipo_Total_Color.webp`,
7093
+ // Total Millwork
7094
+ millworkColor: `${CDN_BASE}/logos/Logo_Millwork_Color.webp`,
7095
+ millworkNegative: `${CDN_BASE}/logos/Logo_Millwork_Negative.webp`
7091
7096
  };
7092
7097
  var CONFETTI_COLORS = [
7093
7098
  "#22205f",