From 2d770da5113f22c80b465b57b313e5acd054cb5c Mon Sep 17 00:00:00 2001 From: Mohamadzadeh <7796733@gmail.com> Date: Tue, 27 Oct 2026 18:49:01 +0330 Subject: [PATCH] uikit-v1.3.2-variable-font-complete --- FONT_VARIABLE_RANGE_1.3.2.md | 7 +++++++ dist/chakra.js | 2 +- .../{BiProvider-B7XtDeW9.js => BiProvider-Bnbwo_Mg.js} | 2 +- dist/core.js | 4 ++-- dist/provider-legacy.js | 2 +- package.json | 2 +- src/chakra/index.jsx | 2 +- src/core/style.jsx | 2 +- 8 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 FONT_VARIABLE_RANGE_1.3.2.md rename dist/chunks/{BiProvider-B7XtDeW9.js => BiProvider-Bnbwo_Mg.js} (99%) diff --git a/FONT_VARIABLE_RANGE_1.3.2.md b/FONT_VARIABLE_RANGE_1.3.2.md new file mode 100644 index 0000000..9e8cc46 --- /dev/null +++ b/FONT_VARIABLE_RANGE_1.3.2.md @@ -0,0 +1,7 @@ +# Estedad variable-font declaration (v1.3.2) + +The distributed font contains `wght` values from 100 through 900 (also `kshd` 100 through 200). Previous versions declared only `font-weight: 400` inside the `@font-face` rule, causing browsers to match or synthesize other text weights instead of selecting real variable-font weights. + +This patch changes only the `@font-face` descriptor to `font-weight: 100 900`, preserving the same font bytes, URL, family, default theme, and all Provider behavior. Both modular Chakra and legacy core, plus their distributed bundles, are updated. No font is installed in applications separately. + +Browser-integrated verification is still required after publishing. diff --git a/dist/chakra.js b/dist/chakra.js index d99a4a9..a648280 100644 --- a/dist/chakra.js +++ b/dist/chakra.js @@ -51,7 +51,7 @@ function y({ children: i, theme: t = g, fonts: d = !0, remoteUiEnabled: r = !0, chakraProviderProps: { ...o.chakraProviderProps, ...a } }; }, [r, t, a]), /* @__PURE__ */ e(n, { theme: t, ...c, children: /* @__PURE__ */ f(b.Provider, { value: /* @__PURE__ */ e(w, {}), children: [ - d && /* @__PURE__ */ e(x, { styles: `@font-face { font-family: Estedad; src: url("${I}") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }` }), + d && /* @__PURE__ */ e(x, { styles: `@font-face { font-family: Estedad; src: url("${I}") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }` }), i ] }) }); } diff --git a/dist/chunks/BiProvider-B7XtDeW9.js b/dist/chunks/BiProvider-Bnbwo_Mg.js similarity index 99% rename from dist/chunks/BiProvider-B7XtDeW9.js rename to dist/chunks/BiProvider-Bnbwo_Mg.js index 201e3f7..b0f98bf 100644 --- a/dist/chunks/BiProvider-B7XtDeW9.js +++ b/dist/chunks/BiProvider-Bnbwo_Mg.js @@ -322,7 +322,7 @@ const Ae = new Z({ @font-face { font-family: Estedad; src: url("${ae}") format("woff2"); - font-weight: 400; + font-weight: 100 900; font-style: normal; font-display: swap; } diff --git a/dist/core.js b/dist/core.js index 666dd5a..360a802 100644 --- a/dist/core.js +++ b/dist/core.js @@ -1,5 +1,5 @@ -import { a as w, f as $ } from "./chunks/BiProvider-B7XtDeW9.js"; -import { A as z, B as I, C as M, K as x, P as J, b as V, c as W, d as X, e as Y, g as Z, h as _, i as D, j as N, k as ee, l as ne, m as te, n as se, o as re, p as ie, q as oe, s as ue, u as ce, r as ae } from "./chunks/BiProvider-B7XtDeW9.js"; +import { a as w, f as $ } from "./chunks/BiProvider-Bnbwo_Mg.js"; +import { A as z, B as I, C as M, K as x, P as J, b as V, c as W, d as X, e as Y, g as Z, h as _, i as D, j as N, k as ee, l as ne, m as te, n as se, o as re, p as ie, q as oe, s as ue, u as ce, r as ae } from "./chunks/BiProvider-Bnbwo_Mg.js"; import { useQueryClient as v, useMutation as Q, useQuery as k } from "@tanstack/react-query"; import { usePermission as fe } from "./core-runtime.js"; function g(e) { diff --git a/dist/provider-legacy.js b/dist/provider-legacy.js index f7a3fe8..dac96c1 100644 --- a/dist/provider-legacy.js +++ b/dist/provider-legacy.js @@ -1,5 +1,5 @@ "use client"; -import { B as e } from "./chunks/BiProvider-B7XtDeW9.js"; +import { B as e } from "./chunks/BiProvider-Bnbwo_Mg.js"; export { e as BiProvider }; diff --git a/package.json b/package.json index 5aca432..9e51587 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uikit", - "version": "1.3.0", + "version": "1.3.2", "type": "module", "main": "./dist/index.js", "module": "./dist/index.js", diff --git a/src/chakra/index.jsx b/src/chakra/index.jsx index f10a260..0b7089a 100644 --- a/src/chakra/index.jsx +++ b/src/chakra/index.jsx @@ -56,7 +56,7 @@ function ChakraLayer({ children, theme = defaultBiTheme, fonts = true, remoteUiE return }> - {fonts && } + {fonts && } {children} ; diff --git a/src/core/style.jsx b/src/core/style.jsx index 492b6a6..d274806 100644 --- a/src/core/style.jsx +++ b/src/core/style.jsx @@ -48,7 +48,7 @@ export const Fonts = () => ( @font-face { font-family: Estedad; src: url("${estedadFont}") format("woff2"); - font-weight: 400; + font-weight: 100 900; font-style: normal; font-display: swap; }