@stackone/malachite 2.8.0 → 2.10.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/COMPONENTS.md +2 -2
- package/dist/{CodeBlockHighlighter-DUF_j12X.js → CodeBlockHighlighter-D2UohsxL.js} +2 -2
- package/dist/{CodeBlockHighlighter-DUF_j12X.js.map → CodeBlockHighlighter-D2UohsxL.js.map} +1 -1
- package/dist/{index-Cs1OOumK.js → index-B6NoJxaz.js} +4263 -4137
- package/dist/index-B6NoJxaz.js.map +1 -0
- package/dist/index.d.ts +17 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-Cs1OOumK.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -451,6 +451,8 @@ declare interface CodeBlockProps {
|
|
|
451
451
|
* as further grammars are registered in CodeBlockHighlighter.
|
|
452
452
|
*/
|
|
453
453
|
language?: 'yaml' | 'cedar';
|
|
454
|
+
/** How much of a `json` tree starts collapsed: `true` all of it, a number below that depth. */
|
|
455
|
+
collapsed?: boolean | number;
|
|
454
456
|
}
|
|
455
457
|
|
|
456
458
|
export declare interface CodeTextProps {
|
|
@@ -2200,6 +2202,8 @@ export declare interface SidePanelProps {
|
|
|
2200
2202
|
'aria-labelledby'?: string;
|
|
2201
2203
|
/** Whether the body gets default padding. Default: true. */
|
|
2202
2204
|
bodyPadding?: boolean;
|
|
2205
|
+
/** `above-app-overlays` lifts the overlay stack clear of chrome pinned near max-int. */
|
|
2206
|
+
stacking?: 'default' | 'above-app-overlays';
|
|
2203
2207
|
children: default_2.ReactNode;
|
|
2204
2208
|
}
|
|
2205
2209
|
|
|
@@ -2418,8 +2422,10 @@ export declare interface SurfaceRowProps {
|
|
|
2418
2422
|
onClick?: (event: default_2.MouseEvent) => void;
|
|
2419
2423
|
/** Renders the clickable row as an anchor instead of a button. */
|
|
2420
2424
|
href?: string;
|
|
2421
|
-
/**
|
|
2425
|
+
/** Paints the row with `Table`'s selected treatment; drives `aria-checked` for a `radio`/`checkbox` role. */
|
|
2422
2426
|
selected?: boolean;
|
|
2427
|
+
/** Content pinned right, outside the row button, so it may hold its own control. */
|
|
2428
|
+
trailing?: default_2.ReactNode;
|
|
2423
2429
|
/** ARIA role for a clickable row, e.g. `radio`/`checkbox` (wrap the list in a `radiogroup`). */
|
|
2424
2430
|
role?: default_2.AriaRole;
|
|
2425
2431
|
'aria-label'?: string;
|
|
@@ -2449,7 +2455,7 @@ export declare interface TabItem {
|
|
|
2449
2455
|
disabled?: boolean;
|
|
2450
2456
|
}
|
|
2451
2457
|
|
|
2452
|
-
export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, rowClassName, rowVariant, onRow, onClickRow, selectedRowKey, scrollSelectedIntoView, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
2458
|
+
export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, rowClassName, rowVariant, onRow, onClickRow, selectedRowKey, scrollSelectedIntoView, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, onVisibleOrderChange, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
2453
2459
|
|
|
2454
2460
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
2455
2461
|
title: string | default_2.ReactNode;
|
|
@@ -2505,7 +2511,8 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
2505
2511
|
onClickRow?: (record: T, index: number) => void;
|
|
2506
2512
|
/** Row the master-detail view is showing, resolved against `rowKey`. Controlled, so
|
|
2507
2513
|
* selection can change without a row click and the highlight follows. Unlike
|
|
2508
|
-
* `rowSelection` it paints no control — a tint, an accent bar and `aria-current`.
|
|
2514
|
+
* `rowSelection` it paints no control — a tint, an accent bar and `aria-current`.
|
|
2515
|
+
* Follows its record through a sort only with a resolvable `rowKey`. */
|
|
2509
2516
|
selectedRowKey?: default_2.Key;
|
|
2510
2517
|
/** Whether a selection change scrolls the row into view. Default true.
|
|
2511
2518
|
*
|
|
@@ -2536,6 +2543,10 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
2536
2543
|
scrollX?: boolean;
|
|
2537
2544
|
rowSection?: (record: T) => string;
|
|
2538
2545
|
renderSectionDivider?: (sectionKey: string, records: T[]) => default_2.ReactNode;
|
|
2546
|
+
/** Reports the rows in render order — sorted and section-grouped, so not `data` order,
|
|
2547
|
+
* and always all of `data`. An equal-but-new array does not re-fire, so a host cannot loop.
|
|
2548
|
+
* Needs a `rowKey`, or records that keep their object identity across renders. */
|
|
2549
|
+
onVisibleOrderChange?: TableVisibleOrderHandler<T>;
|
|
2539
2550
|
/** Windowed rendering for large datasets (detached variant only), powered by
|
|
2540
2551
|
* TanStack Virtual: only rows near the viewport stay mounted; spacers keep the
|
|
2541
2552
|
* scrollbar reflecting the full list. The table body becomes the scroll
|
|
@@ -2581,6 +2592,9 @@ export declare type TableSize = 'small' | 'medium' | 'large';
|
|
|
2581
2592
|
|
|
2582
2593
|
export declare type TableType = 'default' | 'compact' | 'bordered';
|
|
2583
2594
|
|
|
2595
|
+
/** Receives the table's rows in render order — see `Table`'s `onVisibleOrderChange`. */
|
|
2596
|
+
export declare type TableVisibleOrderHandler<T = Record<string, unknown>> = (records: readonly T[]) => void;
|
|
2597
|
+
|
|
2584
2598
|
export declare const Tabs: default_2.FC<TabsProps>;
|
|
2585
2599
|
|
|
2586
2600
|
export declare interface TabsProps {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as T, n as u, o as g, p as h, q as C, r as F, s as B, t as y, D as w, u as f, v as x, w as A, F as L, x as b, y as P, z as k, E as v, G as D, H as M, I as z, J as I, K as R, L as N, M as G, N as H, O as V, P as E, Q as J, R as K, S as j, T as q, U as O, V as W, W as Q, X as U, Y as X, Z as Y, $ as Z, a0 as $, a1 as _, a2 as aa, a3 as ea, a4 as sa, a5 as oa, a6 as ta, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Sa, ag as Ta, ah as ua, ai as ga, aj as ha, ak as Ca, al as Fa, am as Ba, an as ya, ao as wa, ap as fa, aq as xa, ar as Aa, as as La, at as ba, au as Pa, av as ka, aw as va, ax as Da, ay as Ma, az as za, aA as Ia, aB as Ra, aC as Na, aD as Ga, aE as Ha, aF as Va, aG as Ea, aH as Ja, aI as Ka, aJ as ja, aK as qa, aL as Oa, aM as Wa, aN as Qa } from "./index-
|
|
1
|
+
import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as T, n as u, o as g, p as h, q as C, r as F, s as B, t as y, D as w, u as f, v as x, w as A, F as L, x as b, y as P, z as k, E as v, G as D, H as M, I as z, J as I, K as R, L as N, M as G, N as H, O as V, P as E, Q as J, R as K, S as j, T as q, U as O, V as W, W as Q, X as U, Y as X, Z as Y, $ as Z, a0 as $, a1 as _, a2 as aa, a3 as ea, a4 as sa, a5 as oa, a6 as ta, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Sa, ag as Ta, ah as ua, ai as ga, aj as ha, ak as Ca, al as Fa, am as Ba, an as ya, ao as wa, ap as fa, aq as xa, ar as Aa, as as La, at as ba, au as Pa, av as ka, aw as va, ax as Da, ay as Ma, az as za, aA as Ia, aB as Ra, aC as Na, aD as Ga, aE as Ha, aF as Va, aG as Ea, aH as Ja, aI as Ka, aJ as ja, aK as qa, aL as Oa, aM as Wa, aN as Qa } from "./index-B6NoJxaz.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
o as ActionBar,
|
package/package.json
CHANGED