@webority/theme 0.86.1 → 0.87.0
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/published-theme.json +35 -3
- package/dist/purge-safelist.json +2 -0
- package/dist/webority-theme-export.mjs +1 -1
- package/dist/webority-theme.css +1 -1
- package/package.json +1 -1
- package/scss/_tokens.scss +65 -3
- package/scss/_wui-aliases.scss +2 -2
- package/scss/wui/_choice.scss +7 -0
- package/scss/wui/_code-block.scss +1 -1
- package/scss/wui/_controls.scss +25 -1
- package/scss/wui/_hover-card.scss +1 -1
- package/scss/wui/_interaction.scss +3 -25
- package/scss/wui/_kanban.scss +6 -6
- package/scss/wui/_lightbox.scss +1 -1
- package/scss/wui/_navigation-menu.scss +1 -1
- package/scss/wui/_onboarding-checklist.scss +1 -1
- package/scss/wui/_rich-text.scss +3 -3
- package/scss/wui/_shell.scss +5 -4
- package/scss/wui/_shortcuts.scss +1 -1
- package/scss/wui/_sortable.scss +1 -1
- package/scss/wui/_split-view.scss +1 -1
- package/scss/wui/_toolbar.scss +2 -2
- package/scss/wui/_utilities.scss +13 -0
- package/token-meanings.json +24 -2
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
"light": "#F4F6F8",
|
|
29
29
|
"dark": "#F4F6F8"
|
|
30
30
|
},
|
|
31
|
+
"border-strong": {
|
|
32
|
+
"light": "#C4CADA",
|
|
33
|
+
"dark": "#C4CADA"
|
|
34
|
+
},
|
|
31
35
|
"chart-1": {
|
|
32
36
|
"light": "#4F46E5",
|
|
33
37
|
"dark": "#9590ef"
|
|
@@ -222,11 +226,11 @@
|
|
|
222
226
|
},
|
|
223
227
|
"neutral-bg-dark": {
|
|
224
228
|
"light": "#F5F6FA",
|
|
225
|
-
"dark": "#
|
|
229
|
+
"dark": "#232733"
|
|
226
230
|
},
|
|
227
231
|
"neutral-bg-light": {
|
|
228
232
|
"light": "#F9FBFC",
|
|
229
|
-
"dark": "#
|
|
233
|
+
"dark": "#181b23"
|
|
230
234
|
},
|
|
231
235
|
"neutral-border-dark": {
|
|
232
236
|
"light": "#EBEDF3",
|
|
@@ -413,9 +417,22 @@
|
|
|
413
417
|
"dark": "#876100"
|
|
414
418
|
}
|
|
415
419
|
},
|
|
416
|
-
"space": {
|
|
420
|
+
"space": {
|
|
421
|
+
"2xl": 32,
|
|
422
|
+
"3xl": 48,
|
|
423
|
+
"4xl": 64,
|
|
424
|
+
"lg": 16,
|
|
425
|
+
"md": 12,
|
|
426
|
+
"none": 0,
|
|
427
|
+
"sm": 8,
|
|
428
|
+
"xl": 24,
|
|
429
|
+
"xs": 4,
|
|
430
|
+
"xxs": 2
|
|
431
|
+
},
|
|
417
432
|
"radius": {
|
|
418
433
|
"lg": 14,
|
|
434
|
+
"md": 10,
|
|
435
|
+
"pill": 9999,
|
|
419
436
|
"sm": 8,
|
|
420
437
|
"xl": 16
|
|
421
438
|
},
|
|
@@ -447,6 +464,12 @@
|
|
|
447
464
|
}
|
|
448
465
|
},
|
|
449
466
|
"text": {
|
|
467
|
+
"48": {
|
|
468
|
+
"size": 48
|
|
469
|
+
},
|
|
470
|
+
"64": {
|
|
471
|
+
"size": 64
|
|
472
|
+
},
|
|
450
473
|
"2xl": {
|
|
451
474
|
"size": 32
|
|
452
475
|
},
|
|
@@ -462,6 +485,12 @@
|
|
|
462
485
|
"6xl": {
|
|
463
486
|
"size": 96
|
|
464
487
|
},
|
|
488
|
+
"7xl": {
|
|
489
|
+
"size": 120
|
|
490
|
+
},
|
|
491
|
+
"8xl": {
|
|
492
|
+
"size": 144
|
|
493
|
+
},
|
|
465
494
|
"base": {
|
|
466
495
|
"size": 17
|
|
467
496
|
},
|
|
@@ -471,6 +500,9 @@
|
|
|
471
500
|
"sm": {
|
|
472
501
|
"size": 14
|
|
473
502
|
},
|
|
503
|
+
"smb": {
|
|
504
|
+
"size": 15
|
|
505
|
+
},
|
|
474
506
|
"xl": {
|
|
475
507
|
"size": 24
|
|
476
508
|
},
|
package/dist/purge-safelist.json
CHANGED
|
@@ -1090,6 +1090,7 @@
|
|
|
1090
1090
|
"wui-inline-edit-spinner",
|
|
1091
1091
|
"wui-inline-edit-status",
|
|
1092
1092
|
"wui-inline-edit-value",
|
|
1093
|
+
"wui-input-xl",
|
|
1093
1094
|
"wui-kanban",
|
|
1094
1095
|
"wui-kanban-action",
|
|
1095
1096
|
"wui-kanban-actions",
|
|
@@ -1322,6 +1323,7 @@
|
|
|
1322
1323
|
"wui-score-scale__item--selected",
|
|
1323
1324
|
"wui-scroll",
|
|
1324
1325
|
"wui-search-collapsible",
|
|
1326
|
+
"wui-search-select-xl",
|
|
1325
1327
|
"wui-search-toggle",
|
|
1326
1328
|
"wui-section",
|
|
1327
1329
|
"wui-section-actions",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{readFileSync as e,writeFileSync as t}from"node:fs";var n=`webority-theme-tokens/1`,r=[`--wui-primary`,`--bs-primary`,`--bs-primary-rgb`,`--bs-link-color-rgb`,`--bs-body-font-family`];function i(e){console.error(`webority-theme-export: ${e}`),console.error(`usage: webority-theme-export <compiled.css>... --product <name> [--out <tokens.json>]`),process.exit(2)}function a(e){let t=[],n,r;for(let
|
|
2
|
+
import{readFileSync as e,writeFileSync as t}from"node:fs";var n=`webority-theme-tokens/1`,r=[`--wui-primary`,`--bs-primary`,`--bs-primary-rgb`,`--bs-link-color-rgb`,`--bs-body-font-family`];function i(e){console.error(`webority-theme-export: ${e}`),console.error(`usage: webority-theme-export <compiled.css>... --product <name> [--out <tokens.json>] [--widths 1440,390]`),process.exit(2)}function a(e){let t=[],n,r,a=[];for(let o=0;o<e.length;o++)e[o]===`--product`?n=e[++o]:e[o]===`--out`?r=e[++o]:e[o]===`--widths`?a=(e[++o]??``).split(`,`).map(e=>e.trim()):e[o].startsWith(`--`)?i(`unknown option ${e[o]}`):t.push(e[o]);return t.length===0&&i(`no compiled CSS file given`),(!n||!/^[a-z0-9-]+$/.test(n))&&i(`--product must be the product's lowercase name`),a.some(e=>!/^[1-9]\d*$/.test(e))&&i(`--widths takes whole pixel widths, such as 1440,390`),a.length>0&&!r&&i(`--widths needs --out, the file name each width's file is named after`),{files:t,product:n,out:r,widths:a.map(Number)}}var o=16;function s(e,t){let n=e.trim(),r=/^(clamp|calc|min|max)\((.*)\)$/.exec(n);if(r){let e=l(r[2],`,`).map(e=>s(e,t));return e.some(e=>e===null)?null:r[1]===`calc`?e.length===1?e[0]:null:r[1]===`clamp`?e.length===3?Math.min(Math.max(e[1],e[0]),e[2]):null:r[1]===`min`?Math.min(...e):Math.max(...e)}let i=n.split(/\s+/),a=0,c=1;for(let e=0;e<i.length;e++){if(e%2==1){if(i[e]!==`+`&&i[e]!==`-`)return null;c=i[e]===`+`?1:-1;continue}let n=/^(-?\d*\.?\d+)(px|rem|vw)?$/.exec(i[e]);if(!n||!n[2]&&Number(n[1])!==0)return null;let r=Number(n[1]),s=n[2]===`rem`?r*o:n[2]===`vw`?r*t/100:r;a+=c*s}return i.length%2==1?a:null}function c(e,t){return Object.fromEntries(Object.entries(e).map(([e,n])=>{let r=s(n,t);return[e,r===null?n:`${Math.round(r*100)/100}px`]}))}function l(e,t){let n=[],r=0,i=null,a=0;for(let o=0;o<e.length;o++){let s=e[o];i?s===`\\`?o++:s===i&&(i=null):s===`"`||s===`'`?i=s:s===`(`||s===`[`?r++:s===`)`||s===`]`?r--:s===t&&r===0&&(n.push(e.slice(a,o)),a=o+1)}return n.push(e.slice(a)),n}function u(e){let t=[],n=0,r=null,i=0,a=-1;for(let o=0;o<e.length;o++){let s=e[o];if(r)s===`\\`?o++:s===r&&(r=null);else if(s===`"`||s===`'`)r=s;else if(s===`{`)n===0&&(a=o),n++;else if(s===`}`){if(n--,n===0){let n=e.slice(i,a).trim();n.startsWith(`@`)||t.push({selectors:l(n,`,`).map(d),body:e.slice(a+1,o)}),i=o+1}}else s===`;`&&n===0&&(i=o+1)}return t}function d(e){return e.trim().replace(/\s+/g,` `).replace(/["']/g,``)}var f=new Set([`:root`,`[data-bs-theme=light]`,`:root[data-bs-theme=light]`,`:root[data-theme=light]`]),p=new Set([`:root[data-theme=dark]`,`:root[data-bs-theme=dark]`]),m=new Set([`[data-bs-theme=dark]`]);function h(e){let t=[];for(let n of l(e,`;`)){let e=n.indexOf(`:`);if(e<0)continue;let r=n.slice(0,e).trim();r.startsWith(`--`)&&t.push([r,n.slice(e+1).trim().replace(/\s*!important$/,``)])}return t}var{files:g,product:_,out:v,widths:y}=a(process.argv.slice(2)),b={},x={},S={};for(let t of g){let n=e(t,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``);for(let e of u(n)){let t=t=>e.selectors.some(e=>t.has(e)),n=t(p)?x:t(m)?S:t(f)?b:null;if(n)for(let[t,r]of h(e.body))n[t]=r}}var C=r.filter(e=>!(e in b));C.length>0&&(console.error(`webority-theme-export: ${g.join(`, `)} declares no ${C.join(`, `)} on :root.`),console.error(`Pass the compiled stylesheet that carries the full theme, not a page or component bundle.`),process.exit(1));var w=e=>Object.fromEntries(Object.entries(e).sort(([e],[t])=>e.localeCompare(t))),T=`${JSON.stringify({format:n,product:_,light:w(b),dark:w(x),bootstrapDark:w(S)},null,2)}\n`;if(y.length>0){let e=v.replace(/\.json$/i,``);for(let r of y){let i=`${e}-${r}.json`,a={light:c(b,r),dark:c(x,r),bootstrapDark:c(S,r)},o={format:n,product:_,width:r,light:w(a.light),dark:w(a.dark),bootstrapDark:w(a.bootstrapDark)};t(i,`${JSON.stringify(o,null,2)}\n`),process.stderr.write(`webority-theme-export: ${Object.keys(b).length} light values at ${r}px -> ${i}\n`)}}else v?(t(v,T),process.stderr.write(`webority-theme-export: ${Object.keys(b).length} light and ${Object.keys(x).length} dark and ${Object.keys(S).length} Bootstrap dark values -> ${v}\n`)):process.stdout.write(T);export{};
|