kaleido-ui 0.2.5 → 0.2.7
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/web/{chunk-YMM73FLL.js → chunk-2GNXC446.js} +2 -2
- package/dist/web/{chunk-AWKCO62W.js → chunk-2OINBKHY.js} +1 -1
- package/dist/web/{chunk-CZGN7SQH.js → chunk-2Z6KFK4Z.js} +1 -1
- package/dist/web/{chunk-T2NBG4KF.js → chunk-4246Y2F2.js} +7 -7
- package/dist/web/{chunk-YFYAMVTL.js → chunk-4QLR4ZNK.js} +10 -10
- package/dist/web/{chunk-YLP46BJK.js → chunk-5BNDC7M4.js} +2 -2
- package/dist/web/{chunk-AVJ56TMD.js → chunk-76DAZT7Q.js} +4 -4
- package/dist/web/{chunk-GX5URFML.js → chunk-7F5GSNHE.js} +21 -8
- package/dist/web/{chunk-4BTXTIE6.js → chunk-7NS5S2PG.js} +2 -2
- package/dist/web/{chunk-CPIM2QKZ.js → chunk-7YUPXESC.js} +1 -1
- package/dist/web/{chunk-VAMCLWLF.js → chunk-A2ZIUJUJ.js} +12 -12
- package/dist/web/{chunk-KDNYIMGR.js → chunk-A3TKIXSI.js} +10 -10
- package/dist/web/{chunk-VNL2QI5B.js → chunk-AP7Q2FCS.js} +1 -1
- package/dist/web/{chunk-V3UI2XX7.js → chunk-BY2KCPTX.js} +9 -9
- package/dist/web/{chunk-OZXDXNMR.js → chunk-C7GGZCRO.js} +1 -1
- package/dist/web/{chunk-5INE4WNW.js → chunk-DE4ALHAW.js} +1 -1
- package/dist/web/{chunk-AU5ZGWGA.js → chunk-DH7VXKGM.js} +7 -7
- package/dist/web/{chunk-TAA6PO5V.js → chunk-DNHRMPKI.js} +6 -6
- package/dist/web/{chunk-QTZT7QMI.js → chunk-DXFFYCU3.js} +2 -2
- package/dist/web/{chunk-3CHDKHXW.js → chunk-E3YQSYXF.js} +1 -1
- package/dist/web/{chunk-AMIAAHZM.js → chunk-FB23RQN5.js} +1 -1
- package/dist/web/{chunk-QGWVZ5NG.js → chunk-FWOIRFV5.js} +5 -5
- package/dist/web/{chunk-G26YNXL3.js → chunk-GMJGTSCQ.js} +4 -4
- package/dist/web/{chunk-W4G74KFZ.js → chunk-GX7GBHJ6.js} +5 -5
- package/dist/web/{chunk-K7JVP24O.js → chunk-HDLOPDFX.js} +6 -6
- package/dist/web/{chunk-CXLGQSHM.js → chunk-IJHTXDKP.js} +17 -4
- package/dist/web/{chunk-KMQN66HU.js → chunk-IK32AIOS.js} +1 -1
- package/dist/web/{chunk-EBQ35SOM.js → chunk-IV6AAVUE.js} +4 -4
- package/dist/web/{chunk-HKIYPISK.js → chunk-JY73M73T.js} +8 -8
- package/dist/web/{chunk-DV66AZXI.js → chunk-JZ3BUM5L.js} +11 -11
- package/dist/web/{chunk-CXPYTWEC.js → chunk-L2UPQLY7.js} +1 -1
- package/dist/web/{chunk-5NCVH6N5.js → chunk-LFAORJQK.js} +2 -2
- package/dist/web/{chunk-DZMOH67F.js → chunk-LZ6PIXUO.js} +2 -2
- package/dist/web/{chunk-QLUUM53Z.js → chunk-M6RXTQEL.js} +6 -6
- package/dist/web/{chunk-536NL4X2.js → chunk-NSA777UY.js} +4 -4
- package/dist/web/{chunk-TJGHAD5O.js → chunk-PCKRLEAO.js} +1 -1
- package/dist/web/{chunk-I2N3HZ4M.js → chunk-PS7Q6MMU.js} +1 -1
- package/dist/web/{chunk-D5CPIS6B.js → chunk-PTSOVDKH.js} +1 -1
- package/dist/web/{chunk-HLPL5AHD.js → chunk-QBZSLR7U.js} +1 -1
- package/dist/web/{chunk-GEXPB5CG.js → chunk-QCQRA6L5.js} +4 -4
- package/dist/web/{chunk-SVYDLG2C.js → chunk-QFIGSIXA.js} +6 -6
- package/dist/web/{chunk-LYLWGJ4R.js → chunk-QRK4J3P3.js} +4 -4
- package/dist/web/{chunk-EXWE5KM6.js → chunk-R3IIXFGK.js} +1 -1
- package/dist/web/{chunk-I7KNV2UC.js → chunk-S2ICIIH2.js} +6 -6
- package/dist/web/{chunk-HO65ENYH.js → chunk-TBEKRQGW.js} +1 -1
- package/dist/web/{chunk-PIXLIWSO.js → chunk-TMK3SVYI.js} +1 -1
- package/dist/web/{chunk-RWJHJMVJ.js → chunk-TPGNO74K.js} +4 -4
- package/dist/web/{chunk-XIMTRQZ3.js → chunk-UG3GFYTP.js} +4 -11
- package/dist/web/{chunk-NNGVB3US.js → chunk-VUGV3ELU.js} +7 -7
- package/dist/web/{chunk-HKF7IPXV.js → chunk-VZF5C3C6.js} +4 -4
- package/dist/web/{chunk-4L55ANVR.js → chunk-WWF7IJBF.js} +11 -11
- package/dist/web/{chunk-SUOATMIA.js → chunk-YNB4SSLD.js} +8 -8
- package/dist/web/{chunk-INKE5FS6.js → chunk-Z5LVT3BD.js} +7 -7
- package/dist/web/{chunk-RULT57JR.js → chunk-Z5O67WTL.js} +1 -1
- package/dist/web/{chunk-BYHIH2LP.js → chunk-ZXCT3Y6P.js} +1 -1
- 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 +10 -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 +35 -23
- package/dist/web/index.d.cts +0 -1
- package/dist/web/index.d.ts +0 -1
- 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-X3MYWPNO.js → chunk-27CY5EHL.js} +6 -6
- package/dist/web/{chunk-XYNURYMC.js → chunk-2NCH2ZDU.js} +3 -3
- package/dist/web/{chunk-SGXLWU4V.js → chunk-2REWXJEN.js} +5 -5
- package/dist/web/{chunk-7L35JISL.js → chunk-2VAS6VYJ.js} +3 -3
- package/dist/web/{chunk-7L7DQFHJ.js → chunk-4MLPMRXA.js} +3 -3
- package/dist/web/{chunk-7Y7FEBKK.js → chunk-5PZ2XVWL.js} +3 -3
- package/dist/web/{chunk-MKMZH4XD.js → chunk-62HIDJCD.js} +3 -3
- package/dist/web/{chunk-Q2IXLUSM.js → chunk-6IBQJIHT.js} +3 -3
- package/dist/web/{chunk-XMUXOKIP.js → chunk-6VKWG5FJ.js} +3 -3
- package/dist/web/{chunk-Z3H2FQVX.js → chunk-A3XHFJ6J.js} +3 -3
- package/dist/web/{chunk-Y2W5YG6Y.js → chunk-C7YIQDGQ.js} +3 -3
- package/dist/web/{chunk-NHOCTXPF.js → chunk-IMER4KGH.js} +3 -3
- package/dist/web/{chunk-IWDBETXQ.js → chunk-JWMFTRDC.js} +3 -3
- package/dist/web/{chunk-ZDCKYQKS.js → chunk-KIMWCG5N.js} +3 -3
- package/dist/web/{chunk-WBW5E6LC.js → chunk-LYCLVP26.js} +3 -3
- package/dist/web/{chunk-D2ZG6TZM.js → chunk-LZ723UCB.js} +3 -3
- package/dist/web/{chunk-RA5YGBRB.js → chunk-RV7Z3B3V.js} +3 -3
- package/dist/web/{chunk-U2UWLSDG.js → chunk-SJNOBBU5.js} +3 -3
- package/dist/web/{chunk-DUAFJ3CX.js → chunk-TCFHH5TE.js} +6 -6
- package/dist/web/{chunk-NXPVF5WX.js → chunk-WURSWAKE.js} +3 -3
- package/dist/web/{chunk-IZCLPO4E.js → chunk-XCQGJYGF.js} +3 -3
- package/dist/web/{chunk-O4IIYGDL.js → chunk-YTXWYWVD.js} +3 -3
- package/dist/web/{chunk-YRRZ22OK.js → chunk-Z2SS7UJ4.js} +3 -3
- package/dist/web/{chunk-DY72P3EE.js → chunk-ZPNGHBKB.js} +5 -5
- package/dist/web/{chunk-SIE2FP2T.js → chunk-ZRIBB4EB.js} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
WithdrawAmountInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JWMFTRDC.js";
|
|
5
5
|
import "../chunk-H3GYLFHP.js";
|
|
6
6
|
import "../chunk-VM6AGMYO.js";
|
|
7
7
|
import "../chunk-CXMCWSWC.js";
|
|
8
|
-
import "../chunk-MTQOAMDW.js";
|
|
9
8
|
import "../chunk-OWSKP527.js";
|
|
9
|
+
import "../chunk-MTQOAMDW.js";
|
|
10
10
|
import "../chunk-PMGIJMRO.js";
|
|
11
11
|
export {
|
|
12
12
|
WithdrawAmountInput
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
WithdrawConfirmation
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PTSOVDKH.js";
|
|
5
5
|
import "../chunk-VM6AGMYO.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-2REWXJEN.js";
|
|
7
|
+
import "../chunk-VLZMX43R.js";
|
|
7
8
|
import "../chunk-DCUAE6PX.js";
|
|
8
9
|
import "../chunk-JY3H7ZAI.js";
|
|
9
10
|
import "../chunk-OWSKP527.js";
|
|
11
|
+
import "../chunk-WEPSTI3Z.js";
|
|
10
12
|
import "../chunk-YQQ7GDLZ.js";
|
|
11
|
-
import "../chunk-PMGIJMRO.js";
|
|
12
13
|
import "../chunk-XXH4TYKZ.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-VLZMX43R.js";
|
|
14
|
+
import "../chunk-PMGIJMRO.js";
|
|
15
15
|
export {
|
|
16
16
|
WithdrawConfirmation
|
|
17
17
|
};
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
WithdrawDestinationInput
|
|
4
4
|
} from "../chunk-TY6SGZC7.js";
|
|
5
5
|
import "../chunk-H3GYLFHP.js";
|
|
6
|
-
import "../chunk-MTQOAMDW.js";
|
|
7
6
|
import "../chunk-JY3H7ZAI.js";
|
|
8
7
|
import "../chunk-OWSKP527.js";
|
|
8
|
+
import "../chunk-MTQOAMDW.js";
|
|
9
9
|
import "../chunk-YQQ7GDLZ.js";
|
|
10
|
-
import "../chunk-PMGIJMRO.js";
|
|
11
10
|
import "../chunk-XXH4TYKZ.js";
|
|
11
|
+
import "../chunk-PMGIJMRO.js";
|
|
12
12
|
export {
|
|
13
13
|
WithdrawDestinationInput
|
|
14
14
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
WithdrawSuccess
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-WURSWAKE.js";
|
|
5
5
|
import "../chunk-VM6AGMYO.js";
|
|
6
6
|
import "../chunk-MTQOAMDW.js";
|
|
7
7
|
import "../chunk-YQQ7GDLZ.js";
|
|
8
|
-
import "../chunk-PMGIJMRO.js";
|
|
9
8
|
import "../chunk-XXH4TYKZ.js";
|
|
9
|
+
import "../chunk-PMGIJMRO.js";
|
|
10
10
|
export {
|
|
11
11
|
WithdrawSuccess
|
|
12
12
|
};
|
package/dist/web/icons/public.js
CHANGED
|
@@ -17,7 +17,6 @@ import "../chunk-OWSKP527.js";
|
|
|
17
17
|
import {
|
|
18
18
|
IconGlyph
|
|
19
19
|
} from "../chunk-YQQ7GDLZ.js";
|
|
20
|
-
import "../chunk-PMGIJMRO.js";
|
|
21
20
|
import {
|
|
22
21
|
AccountBalanceWallet,
|
|
23
22
|
Add,
|
|
@@ -128,6 +127,7 @@ import {
|
|
|
128
127
|
VisibilityOff,
|
|
129
128
|
Warning
|
|
130
129
|
} from "../chunk-XXH4TYKZ.js";
|
|
130
|
+
import "../chunk-PMGIJMRO.js";
|
|
131
131
|
export {
|
|
132
132
|
AccountBalanceWallet,
|
|
133
133
|
AccountBalanceWalletFilled,
|
package/dist/web/index.cjs
CHANGED
|
@@ -1914,10 +1914,9 @@ var DrawerSection = ({ className, label, children, ...props }) => {
|
|
|
1914
1914
|
};
|
|
1915
1915
|
DrawerSection.displayName = "DrawerSection";
|
|
1916
1916
|
var activeIcon = "[&>span[aria-hidden=true]]:text-status-success";
|
|
1917
|
-
var activeRow = cn(
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
);
|
|
1917
|
+
var activeRow = cn("bg-primary/15 bg-gradient-active font-semibold text-foreground", activeIcon);
|
|
1918
|
+
var activeGroupRow = cn("bg-primary/[0.06] font-semibold text-foreground", activeIcon);
|
|
1919
|
+
var activeSubRow = cn("bg-primary/[0.14] font-semibold text-brand", activeIcon);
|
|
1921
1920
|
var idleRow = "text-content-secondary hover-gradient-violet hover:text-foreground hover:shadow-raised";
|
|
1922
1921
|
var DrawerGroupContext = React12.createContext(false);
|
|
1923
1922
|
var DrawerNavItem = React12.forwardRef(
|
|
@@ -1951,7 +1950,7 @@ var DrawerNavItem = React12.forwardRef(
|
|
|
1951
1950
|
title,
|
|
1952
1951
|
className: cn(
|
|
1953
1952
|
"flex min-w-0 items-center gap-3 rounded-lg px-4 py-2.5 text-caption transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",
|
|
1954
|
-
active ?
|
|
1953
|
+
active ? activeSubRow : "text-content-secondary hover:translate-x-1 hover-gradient-violet hover:text-foreground motion-reduce:hover:translate-x-0",
|
|
1955
1954
|
className
|
|
1956
1955
|
),
|
|
1957
1956
|
onClick: (event) => {
|
|
@@ -2033,7 +2032,7 @@ var DrawerNavGroup = ({
|
|
|
2033
2032
|
const rowClass2 = cn(
|
|
2034
2033
|
"group flex w-full min-w-0 items-center rounded-xl px-4 py-3 text-left transition-all duration-300 hover:scale-[1.02] focus:outline-none focus-visible:ring-2 focus-visible:ring-ring active:scale-95 motion-reduce:transition-none motion-reduce:hover:scale-100",
|
|
2035
2034
|
collapsed ? "justify-center" : "gap-4",
|
|
2036
|
-
active ? activeRow : idleRow
|
|
2035
|
+
active ? collapsed ? activeRow : activeGroupRow : idleRow
|
|
2037
2036
|
);
|
|
2038
2037
|
const iconNode = icon && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2039
2038
|
"span",
|
|
@@ -2052,6 +2051,7 @@ var DrawerNavGroup = ({
|
|
|
2052
2051
|
glyph: ChevronRight,
|
|
2053
2052
|
className: cn(
|
|
2054
2053
|
"shrink-0 text-icon-md transition-all duration-300 motion-reduce:transition-none",
|
|
2054
|
+
active && "text-brand",
|
|
2055
2055
|
open && "rotate-90"
|
|
2056
2056
|
)
|
|
2057
2057
|
}
|
|
@@ -10462,6 +10462,16 @@ function FilterChipGroup({
|
|
|
10462
10462
|
|
|
10463
10463
|
// src/web/components/charts/core.tsx
|
|
10464
10464
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
10465
|
+
var BAR_GAP = 2;
|
|
10466
|
+
var BAR_RADIUS = 4;
|
|
10467
|
+
function barPath(x, y, w, h, end) {
|
|
10468
|
+
const r = Math.min(BAR_RADIUS, w / 2, h / 2);
|
|
10469
|
+
if (end === "none" || r <= 0) return `M${x},${y}h${w}v${h}h${-w}Z`;
|
|
10470
|
+
if (end === "top") {
|
|
10471
|
+
return `M${x},${y + h}V${y + r}Q${x},${y} ${x + r},${y}H${x + w - r}Q${x + w},${y} ${x + w},${y + r}V${y + h}Z`;
|
|
10472
|
+
}
|
|
10473
|
+
return `M${x},${y}H${x + w - r}Q${x + w},${y} ${x + w},${y + r}V${y + h - r}Q${x + w},${y + h} ${x + w - r},${y + h}H${x}Z`;
|
|
10474
|
+
}
|
|
10465
10475
|
var seriesColor = (slot) => `var(--series-${slot % chartSeriesLimit + 1})`;
|
|
10466
10476
|
var defaultChartFormat = (value) => formatAmount(value);
|
|
10467
10477
|
var TICK_FONT = 11;
|
|
@@ -10925,7 +10935,7 @@ function TrendChart({
|
|
|
10925
10935
|
const barWidth = band >= 4 ? Math.min(band * 0.72, MAX_BAR_WIDTH) : Math.max(1, band - 0.75);
|
|
10926
10936
|
const barOffset = (band - barWidth) / 2;
|
|
10927
10937
|
const labelIndices = trendChartLabelIndices(count3, plotWidth / X_LABEL_SPACING);
|
|
10928
|
-
const fillFor = (index) => textures[index] === "hatch" ? `url(#${idBase}-hatch-${index})` :
|
|
10938
|
+
const fillFor = (index) => textures[index] === "hatch" ? `url(#${idBase}-hatch-${index})` : `url(#${idBase}-fill-${index})`;
|
|
10929
10939
|
const activePoint = active === null ? null : points[active];
|
|
10930
10940
|
const readoutId = `${idBase}-readout`;
|
|
10931
10941
|
const activeRows = activePoint ? series.map((s) => ({
|
|
@@ -10987,7 +10997,7 @@ function TrendChart({
|
|
|
10987
10997
|
"aria-hidden": "true",
|
|
10988
10998
|
children: [
|
|
10989
10999
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("defs", { children: series.map(
|
|
10990
|
-
(s, index) => textures[index] === "hatch" ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Texture, { id: `${idBase}-hatch-${index}`, tone: s.tone, texture: "hatch" }, s.id) :
|
|
11000
|
+
(s, index) => textures[index] === "hatch" ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Texture, { id: `${idBase}-hatch-${index}`, tone: s.tone, texture: "hatch" }, s.id) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(SolidFill, { id: `${idBase}-fill-${index}`, tone: s.tone }, s.id)
|
|
10991
11001
|
) }),
|
|
10992
11002
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("g", { "data-slot": "trend-chart-y-axis", children: ticks.map((tick, index) => /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("g", { children: [
|
|
10993
11003
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
@@ -11035,16 +11045,21 @@ function TrendChart({
|
|
|
11035
11045
|
if (value <= 0) return null;
|
|
11036
11046
|
const top = y(base + value);
|
|
11037
11047
|
const bottom = y(base);
|
|
11048
|
+
const seam = base > 0 ? BAR_GAP : 0;
|
|
11038
11049
|
base += value;
|
|
11050
|
+
const isTop = series.slice(seriesIndex + 1).every((next) => (point.values[next.id] ?? 0) <= 0);
|
|
11039
11051
|
const hatched = textures[seriesIndex] === "hatch";
|
|
11040
11052
|
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
11041
|
-
"
|
|
11053
|
+
"path",
|
|
11042
11054
|
{
|
|
11043
11055
|
"data-series": s.id,
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11056
|
+
d: barPath(
|
|
11057
|
+
plotLeft + pointIndex * band + barOffset,
|
|
11058
|
+
top,
|
|
11059
|
+
barWidth,
|
|
11060
|
+
Math.max(0.5, bottom - top - seam),
|
|
11061
|
+
isTop ? "top" : "none"
|
|
11062
|
+
),
|
|
11048
11063
|
fill: fillFor(seriesIndex),
|
|
11049
11064
|
stroke: hatched ? toneFill[s.tone] : void 0,
|
|
11050
11065
|
strokeWidth: hatched && barWidth >= 4 ? 1 : 0
|
|
@@ -11126,6 +11141,12 @@ function TrendChart({
|
|
|
11126
11141
|
}
|
|
11127
11142
|
);
|
|
11128
11143
|
}
|
|
11144
|
+
function SolidFill({ id, tone }) {
|
|
11145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
11146
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("stop", { offset: "0%", style: { stopColor: `color-mix(in oklab, ${toneFill[tone]}, white 35%)` } }),
|
|
11147
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("stop", { offset: "100%", style: { stopColor: toneFill[tone] } })
|
|
11148
|
+
] });
|
|
11149
|
+
}
|
|
11129
11150
|
function Texture({
|
|
11130
11151
|
id,
|
|
11131
11152
|
tone,
|
|
@@ -11349,16 +11370,7 @@ function AreaChart2(props) {
|
|
|
11349
11370
|
var import_react35 = require("react");
|
|
11350
11371
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
11351
11372
|
var MAX_BAR = 24;
|
|
11352
|
-
var GAP =
|
|
11353
|
-
var RADIUS = 4;
|
|
11354
|
-
function barPath(x, y, w, h, end) {
|
|
11355
|
-
const r = Math.min(RADIUS, w / 2, h / 2);
|
|
11356
|
-
if (end === "none" || r <= 0) return `M${x},${y}h${w}v${h}h${-w}Z`;
|
|
11357
|
-
if (end === "top") {
|
|
11358
|
-
return `M${x},${y + h}V${y + r}Q${x},${y} ${x + r},${y}H${x + w - r}Q${x + w},${y} ${x + w},${y + r}V${y + h}Z`;
|
|
11359
|
-
}
|
|
11360
|
-
return `M${x},${y}H${x + w - r}Q${x + w},${y} ${x + w},${y + r}V${y + h - r}Q${x + w},${y + h} ${x + w - r},${y + h}H${x}Z`;
|
|
11361
|
-
}
|
|
11373
|
+
var GAP = BAR_GAP;
|
|
11362
11374
|
function BarChart2({
|
|
11363
11375
|
data,
|
|
11364
11376
|
series: allSeries,
|
package/dist/web/index.d.cts
CHANGED
|
@@ -3041,7 +3041,6 @@ interface ChartDatum {
|
|
|
3041
3041
|
detail?: string;
|
|
3042
3042
|
values: Readonly<Record<string, number>>;
|
|
3043
3043
|
}
|
|
3044
|
-
/** The series colour for a slot. Slots past the palette are a bug, not a new hue. */
|
|
3045
3044
|
declare const seriesColor: (slot: number) => string;
|
|
3046
3045
|
/**
|
|
3047
3046
|
* Value-axis ticks that only name values the chart reaches: from zero, round
|
package/dist/web/index.d.ts
CHANGED
|
@@ -3041,7 +3041,6 @@ interface ChartDatum {
|
|
|
3041
3041
|
detail?: string;
|
|
3042
3042
|
values: Readonly<Record<string, number>>;
|
|
3043
3043
|
}
|
|
3044
|
-
/** The series colour for a slot. Slots past the palette are a bug, not a new hue. */
|
|
3045
3044
|
declare const seriesColor: (slot: number) => string;
|
|
3046
3045
|
/**
|
|
3047
3046
|
* Value-axis ticks that only name values the chart reaches: from zero, round
|