@povio/ui 5.0.0-rc.10 → 5.0.0-rc.12
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/README.md +6 -0
- package/dist/{AppCanvasPage-BIFYeEeS.d.ts → AppCanvasPage-BZ2mrKY4.d.ts} +5 -1
- package/dist/{AppCanvasPage-BEER5hHp.js → AppCanvasPage-DCjiFfQW.js} +1458 -362
- package/dist/CanvasComponentsFrame-CZXY0Dxi.js +21 -0
- package/dist/{ComponentGallery-CMFrbwEN.js → ComponentGallery-D4U5hXZL.js} +76 -15
- package/dist/{UIConfigurator-CTlq-hrG.js → UIConfigurator-CBU0G6rb.js} +1019 -817
- package/dist/config/app-canvas-tanstack.d.ts +1 -1
- package/dist/config/app-canvas-tanstack.js +1 -1
- package/dist/config/app-canvas.d.ts +2 -2
- package/dist/config/app-canvas.js +1 -1
- package/dist/config/ui-configurator-theme.js +1 -1
- package/dist/config/ui-configurator-vite.d.ts +2 -0
- package/dist/config/ui-configurator-vite.js +293 -4
- package/dist/config/ui-configurator.d.ts +1 -1
- package/dist/config/ui-configurator.js +2 -2
- package/dist/{configuration.context-DP4p1cIe.d.ts → configuration.context-iuZu-ie0.d.ts} +14 -0
- package/dist/groups-oQmSeqXn.js +18 -0
- package/dist/styles/app-canvas.css +617 -114
- package/dist/styles/configurator.css +461 -206
- package/dist/{theme-model-DtYPxNvH.js → theme-model-DtTsIxou.js} +3 -1
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ function groupFor(name) {
|
|
|
22
22
|
if (name.startsWith("--container-")) return "Sizing";
|
|
23
23
|
return "Effects";
|
|
24
24
|
}
|
|
25
|
+
/** Whether the configurator lists this token, so an inspector can link to it. `--color-*` wrappers link via `-base`. */
|
|
26
|
+
const isEditableToken = (name, defaults) => (name in defaults.theme || name in defaults.light || name in defaults.dark) && !name.startsWith("--color-");
|
|
25
27
|
const labelFor = (name) => name.replace(/^--/, "").replace(/-base$/, "").replaceAll("-", " ");
|
|
26
28
|
const isRgb = (value) => /^\d+\s+\d+\s+\d+$/.test(value);
|
|
27
29
|
const toHex = (value) => `#${value.split(/\s+/).map((part) => Number(part).toString(16).padStart(2, "0")).join("")}`;
|
|
@@ -403,4 +405,4 @@ function darkFallback(defaults, edits) {
|
|
|
403
405
|
return Object.fromEntries(Object.keys(edits.light).filter((key) => key in defaults.dark).map((key) => [key, defaults.dark[key]]));
|
|
404
406
|
}
|
|
405
407
|
//#endregion
|
|
406
|
-
export {
|
|
408
|
+
export { toRgb as C, toHex as S, listedLayoutToken as _, generateShades as a, runtimeCss as b, isEditableToken as c, labelFor as d, layoutKindFor as f, linkedLayoutTokens as g, layoutScales as h, exportCss as i, isFontSizeToken as l, layoutLevelFor as m, controlHeightCounterpart as n, groupFor as o, layoutKinds as p, emptyTheme as r, groups as s, baseColorNames as t, isRgb as u, parseThemeCss as v, validToken as w, spacingLevels as x, previewTokens as y };
|