uikit-v1.3.2-variable-font-complete
This commit is contained in:
parent
96a434129a
commit
2d770da511
7
FONT_VARIABLE_RANGE_1.3.2.md
Normal file
7
FONT_VARIABLE_RANGE_1.3.2.md
Normal file
@ -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.
|
||||
2
dist/chakra.js
vendored
2
dist/chakra.js
vendored
@ -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
|
||||
] }) });
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
4
dist/core.js
vendored
4
dist/core.js
vendored
@ -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) {
|
||||
|
||||
2
dist/provider-legacy.js
vendored
2
dist/provider-legacy.js
vendored
@ -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
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "uikit",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.2",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@ -56,7 +56,7 @@ function ChakraLayer({ children, theme = defaultBiTheme, fonts = true, remoteUiE
|
||||
|
||||
return <ChakraProvider theme={theme} {...providerProps}>
|
||||
<ChakraLoadingContext.Provider value={<Spinner />}>
|
||||
{fonts && <Global styles={`@font-face { font-family: Estedad; src: url("${fontUrl}") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }`} />}
|
||||
{fonts && <Global styles={`@font-face { font-family: Estedad; src: url("${fontUrl}") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }`} />}
|
||||
{children}
|
||||
</ChakraLoadingContext.Provider>
|
||||
</ChakraProvider>;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user