@llumi/design-system 1.0.1 → 2.1.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/adopt-global-styles-D9108lqB.js +15 -0
- package/base.css +2 -0
- package/base.md +59 -0
- package/bpmn.md +113 -0
- package/bpmn.mjs +5076 -0
- package/copy-button.md +128 -0
- package/copy-button.mjs +161 -0
- package/custom-elements.json +1135 -18
- package/download-button.md +106 -0
- package/download-button.mjs +177 -0
- package/highlighter.md +45 -0
- package/highlighter.mjs +403 -0
- package/icon-button-BwB11RGC.js +5 -0
- package/icons-BaUbjt-v.js +42 -0
- package/index-BEhA78nX.js +7733 -0
- package/llumi-element-BWRwgzW5.js +22 -0
- package/mermaid.md +58 -0
- package/mermaid.mjs +254 -0
- package/package.json +16 -50
- package/review.md +141 -0
- package/review.mjs +2044 -0
- package/slot-text-mSWBdWBc.js +51 -0
- package/theme.css +2 -0
- package/dist/review.cjs +0 -172
- package/dist/review.css +0 -98
- package/dist/review.js +0 -172
- package/dist/review.mjs +0 -1710
- 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.1.0 | (c) 2026 pAIrprog SAS | license: https://cdn.jsdelivr.net/npm/@llumi/design-system@2.1.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/theme.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! @llumi/design-system v2.1.0 | (c) 2026 pAIrprog SAS | license: https://cdn.jsdelivr.net/npm/@llumi/design-system@2.1.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}}
|