@latchprotocol/widgets 0.1.1 → 0.1.2

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 CHANGED
@@ -252,7 +252,7 @@ For a project site with no bundler and no React, `dist/latch-embed.js` (IIFE, al
252
252
  | `pool` / `token` | a pool id (add `pool-type="bin"` for a Bin pool) or a token address |
253
253
  | `rpc` | read through this RPC instead of the chain's public endpoints |
254
254
  | `site` | the Latch site origin; with it the badge links to the public lock page and shows the brand kit's mark (`<site>/brand/latch-mark-blue.png`, as shipped, 24 px), without it neither |
255
- | `theme` | `light`, `dark` or `system` (default) |
255
+ | `theme` | `dark` (default), `light` or `system` |
256
256
  | `refresh` | seconds between re-reads (default 60, minimum 15, `0` = never) |
257
257
 
258
258
  It reads the same way as `LocksBadge` and says only what it read: "X% of active liquidity locked", "Locked permanently (LP locker)", "Y% of supply locked" (the share of supply not yet vested), "No locked liquidity". It never says "safe". The Latch site serves the file at `/embed/latch-embed.js` and has an iframe form at `/embed/lock-badge?net=<network>&pool=…|token=…`; each public lock page's **Embed badge** button prints both, filled in, with a live preview. The ESM entry `@latchprotocol/widgets/embed` exports `defineLatchLockBadge()` for bundled hosts.
@@ -328,7 +328,7 @@ Every colour, radius, font and spacing value is a `--latch-*` custom property de
328
328
  }
329
329
  ```
330
330
 
331
- Light and dark ship by default. `theme="light" | "dark" | "system"` on the provider; `system` follows `prefers-color-scheme`.
331
+ Light and dark both ship, and dark is the default. `theme="dark" | "light" | "system"` on the provider; `system` follows `prefers-color-scheme`.
332
332
 
333
333
  The full token set: `--latch-bg`, `--latch-bg-elevated`, `--latch-bg-sunken`, `--latch-border`, `--latch-border-strong`, `--latch-text`, `--latch-text-muted`, `--latch-text-inverted`, `--latch-accent`, `--latch-accent-hover`, `--latch-accent-text`, `--latch-success`, `--latch-warning`, `--latch-warning-bg`, `--latch-danger`, `--latch-danger-bg`, `--latch-focus`, `--latch-radius`, `--latch-radius-sm`, `--latch-font`, `--latch-font-mono`, `--latch-font-size`, `--latch-font-size-sm`, `--latch-font-size-lg`, `--latch-gap`, `--latch-padding`, `--latch-control-height`, `--latch-shadow`.
334
334
 
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as l, Fragment as X } from "react/jsx-runtime";
2
2
  import { createContext as ht, useContext as ut, useId as ge, useMemo as R, useState as L, useEffect as I, useCallback as V, forwardRef as pt, useReducer as mt, useRef as oe, useImperativeHandle as gt } from "react";
3
- import { at as q, aj as Je, bX as le, aS as bt, aA as Q, br as H, bK as ft, bl as Se, bJ as vt, bH as xt, bC as xe, b4 as se, bU as Le, bI as kt, a2 as wt, aB as Pe, az as W, au as $e, bN as yt, a7 as _t, bM as Nt, ah as Ct, ab as Tt, b3 as zt, bE as St, bD as Lt, ak as qe, bO as Pt, b_ as $t, bh as qt, bQ as It, bu as ze, z as Ve, _ as At, j as Rt, aK as Bt, bm as Ft, bV as Mt, bW as Ot, ad as Et, a_ as Qe, bt as jt, aM as Dt, b0 as Ut, bT as Wt, bS as Vt, bb as Qt, a6 as Ht, bo as Yt, an as Gt, bc as Kt, b2 as Xt, aZ as Jt, bn as He, a$ as Zt } from "./scan-Dhu7f4Nl.js";
3
+ import { at as q, aj as Je, bX as le, aS as bt, aA as Q, br as H, bK as ft, bl as Se, bJ as vt, bH as xt, bC as xe, b4 as se, bU as Le, bI as kt, a2 as wt, aB as Pe, az as W, au as $e, bN as yt, a7 as _t, bM as Nt, ah as Ct, ab as Tt, b3 as zt, bE as St, bD as Lt, ak as qe, bO as Pt, b_ as $t, bh as qt, bQ as It, bu as ze, z as Ve, _ as At, j as Rt, aK as Bt, bm as Ft, bV as Mt, bW as Ot, ad as Et, a_ as Qe, bt as jt, aM as Dt, b0 as Ut, bT as Wt, bS as Vt, bb as Qt, a6 as Ht, bo as Yt, an as Gt, bc as Kt, b2 as Xt, aZ as Jt, bn as He, a$ as Zt } from "./scan-Cdm3p_wF.js";
4
4
  import { humanDuration as ea, isDynamicLPFee as ta } from "@latchprotocol/sdk";
5
5
  import { formatUnits as Ze } from "viem";
6
6
  import * as me from "@radix-ui/react-popover";
@@ -2393,4 +2393,4 @@ export {
2393
2393
  de as l,
2394
2394
  at as m
2395
2395
  };
2396
- //# sourceMappingURL=SwapWidget-CwkRtOfn.js.map
2396
+ //# sourceMappingURL=SwapWidget-B0oDyBNK.js.map