kaleido-ui 0.2.2 → 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 +80 -18
- package/dist/icon-AvUL0Cws.d.cts +135 -0
- package/dist/icon-AvUL0Cws.d.ts +135 -0
- package/dist/native/index.cjs +0 -126
- package/dist/native/index.js +0 -126
- package/dist/web/assets/kaleidoswap-brand.js +11 -0
- package/dist/web/assets/protocol-icons.js +7 -0
- package/dist/web/chunk-25RRZDZ2.js +269 -0
- package/dist/web/chunk-2Q5SSNFO.js +63 -0
- package/dist/web/chunk-2VKFRAX3.js +39 -0
- package/dist/web/chunk-3CHDKHXW.js +150 -0
- package/dist/web/chunk-4BTXTIE6.js +126 -0
- package/dist/web/chunk-4L55ANVR.js +330 -0
- package/dist/web/chunk-4UMKXXAK.js +33 -0
- package/dist/web/chunk-536NL4X2.js +89 -0
- package/dist/web/chunk-563GMWFT.js +32 -0
- package/dist/web/chunk-5GBURTY4.js +33 -0
- package/dist/web/chunk-5INE4WNW.js +291 -0
- package/dist/web/chunk-5MM5YGGG.js +43 -0
- package/dist/web/chunk-5NCVH6N5.js +81 -0
- package/dist/web/chunk-5V2KMO56.js +55 -0
- package/dist/web/chunk-5WBAFYPH.js +62 -0
- package/dist/web/chunk-6PNGSAJB.js +55 -0
- package/dist/web/chunk-7L35JISL.js +106 -0
- package/dist/web/chunk-7L7DQFHJ.js +85 -0
- package/dist/web/chunk-7OE6AXLY.js +27 -0
- package/dist/web/chunk-7Y7FEBKK.js +85 -0
- package/dist/web/chunk-A6MSV4MA.js +83 -0
- package/dist/web/chunk-A7MPRLJL.js +169 -0
- package/dist/web/chunk-AMIAAHZM.js +232 -0
- package/dist/web/chunk-ASHU5XNR.js +21 -0
- package/dist/web/chunk-AU5ZGWGA.js +247 -0
- package/dist/web/chunk-AVJ56TMD.js +107 -0
- package/dist/web/chunk-AWKCO62W.js +191 -0
- package/dist/web/chunk-BGUBHWIO.js +41 -0
- package/dist/web/chunk-BYHIH2LP.js +56 -0
- package/dist/web/chunk-CBE7BT3M.js +87 -0
- package/dist/web/chunk-CJATW6EO.js +108 -0
- package/dist/web/chunk-CPIM2QKZ.js +666 -0
- package/dist/web/chunk-CRMLYZIX.js +35 -0
- package/dist/web/chunk-CXLGQSHM.js +417 -0
- package/dist/web/chunk-CXMCWSWC.js +20 -0
- package/dist/web/chunk-CXPYTWEC.js +43 -0
- package/dist/web/chunk-CZGN7SQH.js +41 -0
- package/dist/web/chunk-CZPNI33A.js +31 -0
- package/dist/web/chunk-D2ZG6TZM.js +96 -0
- package/dist/web/chunk-D5CPIS6B.js +169 -0
- package/dist/web/chunk-DCUAE6PX.js +202 -0
- package/dist/web/chunk-DUAFJ3CX.js +179 -0
- package/dist/web/chunk-DV66AZXI.js +368 -0
- package/dist/web/chunk-DY72P3EE.js +86 -0
- package/dist/web/chunk-DZMOH67F.js +43 -0
- package/dist/web/chunk-EBQ35SOM.js +177 -0
- package/dist/web/chunk-EXWE5KM6.js +48 -0
- package/dist/web/chunk-F2LIZX5K.js +140 -0
- package/dist/web/chunk-FSQV54O4.js +61 -0
- package/dist/web/chunk-G26YNXL3.js +82 -0
- package/dist/web/chunk-G2MJL3VP.js +54 -0
- package/dist/web/chunk-G2ZYNR3W.js +28 -0
- package/dist/web/chunk-GEXPB5CG.js +63 -0
- package/dist/web/chunk-GX5URFML.js +375 -0
- package/dist/web/chunk-GZZ5KVON.js +70 -0
- package/dist/web/chunk-H3GYLFHP.js +30 -0
- package/dist/web/chunk-HKF7IPXV.js +146 -0
- package/dist/web/chunk-HKIYPISK.js +175 -0
- package/dist/web/chunk-HLPL5AHD.js +54 -0
- package/dist/web/chunk-HO65ENYH.js +99 -0
- package/dist/web/chunk-HP25HN7Q.js +69 -0
- package/dist/web/chunk-HVKSBEZN.js +98 -0
- package/dist/web/chunk-HWKXZNBN.js +74 -0
- package/dist/web/chunk-HY3VMT27.js +64 -0
- package/dist/web/chunk-I2N3HZ4M.js +60 -0
- package/dist/web/chunk-I7KNV2UC.js +109 -0
- package/dist/web/chunk-INKE5FS6.js +128 -0
- package/dist/web/chunk-IWDBETXQ.js +254 -0
- package/dist/web/chunk-IZCLPO4E.js +42 -0
- package/dist/web/chunk-JY3H7ZAI.js +41 -0
- package/dist/web/chunk-JYM5NHBA.js +80 -0
- package/dist/web/chunk-K7JVP24O.js +89 -0
- package/dist/web/chunk-KDNYIMGR.js +197 -0
- package/dist/web/chunk-KMQN66HU.js +27 -0
- package/dist/web/chunk-LOGZGZWN.js +1 -0
- package/dist/web/chunk-LPDB7EHH.js +65 -0
- package/dist/web/chunk-LSY4DY2I.js +72 -0
- package/dist/web/chunk-LYLWGJ4R.js +66 -0
- package/dist/web/chunk-MKMZH4XD.js +98 -0
- package/dist/web/chunk-MTQ22SKE.js +39 -0
- package/dist/web/chunk-MTQOAMDW.js +8 -0
- package/dist/web/chunk-NEXA6VGG.js +91 -0
- package/dist/web/chunk-NHOCTXPF.js +151 -0
- package/dist/web/chunk-NNGVB3US.js +176 -0
- package/dist/web/chunk-NXPVF5WX.js +74 -0
- package/dist/web/chunk-O2TTO5FS.js +24 -0
- package/dist/web/chunk-O4IIYGDL.js +70 -0
- package/dist/web/chunk-OI7WX7NE.js +17 -0
- package/dist/web/chunk-OWSKP527.js +80 -0
- package/dist/web/chunk-OX3J3FYX.js +64 -0
- package/dist/web/chunk-OZXDXNMR.js +110 -0
- package/dist/web/chunk-PIXLIWSO.js +62 -0
- package/dist/web/chunk-PMGIJMRO.js +207 -0
- package/dist/web/chunk-Q2IXLUSM.js +56 -0
- package/dist/web/chunk-QGWVZ5NG.js +73 -0
- package/dist/web/chunk-QLUUM53Z.js +90 -0
- package/dist/web/chunk-QRFFLA3N.js +84 -0
- package/dist/web/chunk-QTZT7QMI.js +83 -0
- package/dist/web/chunk-QXZ2WY3B.js +38 -0
- package/dist/web/chunk-R2MV4S4U.js +50 -0
- package/dist/web/chunk-RA5YGBRB.js +106 -0
- package/dist/web/chunk-RIOY4LFJ.js +141 -0
- package/dist/web/chunk-RULT57JR.js +85 -0
- package/dist/web/chunk-RWJHJMVJ.js +67 -0
- package/dist/web/chunk-RXXYUYBP.js +25 -0
- package/dist/web/chunk-SGXLWU4V.js +96 -0
- package/dist/web/chunk-SIE2FP2T.js +62 -0
- package/dist/web/chunk-STMNX3QT.js +109 -0
- package/dist/web/chunk-SUOATMIA.js +113 -0
- package/dist/web/chunk-SVYDLG2C.js +558 -0
- package/dist/web/chunk-T2NBG4KF.js +276 -0
- package/dist/web/chunk-T7CEJV6P.js +66 -0
- package/dist/web/chunk-TAA6PO5V.js +63 -0
- package/dist/web/chunk-TI7NWMEQ.js +34 -0
- package/dist/web/chunk-TJGHAD5O.js +40 -0
- package/dist/web/chunk-TKRMGN7J.js +8 -0
- package/dist/web/chunk-TS4UYWJJ.js +105 -0
- package/dist/web/chunk-TY6SGZC7.js +94 -0
- package/dist/web/chunk-U2UWLSDG.js +86 -0
- package/dist/web/chunk-UHXOPILM.js +101 -0
- package/dist/web/chunk-UXLWWQ4J.js +20 -0
- package/dist/web/chunk-UZ4LWR4X.js +26 -0
- package/dist/web/chunk-V3UI2XX7.js +444 -0
- package/dist/web/chunk-VAMCLWLF.js +403 -0
- package/dist/web/chunk-VLZMX43R.js +45 -0
- package/dist/web/chunk-VM6AGMYO.js +46 -0
- package/dist/web/chunk-VNL2QI5B.js +43 -0
- package/dist/web/chunk-VYQHGSK6.js +244 -0
- package/dist/web/chunk-W4E2N3UN.js +58 -0
- package/dist/web/chunk-W4G74KFZ.js +362 -0
- package/dist/web/chunk-WBW5E6LC.js +101 -0
- package/dist/web/chunk-WEPSTI3Z.js +83 -0
- package/dist/web/chunk-WOAWUXER.js +139 -0
- package/dist/web/chunk-X2RA4EG3.js +86 -0
- package/dist/web/chunk-X3MYWPNO.js +230 -0
- package/dist/web/chunk-XDSOOOYL.js +35 -0
- package/dist/web/chunk-XIMTRQZ3.js +220 -0
- package/dist/web/chunk-XMUXOKIP.js +159 -0
- package/dist/web/chunk-XXH4TYKZ.js +276 -0
- package/dist/web/chunk-XYNURYMC.js +129 -0
- package/dist/web/chunk-XZQUQOR3.js +48 -0
- package/dist/web/chunk-Y2W5YG6Y.js +57 -0
- package/dist/web/chunk-YFYAMVTL.js +383 -0
- package/dist/web/chunk-YLP46BJK.js +50 -0
- package/dist/web/chunk-YMM73FLL.js +84 -0
- package/dist/web/chunk-YQDCU7ZL.js +49 -0
- package/dist/web/chunk-YQQ7GDLZ.js +30 -0
- package/dist/web/chunk-YRRZ22OK.js +139 -0
- package/dist/web/chunk-YXVOFEDT.js +85 -0
- package/dist/web/chunk-Z3H2FQVX.js +120 -0
- package/dist/web/chunk-ZDCKYQKS.js +108 -0
- package/dist/web/chunk-ZR32WYJA.js +55 -0
- package/dist/web/chunk-ZTVV4KBT.js +28 -0
- package/dist/web/components/account-capabilities-card.js +21 -0
- package/dist/web/components/account-menu.js +18 -0
- package/dist/web/components/account-settings-shared.js +50 -0
- package/dist/web/components/account-status-tabs.js +20 -0
- package/dist/web/components/action-tile.js +8 -0
- package/dist/web/components/activity-detail-row.js +22 -0
- package/dist/web/components/activity-filter-bar.js +22 -0
- package/dist/web/components/activity-list.js +23 -0
- package/dist/web/components/activity-network-filters.js +19 -0
- package/dist/web/components/activity-row.js +15 -0
- package/dist/web/components/activity-type-tabs.js +17 -0
- package/dist/web/components/alert-banner.js +13 -0
- package/dist/web/components/amount.js +8 -0
- package/dist/web/components/app-icon.js +15 -0
- package/dist/web/components/asset-card.js +21 -0
- package/dist/web/components/asset-icon.js +10 -0
- package/dist/web/components/asset-selector.js +24 -0
- package/dist/web/components/balance-breakdown.js +18 -0
- package/dist/web/components/basic-collapsible.js +11 -0
- package/dist/web/components/bottom-nav.js +13 -0
- package/dist/web/components/bottom-sheet.js +15 -0
- package/dist/web/components/btc-unified-receive.js +28 -0
- package/dist/web/components/charts/bar-chart.js +24 -0
- package/dist/web/components/charts/bar-list.js +24 -0
- package/dist/web/components/charts/core.js +63 -0
- package/dist/web/components/charts/donut-chart.js +26 -0
- package/dist/web/components/charts/index.js +72 -0
- package/dist/web/components/charts/line-chart.js +26 -0
- package/dist/web/components/charts/meter.js +24 -0
- package/dist/web/components/charts/mixed-chart.js +24 -0
- package/dist/web/components/charts/scatter-chart.js +24 -0
- package/dist/web/components/charts/sparkline.js +8 -0
- package/dist/web/components/choice-group.js +11 -0
- package/dist/web/components/code-block.js +21 -0
- package/dist/web/components/confirm-dialog.js +15 -0
- package/dist/web/components/copy-button.js +21 -0
- package/dist/web/components/copyable.js +20 -0
- package/dist/web/components/date-range-filter.js +16 -0
- package/dist/web/components/deposit-asset-selection.js +24 -0
- package/dist/web/components/deposit-generated-view.js +23 -0
- package/dist/web/components/deposit-invoice-generation.js +35 -0
- package/dist/web/components/deposit-network-default-modal.js +13 -0
- package/dist/web/components/deposit-pre-generation.js +17 -0
- package/dist/web/components/deposit-success-screen.js +20 -0
- package/dist/web/components/deposit-ui-shared.js +28 -0
- package/dist/web/components/disclosure-card.js +11 -0
- package/dist/web/components/dotted-leader.js +8 -0
- package/dist/web/components/empty-state.js +8 -0
- package/dist/web/components/environment-indicator.js +9 -0
- package/dist/web/components/error-boundary.js +10 -0
- package/dist/web/components/event-timeline.js +8 -0
- package/dist/web/components/extension-page-frame.js +15 -0
- package/dist/web/components/filter-bar.js +15 -0
- package/dist/web/components/filter-chip-group.js +8 -0
- package/dist/web/components/filter-dropdown.js +12 -0
- package/dist/web/components/floating-notice.js +12 -0
- package/dist/web/components/form-field.js +10 -0
- package/dist/web/components/halo-backdrop.js +8 -0
- package/dist/web/components/info-chip.js +24 -0
- package/dist/web/components/info-panel.js +13 -0
- package/dist/web/components/inline-selector.js +11 -0
- package/dist/web/components/instants-statement.js +20 -0
- package/dist/web/components/kaleidoscope-hero-animation.js +11 -0
- package/dist/web/components/kaleidoswap-logo.js +12 -0
- package/dist/web/components/list-field.js +14 -0
- package/dist/web/components/list-summary.js +8 -0
- package/dist/web/components/metric-card.js +14 -0
- package/dist/web/components/mobile-hero-animation.js +8 -0
- package/dist/web/components/network-badge.js +14 -0
- package/dist/web/components/network-icon.js +21 -0
- package/dist/web/components/network-status-chip.js +11 -0
- package/dist/web/components/notice-bar.js +8 -0
- package/dist/web/components/one-time-secret-dialog.js +18 -0
- package/dist/web/components/option-selector.js +12 -0
- package/dist/web/components/page-header.js +12 -0
- package/dist/web/components/page-shell.js +18 -0
- package/dist/web/components/pager.js +11 -0
- package/dist/web/components/period-select.js +20 -0
- package/dist/web/components/qr-code.js +10 -0
- package/dist/web/components/query-state.js +19 -0
- package/dist/web/components/read-status.js +15 -0
- package/dist/web/components/record-list.js +17 -0
- package/dist/web/components/recovery-phrase-card.js +20 -0
- package/dist/web/components/restricted.js +9 -0
- package/dist/web/components/secret-reveal-card.js +20 -0
- package/dist/web/components/section-header.js +9 -0
- package/dist/web/components/section-label.js +8 -0
- package/dist/web/components/selectable-card.js +8 -0
- package/dist/web/components/setting-item.js +13 -0
- package/dist/web/components/settings-section-card.js +11 -0
- package/dist/web/components/settings-selector-row.js +8 -0
- package/dist/web/components/settings-tile.js +21 -0
- package/dist/web/components/skeleton.js +10 -0
- package/dist/web/components/status-badge.js +13 -0
- package/dist/web/components/status-icon-badge.js +15 -0
- package/dist/web/components/stepper-number-input.js +10 -0
- package/dist/web/components/summary-rows.js +9 -0
- package/dist/web/components/swap-badge.js +11 -0
- package/dist/web/components/swap-input-card.js +28 -0
- package/dist/web/components/swap-step-list.js +10 -0
- package/dist/web/components/switch-row.js +9 -0
- package/dist/web/components/theme-toggle.js +12 -0
- package/dist/web/components/transaction-card.js +14 -0
- package/dist/web/components/trend-chart.js +28 -0
- package/dist/web/components/value-list.js +20 -0
- package/dist/web/components/wallet-asset-list.js +22 -0
- package/dist/web/components/withdraw-amount-input.js +13 -0
- package/dist/web/components/withdraw-confirmation.js +17 -0
- package/dist/web/components/withdraw-destination-input.js +14 -0
- package/dist/web/components/withdraw-invoice-info.js +10 -0
- package/dist/web/components/withdraw-route-selector.js +9 -0
- package/dist/web/components/withdraw-success.js +12 -0
- package/dist/web/hooks/use-asset-icon.js +11 -0
- package/dist/web/hooks/use-copy-to-clipboard.js +7 -0
- package/dist/web/hooks/use-media-query.js +9 -0
- package/dist/web/hooks/use-theme-mode.js +9 -0
- package/dist/web/hooks/use-toast.js +11 -0
- package/dist/web/icons/filled.js +15 -0
- package/dist/web/icons/index.js +13 -0
- package/dist/web/icons/outlined.js +221 -0
- package/dist/web/icons/public.js +248 -0
- package/dist/web/icons.cjs +776 -0
- package/dist/web/icons.d.cts +123 -0
- package/dist/web/icons.d.ts +123 -0
- package/dist/web/index.cjs +2573 -2507
- package/dist/web/index.d.cts +32 -110
- package/dist/web/index.d.ts +32 -110
- package/dist/web/index.js +592 -14464
- package/dist/web/primitives/avatar.js +10 -0
- package/dist/web/primitives/button.js +10 -0
- package/dist/web/primitives/card.js +20 -0
- package/dist/web/primitives/collapsible.js +16 -0
- package/dist/web/primitives/dialog.js +30 -0
- package/dist/web/primitives/dot-pagination.js +8 -0
- package/dist/web/primitives/drawer.js +43 -0
- package/dist/web/primitives/dropdown-menu.js +28 -0
- package/dist/web/primitives/glyph-button.js +10 -0
- package/dist/web/primitives/icon-button.js +15 -0
- package/dist/web/primitives/icon-glyph.js +8 -0
- package/dist/web/primitives/icon.js +16 -0
- package/dist/web/primitives/input.js +9 -0
- package/dist/web/primitives/label.js +9 -0
- package/dist/web/primitives/menu-search.js +20 -0
- package/dist/web/primitives/number-input.js +11 -0
- package/dist/web/primitives/popover.js +18 -0
- package/dist/web/primitives/scroll-area.js +12 -0
- package/dist/web/primitives/select.js +27 -0
- package/dist/web/primitives/switch.js +8 -0
- package/dist/web/primitives/table.js +27 -0
- package/dist/web/primitives/tabs.js +14 -0
- package/dist/web/primitives/toast.js +24 -0
- package/dist/web/primitives/toaster.js +15 -0
- package/dist/web/primitives/tooltip.js +10 -0
- package/dist/web/utils/amount-display.js +13 -0
- package/dist/web/utils/cn.js +7 -0
- package/dist/web/utils/field-styles.js +7 -0
- package/dist/web/utils/type-roles.js +7 -0
- package/package.json +9 -1
package/dist/native/index.js
CHANGED
|
@@ -1372,60 +1372,6 @@ function ModeToggle({ icon, size = 40, onToggle }) {
|
|
|
1372
1372
|
);
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
|
-
// src/tokens/app-semantic.ts
|
|
1376
|
-
var appSemanticDark = {
|
|
1377
|
-
// Near-black ramp with a violet cast (~245 deg, low saturation): the
|
|
1378
|
-
// surfaces lean violet, the accents carry the colour — green first.
|
|
1379
|
-
"surface-base": "14 13 22",
|
|
1380
|
-
// #0E0D16 — deepest bg, sidebar
|
|
1381
|
-
"surface-raised": "20 19 30",
|
|
1382
|
-
// #14131E — page body bg
|
|
1383
|
-
"surface-overlay": "28 26 42",
|
|
1384
|
-
// #1C1A2A — card bg
|
|
1385
|
-
"surface-elevated": "40 38 56",
|
|
1386
|
-
// #282638 — sections inside cards
|
|
1387
|
-
"surface-high": "54 51 74",
|
|
1388
|
-
// #36334A — hover/active highlights
|
|
1389
|
-
// An inset box inside a card (DisclosureCard), used at /40: on dark it is
|
|
1390
|
-
// the muted fill; on light a cool grey, so the box still reads on white.
|
|
1391
|
-
"surface-inset": "20 19 30",
|
|
1392
|
-
// #14131E
|
|
1393
|
-
primary: "21 233 154",
|
|
1394
|
-
// #15E99A
|
|
1395
|
-
"primary-emphasis": "18 201 126",
|
|
1396
|
-
// #12C97E
|
|
1397
|
-
"primary-foreground": "14 13 22",
|
|
1398
|
-
secondary: "111 50 255",
|
|
1399
|
-
// #6F32FF — brand violet
|
|
1400
|
-
"secondary-emphasis": "84 32 204",
|
|
1401
|
-
// #5420CC
|
|
1402
|
-
"secondary-foreground": "255 255 255",
|
|
1403
|
-
"secondary-content": "164 138 255",
|
|
1404
|
-
// #A48AFF — violet text/icons on dark
|
|
1405
|
-
"content-primary": "237 236 246",
|
|
1406
|
-
// #EDECF6 — cool white
|
|
1407
|
-
"content-secondary": "152 149 180",
|
|
1408
|
-
// #9895B4
|
|
1409
|
-
"content-tertiary": "98 95 124",
|
|
1410
|
-
// #625F7C
|
|
1411
|
-
"content-inverse": "14 13 22",
|
|
1412
|
-
"border-subtle": "38 36 54",
|
|
1413
|
-
// #262436
|
|
1414
|
-
"border-default": "52 50 72",
|
|
1415
|
-
// #343248
|
|
1416
|
-
"border-strong": "21 233 154",
|
|
1417
|
-
"status-success": "34 197 94",
|
|
1418
|
-
"status-danger": "248 113 113",
|
|
1419
|
-
"status-warning": "245 158 11",
|
|
1420
|
-
"status-info": "56 189 248",
|
|
1421
|
-
divider: "86 83 110",
|
|
1422
|
-
// #56536E
|
|
1423
|
-
// Spark's mark is white on dark, black on light.
|
|
1424
|
-
"network-spark": "255 255 255"
|
|
1425
|
-
// #FFFFFF
|
|
1426
|
-
};
|
|
1427
|
-
var appSemanticOrder = Object.keys(appSemanticDark);
|
|
1428
|
-
|
|
1429
1375
|
// src/tokens/typography.ts
|
|
1430
1376
|
var fontFamily = {
|
|
1431
1377
|
display: "'Satoshi', system-ui, -apple-system, sans-serif",
|
|
@@ -1555,84 +1501,12 @@ var shadowLight = {
|
|
|
1555
1501
|
toast: `0 0 0 1px ${lightInk(0.06)}, 0 10px 28px -10px ${lightInk(0.2)}`
|
|
1556
1502
|
};
|
|
1557
1503
|
|
|
1558
|
-
// src/tokens/brand.ts
|
|
1559
|
-
var brandMark = {
|
|
1560
|
-
violet: "#6F32FF",
|
|
1561
|
-
green: "#17B581",
|
|
1562
|
-
mint: "#15E99A"
|
|
1563
|
-
};
|
|
1564
|
-
var themedForeground = {
|
|
1565
|
-
light: {
|
|
1566
|
-
// Brand green at full saturation (no red), as light as it goes and still
|
|
1567
|
-
// clears 4.5:1 on every light surface (4.55:1 on #EFEFF4).
|
|
1568
|
-
brand: "#007D49",
|
|
1569
|
-
"accent-send-fg": "#6428F0",
|
|
1570
|
-
"accent-recv-fg": "#007D49",
|
|
1571
|
-
"success-fg": "#076A43",
|
|
1572
|
-
// a shade under brand: it also sits on a 14% mint tint
|
|
1573
|
-
// Tailwind -800 shades: -700 measured only 3.7 to 4.3:1 on the light ramp.
|
|
1574
|
-
"warning-fg": "#92400E",
|
|
1575
|
-
"danger-fg": "#991B1B",
|
|
1576
|
-
"info-fg": "#1E40AF",
|
|
1577
|
-
"network-bitcoin-fg": "#92400E",
|
|
1578
|
-
"network-lightning-fg": "#854D0E",
|
|
1579
|
-
"network-liquid-fg": "#115E59",
|
|
1580
|
-
"network-arkade-fg": "#5B21B6",
|
|
1581
|
-
"network-spark-fg": "#0D0C14",
|
|
1582
|
-
// Spark is black on light
|
|
1583
|
-
"network-rgb-fg": "#991B1B",
|
|
1584
|
-
"network-taproot-fg": "#464A69"
|
|
1585
|
-
},
|
|
1586
|
-
dark: {
|
|
1587
|
-
brand: colors.primary,
|
|
1588
|
-
"accent-send-fg": "#AD94FB",
|
|
1589
|
-
"accent-recv-fg": colors.primary,
|
|
1590
|
-
"success-fg": colors.success,
|
|
1591
|
-
"warning-fg": colors.warning,
|
|
1592
|
-
// danger #E53535 and info #4290FF are 3.0:1 and 3.2:1 on the elevated
|
|
1593
|
-
// surface. Same hues, lifted until they clear 4.5:1.
|
|
1594
|
-
"danger-fg": "#FF9999",
|
|
1595
|
-
"info-fg": "#8BBDFF",
|
|
1596
|
-
"network-bitcoin-fg": colors.networkText.bitcoin,
|
|
1597
|
-
"network-lightning-fg": colors.networkText.lightning,
|
|
1598
|
-
"network-liquid-fg": colors.networkText.liquid,
|
|
1599
|
-
// The rgb and arkade *-text tokens dip under 4.5:1 on the elevated
|
|
1600
|
-
// surface (3.9 and 4.1), so their -fg twins are lifted a step.
|
|
1601
|
-
"network-arkade-fg": "#B49CF5",
|
|
1602
|
-
"network-spark-fg": colors.network.spark,
|
|
1603
|
-
// and white on dark
|
|
1604
|
-
"network-rgb-fg": "#F09490",
|
|
1605
|
-
"network-taproot-fg": colors.networkText.taproot
|
|
1606
|
-
}
|
|
1607
|
-
};
|
|
1608
|
-
var themedForegroundOrder = Object.keys(themedForeground.light);
|
|
1609
|
-
var halo = {
|
|
1610
|
-
primary: colors.tx.receive,
|
|
1611
|
-
secondary: brandMark.violet,
|
|
1612
|
-
blur: "110px"
|
|
1613
|
-
};
|
|
1614
|
-
var brandTheme = {
|
|
1615
|
-
/** AA-safe light primary: white on it is 6.3:1, it is 5.1:1 on the light ramp. */
|
|
1616
|
-
lightPrimary: themedForeground.light.brand,
|
|
1617
|
-
/** Lifted dark status colours (see `themedForeground.dark`). */
|
|
1618
|
-
darkDanger: themedForeground.dark["danger-fg"],
|
|
1619
|
-
darkInfo: themedForeground.dark["info-fg"]
|
|
1620
|
-
};
|
|
1621
|
-
|
|
1622
1504
|
// src/tokens/transitions.ts
|
|
1623
1505
|
var transition = {
|
|
1624
1506
|
fast: "150ms ease-out",
|
|
1625
1507
|
default: "200ms ease-out",
|
|
1626
1508
|
slow: "300ms ease-out"
|
|
1627
1509
|
};
|
|
1628
|
-
|
|
1629
|
-
// src/tokens/chart.ts
|
|
1630
|
-
var chartSeries = {
|
|
1631
|
-
/** green, violet, azzurro, then yellow, magenta, orange */
|
|
1632
|
-
dark: ["#17b581", "#8374da", "#179fd4", "#b3880f", "#db589e", "#de6907"],
|
|
1633
|
-
light: ["#17b581", "#6851c3", "#0f9cd0", "#dea805", "#c34189", "#fe904d"]
|
|
1634
|
-
};
|
|
1635
|
-
var chartSeriesLimit = chartSeries.dark.length;
|
|
1636
1510
|
export {
|
|
1637
1511
|
ActionButton,
|
|
1638
1512
|
AlertBanner,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
kaleidoswapLogoHorizontalArtwork,
|
|
4
|
+
kaleidoswapLogoVerticalArtwork,
|
|
5
|
+
kaleidoswapMarkArtwork
|
|
6
|
+
} from "../chunk-FSQV54O4.js";
|
|
7
|
+
export {
|
|
8
|
+
kaleidoswapLogoHorizontalArtwork,
|
|
9
|
+
kaleidoswapLogoVerticalArtwork,
|
|
10
|
+
kaleidoswapMarkArtwork
|
|
11
|
+
};
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
protocolIcons
|
|
4
|
+
} from "./chunk-WEPSTI3Z.js";
|
|
5
|
+
|
|
6
|
+
// src/web/components/mobile-hero-animation.tsx
|
|
7
|
+
import { useRef, useEffect, useState } from "react";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var PROTOCOLS = [
|
|
10
|
+
{ name: "Bitcoin", network: "Bitcoin", iconSuffix: "bitcoin/bitcoin-logo.svg" },
|
|
11
|
+
{ name: "Lightning", network: "LN", iconSuffix: "lightning/lightning.svg" },
|
|
12
|
+
{ name: "RGB", network: "RGB20", iconSuffix: "rgb/rgb-logo.svg" },
|
|
13
|
+
{ name: "Spark", network: "Spark", iconSuffix: "spark/Asterisk/Spark Asterisk White.svg" },
|
|
14
|
+
{ name: "Arkade", network: "Arkade", iconSuffix: "arkade/arkade-icon.svg" },
|
|
15
|
+
{ name: "Liquid", network: "Liquid", iconSuffix: "liquid/logo-liquid.svg" },
|
|
16
|
+
{ name: "Taproot Assets", network: "Taproot", iconSuffix: "taproot-assets/tapass-logo.svg" }
|
|
17
|
+
];
|
|
18
|
+
var C = 140;
|
|
19
|
+
var ORBIT_R = 118;
|
|
20
|
+
var BADGE_SIZE = 40;
|
|
21
|
+
var BADGE_HALF = BADGE_SIZE / 2;
|
|
22
|
+
var N = PROTOCOLS.length;
|
|
23
|
+
var PROTOCOL_COLORS = {
|
|
24
|
+
Bitcoin: "#F7931A",
|
|
25
|
+
LN: "#fbbf24",
|
|
26
|
+
RGB20: "#EF4444",
|
|
27
|
+
Spark: "#FFFFFF",
|
|
28
|
+
Arkade: "#8B5CF6",
|
|
29
|
+
Liquid: "#22e1c9",
|
|
30
|
+
Taproot: "#D1D6D8"
|
|
31
|
+
};
|
|
32
|
+
var hexPath = (r) => {
|
|
33
|
+
const pts = Array.from({ length: 6 }, (_, i) => {
|
|
34
|
+
const a = Math.PI / 3 * i - Math.PI / 6;
|
|
35
|
+
return `${r * Math.cos(a)},${r * Math.sin(a)}`;
|
|
36
|
+
});
|
|
37
|
+
return `M${pts.join("L")}Z`;
|
|
38
|
+
};
|
|
39
|
+
var KEYFRAMES = `
|
|
40
|
+
@keyframes mha-orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
41
|
+
@keyframes mha-counter-spin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
|
|
42
|
+
`;
|
|
43
|
+
var MobileHeroAnimation = ({
|
|
44
|
+
size = 280,
|
|
45
|
+
className,
|
|
46
|
+
iconBasePath
|
|
47
|
+
}) => {
|
|
48
|
+
const containerRef = useRef(null);
|
|
49
|
+
const [reducedMotion, setReducedMotion] = useState(false);
|
|
50
|
+
const [isVisible, setIsVisible] = useState(true);
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
53
|
+
setReducedMotion(mq.matches);
|
|
54
|
+
const handler = (e) => setReducedMotion(e.matches);
|
|
55
|
+
mq.addEventListener("change", handler);
|
|
56
|
+
return () => mq.removeEventListener("change", handler);
|
|
57
|
+
}, []);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
const el = containerRef.current;
|
|
60
|
+
if (!el) return;
|
|
61
|
+
const observer = new IntersectionObserver(([entry]) => setIsVisible(entry.isIntersecting), { threshold: 0.1 });
|
|
62
|
+
observer.observe(el);
|
|
63
|
+
return () => observer.disconnect();
|
|
64
|
+
}, []);
|
|
65
|
+
const anim = !reducedMotion && isVisible;
|
|
66
|
+
const scale = size / 280;
|
|
67
|
+
return /* @__PURE__ */ jsxs(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
ref: containerRef,
|
|
71
|
+
className,
|
|
72
|
+
style: { position: "relative", width: size, height: size },
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx("style", { children: KEYFRAMES }),
|
|
75
|
+
/* @__PURE__ */ jsxs("div", { style: {
|
|
76
|
+
position: "absolute",
|
|
77
|
+
top: 0,
|
|
78
|
+
left: 0,
|
|
79
|
+
width: 280,
|
|
80
|
+
height: 280,
|
|
81
|
+
transformOrigin: "top left",
|
|
82
|
+
transform: scale !== 1 ? `scale(${scale})` : void 0
|
|
83
|
+
}, children: [
|
|
84
|
+
/* @__PURE__ */ jsxs(
|
|
85
|
+
"svg",
|
|
86
|
+
{
|
|
87
|
+
viewBox: "0 0 280 280",
|
|
88
|
+
width: "280",
|
|
89
|
+
height: "280",
|
|
90
|
+
style: { position: "absolute", inset: 0 },
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ jsxs("defs", { children: [
|
|
94
|
+
/* @__PURE__ */ jsxs("radialGradient", { id: "mh-center-glow", cx: "50%", cy: "50%", r: "50%", children: [
|
|
95
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#0e9dff", stopOpacity: "0.3" }),
|
|
96
|
+
/* @__PURE__ */ jsx("stop", { offset: "40%", stopColor: "#8a5cf6", stopOpacity: "0.15" }),
|
|
97
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "transparent", stopOpacity: "0" })
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "mh-gp", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
100
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#22c55e" }),
|
|
101
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#8a5cf6" })
|
|
102
|
+
] }),
|
|
103
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "mh-bp", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
104
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#0e9dff" }),
|
|
105
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#8a5cf6" })
|
|
106
|
+
] }),
|
|
107
|
+
/* @__PURE__ */ jsxs("filter", { id: "mh-glow", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
108
|
+
/* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: "2.5", result: "blur" }),
|
|
109
|
+
/* @__PURE__ */ jsxs("feMerge", { children: [
|
|
110
|
+
/* @__PURE__ */ jsx("feMergeNode", { in: "blur" }),
|
|
111
|
+
/* @__PURE__ */ jsx("feMergeNode", { in: "SourceGraphic" })
|
|
112
|
+
] })
|
|
113
|
+
] })
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ jsx("circle", { cx: C, cy: C, r: ORBIT_R, fill: "none", stroke: "#0e9dff", strokeWidth: "1", strokeOpacity: "0.25", opacity: "0.4", children: anim && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
116
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "r", values: `${ORBIT_R};${Math.round(ORBIT_R * 1.12)};${ORBIT_R}`, dur: "2.5s", repeatCount: "indefinite" }),
|
|
117
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.4;0;0.4", dur: "2.5s", repeatCount: "indefinite" })
|
|
118
|
+
] }) }),
|
|
119
|
+
/* @__PURE__ */ jsx("circle", { cx: C, cy: C, r: 80, fill: "none", stroke: "rgba(255,255,255,0.1)", strokeWidth: "1", strokeDasharray: "4 4" }),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
"g",
|
|
122
|
+
{
|
|
123
|
+
style: {
|
|
124
|
+
animation: anim ? "mha-orbit-spin 20s linear infinite" : void 0,
|
|
125
|
+
transformOrigin: "50% 50%",
|
|
126
|
+
transformBox: "view-box"
|
|
127
|
+
},
|
|
128
|
+
children: PROTOCOLS.map((protocol, i) => {
|
|
129
|
+
const angle = i / N * 2 * Math.PI;
|
|
130
|
+
const dx = Math.cos(angle);
|
|
131
|
+
const dy = Math.sin(angle);
|
|
132
|
+
const x1 = C + dx * 28;
|
|
133
|
+
const y1 = C + dy * 28;
|
|
134
|
+
const x2 = C + dx * (ORBIT_R - BADGE_HALF);
|
|
135
|
+
const y2 = C + dy * (ORBIT_R - BADGE_HALF);
|
|
136
|
+
const color = PROTOCOL_COLORS[protocol.network] ?? "#ffffff";
|
|
137
|
+
const dur = `${2 + i * 0.3}s`;
|
|
138
|
+
return /* @__PURE__ */ jsxs("g", { children: [
|
|
139
|
+
/* @__PURE__ */ jsx(
|
|
140
|
+
"line",
|
|
141
|
+
{
|
|
142
|
+
x1,
|
|
143
|
+
y1,
|
|
144
|
+
x2,
|
|
145
|
+
y2,
|
|
146
|
+
stroke: color,
|
|
147
|
+
strokeWidth: "0.8",
|
|
148
|
+
strokeDasharray: "2 4",
|
|
149
|
+
opacity: "0.25",
|
|
150
|
+
children: anim && /* @__PURE__ */ jsx("animate", { attributeName: "stroke-dashoffset", from: "0", to: "-12", dur: `${1.5 + i * 0.2}s`, repeatCount: "indefinite" })
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ jsx("circle", { r: "2", fill: color, opacity: "0", children: anim && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
154
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "cx", values: `${x1};${x2}`, dur, repeatCount: "indefinite" }),
|
|
155
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "cy", values: `${y1};${y2}`, dur, repeatCount: "indefinite" }),
|
|
156
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0;0.85;0", dur, repeatCount: "indefinite" }),
|
|
157
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "r", values: "1.5;2.5;1.5", dur, repeatCount: "indefinite" })
|
|
158
|
+
] }) })
|
|
159
|
+
] }, `line-${i}`);
|
|
160
|
+
})
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
/* @__PURE__ */ jsx("circle", { cx: C, cy: C, r: "42", fill: "url(#mh-center-glow)", children: anim && /* @__PURE__ */ jsx("animate", { attributeName: "r", values: "38;46;38", dur: "4s", repeatCount: "indefinite" }) }),
|
|
164
|
+
/* @__PURE__ */ jsx("circle", { cx: C, cy: C, r: "29", fill: "none", stroke: "url(#mh-bp)", strokeWidth: "1", opacity: "0", children: anim && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
165
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "r", values: "27;38", dur: "3s", repeatCount: "indefinite" }),
|
|
166
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.4;0", dur: "3s", repeatCount: "indefinite" })
|
|
167
|
+
] }) }),
|
|
168
|
+
/* @__PURE__ */ jsx("circle", { cx: C, cy: C, r: "27", fill: "none", stroke: "url(#mh-gp)", strokeWidth: "0.8", opacity: "0", children: anim && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
169
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "r", values: "27;36", dur: "3s", repeatCount: "indefinite", begin: "1.5s" }),
|
|
170
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.3;0", dur: "3s", repeatCount: "indefinite", begin: "1.5s" })
|
|
171
|
+
] }) }),
|
|
172
|
+
/* @__PURE__ */ jsx("g", { transform: `translate(${C},${C})`, children: /* @__PURE__ */ jsxs("g", { children: [
|
|
173
|
+
anim && /* @__PURE__ */ jsx(
|
|
174
|
+
"animateTransform",
|
|
175
|
+
{
|
|
176
|
+
attributeName: "transform",
|
|
177
|
+
type: "rotate",
|
|
178
|
+
from: "0",
|
|
179
|
+
to: "360",
|
|
180
|
+
dur: "40s",
|
|
181
|
+
repeatCount: "indefinite",
|
|
182
|
+
additive: "sum"
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
/* @__PURE__ */ jsx("path", { d: hexPath(34), fill: "none", stroke: "url(#mh-gp)", strokeWidth: "1.5", opacity: "0.4", filter: "url(#mh-glow)", children: anim && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
186
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.3;0.65;0.3", dur: "3s", repeatCount: "indefinite" }),
|
|
187
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "stroke-width", values: "1.5;2.5;1.5", dur: "3s", repeatCount: "indefinite" })
|
|
188
|
+
] }) })
|
|
189
|
+
] }) }),
|
|
190
|
+
/* @__PURE__ */ jsx("g", { transform: `translate(${C},${C})`, children: /* @__PURE__ */ jsxs("g", { children: [
|
|
191
|
+
anim && /* @__PURE__ */ jsx(
|
|
192
|
+
"animateTransform",
|
|
193
|
+
{
|
|
194
|
+
attributeName: "transform",
|
|
195
|
+
type: "rotate",
|
|
196
|
+
from: "0",
|
|
197
|
+
to: "-360",
|
|
198
|
+
dur: "40s",
|
|
199
|
+
repeatCount: "indefinite",
|
|
200
|
+
additive: "sum"
|
|
201
|
+
}
|
|
202
|
+
),
|
|
203
|
+
/* @__PURE__ */ jsx("path", { d: hexPath(32), fill: "rgba(10,15,30,0.75)", stroke: "rgba(255,255,255,0.08)", strokeWidth: "0.5" })
|
|
204
|
+
] }) }),
|
|
205
|
+
/* @__PURE__ */ jsxs("g", { transform: `translate(${C - 18.8},${C - 18.8}) scale(0.0912)`, children: [
|
|
206
|
+
/* @__PURE__ */ jsx("path", { d: "M137.306 411.865H0.000244141L68.6795 343.29L137.306 411.865Z", fill: "#6F32FF" }),
|
|
207
|
+
/* @__PURE__ */ jsx("path", { d: "M0 0H137.306L68.6267 68.574L0 0Z", fill: "#6F32FF" }),
|
|
208
|
+
/* @__PURE__ */ jsx("path", { d: "M137.148 274.559H274.455L411.708 411.866H274.401L137.148 274.559Z", fill: "#17B581" }),
|
|
209
|
+
/* @__PURE__ */ jsx("path", { d: "M137.149 274.559L68.6274 205.933L137.201 137.306L274.455 137.411L205.776 206.038L274.456 274.559H137.149Z", fill: "#15E99A" }),
|
|
210
|
+
/* @__PURE__ */ jsx("path", { d: "M274.479 0.104797H411.786L274.533 137.411H137.226L274.479 0.104797Z", fill: "#17B581" })
|
|
211
|
+
] })
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ jsx("div", { style: {
|
|
216
|
+
position: "absolute",
|
|
217
|
+
inset: 0,
|
|
218
|
+
width: 280,
|
|
219
|
+
height: 280,
|
|
220
|
+
animation: anim ? "mha-orbit-spin 20s linear infinite" : "none"
|
|
221
|
+
}, children: PROTOCOLS.map((protocol, i) => {
|
|
222
|
+
const angle = i / N * 2 * Math.PI;
|
|
223
|
+
const x = C + Math.cos(angle) * ORBIT_R - BADGE_HALF;
|
|
224
|
+
const y = C + Math.sin(angle) * ORBIT_R - BADGE_HALF;
|
|
225
|
+
const color = PROTOCOL_COLORS[protocol.network] ?? "#ffffff";
|
|
226
|
+
return /* @__PURE__ */ jsx(
|
|
227
|
+
"div",
|
|
228
|
+
{
|
|
229
|
+
style: {
|
|
230
|
+
position: "absolute",
|
|
231
|
+
left: x,
|
|
232
|
+
top: y,
|
|
233
|
+
width: BADGE_SIZE,
|
|
234
|
+
height: BADGE_SIZE,
|
|
235
|
+
animation: anim ? "mha-counter-spin 20s linear infinite" : "none"
|
|
236
|
+
},
|
|
237
|
+
children: /* @__PURE__ */ jsx("div", { style: {
|
|
238
|
+
width: "100%",
|
|
239
|
+
height: "100%",
|
|
240
|
+
borderRadius: "50%",
|
|
241
|
+
overflow: "hidden",
|
|
242
|
+
background: "rgba(255,255,255,0.05)",
|
|
243
|
+
backdropFilter: "blur(4px)",
|
|
244
|
+
border: `1px solid ${color}55`,
|
|
245
|
+
display: "flex",
|
|
246
|
+
alignItems: "center",
|
|
247
|
+
justifyContent: "center"
|
|
248
|
+
}, children: /* @__PURE__ */ jsx(
|
|
249
|
+
"img",
|
|
250
|
+
{
|
|
251
|
+
src: iconBasePath ? `${iconBasePath}/${protocol.iconSuffix}` : protocolIcons[protocol.network] ?? protocol.iconSuffix,
|
|
252
|
+
alt: protocol.name,
|
|
253
|
+
className: protocol.network === "Spark" ? "kui-mono-icon" : void 0,
|
|
254
|
+
style: { width: 20, height: 20, objectFit: "contain" }
|
|
255
|
+
}
|
|
256
|
+
) })
|
|
257
|
+
},
|
|
258
|
+
i
|
|
259
|
+
);
|
|
260
|
+
}) })
|
|
261
|
+
] })
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export {
|
|
268
|
+
MobileHeroAnimation
|
|
269
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Icon
|
|
4
|
+
} from "./chunk-A6MSV4MA.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "./chunk-PMGIJMRO.js";
|
|
8
|
+
|
|
9
|
+
// src/web/components/info-panel.tsx
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var toneClass = {
|
|
12
|
+
default: {
|
|
13
|
+
panel: "bg-card/55 backdrop-blur-xl backdrop-saturate-150 bg-gradient-card shadow-card",
|
|
14
|
+
icon: "text-secondary-content",
|
|
15
|
+
title: "text-foreground"
|
|
16
|
+
},
|
|
17
|
+
primary: {
|
|
18
|
+
panel: "bg-primary/10",
|
|
19
|
+
icon: "text-brand",
|
|
20
|
+
title: "text-brand"
|
|
21
|
+
},
|
|
22
|
+
info: {
|
|
23
|
+
panel: "bg-info/10 bg-gradient-card shadow-raised",
|
|
24
|
+
icon: "text-info-fg",
|
|
25
|
+
title: "text-info-fg"
|
|
26
|
+
},
|
|
27
|
+
warning: {
|
|
28
|
+
panel: "bg-warning/10",
|
|
29
|
+
icon: "text-warning-fg",
|
|
30
|
+
title: "text-warning-fg"
|
|
31
|
+
},
|
|
32
|
+
danger: {
|
|
33
|
+
panel: "bg-danger/10",
|
|
34
|
+
icon: "text-danger-fg",
|
|
35
|
+
title: "text-danger-fg"
|
|
36
|
+
},
|
|
37
|
+
success: {
|
|
38
|
+
panel: "bg-success/10",
|
|
39
|
+
icon: "text-success-fg",
|
|
40
|
+
title: "text-success-fg"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
function InfoPanel({
|
|
44
|
+
tone = "info",
|
|
45
|
+
title,
|
|
46
|
+
icon = tone === "danger" ? "warning" : tone === "success" ? "check_circle" : "info",
|
|
47
|
+
children,
|
|
48
|
+
className
|
|
49
|
+
}) {
|
|
50
|
+
const styles = toneClass[tone];
|
|
51
|
+
const renderedIcon = typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, className: cn("mt-0.5 shrink-0 text-icon-xl", styles.icon) }) : icon;
|
|
52
|
+
return /* @__PURE__ */ jsx("div", { className: cn("rounded-xl p-4", styles.panel, className), children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
53
|
+
renderedIcon,
|
|
54
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
55
|
+
title && /* @__PURE__ */ jsx("p", { className: cn("text-body font-bold", styles.title), children: title }),
|
|
56
|
+
/* @__PURE__ */ jsx("div", { className: cn("text-caption leading-relaxed", title ? "mt-1" : "", styles.title), children })
|
|
57
|
+
] })
|
|
58
|
+
] }) });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
InfoPanel
|
|
63
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-PMGIJMRO.js";
|
|
5
|
+
|
|
6
|
+
// src/web/components/settings-selector-row.tsx
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function SettingsSelectorRow({
|
|
9
|
+
icon,
|
|
10
|
+
title,
|
|
11
|
+
description,
|
|
12
|
+
control,
|
|
13
|
+
className,
|
|
14
|
+
iconClassName
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-start justify-between gap-3 rounded-2xl bg-card/55 backdrop-blur-xl backdrop-saturate-150 bg-gradient-card p-5 shadow-card-secondary", className), children: [
|
|
17
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
18
|
+
/* @__PURE__ */ jsx(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
className: cn(
|
|
22
|
+
"flex size-10 shrink-0 items-center justify-center rounded-xl bg-secondary/15 text-secondary-content",
|
|
23
|
+
iconClassName
|
|
24
|
+
),
|
|
25
|
+
children: icon
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
29
|
+
/* @__PURE__ */ jsx("span", { className: "text-body font-bold tracking-wide text-foreground", children: title }),
|
|
30
|
+
description && /* @__PURE__ */ jsx("span", { className: "mt-0.5 text-caption font-medium text-muted-foreground", children: description })
|
|
31
|
+
] })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ jsx("div", { className: "shrink-0", children: control })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
SettingsSelectorRow
|
|
39
|
+
};
|