kaleido-ui 0.2.4 → 0.2.5
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 +45 -10
- package/dist/web/{chunk-G373WZMN.js → chunk-3CHDKHXW.js} +1 -1
- package/dist/web/{chunk-7NS5S2PG.js → chunk-4BTXTIE6.js} +2 -2
- package/dist/web/{chunk-WWF7IJBF.js → chunk-4L55ANVR.js} +11 -11
- package/dist/web/{chunk-NSA777UY.js → chunk-536NL4X2.js} +4 -4
- package/dist/web/{chunk-XPHFJPUQ.js → chunk-5INE4WNW.js} +1 -1
- package/dist/web/{chunk-LFAORJQK.js → chunk-5NCVH6N5.js} +2 -2
- package/dist/web/{chunk-QXCCUYNY.js → chunk-AMIAAHZM.js} +1 -1
- package/dist/web/{chunk-DH7VXKGM.js → chunk-AU5ZGWGA.js} +7 -7
- package/dist/web/{chunk-76DAZT7Q.js → chunk-AVJ56TMD.js} +4 -4
- package/dist/web/{chunk-O6NPTMDN.js → chunk-AWKCO62W.js} +1 -1
- package/dist/web/{chunk-ZXCT3Y6P.js → chunk-BYHIH2LP.js} +1 -1
- package/dist/web/{chunk-7YUPXESC.js → chunk-CPIM2QKZ.js} +1 -1
- package/dist/web/{chunk-EK5N3ZPW.js → chunk-CXLGQSHM.js} +4 -4
- package/dist/web/{chunk-L2UPQLY7.js → chunk-CXPYTWEC.js} +1 -1
- package/dist/web/{chunk-2Z6KFK4Z.js → chunk-CZGN7SQH.js} +1 -1
- package/dist/web/{chunk-PTSOVDKH.js → chunk-D5CPIS6B.js} +1 -1
- package/dist/web/{chunk-JZ3BUM5L.js → chunk-DV66AZXI.js} +11 -11
- package/dist/web/{chunk-LZ6PIXUO.js → chunk-DZMOH67F.js} +2 -2
- package/dist/web/{chunk-IV6AAVUE.js → chunk-EBQ35SOM.js} +4 -4
- package/dist/web/{chunk-R3IIXFGK.js → chunk-EXWE5KM6.js} +1 -1
- package/dist/web/{chunk-GMJGTSCQ.js → chunk-G26YNXL3.js} +4 -4
- package/dist/web/{chunk-QCQRA6L5.js → chunk-GEXPB5CG.js} +4 -4
- package/dist/web/{chunk-UK6ZL4MX.js → chunk-GX5URFML.js} +1 -1
- package/dist/web/{chunk-VZF5C3C6.js → chunk-HKF7IPXV.js} +4 -4
- package/dist/web/{chunk-JY73M73T.js → chunk-HKIYPISK.js} +8 -8
- package/dist/web/{chunk-QBZSLR7U.js → chunk-HLPL5AHD.js} +1 -1
- package/dist/web/{chunk-TBEKRQGW.js → chunk-HO65ENYH.js} +1 -1
- package/dist/web/{chunk-PS7Q6MMU.js → chunk-I2N3HZ4M.js} +1 -1
- package/dist/web/{chunk-S2ICIIH2.js → chunk-I7KNV2UC.js} +6 -6
- package/dist/web/{chunk-Z5LVT3BD.js → chunk-INKE5FS6.js} +7 -7
- package/dist/web/{chunk-HDLOPDFX.js → chunk-K7JVP24O.js} +6 -6
- package/dist/web/{chunk-A3TKIXSI.js → chunk-KDNYIMGR.js} +10 -10
- package/dist/web/{chunk-IK32AIOS.js → chunk-KMQN66HU.js} +1 -1
- package/dist/web/{chunk-Y3W6LOOE.js → chunk-LYLWGJ4R.js} +4 -4
- package/dist/web/{chunk-VUGV3ELU.js → chunk-NNGVB3US.js} +7 -7
- package/dist/web/{chunk-CRDCVB5X.js → chunk-OZXDXNMR.js} +31 -17
- package/dist/web/{chunk-TMK3SVYI.js → chunk-PIXLIWSO.js} +1 -1
- package/dist/web/{chunk-FWOIRFV5.js → chunk-QGWVZ5NG.js} +5 -5
- package/dist/web/{chunk-M6RXTQEL.js → chunk-QLUUM53Z.js} +6 -6
- package/dist/web/{chunk-DXFFYCU3.js → chunk-QTZT7QMI.js} +2 -2
- package/dist/web/{chunk-Z5O67WTL.js → chunk-RULT57JR.js} +1 -1
- package/dist/web/{chunk-TPGNO74K.js → chunk-RWJHJMVJ.js} +4 -4
- package/dist/web/{chunk-YNB4SSLD.js → chunk-SUOATMIA.js} +8 -8
- package/dist/web/{chunk-QFIGSIXA.js → chunk-SVYDLG2C.js} +6 -6
- package/dist/web/{chunk-4246Y2F2.js → chunk-T2NBG4KF.js} +7 -7
- package/dist/web/{chunk-DNHRMPKI.js → chunk-TAA6PO5V.js} +6 -6
- package/dist/web/{chunk-PCKRLEAO.js → chunk-TJGHAD5O.js} +1 -1
- package/dist/web/{chunk-BY2KCPTX.js → chunk-V3UI2XX7.js} +9 -9
- package/dist/web/{chunk-AP7Q2FCS.js → chunk-VNL2QI5B.js} +1 -1
- package/dist/web/{chunk-GX7GBHJ6.js → chunk-W4G74KFZ.js} +5 -5
- package/dist/web/{chunk-2OGYEUYV.js → chunk-XIMTRQZ3.js} +1 -1
- package/dist/web/{chunk-4QLR4ZNK.js → chunk-YFYAMVTL.js} +10 -10
- package/dist/web/{chunk-5BNDC7M4.js → chunk-YLP46BJK.js} +2 -2
- package/dist/web/{chunk-2GNXC446.js → chunk-YMM73FLL.js} +2 -2
- package/dist/web/components/account-capabilities-card.js +6 -6
- package/dist/web/components/account-menu.js +1 -1
- package/dist/web/components/account-settings-shared.js +5 -5
- package/dist/web/components/account-status-tabs.js +8 -8
- package/dist/web/components/activity-detail-row.js +10 -10
- package/dist/web/components/activity-filter-bar.js +6 -6
- package/dist/web/components/activity-list.js +8 -8
- package/dist/web/components/activity-network-filters.js +5 -5
- package/dist/web/components/activity-row.js +1 -1
- package/dist/web/components/activity-type-tabs.js +5 -5
- package/dist/web/components/alert-banner.js +1 -1
- package/dist/web/components/app-icon.js +4 -4
- package/dist/web/components/asset-card.js +7 -7
- package/dist/web/components/asset-icon.js +3 -3
- package/dist/web/components/asset-selector.js +8 -8
- package/dist/web/components/balance-breakdown.js +6 -6
- package/dist/web/components/basic-collapsible.js +3 -3
- package/dist/web/components/bottom-nav.js +1 -1
- package/dist/web/components/bottom-sheet.js +1 -1
- package/dist/web/components/btc-unified-receive.js +10 -10
- package/dist/web/components/charts/bar-chart.js +5 -5
- package/dist/web/components/charts/bar-list.js +5 -5
- package/dist/web/components/charts/core.js +4 -4
- package/dist/web/components/charts/donut-chart.js +5 -5
- package/dist/web/components/charts/index.js +11 -11
- package/dist/web/components/charts/line-chart.js +5 -5
- package/dist/web/components/charts/meter.js +5 -5
- package/dist/web/components/charts/mixed-chart.js +5 -5
- package/dist/web/components/charts/scatter-chart.js +5 -5
- package/dist/web/components/code-block.js +10 -10
- package/dist/web/components/confirm-dialog.js +3 -3
- package/dist/web/components/copy-button.js +9 -9
- package/dist/web/components/copyable.js +10 -10
- package/dist/web/components/date-range-filter.js +3 -3
- package/dist/web/components/deposit-asset-selection.js +8 -8
- package/dist/web/components/deposit-generated-view.js +9 -9
- package/dist/web/components/deposit-invoice-generation.js +16 -16
- package/dist/web/components/deposit-network-default-modal.js +4 -4
- package/dist/web/components/deposit-pre-generation.js +3 -3
- package/dist/web/components/deposit-success-screen.js +10 -10
- package/dist/web/components/deposit-ui-shared.js +6 -6
- package/dist/web/components/disclosure-card.js +3 -3
- package/dist/web/components/error-boundary.js +1 -1
- package/dist/web/components/extension-page-frame.js +4 -4
- package/dist/web/components/filter-bar.js +4 -4
- package/dist/web/components/filter-dropdown.js +3 -3
- package/dist/web/components/floating-notice.js +2 -2
- package/dist/web/components/info-chip.js +8 -8
- package/dist/web/components/info-panel.js +1 -1
- package/dist/web/components/inline-selector.js +2 -2
- package/dist/web/components/instants-statement.js +10 -10
- package/dist/web/components/kaleidoscope-hero-animation.js +4 -4
- package/dist/web/components/list-field.js +2 -2
- package/dist/web/components/metric-card.js +1 -1
- package/dist/web/components/network-badge.js +3 -3
- package/dist/web/components/network-icon.js +2 -2
- package/dist/web/components/network-status-chip.js +4 -4
- package/dist/web/components/one-time-secret-dialog.js +4 -4
- package/dist/web/components/option-selector.js +3 -3
- package/dist/web/components/page-header.js +2 -2
- package/dist/web/components/page-shell.js +2 -2
- package/dist/web/components/pager.js +2 -2
- package/dist/web/components/period-select.js +5 -5
- package/dist/web/components/query-state.js +1 -1
- package/dist/web/components/read-status.js +2 -2
- package/dist/web/components/record-list.js +3 -3
- package/dist/web/components/recovery-phrase-card.js +10 -10
- package/dist/web/components/secret-reveal-card.js +10 -10
- package/dist/web/components/setting-item.js +2 -2
- package/dist/web/components/settings-tile.js +5 -5
- package/dist/web/components/status-badge.js +1 -1
- package/dist/web/components/status-icon-badge.js +1 -1
- package/dist/web/components/stepper-number-input.js +2 -2
- package/dist/web/components/swap-badge.js +4 -4
- package/dist/web/components/swap-input-card.js +10 -10
- package/dist/web/components/swap-step-list.js +2 -2
- package/dist/web/components/theme-toggle.js +3 -3
- package/dist/web/components/transaction-card.js +2 -2
- package/dist/web/components/trend-chart.js +5 -5
- package/dist/web/components/value-list.js +10 -10
- package/dist/web/components/wallet-asset-list.js +8 -8
- package/dist/web/components/withdraw-amount-input.js +2 -2
- package/dist/web/components/withdraw-confirmation.js +5 -5
- package/dist/web/components/withdraw-destination-input.js +2 -2
- package/dist/web/components/withdraw-success.js +2 -2
- package/dist/web/icons/public.js +1 -1
- package/dist/web/index.cjs +29 -14
- package/dist/web/index.d.cts +16 -3
- package/dist/web/index.d.ts +16 -3
- package/dist/web/index.js +137 -137
- package/dist/web/primitives/collapsible.js +2 -2
- package/dist/web/primitives/dialog.js +2 -2
- package/dist/web/primitives/drawer.js +3 -3
- package/dist/web/primitives/dropdown-menu.js +1 -1
- package/dist/web/primitives/icon-button.js +1 -1
- package/dist/web/primitives/icon.js +1 -1
- package/dist/web/primitives/menu-search.js +1 -1
- package/dist/web/primitives/number-input.js +2 -2
- package/dist/web/primitives/select.js +2 -2
- package/dist/web/primitives/table.js +3 -3
- package/dist/web/primitives/toast.js +2 -2
- package/dist/web/primitives/toaster.js +5 -5
- package/package.json +1 -1
- package/dist/web/{chunk-2VAS6VYJ.js → chunk-7L35JISL.js} +3 -3
- package/dist/web/{chunk-4MLPMRXA.js → chunk-7L7DQFHJ.js} +3 -3
- package/dist/web/{chunk-5PZ2XVWL.js → chunk-7Y7FEBKK.js} +3 -3
- package/dist/web/{chunk-LZ723UCB.js → chunk-D2ZG6TZM.js} +3 -3
- package/dist/web/{chunk-TCFHH5TE.js → chunk-DUAFJ3CX.js} +6 -6
- package/dist/web/{chunk-ZPNGHBKB.js → chunk-DY72P3EE.js} +5 -5
- package/dist/web/{chunk-JWMFTRDC.js → chunk-IWDBETXQ.js} +3 -3
- package/dist/web/{chunk-XCQGJYGF.js → chunk-IZCLPO4E.js} +3 -3
- package/dist/web/{chunk-62HIDJCD.js → chunk-MKMZH4XD.js} +3 -3
- package/dist/web/{chunk-IMER4KGH.js → chunk-NHOCTXPF.js} +3 -3
- package/dist/web/{chunk-WURSWAKE.js → chunk-NXPVF5WX.js} +3 -3
- package/dist/web/{chunk-YTXWYWVD.js → chunk-O4IIYGDL.js} +3 -3
- package/dist/web/{chunk-6IBQJIHT.js → chunk-Q2IXLUSM.js} +3 -3
- package/dist/web/{chunk-RV7Z3B3V.js → chunk-RA5YGBRB.js} +3 -3
- package/dist/web/{chunk-2REWXJEN.js → chunk-SGXLWU4V.js} +5 -5
- package/dist/web/{chunk-ZRIBB4EB.js → chunk-SIE2FP2T.js} +3 -3
- package/dist/web/{chunk-SJNOBBU5.js → chunk-U2UWLSDG.js} +3 -3
- package/dist/web/{chunk-DDMDRAD6.js → chunk-VAMCLWLF.js} +6 -6
- package/dist/web/{chunk-LYCLVP26.js → chunk-WBW5E6LC.js} +3 -3
- package/dist/web/{chunk-27CY5EHL.js → chunk-X3MYWPNO.js} +6 -6
- package/dist/web/{chunk-6VKWG5FJ.js → chunk-XMUXOKIP.js} +3 -3
- package/dist/web/{chunk-2NCH2ZDU.js → chunk-XYNURYMC.js} +3 -3
- package/dist/web/{chunk-C7YIQDGQ.js → chunk-Y2W5YG6Y.js} +3 -3
- package/dist/web/{chunk-Z2SS7UJ4.js → chunk-YRRZ22OK.js} +3 -3
- package/dist/web/{chunk-A3XHFJ6J.js → chunk-Z3H2FQVX.js} +3 -3
- package/dist/web/{chunk-KIMWCG5N.js → chunk-ZDCKYQKS.js} +3 -3
package/dist/web/icons/public.js
CHANGED
|
@@ -17,6 +17,7 @@ import "../chunk-OWSKP527.js";
|
|
|
17
17
|
import {
|
|
18
18
|
IconGlyph
|
|
19
19
|
} from "../chunk-YQQ7GDLZ.js";
|
|
20
|
+
import "../chunk-PMGIJMRO.js";
|
|
20
21
|
import {
|
|
21
22
|
AccountBalanceWallet,
|
|
22
23
|
Add,
|
|
@@ -127,7 +128,6 @@ import {
|
|
|
127
128
|
VisibilityOff,
|
|
128
129
|
Warning
|
|
129
130
|
} from "../chunk-XXH4TYKZ.js";
|
|
130
|
-
import "../chunk-PMGIJMRO.js";
|
|
131
131
|
export {
|
|
132
132
|
AccountBalanceWallet,
|
|
133
133
|
AccountBalanceWalletFilled,
|
package/dist/web/index.cjs
CHANGED
|
@@ -11822,6 +11822,7 @@ function BarList({
|
|
|
11822
11822
|
max,
|
|
11823
11823
|
sort = "none",
|
|
11824
11824
|
showPercent = true,
|
|
11825
|
+
labelWidth,
|
|
11825
11826
|
empty,
|
|
11826
11827
|
className,
|
|
11827
11828
|
...head
|
|
@@ -11832,40 +11833,54 @@ function BarList({
|
|
|
11832
11833
|
const sum = rows.reduce((acc, item) => acc + Math.max(0, item.value), 0);
|
|
11833
11834
|
const percentOf = (item) => formatPercent(item.percent ?? (sum > 0 ? Math.max(0, item.value) / sum : 0));
|
|
11834
11835
|
const framed = head.title !== void 0 || (head.timeframes?.length ?? 0) > 0;
|
|
11836
|
+
const label_ = labelWidth ? `minmax(0,${labelWidth})` : "auto";
|
|
11837
|
+
const wideColumns = showPercent ? `${label_} 1fr auto auto` : `${label_} 1fr auto`;
|
|
11835
11838
|
const list = /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11836
11839
|
"ol",
|
|
11837
11840
|
{
|
|
11838
11841
|
"data-slot": "bar-list",
|
|
11839
11842
|
"aria-label": label,
|
|
11840
11843
|
className: cn(
|
|
11841
|
-
"m-0 grid list-none items-center gap-x-3 gap-y-2
|
|
11844
|
+
"m-0 grid list-none gap-y-3 p-0 text-caption sm:items-center sm:gap-x-3 sm:gap-y-2",
|
|
11845
|
+
"sm:[grid-template-columns:var(--bar-list-columns)]",
|
|
11842
11846
|
// Under a head, a little more air than the plots' own top margin.
|
|
11843
11847
|
framed && "pt-2",
|
|
11844
|
-
showPercent ? "grid-cols-[auto_1fr_auto_auto]" : "grid-cols-[auto_1fr_auto]",
|
|
11845
11848
|
className
|
|
11846
11849
|
),
|
|
11850
|
+
style: { "--bar-list-columns": wideColumns },
|
|
11847
11851
|
children: rows.map((item) => {
|
|
11848
11852
|
const share = Math.max(0, item.value) / top;
|
|
11849
11853
|
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
11850
11854
|
"li",
|
|
11851
11855
|
{
|
|
11852
11856
|
"data-slot": "bar-list-row",
|
|
11853
|
-
className:
|
|
11857
|
+
className: cn(
|
|
11858
|
+
// Narrow: label and value on one line, the bar under them.
|
|
11859
|
+
"grid items-baseline gap-x-3 gap-y-1.5",
|
|
11860
|
+
showPercent ? "grid-cols-[minmax(0,1fr)_auto_auto]" : "grid-cols-[minmax(0,1fr)_auto]",
|
|
11861
|
+
"sm:col-span-full sm:grid-cols-subgrid sm:items-center sm:gap-y-0"
|
|
11862
|
+
),
|
|
11854
11863
|
children: [
|
|
11855
|
-
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: "
|
|
11856
|
-
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11864
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: cn("min-w-0 truncate text-muted-foreground", !labelWidth && "sm:max-w-[10rem]"), children: item.label }),
|
|
11865
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11857
11866
|
"span",
|
|
11858
11867
|
{
|
|
11859
|
-
className: "
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11868
|
+
className: "order-last col-span-full h-2 overflow-hidden rounded-full bg-primary/15 shadow-inner sm:order-none sm:col-span-1",
|
|
11869
|
+
"aria-hidden": "true",
|
|
11870
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11871
|
+
"span",
|
|
11872
|
+
{
|
|
11873
|
+
className: "block h-full rounded-full bg-primary bg-gradient-primary",
|
|
11874
|
+
style: {
|
|
11875
|
+
width: `${share * 100}%`,
|
|
11876
|
+
// A non-zero value keeps a sliver, so it never reads as zero.
|
|
11877
|
+
minWidth: item.value > 0 ? 4 : 0
|
|
11878
|
+
}
|
|
11879
|
+
}
|
|
11880
|
+
)
|
|
11866
11881
|
}
|
|
11867
|
-
)
|
|
11868
|
-
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: "text-right font-semibold tabular-nums text-foreground", children: item.valueText ?? formatValue(item.value) }),
|
|
11882
|
+
),
|
|
11883
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: "whitespace-nowrap text-right font-semibold tabular-nums text-foreground", children: item.valueText ?? formatValue(item.value) }),
|
|
11869
11884
|
showPercent && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: "text-right tabular-nums text-muted-foreground", children: percentOf(item) })
|
|
11870
11885
|
]
|
|
11871
11886
|
},
|
package/dist/web/index.d.cts
CHANGED
|
@@ -3386,6 +3386,13 @@ interface BarListProps extends ChartTitleProps {
|
|
|
3386
3386
|
sort?: 'desc' | 'none';
|
|
3387
3387
|
/** Prints each row's percentage after its value. On by default. */
|
|
3388
3388
|
showPercent?: boolean;
|
|
3389
|
+
/**
|
|
3390
|
+
* A fixed width for the label column, as a CSS length ("8rem"). Lists that
|
|
3391
|
+
* sit one under another (one per asset, say) each size their labels to
|
|
3392
|
+
* their own, so their bars start at different points; one width lines them
|
|
3393
|
+
* up. Longer labels are truncated. Defaults to the longest label.
|
|
3394
|
+
*/
|
|
3395
|
+
labelWidth?: string;
|
|
3389
3396
|
empty?: ReactNode;
|
|
3390
3397
|
className?: string;
|
|
3391
3398
|
}
|
|
@@ -3398,11 +3405,17 @@ interface BarListProps extends ChartTitleProps {
|
|
|
3398
3405
|
* Given a `title` or `timeframes`, it carries the common chart head (title,
|
|
3399
3406
|
* timeframe, the chart / table switch) like the other charts.
|
|
3400
3407
|
*
|
|
3401
|
-
* One series, so one
|
|
3408
|
+
* One series, so one fill for every bar: the primary gradient on a lighter
|
|
3409
|
+
* step of the same colour, as `Meter` draws its normal state, so a bar list
|
|
3410
|
+
* and a meter on one page read as the same kind of mark. Colouring nominal
|
|
3402
3411
|
* rows darker-where-bigger would re-encode what the bar length already shows.
|
|
3403
|
-
* Rows separate by spacing on the
|
|
3412
|
+
* Rows separate by spacing on the track, never by dividers.
|
|
3413
|
+
*
|
|
3414
|
+
* On a phone the label and value share the top line and the bar runs the full
|
|
3415
|
+
* width under them, so a long label or value never squeezes the bar to a
|
|
3416
|
+
* sliver.
|
|
3404
3417
|
*/
|
|
3405
|
-
declare function BarList({ items, label, formatValue, max, sort, showPercent, empty, className, ...head }: BarListProps): react_jsx_runtime.JSX.Element;
|
|
3418
|
+
declare function BarList({ items, label, formatValue, max, sort, showPercent, labelWidth, empty, className, ...head }: BarListProps): react_jsx_runtime.JSX.Element;
|
|
3406
3419
|
|
|
3407
3420
|
interface DonutSegment {
|
|
3408
3421
|
id: string;
|
package/dist/web/index.d.ts
CHANGED
|
@@ -3386,6 +3386,13 @@ interface BarListProps extends ChartTitleProps {
|
|
|
3386
3386
|
sort?: 'desc' | 'none';
|
|
3387
3387
|
/** Prints each row's percentage after its value. On by default. */
|
|
3388
3388
|
showPercent?: boolean;
|
|
3389
|
+
/**
|
|
3390
|
+
* A fixed width for the label column, as a CSS length ("8rem"). Lists that
|
|
3391
|
+
* sit one under another (one per asset, say) each size their labels to
|
|
3392
|
+
* their own, so their bars start at different points; one width lines them
|
|
3393
|
+
* up. Longer labels are truncated. Defaults to the longest label.
|
|
3394
|
+
*/
|
|
3395
|
+
labelWidth?: string;
|
|
3389
3396
|
empty?: ReactNode;
|
|
3390
3397
|
className?: string;
|
|
3391
3398
|
}
|
|
@@ -3398,11 +3405,17 @@ interface BarListProps extends ChartTitleProps {
|
|
|
3398
3405
|
* Given a `title` or `timeframes`, it carries the common chart head (title,
|
|
3399
3406
|
* timeframe, the chart / table switch) like the other charts.
|
|
3400
3407
|
*
|
|
3401
|
-
* One series, so one
|
|
3408
|
+
* One series, so one fill for every bar: the primary gradient on a lighter
|
|
3409
|
+
* step of the same colour, as `Meter` draws its normal state, so a bar list
|
|
3410
|
+
* and a meter on one page read as the same kind of mark. Colouring nominal
|
|
3402
3411
|
* rows darker-where-bigger would re-encode what the bar length already shows.
|
|
3403
|
-
* Rows separate by spacing on the
|
|
3412
|
+
* Rows separate by spacing on the track, never by dividers.
|
|
3413
|
+
*
|
|
3414
|
+
* On a phone the label and value share the top line and the bar runs the full
|
|
3415
|
+
* width under them, so a long label or value never squeezes the bar to a
|
|
3416
|
+
* sliver.
|
|
3404
3417
|
*/
|
|
3405
|
-
declare function BarList({ items, label, formatValue, max, sort, showPercent, empty, className, ...head }: BarListProps): react_jsx_runtime.JSX.Element;
|
|
3418
|
+
declare function BarList({ items, label, formatValue, max, sort, showPercent, labelWidth, empty, className, ...head }: BarListProps): react_jsx_runtime.JSX.Element;
|
|
3406
3419
|
|
|
3407
3420
|
interface DonutSegment {
|
|
3408
3421
|
id: string;
|