legato-ui 1.2.0 → 1.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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/chunks/{BovMd2iJ.js → DcMDMWRD.js} +13 -13
- package/dist/chunks/{KbPin6nM.js → Yh9MCKqK.js} +83 -70
- package/dist/composables.js +1 -1
- package/dist/index.js +2013 -2002
- package/dist/theme-generator.js +1 -0
- package/dist/utils/number.d.ts +2 -0
- package/dist/utils.js +2 -2
- package/package.json +1 -1
package/dist/theme-generator.js
CHANGED
|
@@ -177,6 +177,7 @@ function x(t) {
|
|
|
177
177
|
"@layer wl.tokens {",
|
|
178
178
|
` ${f} {`,
|
|
179
179
|
` color-scheme: ${r.colorScheme};`,
|
|
180
|
+
...n.mode === "full" ? [" text-rendering: var(--wl-type-text-rendering);"] : [],
|
|
180
181
|
...p.map((e) => {
|
|
181
182
|
let t = s[e.name] ?? h.get(e.name).themes?.[n.baseTheme] ?? e.value;
|
|
182
183
|
return ` ${e.name}: ${t};`;
|
package/dist/utils/number.d.ts
CHANGED
|
@@ -4,3 +4,5 @@ export declare function clamp(value: number, min: number, max: number): number;
|
|
|
4
4
|
/** A bounded percentage, including ranges whose finite endpoints overflow subtraction. */
|
|
5
5
|
export declare function toPercent(value: number, min: number, max: number): number;
|
|
6
6
|
export declare function roundToStep(value: number, step: number, min?: number): number;
|
|
7
|
+
/** Align the decimal operands so only the final sum is converted back to a number. */
|
|
8
|
+
export declare function addDecimalStep(value: number, step: number): number;
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, S as t,
|
|
1
|
+
import { C as e, S as t, T as n, _ as r, c as i, d as a, f as o, g as s, h as c, l, n as u, p as d, s as f, t as p, u as m, v as h, w as g, x as _, y as v } from "./chunks/Yh9MCKqK.js";
|
|
2
2
|
import { t as y } from "./chunks/Dq46i43b.js";
|
|
3
3
|
import { a as b, i as x, n as S, r as C, t as w } from "./chunks/CC86JZu0.js";
|
|
4
|
-
export { w as WL_STRING_COLOR_PALETTE,
|
|
4
|
+
export { w as WL_STRING_COLOR_PALETTE, _ as clamp, u as createWlLocaleFromIntl, p as deepMerge, t as finiteOr, c as formatWlBytes, s as formatWlCount, f as formatWlDate, r as formatWlNumber, h as formatWlPercent, i as formatWlRelativeTime, S as getWlColorFromString, C as getWlContrastRatio, l as getWlFirstDayOfWeek, y as getWlInitials, m as getWlMonthNames, a as getWlWeekdayNames, x as meetsWlContrast, n as mergeWlAttrs, b as normalizeWlHex, o as parseWlIsoDate, e as roundToStep, g as toPercent, d as toWlIsoDate, v as wlPlural };
|