@stackone/malachite 0.63.2 → 0.64.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/{CodeBlockHighlighter--Mni7rlP.js → CodeBlockHighlighter-Bs6Sq3lB.js} +2 -2
- package/dist/{CodeBlockHighlighter--Mni7rlP.js.map → CodeBlockHighlighter-Bs6Sq3lB.js.map} +1 -1
- package/dist/{index-CKORcSj4.js → index-C3bTzOZ2.js} +3326 -3126
- package/dist/index-C3bTzOZ2.js.map +1 -0
- package/dist/index.d.ts +28 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-CKORcSj4.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1037,6 +1037,13 @@ export declare interface MalachiteTheme {
|
|
|
1037
1037
|
foreground: string;
|
|
1038
1038
|
hoverBackground: string;
|
|
1039
1039
|
border: string;
|
|
1040
|
+
/** `Table`'s `selectedRowKey` tint. Must stay distinguishable from
|
|
1041
|
+
* `hoverBackground`: a selected row keeps this tint under the cursor. */
|
|
1042
|
+
selectedBackground: string;
|
|
1043
|
+
/** Leading accent bar on that same row. */
|
|
1044
|
+
selectedAccent: string;
|
|
1045
|
+
/** Cascades, so cells setting their own colour are deliberately unaffected. */
|
|
1046
|
+
selectedForeground: string;
|
|
1040
1047
|
};
|
|
1041
1048
|
border: string;
|
|
1042
1049
|
borderedRow: {
|
|
@@ -1248,7 +1255,15 @@ export declare interface PartialMalachiteTheme {
|
|
|
1248
1255
|
dropdown?: Partial<MalachiteTheme['colors']['dropdown']>;
|
|
1249
1256
|
tag?: Partial<MalachiteTheme['colors']['tag']>;
|
|
1250
1257
|
numberTag?: Partial<MalachiteTheme['colors']['numberTag']>;
|
|
1251
|
-
table?: Partial<MalachiteTheme['colors']['table']
|
|
1258
|
+
table?: Partial<Omit<MalachiteTheme['colors']['table'], 'header' | 'row' | 'borderedRow' | 'rowVariant' | 'error'>> & {
|
|
1259
|
+
header?: Partial<MalachiteTheme['colors']['table']['header']>;
|
|
1260
|
+
row?: Partial<MalachiteTheme['colors']['table']['row']>;
|
|
1261
|
+
borderedRow?: Partial<MalachiteTheme['colors']['table']['borderedRow']>;
|
|
1262
|
+
rowVariant?: {
|
|
1263
|
+
[K in keyof MalachiteTheme['colors']['table']['rowVariant']]?: Partial<MalachiteTheme['colors']['table']['rowVariant'][K]>;
|
|
1264
|
+
};
|
|
1265
|
+
error?: Partial<MalachiteTheme['colors']['table']['error']>;
|
|
1266
|
+
};
|
|
1252
1267
|
text?: Partial<MalachiteTheme['colors']['text']>;
|
|
1253
1268
|
codeBlock?: Partial<MalachiteTheme['colors']['codeBlock']>;
|
|
1254
1269
|
};
|
|
@@ -1685,7 +1700,7 @@ export declare interface TabItem {
|
|
|
1685
1700
|
disabled?: boolean;
|
|
1686
1701
|
}
|
|
1687
1702
|
|
|
1688
|
-
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, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
1703
|
+
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;
|
|
1689
1704
|
|
|
1690
1705
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
1691
1706
|
title: string | default_2.ReactNode;
|
|
@@ -1739,6 +1754,16 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
1739
1754
|
rowVariant?: (record: T, index: number) => RowVariant | undefined;
|
|
1740
1755
|
onRow?: (record: T, index: number) => TableRowActions<T>;
|
|
1741
1756
|
onClickRow?: (record: T, index: number) => void;
|
|
1757
|
+
/** Row the master-detail view is showing, resolved against `rowKey`. Controlled, so
|
|
1758
|
+
* selection can change without a row click and the highlight follows. Unlike
|
|
1759
|
+
* `rowSelection` it paints no control — a tint, an accent bar and `aria-current`. */
|
|
1760
|
+
selectedRowKey?: default_2.Key;
|
|
1761
|
+
/** Whether a selection change scrolls the row into view. Default true.
|
|
1762
|
+
*
|
|
1763
|
+
* Set `false` when the initial key comes from a URL: the reveal uses `scrollIntoView`,
|
|
1764
|
+
* which walks every scrollable ancestor, so a deep-linked row below the fold jumps the
|
|
1765
|
+
* page on load. Selection still highlights; only the scroll is suppressed. */
|
|
1766
|
+
scrollSelectedIntoView?: boolean;
|
|
1742
1767
|
rowSelection?: TableRowSelection<T>;
|
|
1743
1768
|
pagination?: {
|
|
1744
1769
|
current?: number;
|
|
@@ -1886,7 +1911,7 @@ declare interface TextAreaProps {
|
|
|
1886
1911
|
|
|
1887
1912
|
declare type TextAreaSize = 'small' | 'medium' | 'large';
|
|
1888
1913
|
|
|
1889
|
-
export declare type TextColor = 'primary' | 'secondary' | 'dimmed' | 'placeholder' | 'emphasis' | 'muted' | 'destructive' | 'success' | 'highlight' | 'warning' | 'error' | 'link';
|
|
1914
|
+
export declare type TextColor = 'primary' | 'secondary' | 'dimmed' | 'placeholder' | 'emphasis' | 'muted' | 'destructive' | 'success' | 'highlight' | 'warning' | 'error' | 'link' | 'inherit';
|
|
1890
1915
|
|
|
1891
1916
|
export declare interface TextProps {
|
|
1892
1917
|
color?: TextColor;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as t, d as o, e as i, B as r, f as n, g as l, h as p, i as T, j as d, k as m, l as S, m as c, n as h, o as u, D as g, p as C, q as w, r as y, F, s as x, t as f, u as v, v as k, w as B, x as L, y as P, z as b, I as A, K as D, L as z, E as R, M, G as I, N, O as V, P as j, H as q, J as E, Q as G, R as H, S as J, T as K, 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 ta, a6 as oa, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as Ta, ad as da, ae as ma, af as Sa, ag as ca, ah as ha, ai as ua, aj as ga, ak as Ca, al as wa, am as ya, an as Fa, ao as xa, ap as fa, aq as va, ar as ka, as as Ba, at as La, au as Pa, av as ba, aw as Aa } from "./index-
|
|
1
|
+
import { A as s, c as t, d as o, e as i, B as r, f as n, g as l, h as p, i as T, j as d, k as m, l as S, m as c, n as h, o as u, D as g, p as C, q as w, r as y, F, s as x, t as f, u as v, v as k, w as B, x as L, y as P, z as b, I as A, K as D, L as z, E as R, M, G as I, N, O as V, P as j, H as q, J as E, Q as G, R as H, S as J, T as K, 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 ta, a6 as oa, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as Ta, ad as da, ae as ma, af as Sa, ag as ca, ah as ha, ai as ua, aj as ga, ak as Ca, al as wa, am as ya, an as Fa, ao as xa, ap as fa, aq as va, ar as ka, as as Ba, at as La, au as Pa, av as ba, aw as Aa } from "./index-C3bTzOZ2.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
t as ActionMenu,
|