Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(macro-cursor): Add custom cursor for each cursor state

Caleb Taylorb675f56f08b4
diff --git a/js/app/bun.lock b/js/app/bun.lock
index 91a9ad677d..39495770cc 100644
--- a/js/app/bun.lock
+++ b/js/app/bun.lock
@@ -43,6 +43,7 @@
"@solid-primitives/event-listener": "^2.4.3",
"@solid-primitives/lifecycle": "^0.1.2",
"@solid-primitives/mutation-observer": "^1.2.2",
+ "@solid-primitives/platform": "^0.2.1",
"@solid-primitives/promise": "^1.1.2",
"@solid-primitives/resize-observer": "^2.1.3",
"@solid-primitives/rootless": "^1.5.2",
@@ -1384,6 +1385,8 @@
"@solid-primitives/mutation-observer": ["@solid-primitives/[email protected]", "", { "dependencies": { "@solid-primitives/utils": "^6.3.2" }, "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-liLPjizzwJTTp6BjRgkVhX21DeJn+A+5TMxidy7iXhfsxwDOlH7jFoDmy5pyFMz8zXdQEUo/CTGpuWQJGOxeVg=="],
+ "@solid-primitives/platform": ["@solid-primitives/[email protected]", "", { "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-902jki7Q88/JNl4PIAg9h3lWFC3W/9y4OrpK9cmaYRobD3V5qyXAWTlM4aAKPfwpABhTFu9Ky07FPcfF9hWp+Q=="],
+
"@solid-primitives/promise": ["@solid-primitives/[email protected]", "", { "dependencies": { "@solid-primitives/utils": "^6.3.2" }, "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-DsrmWG5EJdhIdVohwDERIxKS/k+2C6BfwQDEwHE06S2fZH/By0AA1DNTSQOdK87oU6jEPQEjfDUywOtlC/GCRw=="],
"@solid-primitives/props": ["@solid-primitives/[email protected]", "", { "dependencies": { "@solid-primitives/utils": "^6.2.3" }, "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-jZAKWwvDRHjiydIumDgMj68qviIbowQ1ci7nkEAgzgvanNkhKSQV8iPgR2jMk1uv7S2ZqXYHslVQTgJel/TEyg=="],
diff --git a/js/app/package.json b/js/app/package.json
index a54dfaa16f..359197ffee 100644
--- a/js/app/package.json
+++ b/js/app/package.json
@@ -80,6 +80,7 @@
"@solid-primitives/event-listener": "^2.4.3",
"@solid-primitives/lifecycle": "^0.1.2",
"@solid-primitives/mutation-observer": "^1.2.2",
+ "@solid-primitives/platform": "^0.2.1",
"@solid-primitives/promise": "^1.1.2",
"@solid-primitives/resize-observer": "^2.1.3",
"@solid-primitives/rootless": "^1.5.2",
diff --git a/js/app/packages/app/component/CustomCursorDemo.tsx b/js/app/packages/app/component/CustomCursorDemo.tsx
new file mode 100644
index 0000000000..52490e0349
--- /dev/null
+++ b/js/app/packages/app/component/CustomCursorDemo.tsx
@@ -0,0 +1,215 @@
+import { For, onMount } from 'solid-js';
+
+const ShadowDOMDemo = () => {
+ let shadowHost: HTMLDivElement | undefined;
+
+ onMount(() => {
+ if (!shadowHost) return;
+
+ const shadowRoot = shadowHost.attachShadow({ mode: 'open' });
+
+ shadowRoot.innerHTML = `
+ <style>
+ :host {
+ display: block;
+ padding-top: 4rem;
+ }
+ p {
+ margin: 1em 0;
+ }
+ a {
+ color: var(--color-accent, #3b82f6);
+ text-decoration: underline;
+ }
+ code {
+ font-family: monospace;
+ background: rgba(0, 0, 0, 0.05);
+ padding: 0.125em 0.25em;
+ border-radius: 0.25em;
+ }
+ button {
+ color: var(--color-accent, #3b82f6);
+ padding: 0.5rem;
+ border: 1px solid var(--color-accent, #3b82f6);
+ background: transparent;
+ margin: 0 0.25rem;
+ }
+ button.cursor-pointer {
+ cursor: pointer;
+ }
+ </style>
+ <div class="pt-16">
+ <p>
+ By creating a
+ <a href="/en-US/docs/Web/API/BroadcastChannel" class="text-accent underline">
+ <code>BroadcastChannel</code>
+ </a>
+ object, you can receive any messages that are posted to it. You don't have to
+ <a href="/en-US/docs/Web/API/BroadcastChannel" class="text-accent underline">
+ <span><code>LINK</code></span>
+ </a>
+ maintain a reference to the frames or workers you wish to communicate with: they can "subscribe" to a particular channel by constructing their own
+ <a href="/en-US/docs/Web/API/BroadcastChannel" class="text-accent underline">
+ <code>BroadcastChannel</code>
+ </a>
+ with the same name, and have bi-directional communication between all of them.
+ </p>
+ <p>
+ The API doesn't associate any semantics to messages,
+ <button class="text-accent p-2 border-accent border">clicky button</button>
+ bar
+ <button class="text-accent p-2 border-accent border">
+ <span>clicky button 2</span>
+ </button>
+ foo
+ <button class="text-accent p-2 border-accent border cursor-pointer">
+ <span>clicky button 3</span>
+ </button>
+ so it is up to the code to know what kind of messages to expect and what to do with them.
+ </p>
+ </div>
+ `;
+ });
+
+ return <div ref={shadowHost} />;
+};
+
+const CustomCursorDemo = () => {
+ const cursorTypes = [
+ // general cursors
+ { name: 'auto', cursor: 'auto' },
+ { name: 'default', cursor: 'default' },
+ { name: 'none', cursor: 'none' },
+
+ // link and status cursors
+ { name: 'context-menu', cursor: 'context-menu' },
+ { name: 'help', cursor: 'help' },
+ { name: 'pointer', cursor: 'pointer' },
+ { name: 'progress', cursor: 'progress' },
+ { name: 'wait', cursor: 'wait' },
+
+ // selection cursors
+ { name: 'cell', cursor: 'cell' },
+ { name: 'crosshair', cursor: 'crosshair' },
+ { name: 'text', cursor: 'text' },
+ { name: 'vertical-text', cursor: 'vertical-text' },
+
+ // drag-and-drop cursors
+ { name: 'alias', cursor: 'alias' },
+ { name: 'copy', cursor: 'copy' },
+ { name: 'move', cursor: 'move' },
+ { name: 'no-drop', cursor: 'no-drop' },
+ { name: 'not-allowed', cursor: 'not-allowed' },
+ { name: 'grab', cursor: 'grab' },
+ { name: 'grabbing', cursor: 'grabbing' },
+
+ // resizing and scrolling cursors
+ { name: 'all-scroll', cursor: 'all-scroll' },
+ { name: 'col-resize', cursor: 'col-resize' },
+ { name: 'row-resize', cursor: 'row-resize' },
+ { name: 'n-resize', cursor: 'n-resize' },
+ { name: 's-resize', cursor: 's-resize' },
+ { name: 'e-resize', cursor: 'e-resize' },
+ { name: 'w-resize', cursor: 'w-resize' },
+ { name: 'ns-resize', cursor: 'ns-resize' },
+ { name: 'ew-resize', cursor: 'ew-resize' },
+ { name: 'ne-resize', cursor: 'ne-resize' },
+ { name: 'nw-resize', cursor: 'nw-resize' },
+ { name: 'se-resize', cursor: 'se-resize' },
+ { name: 'sw-resize', cursor: 'sw-resize' },
+ { name: 'nesw-resize', cursor: 'nesw-resize' },
+
+ // zooming cursors
+ { name: 'zoom-in', cursor: 'zoom-in' },
+ { name: 'zoom-out', cursor: 'zoom-out' },
+ ];
+
+ return (
+ <div
+ class="p-8"
+ ref={(el) => {
+ onMount(() => {
+ el.style.overflow = 'auto';
+ });
+ }}
+ >
+ <style>
+ {`
+ :where(*, ::before, ::after) {
+ user-select: unset;
+ }
+
+ :where(input, textarea, select, p *, p span, .pdfViewer *, .markdown-content *, [contenteditable], .md *) {
+ user-select: unset;
+ }
+ `}
+ </style>
+ <h1 class="text-2xl font-bold mb-6">Custom Cursor Types Demo</h1>
+ <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4">
+ <For each={cursorTypes}>
+ {({ name, cursor }) => (
+ <div
+ class="border border-[var(--color-edge)] p-4 rounded hover:bg-[var(--color-surface-hover)] transition-colors"
+ style={{ cursor }}
+ >
+ {name}
+ </div>
+ )}
+ </For>
+ </div>
+ <div class="pt-16">
+ <p>
+ By creating a{' '}
+ <a
+ href="/en-US/docs/Web/API/BroadcastChannel"
+ class="text-accent underline"
+ >
+ <code>BroadcastChannel</code>
+ </a>{' '}
+ object, you can receive any messages that are posted to it. You don't
+ have to
+ <a
+ href="/en-US/docs/Web/API/BroadcastChannel"
+ class="text-accent underline"
+ >
+ <span>
+ <code>LINK</code>
+ </span>
+ </a>{' '}
+ maintain a reference to the frames or workers you wish to communicate
+ with: they can "subscribe" to a particular channel by constructing
+ their own{' '}
+ <a
+ href="/en-US/docs/Web/API/BroadcastChannel"
+ class="text-accent underline"
+ >
+ <code>BroadcastChannel</code>
+ </a>{' '}
+ with the same name, and have bi-directional communication between all
+ of them.
+ </p>
+ <p>
+ The API doesn't associate any semantics to messages,
+ <button class="text-accent p-2 border-accent border">
+ clicky button
+ </button>
+ bar
+ <button class="text-accent p-2 border-accent border">
+ <span>clicky button 2</span>
+ </button>
+ foo
+ <button class="text-accent p-2 border-accent border cursor-pointer">
+ <span>clicky button 3</span>
+ </button>
+ so it is up to the code to know what kind of messages to expect and
+ what to do with them.
+ </p>
+ </div>
+
+ <h2 class="pt-16 text-2xl font-bold">Shadow DOM Demo</h2>
+ <ShadowDOMDemo />
+ </div>
+ );
+};
+
+export default CustomCursorDemo;
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/busy.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/busy.svg
new file mode 100644
index 0000000000..741c339120
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/busy.svg
@@ -0,0 +1,21 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+<style>
+@keyframes rotate {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+}
+.animate-rotate {
+ animation: rotate;
+ animation-iteration-count: infinite;
+ animation-duration: 1000ms;
+ animation-timing-function: linear;
+ transform-origin: center center;
+ transform-box: content-box;
+}
+
+</style>
+<linearGradient id="busya" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#4ab4ef"/><stop offset="1" stop-color="#3582e5"/></linearGradient><linearGradient id="busyb" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#3481e4"/><stop offset="1" stop-color="#2051db"/></linearGradient><linearGradient id="busyc" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#6bdcfc"/><stop offset="1" stop-color="#4dc6fa"/></linearGradient><linearGradient id="busyd" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#4bc5f9"/><stop offset="1" stop-color="#2fb0f8"/></linearGradient><mask id="busye" fill="#fff"><path d="m1 23c0 4.971 4.03 9 9 9 4.97 0 9-4.029 9-9 0-4.971-4.03-9-9-9-4.97 0-9 4.029-9 9z" fill="%COLOR-ACCENT%" fill-rule="evenodd"/></mask><g fill="none" fill-rule="evenodd" transform="translate(7)"><g mask="url(#busye)" class="animate-rotate"><g transform="translate(1 14)"><path d="m0 0h9v9h-9z" fill="url(#busya)"/><path d="m9 9h9v9h-9z" fill="url(#busyb)"/><path d="m9 0h9v9h-9z" fill="url(#busyc)"/><path d="m0 9h9v9h-9z" fill="url(#busyd)"/></g></g><g fill-rule="nonzero"><path d="m0 16.422v-16.015l11.591 11.619h-7.041l-.151.124z" fill="%COLOR-ACCENT%"/><path d="m1 2.814v11.188l2.969-2.866.16-.139h5.036z" fill="#000"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/cell.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/cell.svg
new file mode 100644
index 0000000000..8c62c7fea8
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/cell.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(9 9)"><path d="m8.992 14h-3.98v-14h3.98z" fill="#000"/><path d="m0 5.005h13.985v3.98h-13.985z" fill="#000"/><g fill="%COLOR-ACCENT%"><path d="m7.969 13h-1.969v-11.986h1.969z"/><path d="m1.016 6.031h11.967v1.969h-11.967z"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/contextualmenu.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/contextualmenu.svg
new file mode 100644
index 0000000000..72fa08db96
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/contextualmenu.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 7)"><g fill="%COLOR-ACCENT%"><path d="m8 17.47v.53h9v-10h-9v.427z"/><path d="m9.085 17.096-3.606 1.535-4.682-11.089 3.687-1.553z"/><path d="m0 16.422v-16.015l11.591 11.619h-6.781l-.411.124z"/></g><path d="m15 12h-5v-1h5zm0 2h-5v-1h5zm0 2h-5v-1h5zm-6 1h7v-8h-7z" fill="#000"/><path d="m7.751 16.416-1.844.773-3.1-7.373 1.841-.776z" fill="#000"/><path d="m1 2.814v11.188l2.969-2.866.428-.139h4.768z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/copy.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/copy.svg
new file mode 100644
index 0000000000..dc4ad9f368
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/copy.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="copya" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#5bd230"/><stop offset="1" stop-color="#068b03"/></linearGradient><g fill="none" transform="translate(7)"><g transform="translate(1 14)"><path d="m0 9c0 4.97 4.03 9 9 9 4.97 0 9-4.03 9-9 0-4.971-4.03-9-9-9-4.97 0-9 4.029-9 9" fill="url(#copya)"/><path d="m13 8h-3v-3c0-.552-.448-1-1-1s-1 .448-1 1v3h-3c-.552 0-1 .448-1 1s.448 1 1 1h3v3c0 .552.448 1 1 1s1-.448 1-1v-3h3c.552 0 1-.448 1-1s-.448-1-1-1" fill="#fff"/></g><path d="m0 16.422v-16.015l11.591 11.619h-7.041l-.151.124z" fill="%COLOR-ACCENT%"/><path d="m1 2.814v11.188l2.969-2.866.16-.139h5.036z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/cross.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/cross.svg
new file mode 100644
index 0000000000..354292120c
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/cross.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(9 9)"><path d="m15 6h-6.01v-6h-2.98v6h-6.01v3h6.01v6h2.98v-6h6.01z" fill="%COLOR-ACCENT%"/><path d="m13.99 7.01h-6v-6.01h-.98v6.01h-6v.98h6v6.01h.98v-6.01h6z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/default.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/default.svg
new file mode 100644
index 0000000000..8bcf6ab6c5
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/default.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 7)"><path d="m6.148 18.473 1.863-1.003 1.615-.839-2.568-4.816h4.332l-11.379-11.408v16.015l3.316-3.221z" fill="%COLOR-ACCENT%"/><path d="m6.431 17 1.765-.941-2.775-5.202h3.604l-8.025-8.043v11.188l2.53-2.442z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/handgrabbing.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/handgrabbing.svg
new file mode 100644
index 0000000000..7971384290
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/handgrabbing.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 9)"><path d="m3.44281398 1.68449726c-.74326136.27630142-1.05584685.8131257-1.07636853 1.38003696-.01344897.37336893.06665513.72649286.23114214 1.18694303-.02596219-.07267623.09676488.29282004.12116236.37362273.05052942.16918921-.4865367-.05865774-.81377307.00741883-.36363321.07113868-.84783757.38332307-1.10006887.79754775-.29643467.48542737-.3109609 1.04368567-.08235979 2.04824266.12491868.54736183.36572145 1.00836814.71076689 1.44594879.15329951.1944118.5713628.64726015.60307236.6875974l.84854343.94062339c.15080214.1358526.25794954.2361946.57590427.5380259.3147558.2987762.4647038.4380078.60308951.555976.05846214.0492474.10784267.1797116.12740685.3736249.01609788.1595565.01049553.3375341-.0090192.5090254-.00674888.0593077-.01325791.1020883-.01698742.1224696-.04189161.228932.13269563.4403386.36541902.4424835.21585671.0019894.38528595.0046546.82216479.0123538.09483476.0016698.09483476.0016698.18993053.0033129 1.16876447.0200186 1.75308289.0147904 2.17807912-.0385723.45429894-.0572869.92650915-.6110188 1.32698393-1.2957591.34289141.6108338.81859723 1.2057867 1.2995685 1.2820532.1510118.0244148.3353555.0322555.548787.0275887.1606725-.0035131.3307029-.0140241.5021961-.0293376.1276907-.0114022.2293359-.0228648.29003-.0307451.2258836-.0293282.373669-.251611.3133108-.4712481-.0130351-.0474332-.0339838-.1345011-.0551094-.2441635-.0245945-.1276687-.0423383-.2523857-.0503381-.365988-.0050217-.0713101-.0059948-.1359317-.0027687-.1918983.0059157-.0980798.0077938-.1530073.0108033-.281125.0010795-.0448938.0010795-.0448938.0024606-.0845172.0054208-.1364475.0233824-.2649146.0815132-.544638.0250088-.1201275.1473169-.352189.3398902-.639435.0571394-.0852302.1195783-.1742239.1864664-.26609712.1272143-.17473362.2641361-.35131772.4011075-.52030772.082051-.10123129.145482-.17695689.1808122-.21807676.2967593-.42378347.612817-1.11823437.7291396-1.52536348.1117407-.39153936.202351-1.12501196.254373-1.81690429.029923-.39968605.0410555-.72381216.0410555-1.23011613.0000742-.09758414.0000742-.09758414.0002975-.17670236.0003569-.11115478.0003569-.11115478.000115-.20711835-.0008934-.15683883-.0055282-.31323355-.0207085-.69507578-.0313109-.81293139-.4771727-1.33911388-1.1344906-1.44058831-.559108-.08631314-1.0586051.08188477-1.2779293.31625977-.0755526.08073733.0036753-.2781823-.2159489-.62316278-.1644465-.25841586-.593184-.58905957-.9209287-.65355552-.335487-.06535532-.73539548-.05811715-1.1017193.00667481-.32093157.05742909-.68608434.33741751-.87176225.64688068-.12411885.20686477.03884667-.00592296-.09368743-.23401341-.18231052-.31422641-.60754287-.59486422-1.01411454-.67799709-.34643562-.07139428-.74182572-.04452925-1.09945614.0633873-.43336319.1291117-1.01795827.61460976-.94899189 1.15552627-.34375-.54091651-1.25026717-.691379-1.97906097-.42111797z" fill="#000"/><path d="m7.31951013 1.62138197c.20710357.04234751.44724204.20083012.51632974.31990811.08404358.1446387.15562749.36413806.21048667.6366124.02933373.14569467.12179446 1.2125285.29383112 1.32370243.41279229.04533731.41279229.04533731.52658055-.12364345.03545705-.07383858.03545705-.07383858.04226523-.1029106.01416796-.06009544.02463332-.12677987.0351322-.21754028l.00854738-.07915386.00047673-.00942804.00327525-.03167185c.01085148-.11424313.04184125-.4312127.05388392-.53034902.03788792-.31189663.08766449-.52757784.13944093-.6138719.0713024-.11883734.31942298-.28274442.43149612-.30279961.2804398-.04960082.58940103-.05519288.82623993-.00905543.1084394.02134018.3709471.22378689.432331.32024744.1291079.20279957.2524316.84889766.3225486 1.4970065-.0102194.04624251-.0102194.04624251.1640069.28984194.5843296-.06677889.5843296-.06677889.5703629-.17490247.0159511-.03856429.0284824-.08294031.045969-.15118961.0423876-.16089067.0697594-.25204451.111066-.35549917.0288558-.07227096.0592914-.13391873.0904889-.18278042.1209187-.19031132.4335712-.319392.7077174-.27707028.2943447.04543991.4816904.26653537.4994912.72869815.0148821.37434892.0193146.5239164.0201469.6700184l-.0004247.37954865c0 .48831141-.0104951.79388164-.0389535 1.17400348-.0480918.63962116-.1348512 1.34192123-.227649 1.66708484-.0946325.33121345-.3766371.95084197-.6003915 1.27298482-.0161892.01580846-.0841508.09694273-.1710333.20413492-.1445842.17838247-.2892181.36491271-.4247891.5511244-.0723398.09936149-.1402862.19620479-.2030964.2898938-.2440054.36396314-.400553.66098894-.4512157.90434304-.0659304.3172546-.0893838.4850003-.0966379.6675968-.0017072.0490782-.0017072.0490782-.002845.096677-.0028064.119476-.004437.1671639-.0097087.2545848-.0052654.091322-.0038193.187354.00332.2887353.0103318.1467182.1058713.3478531.1058713.3478531s-.2321503-.0119819-.3742084-.0088758c-.1718098.0037567-.3147843-.0023244-.4138162-.0183342-.1440353-.0228411-.53014068-.5057331-.7278511-.8821737-.30227042-.5764228-1.03604858-.5484427-1.33684295-.0394061-.26854779.4591613-.65918083.9172326-.7740684.9317199-.37404082.0469647-.94643778.0520862-2.07160079.0328144-.09480875-.0016381-.46003446-.0128683-.64600494-.0157445-.18597048-.0028763.05008807-.1790283.02786486-.399297-.03726222-.36933-.15125405-.6704984-.38877094-.8705429-.12241569-.1043631-.26774964-.2393104-.56509654-.5215613-.33323493-.3163366-.44236499-.4185353-.57290215-.533275l-.80130455-.89071892c-.03955779-.05174211-.45812831-.5051399-.5872217-.6688539-.28069963-.35597842-.47062947-.71959073-.56844755-1.14820437-.18921973-.83150113-.1793328-1.21146622-.00855589-1.49112273.13743587-.2257023.43815377-.4195862.60596039-.45241793.17165981-.03465512.55153059-.01648617.62179422.02229321.09902279.05401056.13357243.07300285.16379074.09097645.03572494.02124891.05965747.03799198.08182912.05708809.03426437.02951139.07235014.07170412.12420211.14044502.03611591.04821025.07806642.1053997.1423779.19304882.06054643.0816627.09183576.12069421.13369221.1590035.28038907.25662728.68391532.03238058.65052057-.32606956-.00567036-.06086415-.02203766-.12694598-.05458621-.23708502-.04356824-.15021272.00433013-.05284275-.26002629-.56642281-.08720664-.16942124-.13955864-.28835362-.17428227-.4046158l-.03412852-.10219113c-.03838756-.11059767-.09558223-.26854489-.12612861-.35199347l-.02009957-.05467087.002.008-.05974804-.17751191c-.09232236-.28807194-.13413567-.51358087-.12645475-.72681781.01040781-.28751553.16037753-.54506871.58790983-.70400047.40142488-.1488616 1.07786076.00117106 1.20581167.27856864.04319814.09369738.08927466.21199471.13900415.35457792l.03930997.11680217c.05539717.16759437.13470873.41493582.13860471.42816881.02724222.08344874.0471839.13860719.06943813.18441246.00217869.06301886.00217869.06301886.35429398.23177937.41699479-.29154152.41699479-.29154152.38019201-.37525838.00571063-.08773482.00758408-.17356287.00965287-.37317647.00242546-.23402898.00423842-.33154773.00994479-.45966208.01316411-.29554918.0437926-.51142116.09291227-.63864415.09160418-.23801371.25279279-.40993649.4432431-.46667832.24458613-.07380253.51465245-.09215236.73323569-.04710649zm1.21356228 4.27672201c-.20710459.00095412-.37422255.16961903-.37326843.37672361l.016 3.473c.00095412.20710459.16961903.37422251.37672361.37326841.20710459-.0009541.37422255-.16961901.37326843-.37672359l-.016-3.473c-.00095412-.20710459-.16961903-.37422255-.37672361-.37326843zm2.03332759.00229602c-.2071068 0-.375.16789322-.375.375v3.459c0 .20710678.1678932.375.375.375s.375-.16789322.375-.375v-3.459c0-.20710678-.1678932-.375-.375-.375zm-4.01399856.02930704c-.20710289.00126946-.37396385.17018863-.3726944.37729152l.021 3.426c.00126946.20710289.17018863.37396384.37729152.37269444.20710289-.0012695.37396385-.17018867.3726944-.37729156l-.021-3.426c-.00126946-.20710289-.17018863-.37396385-.37729152-.3726944z" fill="%COLOR-ACCENT%"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/handopen.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/handopen.svg
new file mode 100644
index 0000000000..073f3b5a08
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/handopen.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(7 6)"><path d="m4.5557 8.5742c-.098-.375-.196-.847-.406-1.552-.167-.557-.342-.859-.47-1.233-.155-.455-.303-.721-.496-1.181-.139-.329-.364-1.048-.457-1.44-.119-.509.033-.924.244-1.206.253-.339.962-.49 1.357-.351.371.13.744.512.916.788.288.46.357.632.717 1.542.393.992.564 1.918.611 2.231l.085.452c-.001-.04-.043-1.122-.044-1.162-.035-1.029-.06-1.823-.038-2.939.002-.126.064-.587.084-.715.078-.5.305-.8.673-.979.412-.201.926-.215 1.401-.017.423.173.626.55.687 1.022.014.109.094.987.093 1.107-.013 1.025.006 1.641.015 2.174.004.231.003 1.625.017 1.469.061-.656.094-3.189.344-3.942.144-.433.405-.746.794-.929.431-.203 1.113-.07 1.404.243.285.305.446.692.482 1.153.032.405-.019.897-.02 1.245 0 .867-.021 1.324-.037 2.121-.001.038-.015.298.023.182.094-.28.188-.542.266-.745.049-.125.241-.614.359-.859.114-.234.211-.369.415-.688.2-.313.415-.448.668-.561.54-.235 1.109.112 1.301.591.086.215.009.713-.028 1.105-.061.647-.254 1.306-.352 1.648-.128.447-.274 1.235-.34 1.601-.072.394-.234 1.382-.359 1.82-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.192 1.812-.117.563-.078.567-.101.965-.024.399.121.923.121.923s-.802.104-1.234.034c-.391-.062-.875-.841-1-1.078-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.03-3.139.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.284-.36-.629-1.093-1.243-1.985-.348-.504-1.027-1.085-1.284-1.579-.223-.425-.331-.954-.19-1.325.225-.594.675-.897 1.362-.832.519.05.848.206 1.238.537.225.19.573.534.75.748.163.195.203.276.377.509.23.307.302.459.214.121" fill="%COLOR-ACCENT%"/><g stroke="#000" stroke-linecap="round" stroke-width=".75"><path d="m4.5557 8.5742c-.098-.375-.196-.847-.406-1.552-.167-.557-.342-.859-.47-1.233-.155-.455-.303-.721-.496-1.181-.139-.329-.364-1.048-.457-1.44-.119-.509.033-.924.244-1.206.253-.339.962-.49 1.357-.351.371.13.744.512.916.788.288.46.357.632.717 1.542.393.992.564 1.918.611 2.231l.085.452c-.001-.04-.043-1.122-.044-1.162-.035-1.029-.06-1.823-.038-2.939.002-.126.064-.587.084-.715.078-.5.305-.8.673-.979.412-.201.926-.215 1.401-.017.423.173.626.55.687 1.022.014.109.094.987.093 1.107-.013 1.025.006 1.641.015 2.174.004.231.003 1.625.017 1.469.061-.656.094-3.189.344-3.942.144-.433.405-.746.794-.929.431-.203 1.113-.07 1.404.243.285.305.446.692.482 1.153.032.405-.019.897-.02 1.245 0 .867-.021 1.324-.037 2.121-.001.038-.015.298.023.182.094-.28.188-.542.266-.745.049-.125.241-.614.359-.859.114-.234.211-.369.415-.688.2-.313.415-.448.668-.561.54-.235 1.109.112 1.301.591.086.215.009.713-.028 1.105-.061.647-.254 1.306-.352 1.648-.128.447-.274 1.235-.34 1.601-.072.394-.234 1.382-.359 1.82-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.192 1.812-.117.563-.078.567-.101.965-.024.399.121.923.121.923s-.802.104-1.234.034c-.391-.062-.875-.841-1-1.078-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.03-3.139.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.284-.36-.629-1.093-1.243-1.985-.348-.504-1.027-1.085-1.284-1.579-.223-.425-.331-.954-.19-1.325.225-.594.675-.897 1.362-.832.519.05.848.206 1.238.537.225.19.573.534.75.748.163.195.203.276.377.509.23.307.302.459.214.121" stroke-linejoin="round"/><path d="m11.566 12.734v-3.459"/><path d="m9.551 12.746-.016-3.473"/><path d="m7.555 9.305.021 3.426"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/handpointing.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/handpointing.svg
new file mode 100644
index 0000000000..52af0b984e
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/handpointing.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(9 8)"><path d="m3.8852309 13.5522788c.15029277.1354048.25406355.2326609.57471053.5372549.31406586.2983172.46594413.439273.60482646.5572091.05791893.0487853.10729946.1792495.12686364.3731628.01609788.1595565.01049553.3375341-.0090192.5090254-.00674888.0593077-.01325791.1020883-.01698742.1224696-.04186639.2287942.13249226.4401222.36507344.4424801.20929712.0021219.37056581.00472.79741331.0123273.10679864.0019014.10679864.0019014.21395196.0037648 1.16029156.0199598 1.75290683.01448 2.1782236-.039003.45462139-.05716.92282087-.6061887 1.32754658-1.2951218.3429437.6096032.818651 1.2048784 1.2990136 1.282277.1525992.0243739.3372104.0319365.5511764.0270146.1595258-.0036697.328349-.0141847.4987188-.0294071.1284742-.0114791.2308379-.0230173.2919821-.0309462.2259121-.0292954.3737346-.2515956.31337-.4712558-.0130388-.0474468-.0339905-.1345046-.0551176-.2441066-.0244927-.1270617-.0421932-.2511642-.0502379-.3642189-.0051002-.0716765-.0061057-.1365707-.0028638-.1926702.0056365-.097781.007395-.1525378.0101327-.2790463.0010457-.0470941.0010457-.0470941.0024433-.0883088.0052898-.134881.0234093-.2629524.0820463-.5422232.0251901-.1212103.1472903-.3531692.3395862-.6402332.0572734-.0854992.1198813-.1747825.1869659-.2669588.127207-.1747861.2641214-.3514011.4010853-.5204043.0820457-.1012383.1454717-.1769623.1807968-.2180763.2962199-.424403.6120842-1.1191696.7281396-1.5253635.111416-.3904017.2005405-1.10937558.2553074-1.81604479.0300143-.40088807.0411211-.72405394.0411211-1.23097561.0000507-.08891816.0000507-.08891816.0002032-.16234685.0002858-.12025251.0003032-.16573976-.0000887-.22195195-.0010706-.15358041-.0055478-.30580145-.0203882-.6940256-.0319191-.81365149-.4778003-1.3396911-1.1348711-1.44115781-.5589865-.08632026-1.2393839.37795756-1.2393839.37795756s-.1514404-.5228127-.2537197-.6842075c-.1661957-.25934741-.5941748-.58982828-.9213451-.65421118-.3365014-.0653413-.7354024-.05811592-1.1017193.00667481-.3207944.05740454-.64034865.34382687-.82518751.65277182-.13223727.22039488-.00786932-.01169164-.14013104-.2396787-.1830552-.31402315-.60932935-.59522407-1.01524567-.67822294-.34396352-.07112559-.73801897-.04403625-1.09795562.06293793-.46304125.13836397-.53675291.49073282-.55516748.38984626-.06158674-.3382385-.06727482-.3160095-.105656-.55729603-.14258072-.89527436-.30213161-1.51473549-.54406219-2.05528331.01391678.0310773-.08860981-.20214701-.12592279-.28256779-.06461002-.13925416-.12910532-.2652956-.19999629-.38652204-.21850342-.37364978-.46891278-.65340904-.7830908-.81233894-.54561037-.27629378-1.3634177-.14183064-1.75105565.31064856-.38495968.44966797-.4491432 1.20149287-.3521966 2.13184003.03702376.36121263.16678627 1.02066144.28444961 1.50812387.04160602.1691894.07805979.32348903.14491578.60851331.01149723.04848415.01149723.04848415.02309483.09698036.05172236.21571896.09707607.39320067.15122332.5879629-.00568154-.02030261.09701461.344086.11888835.42472961.00727686.02691587.00727686.02691587.01448296.05395339.04082856.15377935.08074083.31959314.14309954.5963099.03412572.1521447.06742545.31468601.09999775.48699018.08883553.46993091.089274.37207374.00375852.27186198-.05907319-.06922522-.11463055-.13209255-.16830659-.19003644-.09976937-.10770214-.19148509-.19677225-.2785569-.2678141-.6343975-.51905295-1.02312991-.74839425-1.55681885-.79878106-.87541567-.08410158-1.70619803.53426712-1.83111632 1.36882761-.07682697.51169638-.05207639.74723271.18463583 1.19942735.13026223.24432805.35060714.53942202.76172732 1.04735429.02515953.031068.02515953.031068.05030428.06206416.50464537.62186746.55962098.69095396.67961467.86473786.32435479.4706845 1.1139501 1.8221455 1.25748612 2.0035872z" fill="#000"/><path d="m1.68266944 9.2716401c-.02488625-.03067752-.02488625-.03067752-.04970567-.06132555-.37729166-.46613768-.58418002-.74321015-.68156241-.9258495-.15281729-.29195235-.1611316-.37107459-.10605794-.73788601.06473349-.43247455.53181583-.78013371 1.01829549-.73339767.33660502.03178017.63068475.20527903 1.15339692.63295262.0565942.04617564.12482853.1124417.20288232.19670163.04616569.04983637.09513192.10524534.14800114.16720042.0794093.0930562.34702847.42052231.30761424.37286894.05814283.06991619.09971852.12407704.14721655.19045018.0941062.13434104.14705111.20894642.21874992.30454484-.0336171-.04487143.21473082.29843305.26732159.34863333.27859812.26593456.68203289.04195871.65675979-.31244785-.00421914-.05916537-.01812774-.12308431-.04717934-.23466885-.11487425-.81923739-.15505751-1.08218312-.24678252-1.56739907-.03407352-.18024544-.06905328-.35098727-.10521102-.5121905-.06435409-.28557213-.10635725-.46007245-.14994794-.62425526-.00774801-.02907063-.00774801-.02907063-.01552357-.05783095-.02300644-.08481964-.12725123-.45470311-.12030828-.42989063-.05134381-.18468043-.0945453-.35373996-.14431997-.56133562-.01130896-.04728909-.01130896-.04728909-.02259904-.09489949-.06649254-.28350912-.10387999-.44176072-.14606063-.6132721-.10998732-.45567652-.23425389-1.08719519-.2671036-1.40768017-.07546665-.72422018-.02339381-1.33418457.17582284-1.56688778.15554834-.1815673.59641015-.25405339.84271752-.12932486.16107512.0814814.32204278.26131571.47435101.521769.05764302.09857191.11172763.20426801.16708381.32357735.0335256.07225783.13292567.29837003.12172905.27336705.21032209.46992469.354801 1.03086841.48791736 1.86671535.03939531.24766201.08813662.52823537.15063928.87150416.01857903.10178746.01857903.10178746.03722922.20314381.30139226 1.63533599.27933797 1.51139381.28367122 1.64182468.01580667.47578071.71810567.4869267.74900255.01188722.00979855-.15065269.00630989-.2851661-.01107827-.67146517-.00245496-.05465243-.00245496-.05465243-.00481877-.10910149-.01521525-.35590459-.01433687-.56066672.00670546-.67705709.03834708-.21223125.22887-.4499778.40434754-.50241339.24641865-.07323589.51640341-.09179599.73269877-.04707051.20703808.0423346.44864736.20171736.51796318.32062499.08353628.14399789.15516008.36337367.21006107.63530456.04431149.21947986.07480439.45493493.0962536.70624261.00667352.0781897.01103024.13859819.01772256.23854675.00285005.04183594.00285005.04183594.00568968.07635213.00160285.01731471.00160285.01731471.00551199.04467336.00303535.01917374.00303535.01917374.01734216.06773608.00727602.13782339.00727602.13782339.56081544.18893151.16530264-.19982737.16530264-.19982737.16077268-.23486454.02708074-.1183491.04365279-.250265.06727822-.49813693.01508098-.16112409.02268576-.24033521.03157416-.32249887.036794-.34012028.0835164-.55621578.140511-.65120691.0707148-.11819408.3197845-.28280909.4314962-.30279961.2805348-.04961763.5886064-.0551978.8264635-.00901194.1077347.021202.3705429.22413969.4327499.32121002.1277282.20156171.2519621.8513817.3219188 1.49611734-.0110122.04228902-.0110122.04228902.1607163.28760404.5903408-.06730286.5903408-.06730286.5737568-.17389206.0155734-.03799147.0279666-.08191522.0455068-.15013809.0421947-.1597068.0701719-.25243998.1118273-.35635899.0288165-.07188915.0591935-.13335501.0903398-.18227881.120675-.18992919.4330876-.31896311.7070596-.2766556.2942545.0454396.4817569.26665023.4998934.72896761.0145423.38042999.0188438.52667972.0198445.67022961.0003693.0529684.0003531.09548963.0000723.21509672-.0001536.07391241-.0001536.07391241-.000205.16397385 0 .48892448-.010469.79353263-.0389535 1.17400348-.0506294.653266-.1361064 1.34281542-.228649 1.66708482-.094456.330596-.3764591.9508823-.5997469 1.2734975-.0158389.0153017-.0838055.0964468-.1706932.2036597-.1445918.1784155-.2892331.364998-.4248114.5512865-.0725632.099704-.140705.1968792-.2036767.2908847-.2436695.3637558-.4000227.6607868-.4506249.9042828-.0664376.3164194-.0901813.4842425-.0973169.666189-.0017426.0515155-.0017426.0515155-.0028439.1014735-.0025547.1180556-.0040857.165727-.0090621.2520573-.0052398.0906702-.0037444.1871795.0035093.2891187.0103883.145992.0000001.3454812.0000001.3454812s-.1266332-.0118299-.2678551-.0085813c-.1725177.0039685-.3159859-.0019087-.4151297-.0177442-.143046-.0230487-.5293508-.5064503-.7271506-.8830611-.3022704-.5764228-1.03604858-.5484427-1.33684295-.0394061-.27130191.4618137-.65965243.9172085-.77493336.9317029-.37460536.047106-.95471158.0524702-2.07175566.0332544-.10679478-.0018572-.10679478-.0018572-.21348729-.0037567-.42889761-.0076439-.41241496.0647655-.40363307-.0124079.02506967-.2203068.02222332-.1790312.00000011-.3992999-.03726222-.36933-.15125405-.6704984-.38877094-.8705429-.12286946-.1043424-.26983033-.2407345-.56500741-.5211097-.33722428-.3203411-.44283686-.4193233-.57299128-.5337266l-.80130455-.8907189c-.08795856-.1124788-.86002339-1.4339349-1.21248613-1.9454077-.13710846-.19857111-.18839645-.26302343-.71461353-.9114734zm9.50873056.0037599v3.459c0 .5.75.5.75 0v-3.459c0-.5-.75-.5-.75 0zm-2.03159602-.00057241.016 3.47300001c.00230346.4999947.7522955.4965395.74999204-.0034552l-.016-3.47299999c-.00230346-.4999947-.7522955-.49653951-.74999204.00345518zm-1.20911102 3.45357381-.021-3.42599996c-.00306475-.4999906-.75305066-.49539349-.74998592.00459712l.021 3.42600004c.00306475.4999906.75305066.4953935.74998592-.0045972z" fill="%COLOR-ACCENT%"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/help.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/help.svg
new file mode 100644
index 0000000000..0b3041f56d
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/help.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(12 10)"><path d="m2.752 9.863h2.474v2.395h-2.474z" stroke="%COLOR-ACCENT%" stroke-width="1.5"/><path d="m1.3154.9409c.606-.488 1.73-.875 2.686-.881 1.514-.009 2.311.456 3.026 1.151.688.669 1.004 1.352.953 2.4-.041.853-.267 1.348-.604 1.811-.198.281-.577.641-1.138 1.078l-.533.43c-.33.32-.474.463-.6.82-.094.266-.116.506-.121.922h-1.977c-.003-1.016-.019-1.375.09-1.813.107-.426.502-.734 1.063-1.171l.568-.446c.188-.14.494-.414.608-.581.208-.286.334-.682.351-1.025.016-.323-.081-.699-.344-1.027-.312-.39-.703-.638-1.465-.604-.601.027-1.061.333-1.342.622-.33.34-.474.904-.498 1.35h-1.977c.062-1.484.354-2.312 1.254-3.036z" stroke="%COLOR-ACCENT%" stroke-width="2"/><g fill="#000" fill-rule="nonzero"><path d="m3.013 10.016h1.979v1.984h-1.979z"/><path d="m1.5156.9209c.697-.449 1.342-.794 2.426-.794 1.617 0 1.983.242 2.812.904.75.599 1.207 1.376 1.207 2.48 0 .677-.364 1.408-.702 1.871-.197.281-.459.56-1.02.998l-.612.47c-.3.234-.598.588-.697.9-.062.198-.058.623-.062 1.039h-1.86c.031-.88.034-1.605.169-1.941s.483-.723 1.044-1.16l.547-.446c.187-.14.475-.354.589-.521.208-.286.389-.701.389-1.045 0-.396.022-.676-.209-1.002-.27-.378-.516-.794-1.678-.814-.905-.016-1.291.447-1.542.847-.252.402-.338.858-.338 1.29h-1.978c.063-1.484.541-2.456 1.515-3.076"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/makealias.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/makealias.svg
new file mode 100644
index 0000000000..b9904320f3
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/makealias.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 9)"><path d="m11 .0781-10.25.078 3.494 3.12c-.289.312-.527.571-.572.63-.156.203-.781 1.125-.969 1.516-.187.39-.562 1.39-.672 2.031-.1.589-.094 1.656-.078 2.109.015.423.16 1.258.297 1.641.219.609.344.938.625 1.375.316.492.593.767 1.031 1.188.391.375 2.188 1.234 2.188 1.234-.282-.359-.813-1.391-.938-1.75-.066-.19-.239-1.111-.281-1.531-.047-.469-.078-1.125-.063-1.594.014-.409.102-.809.204-1.172.109-.391.428-.907.687-1.266.203-.281.448-.572.797-.906.254-.244.551-.503.854-.727l3.615 3.227z" fill="%COLOR-ACCENT%"/><path d="m9.9648 7.2402-.004-6.184-6.161.004 1.798 1.802c-.138.146-.326.345-.437.484-.277.347-.443.537-.61.732-.118.138-.262.317-.377.474-.159.217-.28.43-.361.575-.111.196-.226.46-.367.75-.196.404-.262.746-.319.982-.039.16-.13.571-.166.953-.028.29-.008.624-.008.759 0 .236-.024.52.027.98.047.421.296 1.351.482 1.722.156.313.462.93.462.93s-.17-1.518-.116-2.285c.032-.438.235-1.183.493-1.728.045-.093.053-.21.186-.422.103-.162.24-.386.355-.568.214-.337.654-.875.759-1.015.169-.225.66-.672.938-.917.142-.125.493-.419.793-.668z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/move.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/move.svg
new file mode 100644
index 0000000000..e762d75365
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/move.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 8)"><path d="m9.97732426 4.98866213h.99773244v.99773243h-.99773244zm.99773244 5.98639457h-.99773244v-.99773244h.99773244zm-4.98866214-4.98866214h-.99773243v-.99773243h.99773243zm0 4.98866214h-.99773243v-.99773244h.99773243zm1.99546485-10.96208618-7.96689342 7.96988662 5.21015873 5.20916096 2.75673469 2.7567347 7.96589569-7.96689339z" fill="%COLOR-ACCENT%"/><path d="m11.982 7.001v-1.825l2.551 2.803-2.552 2.802.001-1.804h-3.015v2.998h1.801l-2.799 2.57-2.8-2.571 1.823.001v-2.998h-3.002l.001 1.804-2.566-2.802 2.565-2.803v1.825h2.994v-3.011h-1.804l2.802-2.564 2.801 2.565-1.803-.001v3.011z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/notallowed.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/notallowed.svg
new file mode 100644
index 0000000000..eead7347a3
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/notallowed.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="notalloweda" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#f0f0f0"/><stop offset="1" stop-color="#d5d5d5"/></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(7)"><path d="m1 23c0 4.97 4.03 9 9 9 4.97 0 9-4.03 9-9 0-4.971-4.03-9-9-9-4.97 0-9 4.029-9 9zm4.826-5.61c1.167-.869 2.608-1.39 4.174-1.39 3.866 0 7 3.134 7 7 0 1.567-.52 3.008-1.39 4.174zm-2.826 5.61c0-1.578.529-3.029 1.409-4.199l9.79 9.79c-1.171.881-2.622 1.409-4.199 1.409-3.866 0-7-3.134-7-7z" fill="url(#notalloweda)"/><path d="m0 16.422v-16.015l11.591 11.619h-7.041l-.151.124z" fill="%COLOR-ACCENT%"/><path d="m1 2.814v11.188l2.969-2.866.16-.139h5.036z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resize northsouth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resize northsouth.svg
new file mode 100644
index 0000000000..57e444d8a4
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resize northsouth.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 8)"><path d="m6 0-6 5.98h4v2.02 2h-4l6 6 6-6h-4v-2-2.02h4zm0 1.414 3.586 3.567h-2.586v2.52 3.499h2.586l-3.586 3.586-3.586-3.586h2.586v-3.499-2.52h-2.586z" fill="%COLOR-ACCENT%"/><path d="m7 7.5v-2.52h2.586l-3.586-3.566-3.586 3.566h2.586v2.52 3.5h-2.586l3.586 3.586 3.586-3.586h-2.586z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizedown.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizedown.svg
new file mode 100644
index 0000000000..3fd938a0d1
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizedown.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 11)"><path d="m0 .001v3.98h6.006v1.059h-3.466l5.472 5.961 5.461-5.961h-3.478v-1.059h6.005v-3.98z" fill="%COLOR-ACCENT%"/><path d="m1 2.98h6v3.04h-2.24l3.251 3.32 3.223-3.32h-2.254v-3.04h6v-1.96h-13.98z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeeast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeeast.svg
new file mode 100644
index 0000000000..31b57ee9a6
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeeast.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 10)"><path d="m7 12 6-6-6-6v4h-7v4h7z" fill="%COLOR-ACCENT%"/><path d="m1 5h7v-2.586l3.586 3.586-3.586 3.586v-2.586h-7z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleft.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleft.svg
new file mode 100644
index 0000000000..751cfdc492
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleft.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 8)"><path d="m7.02 0v6.006h-1.02v-3.866l-6 5.872 6 5.89v-3.907h1.02v6.005h3.98v-16z" fill="%COLOR-ACCENT%"/><path d="m8 1v6h-3.02v-2.24l-3.32 3.251 3.32 3.223v-2.254h3.02v6h1.98v-13.98z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleftright.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleftright.svg
new file mode 100644
index 0000000000..3d62f81564
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleftright.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(7 8)"><path d="m7 0v6.006h-1.021v-3.466l-5.979 5.472 5.979 5.461v-3.478h1.021v6.005h.02 3.961v-6.006h1.058v3.467l5.961-5.473-5.961-5.461v3.478h-1.058v-6.005z" fill="%COLOR-ACCENT%"/><path d="m16.34 7.989-3.32-3.223v2.254h-3.02v-5.96h-.019v-.02h-1.941v6h-3.06v-2.28l-3.32 3.251 3.32 3.224v-2.254h3.06v6h.02 1.921.019v-6h3.02v2.259z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorth.svg
new file mode 100644
index 0000000000..b5b17838fe
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorth.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 10)"><path d="m12 6-6-6-6 6h4v7h4v-7z" fill="%COLOR-ACCENT%"/><path d="m5 12v-7h-2.586l3.586-3.586 3.586 3.586h-2.586v7z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheast.svg
new file mode 100644
index 0000000000..bc36e80c4b
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheast.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m11 8.486v-8.486h-8.485l2.829 2.829-4.95 4.95 2.828 2.828 4.95-4.95z" fill="%COLOR-ACCENT%"/><path d="m1.808 7.779 4.95-4.951-1.828-1.828h5.071v5.071l-1.829-1.829-4.95 4.951z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheastsouthwest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheastsouthwest.svg
new file mode 100644
index 0000000000..3650443fc3
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheastsouthwest.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(9 9)"><path d="m9.743 7.087-4.072 4.068 2.829 2.828-8.473-.013-.013-8.47 2.841 2.842 4.075-4.068 1.414-1.415-2.844-2.842h8.486v8.484l-2.83-2.827z" fill="%COLOR-ACCENT%"/><path d="m8.683 6.733-4.427 4.424 1.828 1.828-5.056-.016-.014-5.054 1.842 1.841 4.428-4.422 2.474-2.475-1.844-1.843h5.073v5.071l-1.83-1.828z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthsouth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthsouth.svg
new file mode 100644
index 0000000000..57e444d8a4
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthsouth.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 8)"><path d="m6 0-6 5.98h4v2.02 2h-4l6 6 6-6h-4v-2-2.02h4zm0 1.414 3.586 3.567h-2.586v2.52 3.499h2.586l-3.586 3.586-3.586-3.586h2.586v-3.499-2.52h-2.586z" fill="%COLOR-ACCENT%"/><path d="m7 7.5v-2.52h2.586l-3.586-3.566-3.586 3.566h2.586v2.52 3.5h-2.586l3.586 3.586 3.586-3.586h-2.586z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwest.svg
new file mode 100644
index 0000000000..e63d340d07
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwest.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m0 0v8.485l2.829-2.829 4.951 4.949 2.827-2.827-4.95-4.949 2.829-2.829z" fill="%COLOR-ACCENT%"/><path d="m7.779 9.191-4.951-4.949-1.828 1.828v-5.071h5.071l-1.829 1.829 4.951 4.949z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwestsoutheast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwestsoutheast.svg
new file mode 100644
index 0000000000..7a7344072c
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwestsoutheast.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(9 9)"><path d="m4.257 7.087 4.072 4.068-2.829 2.828 8.473-.013.013-8.47-2.841 2.842-4.075-4.068-1.414-1.415 2.844-2.842h-8.486v8.484l2.829-2.827z" fill="%COLOR-ACCENT%"/><path d="m5.317 6.733 4.427 4.424-1.828 1.828 5.056-.016.014-5.054-1.842 1.841-4.428-4.422-2.474-2.475 1.844-1.843h-5.073v5.071l1.83-1.828z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeright.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeright.svg
new file mode 100644
index 0000000000..0ecdb87383
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeright.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 8)"><path d="m.001 0v16h3.98v-6.006h1.059v3.467l5.961-5.473-5.961-5.461v3.478h-1.059v-6.005z" fill="%COLOR-ACCENT%"/><path d="m3 14.98v-6h3.02v2.261l3.32-3.252-3.32-3.223v2.253h-3.02v-5.999h-1.98v13.96z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouth.svg
new file mode 100644
index 0000000000..4e1b4afccd
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouth.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="none" transform="translate(10 10)"><polygon fill="%COLOR-ACCENT%" points="4.001 .001 4 7 0 7 5.999 13.001 12 7 8 7 8 .001"/><polygon fill="#000" points="7 1 7 8 9.586 8 6 11.586 2.414 8 5 8 5.001 1"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesoutheast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesoutheast.svg
new file mode 100644
index 0000000000..70714856df
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesoutheast.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m.395 3.22 4.948 4.952-2.828 2.828h8.486v-8.486l-2.83 2.829-4.948-4.951z" fill="%COLOR-ACCENT%"/><path d="m3.223 1.807 4.949 4.95 1.828-1.829v5.072h-5.07l1.828-1.829-4.949-4.95z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouthwest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouthwest.svg
new file mode 100644
index 0000000000..2d6a7a592a
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouthwest.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m2.829 5.343-2.828-2.829-.001 8.485 8.485.001-2.827-2.828 4.949-4.951-2.826-2.826z" fill="%COLOR-ACCENT%"/><path d="m9.192 3.221-4.949 4.95 1.828 1.829-5.071-.001v-5.071l1.829 1.829 4.951-4.948z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeup.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeup.svg
new file mode 100644
index 0000000000..c070a46909
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeup.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 10)"><path d="m2.527 6.961h3.478v1.058h-6.005v3.981h16v-3.981h-6.006v-1.058h3.467l-5.473-5.962z" fill="%COLOR-ACCENT%"/><path d="m15 9.02h-6v-3.039h2.24l-3.251-3.321-3.223 3.321h2.254v3.039h-6v1.96h13.98z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeupdown.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeupdown.svg
new file mode 100644
index 0000000000..db422fbbfa
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeupdown.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 7)"><path d="m7.988 0-5.461 5.962h3.478v1.038h-6.005v.019 3.942.02h6.005v1.058h-3.466l5.472 5.961 5.462-5.961h-3.478v-1.058h6.005v-3.981h-6.006v-1.038h3.467z" fill="%COLOR-ACCENT%"/><path d="m14.961 8.02h-5.981v-3.039h2.26l-3.251-3.32-3.223 3.32h2.254v3.039h-5.98-.02v1.96h.02 6v3.04h-2.28l3.251 3.32 3.223-3.32h-2.253v-3.04h5.98.02v-1.96z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizewest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizewest.svg
new file mode 100644
index 0000000000..19734d70ec
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizewest.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 10)"><path d="m0 6 5.999 6.001.001-4.001h7v-3.996l-7-.002v-4.002z" fill="%COLOR-ACCENT%"/><path d="m12 7h-7v2.587l-3.586-3.587 3.586-3.585v2.586l7 .003z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizewesteast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizewesteast.svg
new file mode 100644
index 0000000000..6e9b574c07
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/resizewesteast.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 10)"><path d="m0 6.9907v.005l5.997 5.996.001-3.999h1.999 2.02v4l5.98-6.001-5.98-5.999.001 4.019-2.021.002h-2l.001-4.022zm1.411.003 3.587-3.588-.001 2.587h3.5 2.521v-2.585l3.565 3.586-3.564 3.585-.001-2.585h-2.521l-3.499-.001-.001 2.586z" fill="%COLOR-ACCENT%"/><path d="m8.497 7.993h2.521v2.586l3.565-3.586-3.565-3.585v2.605h-2.521-3.5v-2.607l-3.586 3.587 3.586 3.586v-2.587z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/textcursor.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/textcursor.svg
new file mode 100644
index 0000000000..435dff9e1e
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/textcursor.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><path d="m6.12306605-.48331676c.43304536-.02942018.89723494-.01586641 1.23506765.01110645l.09836607 2.00031187c-.52088553-.02633116-.86402421-.03615261-1.16297111-.01823278-.57216322.1246759-.83397559.26379885-1.13476879.47262866-.20678677.14251521-.54543639.60542479-.68837291.9244994v4.53970853h.998v1.984h-.998v3.57686113c.14285978.3186299.48159131.7805976.69278827.9256073.28177652.1964385.52739561.3374074.74486623.4121252.92617851.1117241.86141186.0439655 1.38886347.0608526l.24148845 1.9771822c-.63869922.0316331-1.03914186.0381475-1.41606129.0122618-.31198863-.0214264-.57343006-.0643378-.77405544-.129216-.41684626-.1296585-.85258908-.3604995-1.32295099-.6884424-.16852556-.1156905-.3571101-.2906327-.54285865-.4981462-.17040902.2017941-.33955796.3725205-.48392771.4855461-.40405946.3138676-.86631905.544191-1.35971316.6990619-.21164232.068207-.47249574.1108318-.78353769.1322303-.43450358.0298922-.90002831.0163041-1.23810501-.010835l-.09691742-2.0002571c.51770616.0263348.86168069.0362399 1.16109487.0181487.6186734-.1394818.87678125-.2519735 1.08726671-.4154673.19712987-.1543365.58456002-.6802379.70170954-.9838289l.01232275-3.57368433h-1.00027293v-1.984h1.002v-4.53315423c-.13203427-.30699537-.51655024-.83390163-.71128328-.98567507-.2013222-.15578504-.43877755-.27368925-.70166256-.36109174-.92774648-.11104657-.86334532-.04378063-1.3908609-.06035307l-.24301648-1.97729129c.64057546-.03160079 1.04058994-.03810767 1.41699023-.01249118.31067274.02114331.57118123.06339129.7795926.13006754.50016024.15848101.96025701.38783055 1.36565801.70154178.14340254.11176212.31252725.28238091.4832615.48453047.18451625-.20650555.37147758-.38041205.53791304-.49511426.47467546-.32956039.90822271-.55967002 1.31895768-.68980909.21133301-.06776711.4720386-.11004715.78312925-.13118199z" fill-rule="evenodd" stroke="%COLOR-ACCENT%" stroke-linejoin="round" transform="translate(13 8)"/></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/textcursorvertical.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/textcursorvertical.svg
new file mode 100644
index 0000000000..bddf998b44
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/textcursorvertical.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><path d="m11.123066-4.48331676c.4330454-.02942018.897235-.01586641 1.2350677.01110645l.0983661 2.00031187c-.5208856-.02633116-.8640242-.03615261-1.1629711-.01823278-.5721633.1246759-.8339756.26379885-1.1347688.47262866-.2067868.14251521-.54543642.60542479-.68837294.9244994v4.53970853h.99800004v1.984h-.99800004v3.5768611c.14285978.31862996.48159131.78059759.69278824.92560737.2817766.19643846.5273956.33740736.7448663.41212516.9261785.1117241.8614118.0439655 1.3888634.0608526l.2414885 1.9771822c-.6386992.0316331-1.0391419.0381475-1.4160613.0122618-.3119886-.0214264-.5734301-.0643378-.7740554-.129216-.41684631-.1296585-.85258913-.3604995-1.32295104-.6884424-.16852556-.1156905-.3571101-.2906327-.54285865-.4981462-.17040902.2017941-.33955796.3725205-.48392771.4855461-.40405946.3138676-.86631905.544191-1.35971316.6990619-.21164232.068207-.47249574.1108318-.78353769.1322303-.43450358.0298922-.90002831.0163041-1.23810501-.010835l-.09691742-2.0002571c.51770616.0263348.86168069.0362399 1.16109487.0181487.6186734-.1394818.87678125-.2519735 1.08726671-.41546726.19712987-.15433655.58456002-.68023797.70170954-.98382894l.01232275-3.57368433h-1.00027293v-1.984h1.002v-4.53315423c-.13203427-.30699537-.51655024-.83390163-.71128328-.98567507-.2013222-.15578504-.43877755-.27368925-.70166256-.36109174-.92774648-.11104657-.86334533-.04378063-1.3908609-.06035307l-.24301648-1.97729129c.64057546-.03160079 1.04058994-.03810766 1.41699023-.01249117.31067274.0211433.57118123.06339128.7795926.13006753.50016024.15848101.96025701.38783055 1.36565801.70154178.14340254.11176212.31252725.28238091.4832615.48453047.18451625-.20650555.37147758-.38041205.53791304-.49511426.47467546-.32956039.90822271-.55967002 1.31895768-.68980909.211333-.06776711.4720386-.11004715.7831292-.13118199z" fill-rule="evenodd" stroke="%COLOR-ACCENT%" stroke-linejoin="round" transform="matrix(0 -1 1 0 12.1 23.976)"/></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/zoomin.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/zoomin.svg
new file mode 100644
index 0000000000..7f53747f7c
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/zoomin.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 8)"><path d="m11.5 6c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5" fill="%COLOR-ACCENT%"/><path d="m15.9999 14.586-1.414 1.414-5.10915001-5.10915c-.98080594.6984179-2.18073805 1.10915-3.47674999 1.10915-3.31414237 0-6-2.68585763-6-6s2.68585763-6 6-6 6 2.68585763 6 6c0 1.29606339-.4107647 2.49603933-1.1092332 3.4768668zm-9.9999-13.586c2.76185763 0 5 2.23814237 5 5s-2.23814237 5-5 5-5-2.23814237-5-5 2.23814237-5 5-5zm1 2h-2v2h-2v1.98h2v2.02h2v-2.02h2v-1.98h-2z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/zoomout.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/zoomout.svg
new file mode 100644
index 0000000000..0daeac4189
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/cursor-svg/zoomout.svg
@@ -0,0 +1 @@
+<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 8)"><path d="m11.5 6c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5" fill="%COLOR-ACCENT%"/><path d="m15.9999 14.586-1.414 1.414-5.10915001-5.10915c-.98080594.6984179-2.18073805 1.10915-3.47674999 1.10915-3.31414237 0-6-2.68585763-6-6s2.68585763-6 6-6 6 2.68585763 6 6c0 1.29606339-.4107647 2.49603933-1.1092332 3.4768668zm-9.9999-13.586c2.76185763 0 5 2.23814237 5 5s-2.23814237 5-5 5-5-2.23814237-5-5 2.23814237-5 5-5zm3 4h-6v1.98h6z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/custom-cursor.ts b/js/app/packages/app/component/custom-cursor/custom-cursor.ts
new file mode 100644
index 0000000000..16f6cb55f7
--- /dev/null
+++ b/js/app/packages/app/component/custom-cursor/custom-cursor.ts
@@ -0,0 +1,496 @@
+import { getCustomCursorEnabled } from '@app/util/cursor';
+import { isMobile } from '@solid-primitives/platform';
+import { createEffect, createRoot } from 'solid-js';
+import { themeReactive } from '../../../block-theme/signals/themeReactive';
+import busySvgRaw from './cursor-svg/busy.svg?raw';
+import cellSvgRaw from './cursor-svg/cell.svg?raw';
+import contextualmenuSvgRaw from './cursor-svg/contextualmenu.svg?raw';
+import copySvgRaw from './cursor-svg/copy.svg?raw';
+import crossSvgRaw from './cursor-svg/cross.svg?raw';
+import defaultSvgRaw from './cursor-svg/default.svg?raw';
+import handgrabbingSvgRaw from './cursor-svg/handgrabbing.svg?raw';
+import handopenSvgRaw from './cursor-svg/handopen.svg?raw';
+import handpointingSvgRaw from './cursor-svg/handpointing.svg?raw';
+import helpSvgRaw from './cursor-svg/help.svg?raw';
+// Import cursor SVGs as raw text so we can replace white fills with accent color
+import aliasSvgRaw from './cursor-svg/makealias.svg?raw';
+import moveSvgRaw from './cursor-svg/move.svg?raw';
+import notallowedSvgRaw from './cursor-svg/notallowed.svg?raw';
+// import resizedownSvgRaw from './cursor-svg/resizedown.svg?raw';
+import resizeeastSvgRaw from './cursor-svg/resizeeast.svg?raw';
+// import resizeleftSvgRaw from './cursor-svg/resizeleft.svg?raw';
+import resizeleftrightSvgRaw from './cursor-svg/resizeleftright.svg?raw';
+import resizenorthSvgRaw from './cursor-svg/resizenorth.svg?raw';
+import resizenortheastSvgRaw from './cursor-svg/resizenortheast.svg?raw';
+import resizenortheastsouthwestSvgRaw from './cursor-svg/resizenortheastsouthwest.svg?raw';
+import resizenorthsouthSvgRaw from './cursor-svg/resizenorthsouth.svg?raw';
+import resizenorthwestSvgRaw from './cursor-svg/resizenorthwest.svg?raw';
+// import resizenorthwestsoutheastSvgRaw from './cursor-svg/resizenorthwestsoutheast.svg?raw';
+// import resizerightSvgRaw from './cursor-svg/resizeright.svg?raw';
+import resizesouthSvgRaw from './cursor-svg/resizesouth.svg?raw';
+import resizesoutheastSvgRaw from './cursor-svg/resizesoutheast.svg?raw';
+import resizesouthwestSvgRaw from './cursor-svg/resizesouthwest.svg?raw';
+// import resizeupSvgRaw from './cursor-svg/resizeup.svg?raw';
+import resizeupdownSvgRaw from './cursor-svg/resizeupdown.svg?raw';
+import resizewestSvgRaw from './cursor-svg/resizewest.svg?raw';
+import resizewesteastSvgRaw from './cursor-svg/resizewesteast.svg?raw';
+import textcursorSvgRaw from './cursor-svg/textcursor.svg?raw';
+import textcursorverticalSvgRaw from './cursor-svg/textcursorvertical.svg?raw';
+import zoominSvgRaw from './cursor-svg/zoomin.svg?raw';
+import zoomoutSvgRaw from './cursor-svg/zoomout.svg?raw';
+
+let cursorStyleEl: HTMLStyleElement | null = null;
+let defaultCursor: string = '';
+let hexColor: string = '';
+let cursorCache: Record<string, string> = {};
+let currentCursorType: string | null = null;
+const shadowRoots = new Set<ShadowRoot>();
+let overridedCursorTargetEl: HTMLElement | null = null;
+const overrideCursorAttr = 'data-override-cursor';
+// const overrideCursorSelector = `[${overrideCursorAttr}]`
+const overrideCursorSelector = `*`;
+
+// Get or create style elements in all matching shadow roots
+function getShadowRootStyleEls(): HTMLStyleElement[] {
+ const styleElements: HTMLStyleElement[] = [];
+
+ for (const shadowRoot of shadowRoots) {
+ let styleEl = shadowRoot.querySelector('style');
+ if (!styleEl) {
+ styleEl = document.createElement('style');
+ shadowRoot.appendChild(styleEl);
+ }
+ styleElements.push(styleEl);
+ }
+
+ return styleElements;
+}
+
+// Extract fallback cursor from custom cursor string (e.g., 'url(...) 11 9, auto' -> 'auto')
+function extractFallbackCursor(cursor: string): string {
+ // If cursor is a custom cursor (starts with 'url('), extract the fallback
+ if (cursor.trim().startsWith('url(')) {
+ // Pattern: url(...) <hotspot>, <fallback>
+ // Extract everything after the last comma
+ const lastCommaIndex = cursor.lastIndexOf(',');
+ if (lastCommaIndex !== -1) {
+ const fallback = cursor.substring(lastCommaIndex + 1).trim();
+ return fallback || cursor;
+ }
+ }
+ return cursor;
+}
+
+// Recursively find element at point, traversing into shadow roots
+function deepElementFromPoint(
+ x: number,
+ y: number,
+ root: Document | ShadowRoot = document
+): Element | null {
+ const el = root.elementFromPoint(x, y);
+ if (!el) return null;
+
+ if (el.shadowRoot) {
+ const deeper = deepElementFromPoint(x, y, el.shadowRoot);
+ return deeper || el;
+ }
+
+ return el;
+}
+
+// Get all text nodes from an element
+function getTextNodes(el: Element): Text[] {
+ const nodes: Text[] = [];
+ const tw = document.createTreeWalker(el, NodeFilter.SHOW_TEXT, {
+ acceptNode(node: Node) {
+ return (node.nodeValue?.trim().length ?? 0) > 0
+ ? NodeFilter.FILTER_ACCEPT
+ : NodeFilter.FILTER_REJECT;
+ },
+ });
+
+ let n: Node | null;
+ // biome-ignore lint/suspicious/noAssignInExpressions: <explanation_for_suppression>
+ while ((n = tw.nextNode())) {
+ nodes.push(n as Text);
+ }
+ return nodes;
+}
+
+// Check if a point is within a text node's bounding rects
+function isPointInTextLine(textNode: Text, x: number, y: number): boolean {
+ const range = document.createRange();
+ range.setStart(textNode, 0);
+ range.setEnd(textNode, textNode.length);
+
+ const rects = range.getClientRects();
+ for (const r of rects) {
+ if (y >= r.top && y <= r.bottom && x >= r.left && x <= r.right) {
+ return true;
+ }
+ }
+ return false;
+}
+
+// Detect if mouse is over text glyph (I-beam cursor)
+function isOverTextGlyph(clientX: number, clientY: number): boolean {
+ const node = deepElementFromPoint(clientX, clientY);
+ if (!node) return false;
+
+ const textNodes = getTextNodes(node);
+ if (!textNodes.length) return false;
+
+ const isOverText = textNodes.some((tn) =>
+ isPointInTextLine(tn, clientX, clientY)
+ );
+ return isOverText;
+}
+
+// Convert CSS color (oklch/rgb/etc) to hex using canvas
+function getHexColor(cssColor: string): string {
+ if (!cssColor) return '';
+
+ const canvas = document.createElement('canvas');
+ canvas.width = canvas.height = 1;
+ const ctx = canvas.getContext('2d');
+ if (!ctx) return '';
+
+ ctx.fillStyle = cssColor;
+ ctx.fillRect(0, 0, 1, 1);
+ const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data;
+ return '#' + [r, g, b].map((x) => x.toString(16).padStart(2, '0')).join('');
+}
+
+function replaceColorAttrWithAccent(
+ svgContent: string,
+ accentHex: string
+): string {
+ if (!accentHex) return svgContent;
+ return svgContent.replace(/%COLOR-ACCENT%/gi, accentHex);
+}
+
+// Convert SVG string to data URL cursor CSS
+function svgToCursor(
+ svgContent: string,
+ fallback: string,
+ position: string = '11 9'
+): string {
+ const encodedSvg = encodeURIComponent(svgContent);
+ return `url('data:image/svg+xml;utf8,${encodedSvg}') ${position}, ${fallback}`;
+}
+
+// Map of cursor states to SVG raw content and fallback cursor
+const cursorSvgMap: Record<
+ string,
+ { svg: string; fallback: string; position: string }
+> = {
+ // general cursors
+ auto: { svg: defaultSvgRaw, fallback: 'auto', position: '11 9' },
+ default: { svg: defaultSvgRaw, fallback: 'auto', position: '11 9' }, // Will be set dynamically
+ none: { svg: '', fallback: 'none', position: '11 9' },
+ // link and status cursors
+ 'context-menu': {
+ svg: contextualmenuSvgRaw,
+ fallback: 'context-menu',
+ position: '11 9',
+ },
+ help: { svg: helpSvgRaw, fallback: 'help', position: '11 9' },
+ pointer: { svg: handpointingSvgRaw, fallback: 'pointer', position: '11 9' },
+ progress: { svg: busySvgRaw, fallback: 'progress', position: '11 9' },
+ wait: { svg: busySvgRaw, fallback: 'wait', position: '11 9' },
+ // selection cursors
+ cell: { svg: cellSvgRaw, fallback: 'cell', position: '11 9' },
+ crosshair: { svg: crossSvgRaw, fallback: 'crosshair', position: '11 9' },
+ text: { svg: textcursorSvgRaw, fallback: 'text', position: '16 16' },
+ 'vertical-text': {
+ svg: textcursorverticalSvgRaw,
+ fallback: 'vertical-text',
+ position: '11 9',
+ },
+ // drag-and-drop cursors
+ alias: { svg: aliasSvgRaw, fallback: 'alias', position: '11 9' },
+ copy: { svg: copySvgRaw, fallback: 'copy', position: '11 9' },
+ move: { svg: moveSvgRaw, fallback: 'move', position: '11 9' },
+ 'no-drop': { svg: notallowedSvgRaw, fallback: 'no-drop', position: '8 0' },
+ 'not-allowed': {
+ svg: notallowedSvgRaw,
+ fallback: 'not-allowed',
+ position: '8 0',
+ },
+ grab: { svg: handopenSvgRaw, fallback: 'grab', position: '11 9' },
+ grabbing: { svg: handgrabbingSvgRaw, fallback: 'grabbing', position: '11 9' },
+ // resizing and scrolling cursors
+ 'all-scroll': { svg: moveSvgRaw, fallback: 'all-scroll', position: '11 9' },
+ 'col-resize': {
+ svg: resizeleftrightSvgRaw,
+ fallback: 'col-resize',
+ position: '16 16',
+ },
+ 'row-resize': {
+ svg: resizeupdownSvgRaw,
+ fallback: 'row-resize',
+ position: '11 9',
+ },
+ 'n-resize': {
+ svg: resizenorthSvgRaw,
+ fallback: 'n-resize',
+ position: '11 9',
+ },
+ 's-resize': {
+ svg: resizesouthSvgRaw,
+ fallback: 's-resize',
+ position: '11 9',
+ },
+ 'e-resize': { svg: resizeeastSvgRaw, fallback: 'e-resize', position: '11 9' },
+ 'w-resize': { svg: resizewestSvgRaw, fallback: 'w-resize', position: '11 9' },
+ 'ns-resize': {
+ svg: resizenorthsouthSvgRaw,
+ fallback: 'ns-resize',
+ position: '11 9',
+ },
+ 'ew-resize': {
+ svg: resizewesteastSvgRaw,
+ fallback: 'ew-resize',
+ position: '11 9',
+ },
+ 'ne-resize': {
+ svg: resizenortheastSvgRaw,
+ fallback: 'ne-resize',
+ position: '11 9',
+ },
+ 'nw-resize': {
+ svg: resizenorthwestSvgRaw,
+ fallback: 'nw-resize',
+ position: '11 9',
+ },
+ 'se-resize': {
+ svg: resizesoutheastSvgRaw,
+ fallback: 'se-resize',
+ position: '11 9',
+ },
+ 'sw-resize': {
+ svg: resizesouthwestSvgRaw,
+ fallback: 'sw-resize',
+ position: '11 9',
+ },
+ 'nesw-resize': {
+ svg: resizenortheastsouthwestSvgRaw,
+ fallback: 'nesw-resize',
+ position: '11 9',
+ },
+ // zooming cursors
+ 'zoom-in': { svg: zoominSvgRaw, fallback: 'zoom-in', position: '11 9' },
+ 'zoom-out': { svg: zoomoutSvgRaw, fallback: 'zoom-out', position: '11 9' },
+};
+
+// Map of cursor states to custom cursor URLs (dynamically generated)
+const cursorMap: Record<string, string> = {};
+
+// Get cursor CSS for a given cursor type
+function getCursor(cursorType: string): string {
+ const cursorDef = cursorSvgMap[cursorType];
+ if (!cursorDef) return cursorMap.default || '';
+
+ if (!cursorDef.svg) {
+ // For auto, none, all-scroll - return empty or fallback
+ if (cursorType === 'auto') return cursorMap.default || '';
+ if (cursorType === 'none') return '';
+ return '';
+ }
+
+ // Check cache first
+ const cacheKey = `${cursorType}-${hexColor}`;
+ if (cursorCache[cacheKey]) {
+ return cursorCache[cacheKey];
+ }
+
+ // Process SVG: replace white fills with accent color
+ let processedSvg = cursorDef.svg;
+ if (hexColor) {
+ processedSvg = replaceColorAttrWithAccent(processedSvg, hexColor);
+ }
+
+ // Convert to cursor CSS
+ const cursorCss = svgToCursor(
+ processedSvg,
+ cursorDef.fallback,
+ cursorDef.position
+ );
+ cursorCache[cacheKey] = cursorCss;
+ return cursorCss;
+}
+
+function updateCursorStyle() {
+ if (!currentCursorType) return;
+ const cursor = getCursor(currentCursorType);
+
+ const cursorStyle = cursor
+ ? `${overrideCursorSelector} { cursor: ${cursor} !important; }`
+ : '';
+
+ if (cursor) {
+ cursorStyleEl!.textContent = cursorStyle;
+ const shadowStyleEls = getShadowRootStyleEls();
+ for (const shadowStyleEl of shadowStyleEls) {
+ shadowStyleEl.textContent = cursorStyle;
+ }
+ } else {
+ cursorStyleEl!.textContent = '';
+ const shadowStyleEls = getShadowRootStyleEls();
+ for (const shadowStyleEl of shadowStyleEls) {
+ shadowStyleEl.textContent = '';
+ }
+ }
+}
+
+function updateCursor() {
+ updateCustomCursor();
+ updateCursorStyle();
+}
+
+function updateCustomCursor() {
+ const { l, c, h } = themeReactive.a0;
+ const col = `oklch(${l[0]()} ${c[0]()} ${h[0]()}deg)`;
+
+ const accentColor = col;
+ if (!accentColor) {
+ defaultCursor = '';
+ hexColor = '';
+ cursorCache = {}; // Clear cache when accent color is removed
+ cursorMap.default = '';
+ return;
+ }
+
+ // Convert CSS color to hex
+ const newHexColor = getHexColor(accentColor);
+
+ // If hex color changed, clear cache and update
+ if (newHexColor !== hexColor) {
+ hexColor = newHexColor;
+ cursorCache = {}; // Clear cache when accent color changes
+ }
+
+ // Use the default cursor SVG with accent color for white fill
+ const svgContent = `<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 7)"><path id="outline" d="m6.148 18.473 1.863-1.003 1.615-.839-2.568-4.816h4.332l-11.379-11.408v16.015l3.316-3.221z" fill="${hexColor}"/><path d="m6.431 17 1.765-.941-2.775-5.202h3.604l-8.025-8.043v11.188l2.53-2.442z" fill="#000"/></g></svg>`;
+ const encodedSvg = encodeURIComponent(svgContent);
+ // Hot spot is at the tip of the cursor pointer, accounting for the translate(10 7) transform
+ defaultCursor = `url('data:image/svg+xml;utf8,${encodedSvg}') 11 9, auto`;
+ cursorMap.default = defaultCursor;
+}
+
+const clearCursorOverrideStyle = () => {
+ cursorStyleEl!.textContent = '';
+ const shadowStyleEls = getShadowRootStyleEls();
+ for (const shadowStyleEl of shadowStyleEls) {
+ shadowStyleEl.textContent = '';
+ }
+};
+
+// Initialize cursor
+function initCursor() {
+ if (isMobile) return;
+ updateCustomCursor();
+
+ // Initialize cursor style element
+ if (!cursorStyleEl) {
+ cursorStyleEl = document.createElement('style');
+ cursorStyleEl.id = 'custom-cursor-style';
+ document.head.appendChild(cursorStyleEl);
+ }
+
+ // Add mousemove listener to handle cursor states and text glyph detection
+ const onMouseMove = (e: MouseEvent) => {
+ if (!getCustomCursorEnabled()) {
+ clearCursorOverrideStyle();
+ return;
+ }
+
+ const target = e.target as Element;
+
+ if (target.shadowRoot) {
+ shadowRoots.add(target.shadowRoot);
+ [...target.shadowRoot.children].forEach((child) => {
+ child.addEventListener('mousemove', onMouseMove);
+ });
+ return;
+ }
+
+ clearCursorOverrideStyle();
+
+ const targetComputedStyle = getComputedStyle(target);
+ const computedCursor = targetComputedStyle.cursor;
+ const computedUserSelect = targetComputedStyle.userSelect;
+ // TODO: maybe use attribute selector instead of wild card selector to improve perf
+ // target.setAttribute(overrideCursorAttr, '')
+ // if (target !== overridedCursorTargetEl) {
+ // overridedCursorTargetEl?.removeAttribute(overrideCursorAttr)
+ // }
+ // overridedCursorTargetEl = target as HTMLElement
+
+ // Extract fallback cursor if computed cursor is a custom cursor string
+ const baseCursor = extractFallbackCursor(computedCursor);
+
+ let inferredCursorType: string | null = null;
+
+ // Use inferred cursor type if available, otherwise use extracted fallback cursor
+ let cs = inferredCursorType || baseCursor;
+
+ // Only use text glyph detection when cursor is 'auto'
+ if (cs === 'auto' && isOverTextGlyph(e.clientX, e.clientY)) {
+ if (computedUserSelect === 'none') {
+ cs = 'default';
+ } else {
+ cs = 'text';
+ }
+ if (target.tagName === 'BUTTON' || target.closest('button')) {
+ cs = 'default';
+ }
+ }
+ currentCursorType = cs;
+
+ // TODO: Only update if cursor type changed
+ // if (cs === currentCursorType) {
+ // return;
+ // }
+
+ updateCursorStyle();
+ };
+
+ document.addEventListener('mousemove', onMouseMove);
+}
+
+if (document.readyState === 'loading') {
+ document.addEventListener('DOMContentLoaded', initCursor);
+} else {
+ initCursor();
+}
+
+// Watch for theme changes and preference changes
+let lastAccentColor = '';
+let lastCursorEnabled = getCustomCursorEnabled();
+
+createRoot(() => {
+ createEffect(() => {
+ const { l, c, h } = themeReactive.a0;
+ const col = `oklch(${l[0]()} ${c[0]()} ${h[0]()}deg)`;
+
+ const currentAccentColor = col;
+ const currentCursorEnabled = getCustomCursorEnabled();
+
+ if (
+ (currentAccentColor && currentAccentColor !== lastAccentColor) ||
+ currentCursorEnabled !== lastCursorEnabled
+ ) {
+ lastAccentColor = currentAccentColor;
+ lastCursorEnabled = currentCursorEnabled;
+
+ updateCursor();
+ }
+ });
+});
+
+// Listen for immediate preference changes
+window.addEventListener('cursor-preference-changed', () => {
+ lastCursorEnabled = getCustomCursorEnabled();
+ updateCustomCursor();
+});
diff --git a/js/app/packages/app/component/split-layout/componentRegistry.tsx b/js/app/packages/app/component/split-layout/componentRegistry.tsx
index 031e59b30e..4dccf98636 100644
--- a/js/app/packages/app/component/split-layout/componentRegistry.tsx
+++ b/js/app/packages/app/component/split-layout/componentRegistry.tsx
@@ -70,6 +70,10 @@ if (LOCAL_ONLY) {
() => import('@core/component/FormControls/debug/NewFormPrimitivesDemo')
)
);
+ registerComponent(
+ 'custom-cursor',
+ lazy(() => import('@app/component/CustomCursorDemo'))
+ );
registerComponent(
'resize',
lazy(() => import('@core/internal/ResizeDemo'))
diff --git a/js/app/packages/app/index.tsx b/js/app/packages/app/index.tsx
index 0105f72872..daa001d317 100644
--- a/js/app/packages/app/index.tsx
+++ b/js/app/packages/app/index.tsx
@@ -9,95 +9,10 @@ import { ErrorBoundary, render } from 'solid-js/web';
import { FatalError } from './component/FatalError';
import { ReactiveFavicon } from './component/ReactiveFavicon';
import { Root } from './component/Root';
-import { getCustomCursorEnabled } from './util/cursor';
-initializeLexical();
-
-let cursorStyleEl: HTMLStyleElement | null = null;
-
-function updateCursor() {
- if (!document.body || !document.head) return;
-
- const enabled = getCustomCursorEnabled();
- if (!enabled) {
- if (cursorStyleEl) {
- cursorStyleEl.textContent = '';
- }
- return;
- }
-
- const accentColor = getComputedStyle(document.documentElement)
- .getPropertyValue('--color-accent')
- .trim();
- if (!accentColor) return;
-
- // Convert CSS color (oklch/rgb/etc) to hex using canvas
- const canvas = document.createElement('canvas');
- canvas.width = canvas.height = 1;
- const ctx = canvas.getContext('2d');
- if (!ctx) return;
-
- ctx.fillStyle = accentColor;
- ctx.fillRect(0, 0, 1, 1);
- const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data;
- const hexColor =
- '#' + [r, g, b].map((x) => x.toString(16).padStart(2, '0')).join('');
-
- // Use the default cursor SVG with accent color for white fill
- const svgContent = `<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 7)"><path id="outline" d="m6.148 18.473 1.863-1.003 1.615-.839-2.568-4.816h4.332l-11.379-11.408v16.015l3.316-3.221z" fill="${hexColor}"/><path d="m6.431 17 1.765-.941-2.775-5.202h3.604l-8.025-8.043v11.188l2.53-2.442z" fill="#000"/></g></svg>`;
- const encodedSvg = encodeURIComponent(svgContent);
- // Hot spot is at the tip of the cursor pointer, accounting for the translate(10 7) transform
- const svgCursor = `url('data:image/svg+xml;utf8,${encodedSvg}') 11 9, auto`;
-
- if (!cursorStyleEl) {
- cursorStyleEl = document.createElement('style');
- cursorStyleEl.id = 'custom-cursor-style';
- document.head.appendChild(cursorStyleEl);
- }
+import './component/custom-cursor/custom-cursor';
- cursorStyleEl.textContent = `* { cursor: ${svgCursor} !important; }`;
-}
-
-// Initialize cursor
-function initCursor() {
- if (!document.body || !document.head) {
- requestAnimationFrame(initCursor);
- return;
- }
- setTimeout(updateCursor, 0);
-}
-
-if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', initCursor);
-} else {
- initCursor();
-}
-
-// Watch for theme changes and preference changes
-let lastAccentColor = '';
-let lastCursorEnabled = getCustomCursorEnabled();
-setInterval(() => {
- if (!document.body) return;
- const currentAccentColor = getComputedStyle(document.documentElement)
- .getPropertyValue('--color-accent')
- .trim();
- const currentCursorEnabled = getCustomCursorEnabled();
-
- if (
- (currentAccentColor && currentAccentColor !== lastAccentColor) ||
- currentCursorEnabled !== lastCursorEnabled
- ) {
- lastAccentColor = currentAccentColor;
- lastCursorEnabled = currentCursorEnabled;
- updateCursor();
- }
-}, 100);
-
-// Listen for immediate preference changes
-window.addEventListener('cursor-preference-changed', () => {
- lastCursorEnabled = getCustomCursorEnabled();
- updateCursor();
-});
+initializeLexical();
const renderApp = () => {
const root = document.getElementById('root');