@chenyqthu/tp-mobile-ui-kit 0.2.0 → 0.2.1

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/catalog.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-11-23T22:48:47.952Z",
3
+ "generatedAt": "2026-11-24T00:53:16.666Z",
4
4
  "package": {
5
5
  "name": "@chenyqthu/tp-mobile-ui-kit",
6
- "version": "0.2.0",
6
+ "version": "0.2.1",
7
7
  "description": "TP-Link multi-brand mobile React UI component library (TP-Design 12-mode Theme Engine + Omada APP 5.3 Blocks & Real PAG Motion Assets + Single-file HTML standalone bundle)",
8
8
  "entries": {
9
9
  ".": "@chenyqthu/tp-mobile-ui-kit",
@@ -18,15 +18,15 @@
18
18
  "jsdelivrCss": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@latest/dist/style.css",
19
19
  "jsdelivrStandalone": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@latest/dist/standalone.js",
20
20
  "jsdelivrWasm": "https://cdn.jsdelivr.net/npm/libpag@4.5.85/lib/libpag.wasm",
21
- "pinnedCss": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.0/dist/style.css",
22
- "pinnedStandalone": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.0/dist/standalone.js"
21
+ "pinnedCss": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.1/dist/style.css",
22
+ "pinnedStandalone": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.1/dist/standalone.js"
23
23
  }
24
24
  },
25
25
  "counts": {
26
26
  "components": 77,
27
27
  "blocks": 7,
28
28
  "pages": 10,
29
- "hooksAndHelpers": 9,
29
+ "hooksAndHelpers": 11,
30
30
  "brands": 6,
31
31
  "themePresets": 12,
32
32
  "templates": 3,
@@ -1909,6 +1909,24 @@
1909
1909
  }
1910
1910
  ]
1911
1911
  },
1912
+ {
1913
+ "name": "computeLiquidGlassDisplacementField",
1914
+ "category": "core-nav-controls",
1915
+ "kind": "helper",
1916
+ "subpath": "@chenyqthu/tp-mobile-ui-kit/core",
1917
+ "sourcePath": "src/core/utils/liquidGlassEngine.ts",
1918
+ "description": "Computes a rounded-rectangle SDF displacement field using a convex squircle profile and Snell's law refraction (`n1 = 1.0 -> n2 = 1.5`), keeping interior center pixels neutral (`R = 128, G = 128`) and refracting along the curved bezel rim.",
1919
+ "signature": "(options: LiquidGlassFieldOptions): LiquidGlassFieldResult"
1920
+ },
1921
+ {
1922
+ "name": "supportsSvgBackdropFilter",
1923
+ "category": "core-nav-controls",
1924
+ "kind": "helper",
1925
+ "subpath": "@chenyqthu/tp-mobile-ui-kit/core",
1926
+ "sourcePath": "src/core/utils/liquidGlassEngine.ts",
1927
+ "description": "Returns true only in Chromium desktop/Android browsers where SVG `backdrop-filter: url(#...)` samples live DOM pixels behind the element. Safari/WebKit and Firefox drop the entire `backdrop-filter` rule when `url(...)` appears, so they receive CSS fallback styling instead.",
1928
+ "signature": "(): boolean"
1929
+ },
1912
1930
  {
1913
1931
  "name": "TPButton",
1914
1932
  "category": "core-nav-controls",
@@ -2186,7 +2204,7 @@
2186
2204
  "kind": "component",
2187
2205
  "subpath": "@chenyqthu/tp-mobile-ui-kit/core",
2188
2206
  "sourcePath": "src/core/components/TPLiquidGlass.tsx",
2189
- "description": "Apple iOS 26/27 Liquid Glass surface primitive combining translucent refractive backdrop blur, a directional 135-degree specular rim highlight, and inner meniscus depth lighting.",
2207
+ "description": "Apple iOS 26/27 Liquid Glass surface primitive combining SDF Snell-law optical backdrop refraction (with subtle RGB dispersion in Chromium), directional 135-degree specular rim highlights, and inner meniscus depth lighting.",
2190
2208
  "propsType": "TPLiquidGlassProps",
2191
2209
  "props": [
2192
2210
  {
@@ -2204,6 +2222,26 @@
2204
2222
  "type": "boolean",
2205
2223
  "optional": true
2206
2224
  },
2225
+ {
2226
+ "name": "refraction",
2227
+ "type": "number",
2228
+ "optional": true
2229
+ },
2230
+ {
2231
+ "name": "dispersion",
2232
+ "type": "number",
2233
+ "optional": true
2234
+ },
2235
+ {
2236
+ "name": "blur",
2237
+ "type": "number",
2238
+ "optional": true
2239
+ },
2240
+ {
2241
+ "name": "optical",
2242
+ "type": "boolean",
2243
+ "optional": true
2244
+ },
2207
2245
  {
2208
2246
  "name": "as",
2209
2247
  "type": "'div' | 'button' | 'nav' | 'section'",
@@ -12310,8 +12348,8 @@
12310
12348
  "js": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@latest/dist/standalone.js"
12311
12349
  },
12312
12350
  "pinnedUrls": {
12313
- "css": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.0/dist/style.css",
12314
- "js": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.0/dist/standalone.js"
12351
+ "css": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.1/dist/style.css",
12352
+ "js": "https://cdn.jsdelivr.net/npm/@chenyqthu/tp-mobile-ui-kit@0.2.1/dist/standalone.js"
12315
12353
  }
12316
12354
  },
12317
12355
  {