@llumi/design-system 1.0.1 → 2.0.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/LICENSE +51 -0
- package/NOTICE +66 -0
- package/README.md +15 -205
- package/custom-elements.json +1135 -18
- package/dist/LICENSE +51 -0
- package/dist/NOTICE +66 -0
- package/dist/README.md +29 -0
- package/dist/adopt-global-styles-DykTxdm8.js +15 -0
- package/dist/base.css +2 -0
- package/dist/base.md +59 -0
- package/dist/bpmn.md +113 -0
- package/dist/bpmn.mjs +5076 -0
- package/dist/copy-button.md +128 -0
- package/dist/copy-button.mjs +161 -0
- package/dist/download-button.md +106 -0
- package/dist/download-button.mjs +177 -0
- package/dist/highlighter.md +45 -0
- package/dist/highlighter.mjs +403 -0
- package/dist/icon-button-BeLaqJmK.js +5 -0
- package/dist/icons-DBLWcA83.js +42 -0
- package/dist/index-elWLeWLs.js +7733 -0
- package/dist/llumi-element-DTeRDxao.js +22 -0
- package/dist/mermaid.md +58 -0
- package/dist/mermaid.mjs +254 -0
- package/dist/review.md +141 -0
- package/dist/review.mjs +1030 -696
- package/dist/slot-text-DW3pDxNK.js +51 -0
- package/dist/theme.css +2 -0
- package/package.json +73 -49
- package/dist/review.cjs +0 -172
- package/dist/review.css +0 -98
- package/dist/review.js +0 -172
- package/dist/types/components/review/comment-dialog.element.d.ts +0 -29
- package/dist/types/components/review/custom-target.utils.d.ts +0 -16
- package/dist/types/components/review/default-editor.element.d.ts +0 -19
- package/dist/types/components/review/highlight-manager.d.ts +0 -21
- package/dist/types/components/review/index.d.ts +0 -8
- package/dist/types/components/review/overall-comment-dialog.element.d.ts +0 -22
- package/dist/types/components/review/review-bar.element.d.ts +0 -26
- package/dist/types/components/review/review.element.d.ts +0 -60
- package/dist/types/components/review/review.machine.d.ts +0 -234
- package/dist/types/components/review/review.persistence.d.ts +0 -16
- package/dist/types/components/review/review.type.d.ts +0 -37
- package/dist/types/components/review/selection-comment-icons.element.d.ts +0 -17
- package/dist/types/components/review/selection-range.utils.d.ts +0 -6
- package/dist/types/components/review/sort-comments.utils.d.ts +0 -6
- package/dist/types/index.d.ts +0 -1
- package/dist/types/shared/cn.d.ts +0 -2
- package/dist/types/shared/icons.d.ts +0 -7
- package/dist/types/shared/tailwind-element.d.ts +0 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*! @llumi/design-system v2.0.0 | (c) 2026 pAIrprog SAS | license: https://cdn.jsdelivr.net/npm/@llumi/design-system@2.0.0/LICENSE | bundled third-party components under MIT, see NOTICE | @license */
|
|
2
|
+
function o(n) {
|
|
3
|
+
var i;
|
|
4
|
+
const t = n.split(`
|
|
5
|
+
`);
|
|
6
|
+
for (; t.length > 0 && (t[0] ?? "").trim() === ""; ) t.shift();
|
|
7
|
+
for (; t.length > 0 && (t.at(-1) ?? "").trim() === ""; ) t.pop();
|
|
8
|
+
const e = t.filter((r) => r.trim() !== "");
|
|
9
|
+
if (e.length === 0) return "";
|
|
10
|
+
let s = ((i = (e[0] ?? "").match(/^[ \t]*/)) == null ? void 0 : i[0]) ?? "";
|
|
11
|
+
for (const r of e) {
|
|
12
|
+
for (; s !== "" && !r.startsWith(s); )
|
|
13
|
+
s = s.slice(0, -1);
|
|
14
|
+
if (s === "") break;
|
|
15
|
+
}
|
|
16
|
+
return t.map(
|
|
17
|
+
(r) => r.startsWith(s) ? r.slice(s.length) : r.replace(/^[ \t]*/, "")
|
|
18
|
+
).join(`
|
|
19
|
+
`);
|
|
20
|
+
}
|
|
21
|
+
function h(n) {
|
|
22
|
+
let t = "";
|
|
23
|
+
for (const e of Array.from(n.childNodes))
|
|
24
|
+
e.nodeType === Node.TEXT_NODE && (t += e.textContent ?? "");
|
|
25
|
+
return o(t);
|
|
26
|
+
}
|
|
27
|
+
class l {
|
|
28
|
+
constructor(t, e) {
|
|
29
|
+
this.host = t, this.onChange = e, this.observer = null, this.last = "", t.addController(this);
|
|
30
|
+
}
|
|
31
|
+
get text() {
|
|
32
|
+
return h(this.host);
|
|
33
|
+
}
|
|
34
|
+
hostConnected() {
|
|
35
|
+
this.last = this.text, this.observer = new MutationObserver(() => {
|
|
36
|
+
const t = this.text;
|
|
37
|
+
t !== this.last && (this.last = t, this.onChange(t));
|
|
38
|
+
}), this.observer.observe(this.host, {
|
|
39
|
+
childList: !0,
|
|
40
|
+
characterData: !0,
|
|
41
|
+
subtree: !0
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
hostDisconnected() {
|
|
45
|
+
var t;
|
|
46
|
+
(t = this.observer) == null || t.disconnect(), this.observer = null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
l as S
|
|
51
|
+
};
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! @llumi/design-system v2.0.0 | (c) 2026 pAIrprog SAS | license: https://cdn.jsdelivr.net/npm/@llumi/design-system@2.0.0/LICENSE | bundled third-party components under MIT, see NOTICE | @license */
|
|
2
|
+
:root{--llumi-white:oklch(100% 0 0);--llumi-zinc-50:oklch(98.5% 0 0);--llumi-zinc-100:oklch(96.7% .001 286.375);--llumi-zinc-200:oklch(92% .004 286.32);--llumi-zinc-300:oklch(87.1% .006 286.286);--llumi-zinc-400:oklch(70.5% .015 286.067);--llumi-zinc-500:oklch(55.2% .016 285.938);--llumi-zinc-700:oklch(37% .013 285.805);--llumi-zinc-800:oklch(27.4% .006 286.033);--llumi-zinc-900:oklch(21% .006 285.885);--llumi-zinc-950:oklch(14.1% .005 285.823);--llumi-purple-100:oklch(94.6% .033 307.174);--llumi-purple-300:oklch(82.7% .119 306.383);--llumi-purple-400:oklch(71.4% .203 305.504);--llumi-purple-600:oklch(55.8% .288 302.321);--llumi-purple-700:oklch(49.6% .265 301.924);--llumi-pink-100:oklch(94.8% .028 342.258);--llumi-pink-600:oklch(59.2% .249 .584);--llumi-pink-700:oklch(52.5% .223 3.958);--llumi-green-100:oklch(96.2% .044 156.743);--llumi-green-600:oklch(62.7% .194 149.214);--llumi-red-100:oklch(93.6% .032 17.717);--llumi-red-600:oklch(57.7% .245 27.325);--llumi-amber-100:oklch(96.2% .059 95.617);--llumi-amber-600:oklch(66.6% .179 58.318);--llumi-color-bg:var(--llumi-zinc-50);--llumi-color-surface:var(--llumi-white);--llumi-color-fg:var(--llumi-zinc-900);--llumi-color-muted:var(--llumi-zinc-500);--llumi-color-border:var(--llumi-zinc-200);--llumi-color-primary:var(--llumi-purple-600);--llumi-color-primary-hover:var(--llumi-purple-700);--llumi-color-primary-subtle:var(--llumi-purple-100);--llumi-color-on-primary:var(--llumi-white);--llumi-color-accent:var(--llumi-pink-600);--llumi-color-accent-subtle:var(--llumi-pink-100);--llumi-color-on-accent:var(--llumi-white);--llumi-color-success:var(--llumi-green-600);--llumi-color-success-subtle:var(--llumi-green-100);--llumi-color-danger:var(--llumi-red-600);--llumi-color-danger-subtle:var(--llumi-red-100);--llumi-color-warning:var(--llumi-amber-600);--llumi-color-warning-subtle:var(--llumi-amber-100);--llumi-color-link:var(--llumi-purple-600);--llumi-color-link-hover:var(--llumi-purple-700);--llumi-color-ring:var(--llumi-color-primary);--llumi-radius-sm:.25rem;--llumi-radius:.5rem;--llumi-radius-lg:.75rem;--llumi-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji";--llumi-font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--llumi-text-xs:.75rem;--llumi-text-sm:.875rem;--llumi-text-base:1rem;--llumi-text-lg:1.125rem;--llumi-text-xl:1.25rem;--llumi-text-2xl:1.5rem;--llumi-text-3xl:1.875rem;--llumi-text-4xl:2.25rem;--llumi-leading:1.5;--llumi-leading-tight:1.25;--llumi-font-weight-normal:400;--llumi-font-weight-medium:500;--llumi-font-weight-semibold:600;--llumi-font-weight-bold:700;--llumi-space:1rem;--buncss-light:initial;--buncss-dark: ;color-scheme:light}[data-theme=dark]{--llumi-color-bg:var(--llumi-zinc-950);--llumi-color-surface:var(--llumi-zinc-900);--llumi-color-fg:var(--llumi-zinc-50);--llumi-color-muted:var(--llumi-zinc-400);--llumi-color-border:var(--llumi-zinc-800);--llumi-color-link:var(--llumi-purple-400);--llumi-color-link-hover:var(--llumi-purple-300);--buncss-light: ;--buncss-dark:initial;color-scheme:dark}[data-theme=light]{--llumi-color-bg:var(--llumi-zinc-50);--llumi-color-surface:var(--llumi-white);--llumi-color-fg:var(--llumi-zinc-900);--llumi-color-muted:var(--llumi-zinc-500);--llumi-color-border:var(--llumi-zinc-200);--llumi-color-link:var(--llumi-purple-600);--llumi-color-link-hover:var(--llumi-purple-700);--buncss-light:initial;--buncss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--llumi-color-bg:var(--llumi-zinc-950);--llumi-color-surface:var(--llumi-zinc-900);--llumi-color-fg:var(--llumi-zinc-50);--llumi-color-muted:var(--llumi-zinc-400);--llumi-color-border:var(--llumi-zinc-800);--llumi-color-link:var(--llumi-purple-400);--llumi-color-link-hover:var(--llumi-purple-300);--buncss-light: ;--buncss-dark:initial;color-scheme:dark}}
|
package/package.json
CHANGED
|
@@ -1,51 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
2
|
+
"name": "@llumi/design-system",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"custom-elements.json",
|
|
9
|
+
"LICENSE",
|
|
10
|
+
"NOTICE"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"**/*.mjs"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
"./*": "./dist/*",
|
|
18
|
+
"./README.md": "./dist/README.md",
|
|
19
|
+
"./LICENSE": "./LICENSE",
|
|
20
|
+
"./NOTICE": "./NOTICE"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "bun run scripts/build.ts",
|
|
24
|
+
"sync-exports": "bun run scripts/sync-exports.ts",
|
|
25
|
+
"check": "biome check .",
|
|
26
|
+
"fix": "biome check --fix .",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"test": "bun test --pass-with-no-tests",
|
|
29
|
+
"test:browser": "vitest run",
|
|
30
|
+
"analyze": "cem analyze --config custom-elements-manifest.config.mjs",
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
|
+
"build-storybook": "storybook build",
|
|
33
|
+
"prepack": "bun run sync-exports && bun run build && bun run analyze",
|
|
34
|
+
"ci": "bun run sync-exports -- --check && biome check . && tsc --noEmit && bun test && bun run analyze && bun run build && bun run test:browser"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"bpmn-moddle": "^10.0.0",
|
|
38
|
+
"character-parser": "^4.0.0",
|
|
39
|
+
"graph-by-ivan-tulaev": "1.0.0-alpha.14",
|
|
40
|
+
"is-expression": "^4.0.0",
|
|
41
|
+
"min-dash": "^5.0.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@floating-ui/dom": "^1.6.13",
|
|
45
|
+
"bpmn-js": "^18.12.0",
|
|
46
|
+
"d3-selection": "^3.0.0",
|
|
47
|
+
"d3-transition": "^3.0.1",
|
|
48
|
+
"d3-zoom": "^3.0.0",
|
|
49
|
+
"lit": "^3.2.1",
|
|
50
|
+
"mermaid": "^11.16.0",
|
|
51
|
+
"refractor": "^5.0.0",
|
|
52
|
+
"tinykeys": "^3.0.0",
|
|
53
|
+
"xstate": "^5.28.0",
|
|
54
|
+
"yay-machine": "^1.5.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@biomejs/biome": "2.4.9",
|
|
58
|
+
"@custom-elements-manifest/analyzer": "^0.10.4",
|
|
59
|
+
"@happy-dom/global-registrator": "^20.8.9",
|
|
60
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
61
|
+
"@storybook/web-components-vite": "^10.3.5",
|
|
62
|
+
"@types/bun": "latest",
|
|
63
|
+
"@types/d3-selection": "^3.0.11",
|
|
64
|
+
"@types/d3-transition": "^3.0.9",
|
|
65
|
+
"@types/d3-zoom": "^3.0.8",
|
|
66
|
+
"@vitest/browser": "^3.0.0",
|
|
67
|
+
"happy-dom": "^20.8.9",
|
|
68
|
+
"playwright": "^1.50.0",
|
|
69
|
+
"storybook": "^10.3.5",
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"vite": "^6.0.0",
|
|
72
|
+
"vitest": "^3.0.0"
|
|
73
|
+
},
|
|
74
|
+
"customElements": "custom-elements.json"
|
|
51
75
|
}
|