@takazudo/zdtp 0.6.0 → 0.7.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/CHANGELOG.md +59 -0
- package/PORTABLE-CONTRACT.md +112 -0
- package/README.md +93 -0
- package/dist/astro/host-adapter.js +1 -1
- package/dist/components/color-picker/color-field.d.ts +3 -1
- package/dist/components/color-picker/color-picker.d.ts +3 -1
- package/dist/components/color-picker/custom-slider.d.ts +2 -1
- package/dist/dashboard/index.d.ts +4 -0
- package/dist/dashboard/index.js +408 -0
- package/dist/dashboard/model.d.ts +7 -0
- package/dist/dashboard/styles.css +328 -0
- package/dist/dashboard/token-dashboard.d.ts +27 -0
- package/dist/dashboard/types.d.ts +64 -0
- package/dist/{index-LYsbHWcy.js → index-BcqHRoxf.js} +1 -1
- package/dist/{index-DWs1XPfy.js → index-CUWkR-Gb.js} +4006 -3935
- package/dist/index.js +2 -2
- package/dist/testing.js +1 -1
- package/dist/{tweak-state-Dzr5kDhX.js → tweak-state-Dhjqig0C.js} +8 -8
- package/dist/utils/resolve-css-color.d.ts +12 -0
- package/dist/zdtp.css +1 -1
- package/package.json +8 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "preact/jsx-runtime";
|
|
2
2
|
import "preact";
|
|
3
|
-
import { S as i, c as n, d as l, _ as d, e as _, f as p, g as m, h as g, i as P, j as S, k as C, l as A, m as T, n as u, o as c, q as f, r as K, s as M, t as w, v as F, w as v, x, y as E, z as h, B as y } from "./index-
|
|
4
|
-
import { Z as b, a2 as k, x as H, w as L, a5 as V } from "./tweak-state-
|
|
3
|
+
import { S as i, c as n, d as l, _ as d, e as _, f as p, g as m, h as g, i as P, j as S, k as C, l as A, m as T, n as u, o as c, q as f, r as K, s as M, t as w, v as F, w as v, x, y as E, z as h, B as y } from "./index-CUWkR-Gb.js";
|
|
4
|
+
import { Z as b, a2 as k, x as H, w as L, a5 as V } from "./tweak-state-Dhjqig0C.js";
|
|
5
5
|
import { b as Y, c as B, s as G } from "./panel-config-Crn5QJGy.js";
|
|
6
6
|
import "./autoload-state-CGnis85c.js";
|
|
7
7
|
import "./constants.js";
|
package/dist/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as r, b as i, c as n, d as _, e as g, f as l, h as R, a as f } from "./panel-config-Crn5QJGy.js";
|
|
2
|
-
import { a as P, b as y, l as O } from "./tweak-state-
|
|
2
|
+
import { a as P, b as y, l as O } from "./tweak-state-Dhjqig0C.js";
|
|
3
3
|
import { F as E, G as S, a as V, S as d } from "./manifest-DvuKi7I4.js";
|
|
4
4
|
async function s(a, e) {
|
|
5
5
|
await a.fill(e), await a.dispatchEvent("input");
|
|
@@ -2036,18 +2036,18 @@ export {
|
|
|
2036
2036
|
nr as h,
|
|
2037
2037
|
qn as i,
|
|
2038
2038
|
Rr as j,
|
|
2039
|
-
|
|
2039
|
+
Nr as k,
|
|
2040
2040
|
Jr as l,
|
|
2041
|
-
|
|
2041
|
+
xr as m,
|
|
2042
2042
|
tr as n,
|
|
2043
2043
|
Mr as o,
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2044
|
+
kr as p,
|
|
2045
|
+
Sr as q,
|
|
2046
|
+
br as r,
|
|
2047
2047
|
D as s,
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2048
|
+
vr as t,
|
|
2049
|
+
wr as u,
|
|
2050
|
+
Z as v,
|
|
2051
2051
|
Lr as w,
|
|
2052
2052
|
or as x,
|
|
2053
2053
|
zr as y,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Whether a color needs browser evaluation instead of static parsing. */
|
|
2
|
+
export declare function isCssExpression(value: string): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Resolve a color in the document-root/body token context, returning the
|
|
5
|
+
* browser's computed serialization (which need not be rgb()).
|
|
6
|
+
*
|
|
7
|
+
* The probe lives outside panel scope: panel chrome's color-scheme: dark
|
|
8
|
+
* would collapse light-dark() to its dark side, and --tokentweak-* defaults
|
|
9
|
+
* could shadow host tokens. Sinks targeting a root other than document are
|
|
10
|
+
* outside this resolver's scope.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveCssColorInHost(value: string, mode?: 'light' | 'dark'): string | null;
|