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.

feat(icons) - add animating versions of icons in Launcher and Soup filters (#1229)

Aidan Holloway-Bidwell7c8b3852bdc4
diff --git a/js/app/packages/app/component/Launcher.tsx b/js/app/packages/app/component/Launcher.tsx
index ef7cd74af6..9b3e9718a4 100644
--- a/js/app/packages/app/component/Launcher.tsx
+++ b/js/app/packages/app/component/Launcher.tsx
@@ -2,7 +2,10 @@ import type { BlockAlias, BlockName } from '@core/block';
import { getIconConfig } from '@core/component/EntityIcon';
import { Hotkey } from '@core/component/Hotkey';
import { PcNoiseGrid } from '@core/component/PcNoiseGrid';
-import { ENABLE_CREATE_TASK } from '@core/constant/featureFlags';
+import {
+ ENABLE_ANIMATED_ICONS,
+ ENABLE_CREATE_TASK,
+} from '@core/constant/featureFlags';
import { registerHotkey, useHotkeyDOMScope } from '@core/hotkey/hotkeys';
import { pressedKeys } from '@core/hotkey/state';
import { type HotkeyToken, TOKENS } from '@core/hotkey/tokens';
@@ -20,6 +23,14 @@ import { createControlledOpenSignal } from '@core/util/createControlledOpenSigna
import { isErr, ok } from '@core/util/maybeResult';
import { Dialog } from '@kobalte/core/dialog';
import PixelArrowRight from '@macro-icons/pixel/arrow-right.svg';
+import { AnimatedChatIcon } from '@macro-icons/wide/animating/chat';
+import { AnimatedDiagramIcon } from '@macro-icons/wide/animating/diagram';
+import { AnimatedEmailIcon } from '@macro-icons/wide/animating/email';
+import { AnimatedFileCodeIcon } from '@macro-icons/wide/animating/fileCode';
+import { AnimatedFileMdIcon } from '@macro-icons/wide/animating/fileMd';
+import { AnimatedFolderIcon } from '@macro-icons/wide/animating/folder';
+import { AnimatedStarIcon } from '@macro-icons/wide/animating/star';
+import { AnimatedTaskIcon } from '@macro-icons/wide/animating/task';
import WideChat from '@macro-icons/wide/chat.svg';
import WideDiagram from '@macro-icons/wide/diagram.svg';
import WideEmail from '@macro-icons/wide/email.svg';
@@ -29,7 +40,15 @@ import WideFolder from '@macro-icons/wide/folder.svg';
import WideStar from '@macro-icons/wide/star.svg';
import WideTask from '@macro-icons/wide/task.svg';
import { createProject } from '@queries/storage/projects';
-import { createEffect, createSignal, For, onMount, Show } from 'solid-js';
+import {
+ type Component,
+ createEffect,
+ createSignal,
+ For,
+ onMount,
+ Show,
+} from 'solid-js';
+import { Dynamic } from 'solid-js/web';
import { type FocusableElement, tabbable } from 'tabbable';
import { useSplitLayout } from './split-layout/layout';
@@ -105,12 +124,14 @@ type CreatableBlock = Omit<HotkeyRegistrationOptions, 'scopeId'> & {
label: string;
blockName: BlockName;
altHotkeyToken?: HotkeyToken;
+ animatedIcon?: Component<{ triggerAnimation?: boolean }>;
};
export const CREATABLE_BLOCKS: CreatableBlock[] = [
{
- label: 'Docs',
- icon: () => <WideFileMd />,
+ label: 'Doc',
+ icon: WideFileMd,
+ animatedIcon: AnimatedFileMdIcon,
description: 'Create doc',
blockName: 'md',
hotkeyToken: TOKENS.create.note,
@@ -135,7 +156,8 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
? [
{
label: 'Task',
- icon: () => <WideTask />,
+ icon: WideTask,
+ animatedIcon: AnimatedTaskIcon,
description: 'Create task',
blockName: 'task' as BlockName,
hotkeyToken: TOKENS.create.task,
@@ -153,7 +175,8 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
: []),
{
label: 'Email',
- icon: () => <WideEmail />,
+ icon: WideEmail,
+ animatedIcon: AnimatedEmailIcon,
description: 'Create email',
blockName: 'email',
hotkeyToken: TOKENS.create.email,
@@ -169,7 +192,8 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
},
{
label: 'Message',
- icon: () => <WideChat />,
+ icon: WideChat,
+ animatedIcon: AnimatedChatIcon,
description: 'Create message',
blockName: 'channel',
hotkeyToken: TOKENS.create.message,
@@ -184,8 +208,9 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
},
},
{
- label: 'AI',
- icon: () => <WideStar />,
+ label: 'Agent',
+ icon: WideStar,
+ animatedIcon: AnimatedStarIcon,
description: 'Create AI chat',
blockName: 'chat' as BlockName,
hotkeyToken: TOKENS.create.chat,
@@ -208,7 +233,8 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
},
{
label: 'Canvas',
- icon: () => <WideDiagram />,
+ icon: WideDiagram,
+ animatedIcon: AnimatedDiagramIcon,
description: 'Create canvas',
blockName: 'canvas',
hotkeyToken: TOKENS.create.canvas,
@@ -234,7 +260,8 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
},
{
label: 'Folder',
- icon: () => <WideFolder />,
+ icon: WideFolder,
+ animatedIcon: AnimatedFolderIcon,
description: 'Create folder',
blockName: 'project',
hotkeyToken: TOKENS.create.project,
@@ -251,7 +278,8 @@ export const CREATABLE_BLOCKS: CreatableBlock[] = [
},
{
label: 'Code',
- icon: () => <WideFileCode />,
+ icon: WideFileCode,
+ animatedIcon: AnimatedFileCodeIcon,
description: 'Create code file',
blockName: 'code',
hotkeyToken: TOKENS.create.code,
@@ -303,7 +331,8 @@ const LauncherMenuItem = (props: LauncherMenuItemProps) => {
? getIconConfig(props.creatableBlock.blockName).foreground
: 'text-accent';
- const Icon = props.creatableBlock.icon;
+ const StaticIcon = props.creatableBlock.icon;
+ const AnimatedIcon = props.creatableBlock.animatedIcon;
return (
<button
@@ -381,7 +410,14 @@ const LauncherMenuItem = (props: LauncherMenuItemProps) => {
'scale-110': props.focused,
}}
>
- {Icon && <Icon />}
+ <Show
+ when={ENABLE_ANIMATED_ICONS && AnimatedIcon}
+ fallback={<Dynamic component={StaticIcon} />}
+ >
+ {(Icon) => (
+ <Dynamic component={Icon()} triggerAnimation={props.focused} />
+ )}
+ </Show>
</div>
</button>
);
diff --git a/js/app/packages/app/component/Soup.tsx b/js/app/packages/app/component/Soup.tsx
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/js/app/packages/app/component/next-soup/filters/filters.ts b/js/app/packages/app/component/next-soup/filters/filters.ts
index 939986c253..e6ceda6f4a 100644
--- a/js/app/packages/app/component/next-soup/filters/filters.ts
+++ b/js/app/packages/app/component/next-soup/filters/filters.ts
@@ -13,6 +13,14 @@ import type {
SoupItemsQueryFilters,
} from '@queries/soup/items';
import { codeFileExtensions } from '@block-code/util/languageSupport';
+import type { Component } from 'solid-js';
+import { AnimatedChannelIcon } from '@macro-icons/wide/animating/channel';
+import { AnimatedChatIcon } from '@macro-icons/wide/animating/chat';
+import { AnimatedEmailIcon } from '@macro-icons/wide/animating/email';
+import { AnimatedFileMdIcon } from '@macro-icons/wide/animating/fileMd';
+import { AnimatedFolderIcon } from '@macro-icons/wide/animating/folder';
+import { AnimatedStarIcon } from '@macro-icons/wide/animating/star';
+import { AnimatedTaskIcon } from '@macro-icons/wide/animating/task';
/**
* Unread filter - entity has unread content.
@@ -247,6 +255,22 @@ export const getEntityTypeFilterIcon = (filter: EntityTypeFilters) => {
return getIconConfig(ENTITY_TYPE_TO_ICON_TYPE[filter]);
};
+/**
+ * Mapping of entity type filter IDs to their animated icon components.
+ * Used to provide hover animations on filter buttons.
+ */
+export const ANIMATED_ICONS: Partial<
+ Record<EntityTypeFilters, Component<{ triggerAnimation?: boolean }>>
+> = {
+ document: AnimatedFileMdIcon,
+ agent: AnimatedStarIcon,
+ people: AnimatedChatIcon,
+ teams: AnimatedChannelIcon,
+ task: AnimatedTaskIcon,
+ email: AnimatedEmailIcon,
+ file: AnimatedFolderIcon,
+};
+
export const getFilterWithID = (filterID: FilterID) => {
const found = SOUP_FILTERS.find((f) => f.id === filterID);
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-toolbar.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-toolbar.tsx
index d6eb2a8b4d..cae442ea0f 100644
--- a/js/app/packages/app/component/next-soup/soup-view/soup-toolbar.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/soup-toolbar.tsx
@@ -22,10 +22,12 @@ import {
type Component,
} from 'solid-js';
import {
+ ANIMATED_ICONS,
ENTITY_TYPE_FILTER_CONFIGS,
type FilterID,
getEntityTypeFilterIcon,
} from '@app/component/next-soup/filters/filters';
+import { ENABLE_ANIMATED_ICONS } from '@core/constant/featureFlags';
import { registerHotkey } from '@core/hotkey/hotkeys';
import { useSoupView } from '@app/component/next-soup/soup-view/soup-view-context';
import { useSplitPanelOrThrow } from '@app/component/split-layout/layoutUtils';
@@ -298,10 +300,12 @@ const SoupFilters = () => {
{(filter) => {
const iconConfig = () => getEntityTypeFilterIcon(filter.id);
const shortcut = ENTITY_TYPE_SHORTCUTS[filter.id];
+ const animatedIcon = ANIMATED_ICONS[filter.id];
return (
<FilterButton
icon={iconConfig().icon}
+ animatedIcon={animatedIcon}
label={filter.label ?? ''}
shortcut={shortcut}
isActive={() => soup.filters.isActive(filter.id)}
@@ -544,6 +548,7 @@ export const ShortcutLabel: Component<{ label: string; shortcut: string }> = (
export interface FilterButtonProps {
icon: Component<{ class?: string }>;
+ animatedIcon?: Component<{ triggerAnimation?: boolean }>;
label: string;
shortcut: string;
isActive: (() => boolean) | boolean;
@@ -551,34 +556,51 @@ export interface FilterButtonProps {
paddingClass?: string;
}
-export const FilterButton: Component<FilterButtonProps> = (props) => (
- <div class="flex items-center mr-0.5 shrink-0">
- <Tooltip
- tooltip={<LabelAndHotKey label={props.label} shortcut={props.shortcut} />}
- >
- <button
- type="button"
- class={`flex items-center gap-1 h-[22px] touch:mobile-width:h-9 ${props.paddingClass ?? 'pl-2 pr-2.5'} active:bg-accent active:text-panel rounded-full`}
- classList={{
- 'bg-accent text-panel':
- typeof props.isActive === 'function'
- ? props.isActive()
- : props.isActive,
- 'text-ink-muted hover:text-accent hover:bg-accent/20':
- !(typeof props.isActive === 'function'
- ? props.isActive()
- : props.isActive),
- }}
- onClick={props.onClick}
+export const FilterButton: Component<FilterButtonProps> = (props) => {
+ const [isHovered, setIsHovered] = createSignal(false);
+
+ const isActive = () =>
+ typeof props.isActive === 'function' ? props.isActive() : props.isActive;
+
+ return (
+ <div class="flex items-center mr-0.5 shrink-0">
+ <Tooltip
+ tooltip={
+ <LabelAndHotKey label={props.label} shortcut={props.shortcut} />
+ }
>
- <Dynamic component={props.icon} class="size-3.5" />
- <span class="leading-none">
- <ShortcutLabel label={props.label} shortcut={props.shortcut} />
- </span>
- </button>
- </Tooltip>
- </div>
-);
+ <button
+ type="button"
+ class={`flex items-center gap-1 h-[22px] touch:mobile-width:h-9 ${props.paddingClass ?? 'pl-2 pr-2.5'} active:bg-accent active:text-panel rounded-full`}
+ classList={{
+ 'bg-accent text-panel': isActive(),
+ 'text-ink-muted hover:text-accent hover:bg-accent/20': !isActive(),
+ }}
+ onClick={props.onClick}
+ onMouseEnter={() => setIsHovered(true)}
+ onMouseLeave={() => setIsHovered(false)}
+ >
+ <Show
+ when={ENABLE_ANIMATED_ICONS && props.animatedIcon}
+ fallback={<Dynamic component={props.icon} class="size-3.5" />}
+ >
+ {(Icon) => (
+ <div class="size-3.5 overflow-visible">
+ <Dynamic
+ component={Icon()}
+ triggerAnimation={isHovered() || isActive()}
+ />
+ </div>
+ )}
+ </Show>
+ <span class="leading-none">
+ <ShortcutLabel label={props.label} shortcut={props.shortcut} />
+ </span>
+ </button>
+ </Tooltip>
+ </div>
+ );
+};
export const FilterDivider: Component = () => (
<div class="mx-0.5 w-px h-5 bg-edge-muted/50 shrink-0" />
diff --git a/js/app/packages/core/constant/featureFlags.ts b/js/app/packages/core/constant/featureFlags.ts
index c3a9a5b50d..b33325226f 100644
--- a/js/app/packages/core/constant/featureFlags.ts
+++ b/js/app/packages/core/constant/featureFlags.ts
@@ -96,6 +96,8 @@ export const ENABLE_SVG_PREVIEW = true;
export const USE_WIDE_ICONS = true;
+export const ENABLE_ANIMATED_ICONS = true;
+
export const ENABLE_PROPERTY_DISPLAY = DEV_MODE_ENV;
export const ENABLE_PROPERTY_SORT = DEV_MODE_ENV;
export const ENABLE_PROPERTY_FILTER = DEV_MODE_ENV;
diff --git a/js/app/packages/macro-icons/wide/animating/channel.tsx b/js/app/packages/macro-icons/wide/animating/channel.tsx
new file mode 100644
index 0000000000..2f43f4fd09
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/channel.tsx
@@ -0,0 +1,63 @@
+export const AnimatedChannelIcon = (props: { triggerAnimation?: boolean }) => {
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -4 24 24"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-channel-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated channel icon</title>
+ <style>{`
+ @keyframes head-bounce {
+ 0% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(-2px);
+ }
+ 80% {
+ transform: translateY(1px);
+ }
+ 100% {
+ transform: translateY(0);
+ }
+ }
+ .animated-channel-icon {
+ .head-left, .head-center, .head-right {
+ transition: transform 0.4s ease;
+ }
+ }
+ .animated-channel-icon.animating {
+ .head-left {
+ animation: head-bounce .2s;
+ }
+ .head-center {
+ animation: head-bounce .2s 0.2s;
+ }
+ .head-right {
+ animation: head-bounce .2s 0.4s;
+ }
+ }
+ `}</style>
+ <path
+ class="head-center"
+ d="M12 11.6667C9.97333 11.6667 8.33333 10.0267 8.33333 8C8.33333 5.97333 9.97333 4.33333 12 4.33333C14.0267 4.33333 15.6667 5.97333 15.6667 8C15.6667 10.0267 14.0267 11.6667 12 11.6667ZM12 6.33333C11.08 6.33333 10.3333 7.08 10.3333 8C10.3333 8.92 11.08 9.66667 12 9.66667C12.92 9.66667 13.6667 8.92 13.6667 8C13.6667 7.08 12.92 6.33333 12 6.33333Z"
+ />
+ <path
+ class="head-right"
+ d="M20.3333 7.33333C18.3067 7.33333 16.6667 5.69333 16.6667 3.66667C16.6667 1.64 18.3067 0 20.3333 0C22.36 0 24 1.64 24 3.66667C24 5.69333 22.36 7.33333 20.3333 7.33333ZM20.3333 2C19.4133 2 18.6667 2.74667 18.6667 3.66667C18.6667 4.58667 19.4133 5.33333 20.3333 5.33333C21.2533 5.33333 22 4.58667 22 3.66667C22 2.74667 21.2533 2 20.3333 2Z"
+ />
+ <path
+ class="head-left"
+ d="M3.66667 7.33333C1.64 7.33333 0 5.69333 0 3.66667C0 1.64 1.64 0 3.66667 0C5.69333 0 7.33333 1.64 7.33333 3.66667C7.33333 5.69333 5.69333 7.33333 3.66667 7.33333ZM3.66667 2C2.74667 2 2 2.74667 2 3.66667C2 4.58667 2.74667 5.33333 3.66667 5.33333C4.58667 5.33333 5.33333 4.58667 5.33333 3.66667C5.33333 2.74667 4.58667 2 3.66667 2Z"
+ />
+ <path d="M7.33333 8.50667C6.30667 7.77333 5.05333 7.33333 3.69333 7.33333C2.33333 7.33333 1.04 7.78667 0 8.53333V11.44C0.76 10.1867 2.12 9.32 3.69333 9.32C5.26667 9.32 6.57333 10.1467 7.33333 11.3733V8.50667Z" />
+ <path d="M24 8.50667C22.9733 7.77333 21.72 7.33333 20.36 7.33333C19 7.33333 17.7067 7.78667 16.6667 8.53333V11.44C17.4267 10.1867 18.7867 9.32 20.36 9.32C21.9333 9.32 23.24 10.1467 24 11.3733V8.50667Z" />
+ <path d="M8.17333 16C8.89333 14.6267 10.3333 13.6667 12 13.6667C13.6667 13.6667 15.0933 14.6267 15.8267 16H17.9867C17.1467 13.4933 14.8 11.6667 12.0133 11.6667C9.22667 11.6667 6.88 13.4933 6.04 16H8.2H8.17333Z" />
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/chat.tsx b/js/app/packages/macro-icons/wide/animating/chat.tsx
new file mode 100644
index 0000000000..f37e9266cc
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/chat.tsx
@@ -0,0 +1,53 @@
+export const AnimatedChatIcon = (props: { triggerAnimation?: boolean }) => {
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -4 24 24"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-chat-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated chat icon</title>
+ <style>{`
+ @keyframes dot-bounce {
+ 0% {
+ transform: translateY(0);
+ }
+ 50% {
+ transform: translateY(-2px);
+ }
+ 80% {
+ transform: translateY(1px);
+ }
+ 100% {
+ transform: translateY(0);
+ }
+ }
+ .animated-chat-icon {
+ .dot-1, .dot-2, .dot-3 {
+ transition: transform 0.4s ease;
+ }
+ }
+ .animated-chat-icon.animating {
+ .dot-1 {
+ animation: dot-bounce .2s;
+ }
+ .dot-2 {
+ animation: dot-bounce .2s 0.2s;
+ }
+ .dot-3 {
+ animation: dot-bounce .2s 0.4s;
+ }
+ }
+ `}</style>
+ <path d="M23 0H2V2H22V14H24V1C24 0.453333 23.5467 0 23 0Z" />
+ <path d="M2 2H0V15C0 15.5467 0.453333 16 1 16H20L22 18V14H2V2Z" />
+ <path class="dot-1" d="M9 7H7V9H9V7Z" />
+ <path class="dot-2" d="M13 7H11V9H13V7Z" />
+ <path class="dot-3" d="M17 7H15V9H17V7Z" />
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/diagram.tsx b/js/app/packages/macro-icons/wide/animating/diagram.tsx
new file mode 100644
index 0000000000..ed1bbd1b8a
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/diagram.tsx
@@ -0,0 +1,82 @@
+import { createUniqueId } from 'solid-js';
+
+export const AnimatedDiagramIcon = (props: { triggerAnimation?: boolean }) => {
+ const maskId = createUniqueId();
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -3 18 18"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-diagram-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated diagram icon</title>
+ <style>{`
+ .animated-diagram-icon {
+ .left-node, .right-node, .center-node, .left-arm, .right-arm {
+ transition: transform 0.4s ease;
+ transform-origin: center;
+ }
+ #${maskId} .moving-square {
+ transition: transform 0.4s ease;
+ transform-origin: 14.25 0;
+ }
+ }
+ .animated-diagram-icon.animating {
+ .right-node {
+ transform: translate(0, 9.5px);
+ }
+ .center-node {
+ transform: translate(0, -0.75px);
+ }
+ .left-arm {
+ transform: translate(0, -1px);
+ }
+ .right-arm {
+ transform: translate(0, 2.5px);
+ }
+ #${maskId} .moving-square {
+ transform: translate(0, 9.5px);
+ }
+ }
+ `}</style>
+ <mask id={maskId}>
+ <rect width="18" height="18" fill="white" />
+ <rect x="1.5" y="1.5" width="2.25" height="2.25" fill="black" />
+ <rect
+ class="moving-square"
+ x="14.25"
+ y="1.5"
+ width="2.25"
+ height="2.25"
+ fill="black"
+ />
+ </mask>
+ <g mask={`url(#${maskId})`}>
+ <path
+ class="center-node"
+ d="M16.1199 7.33998H12.4499L8.95988 3.84998L5.46988 7.33998H1.87988V8.83998H5.45988L8.94988 12.34L12.4399 8.83998H16.1099V7.33998H16.1199ZM8.94988 10.22L6.82988 8.09998L8.94988 5.97998L11.0699 8.09998L8.94988 10.22Z"
+ />
+ <path
+ class="right-arm"
+ d="M16.1201 4.58997H14.6201V8.08997H16.1201V4.58997Z"
+ />
+ <path
+ class="right-node"
+ d="M18 5.25H12.75V0H18V5.25ZM14.25 3.75H16.5V1.5H14.25V3.75Z"
+ />
+ <path
+ class="left-arm"
+ d="M3.37988 4.58997H1.87988V8.08997H3.37988V4.58997Z"
+ />
+ <path
+ class="left-node"
+ d="M5.25 5.25H0V0H5.25V5.25ZM1.5 3.75H3.75V1.5H1.5V3.75Z"
+ />
+ </g>
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/email.tsx b/js/app/packages/macro-icons/wide/animating/email.tsx
new file mode 100644
index 0000000000..bacd5437ef
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/email.tsx
@@ -0,0 +1,135 @@
+import { createUniqueId } from 'solid-js';
+
+export const AnimatedEmailIcon = (props: { triggerAnimation?: boolean }) => {
+ const maskId = createUniqueId();
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -3 18 18"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-email-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated email icon</title>
+ <style>{`
+ @keyframes disappear {
+ 0% { opacity: 1; }
+ 100% { opacity: 0; }
+ }
+ @keyframes appear {
+ 0% { opacity: 0; }
+ 100% { opacity: 1; }
+ }
+ .animated-email-icon {
+ .triangle, .notch {
+ opacity: 0;
+ }
+ .notch {
+ translate: -.5px .5px;
+ }
+ .left-line, .right-line, .bottom-line, .left-flap, .right-flap-1 {
+ transition: transform 0.4s ease;
+ }
+ #${maskId} .moving-square {
+ transition: transform 0.4s ease;
+ transform-origin: -1 -1;
+ }
+ .left-line {
+ transform-origin: .75px .75px;
+ }
+ .right-line {
+ transform-origin: 17.25px .75px;
+ }
+ .bottom-line {
+ transform-origin: .75px 10.75px;
+ }
+ .left-flap {
+ transform-origin: 1.23px 0.17px;
+ }
+ .right-flap-1 {
+ transform-origin: 17.73px 1.33px;
+ }
+ }
+ .animated-email-icon.animating {
+ .triangle, .notch {
+ animation: appear 0.2s ease forwards .4s;
+ }
+ #${maskId} .moving-square {
+ transition: transform 0.4s ease;
+ transform: scaleX(1.2);
+ }
+ .left-line, .right-line, .bottom-line, .left-flap, .right-flap-1, .right-flap-2 {
+ animation: disappear 0.4s ease forwards .4s;
+ }
+ .left-line {
+ transform: rotate(-20deg);
+ }
+ .right-line {
+ transform: rotate(50.5deg);
+ }
+ .bottom-line {
+ transform: translate(3.5px, 0) rotate(-40deg);
+ }
+ .left-flap {
+ transform: rotate(30deg);
+ }
+ .right-flap-1 {
+ transform: translate(-4px, 3.1px);
+ }
+ }
+ `}</style>
+ <mask id={maskId}>
+ <rect x="0" y="0" width="18" height="18" fill="white" />
+ <rect
+ class="moving-square"
+ x="-1"
+ y="-1"
+ width="2.5"
+ height="2.5"
+ fill="black"
+ />
+ </mask>
+ <g mask={`url(#${maskId})`}>
+ <path
+ class="triangle"
+ d="M4.60001 12C4.53001 12 4.47001 12 4.40001 11.97C4.16001 11.91 3.98001 11.73 3.89001 11.5L0.0500093 1.01C-0.0399907 0.78 9.32813e-06 0.52 0.140009 0.32C0.280009 0.12 0.510009 0 0.750009 0H17.25C17.57 0 17.85 0.2 17.96 0.5C18.07 0.8 17.98 1.13 17.73 1.33L5.08001 11.83C4.94001 11.94 4.77001 12 4.60001 12ZM1.82001 1.5L4.93001 9.99L15.17 1.5H1.82001Z"
+ />
+ <path
+ class="notch"
+ d="M7.45815 4.23999L2.85815 4.81999L3.58815 6.78999L7.45815 4.23999Z"
+ />
+ <path
+ class="top-line"
+ d="M17.25 0H1.5V1.5H17.25C17.66 1.5 18 1.16 18 0.75C18 0.34 17.66 0 17.25 0Z"
+ />
+ <path
+ class="right-line"
+ d="M17.25 0C16.84 0 16.5 0.34 16.5 0.75V10.5H18V0.75C18 0.34 17.66 0 17.25 0Z"
+ />
+ <path
+ class="bottom-line"
+ d="M0.75 12H16.5V10.5H0.75C0.34 10.5 0 10.84 0 11.25C0 11.66 0.34 12 0.75 12Z"
+ />
+ <path
+ class="left-line"
+ d="M0.75 12C1.16 12 1.5 11.66 1.5 11.25V1.5H0V11.25C0 11.66 0.34 12 0.75 12Z"
+ />
+ <path
+ class="left-flap"
+ d="M9.00002 8.57004L0.27002 1.33004L1.23002 0.170044L9.00002 6.62004"
+ />
+ <path
+ class="right-flap-1"
+ d="M9 6.62004L16.77 0.170044L17.73 1.33004L9 8.57004"
+ />
+ <path
+ class="right-flap-2"
+ d="M9 6.62004L16.77 0.170044L17.73 1.33004L9 8.57004"
+ />
+ </g>
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/fileCode.tsx b/js/app/packages/macro-icons/wide/animating/fileCode.tsx
new file mode 100644
index 0000000000..462562ace8
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/fileCode.tsx
@@ -0,0 +1,60 @@
+export const AnimatedFileCodeIcon = (props: { triggerAnimation?: boolean }) => {
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -3 18 18"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-file-code-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated code file icon</title>
+ <style>{`
+ @keyframes underline-move {
+ 0% {
+ transform: translateX(0);
+ }
+ 100% {
+ transform: translateX(2.75px);
+ }
+ }
+ @keyframes blink {
+ 0%, 50% {
+ opacity: 1;
+ }
+ 51%, 100% {
+ opacity: 0;
+ }
+ }
+ .animated-file-code-icon {
+ .underline-1, .underline-2 {
+ transform-origin: 0 14.35px;
+ transition: transform 0.4s ease;
+ }
+ .place-rectangle {
+ opacity: 0;
+ }
+ }
+ .animated-file-code-icon.animating {
+ .underline-1 {
+ animation: underline-move 0.4s ease forwards;
+ }
+ .underline-2 {
+ animation: underline-move 0.4s ease forwards 0.2s;
+ }
+ .place-rectangle {
+ animation: blink 1s step-start infinite 0.4s;
+ }
+ }
+ `}</style>
+ <path d="M17.25 0H1.5V1.5H16.5V10.5H18V0.75C18 0.34 17.66 0 17.25 0Z" />
+ <path d="M1.5 1.5H0V11.25C0 11.66 0.34 12 0.75 12H16.5V10.5H1.5V1.5Z" />
+ <rect class="underline-1" x="6.75" y="7.75" width="4.5" height="1.25" />
+ <path d="M3 3.02002V4.52002L5.24 6.00002L3 7.49002V8.98002L7.5 6.00002L3 3.02002Z" />
+ <rect class="underline-2" x="6.75" y="7.75" width="4.5" height="1.25" />
+ <rect class="place-rectangle" x="9.5" y="3" width="4.5" height="6" />
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/fileMd.tsx b/js/app/packages/macro-icons/wide/animating/fileMd.tsx
new file mode 100644
index 0000000000..6379f6f08d
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/fileMd.tsx
@@ -0,0 +1,57 @@
+export const AnimatedFileMdIcon = (props: { triggerAnimation?: boolean }) => {
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -3 18 18"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-file-md-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated markdown file icon</title>
+ <style>{`
+ .animated-file-md-icon {
+ .lower-l, .lower-extension {
+ transition: transform 0.2s ease;
+ transform-origin: center;
+ }
+ .line-2 {
+ transform-origin: 15 6.75;
+ transform: scale(.666, 1);
+ transition: transform 0.2s ease-out;
+ transform-box: fill-box;
+ }
+ .line-3 {
+ transform-origin: 11 9.75;
+ transform: scale(0, 1);
+ transition: transform 0.2s ease-out 0.2s;
+ transform-box: fill-box;
+ }
+ }
+ .animated-file-md-icon.animating {
+ .lower-l {
+ transform: translateY(3px);
+ }
+ .line-2, .line-3 {
+ transform: scale(1,1);
+ }
+ .lower-extension {
+ transform: translateY(3px);
+ }
+ }
+ `}</style>
+ <path d="M17.25 0H1.5V1.5H16.5V10.5H18V0.75C18 0.34 17.66 0 17.25 0Z" />
+ <path
+ class="lower-l"
+ d="M1.5 1.5H0V11.25C0 11.66 0.34 12 0.75 12H16.5V10.5H1.5V1.5Z"
+ />
+ <path d="M15 3.75H3V5.25H15V3.75Z" />
+ <rect class="line-2" x="3" y="6.75" width="12" height="1.5" />
+ <rect class="line-3" x="3" y="9.75" width="8" height="1.5" />
+ <path class="upper-extension" d="M1.5 1.5H0V4.5H1.5V1.5Z" />
+ <path class="lower-extension" d="M18 7.5H16.5V10.5H18V7.5Z" />
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/folder.tsx b/js/app/packages/macro-icons/wide/animating/folder.tsx
new file mode 100644
index 0000000000..59aaf7b491
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/folder.tsx
@@ -0,0 +1,59 @@
+import { createUniqueId } from 'solid-js';
+
+export const AnimatedFolderIcon = (props: { triggerAnimation?: boolean }) => {
+ const maskId = createUniqueId();
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -3 18 18"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-folder-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated folder icon</title>
+ <style>{`
+ .animated-folder-icon {
+ .paper, .folder {
+ transform-origin: center;
+ transition: transform 0.4s ease;
+ }
+ #${maskId} .mask-shape {
+ transform-origin: center;
+ transition: transform 0.4s ease;
+ }
+ }
+ .animated-folder-icon.animating {
+ .paper {
+ transform: translate(0, -2.5px);
+ }
+ .folder {
+ transform: translate(0, 2.5px);
+ }
+ #${maskId} .mask-shape {
+ transform: translate(0, 5px);
+ }
+ }
+ `}</style>
+ <mask id={maskId}>
+ <rect width="18" height="12" fill="white" />
+ <path
+ class="mask-shape"
+ d="M7.36 0.75L9 2.25H17.25V11.25H0.75V0.75H7.36Z"
+ fill="black"
+ />
+ </mask>
+ <g class="folder">
+ <path d="M17.25 1.5H9.29L7.66 0H1.5V1.5H7.08L8.71 3H16.5V10.5L18 10.52V2.25C18 1.84 17.66 1.5 17.25 1.5Z" />
+ <path d="M1.5 1.5H0V11.25C0 11.66 0.34 12 0.75 12H16.5V10.5H1.5V1.5Z" />
+ </g>
+ <path
+ class="paper"
+ mask={`url(#${maskId})`}
+ d="M15.75 6.75H14.25V3H3.75V5.25H2.25V1.5H15.75V6.75Z"
+ />
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/star.tsx b/js/app/packages/macro-icons/wide/animating/star.tsx
new file mode 100644
index 0000000000..b4380d724c
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/star.tsx
@@ -0,0 +1,55 @@
+import { createUniqueId } from 'solid-js';
+
+export const AnimatedStarIcon = (props: { triggerAnimation?: boolean }) => {
+ const maskId = createUniqueId();
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -3 18 18"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-star-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated star icon</title>
+ <style>{`
+ .animated-star-icon {
+ .star-inflate, .star-eye, #${maskId} .inflated-rhombus {
+ transform-origin: 9px 6px;
+ transition: transform 0.4s ease;
+ }
+ }
+ .animated-star-icon.animating {
+ .star-inflate, #${maskId} .inflated-rhombus {
+ transform: scale(2.22);
+ }
+ .star-eye {
+ transform: scale(2);
+ }
+ }
+ `}</style>
+ <mask id={maskId}>
+ <rect x="0" y="0" width="18" height="18" fill="white" />
+ <path
+ class="inflated-rhombus"
+ d="M8.96999 7.72001C8.09999 7.14001 7.81999 6.86001 7.23999 5.99001C7.81999 5.12001 8.09999 4.84001 8.96999 4.26001C9.83999 4.84001 10.12 5.12001 10.7 5.99001C10.12 6.86001 9.83999 7.14001 8.96999 7.72001Z"
+ fill="black"
+ />
+ </mask>
+ <path
+ mask={`url(#${maskId})`}
+ d="M17.23 5.29C10.27 5.29 9.67001 4.54 9.67001 0.7C9.67001 0.31 9.36001 0 8.97001 0C8.58001 0 8.27001 0.31 8.27001 0.7C8.27001 4.54 7.66001 5.29 0.71001 5.29C0.32001 5.29 0.0100098 5.6 0.0100098 5.99C0.0100098 6.38 0.32001 6.69 0.71001 6.69C7.67001 6.69 8.27001 7.44 8.27001 11.28C8.27001 11.67 8.58001 11.98 8.97001 11.98C9.36001 11.98 9.67001 11.67 9.67001 11.28C9.67001 7.44 10.28 6.69 17.23 6.69C17.62 6.69 17.93 6.38 17.93 5.99C17.93 5.6 17.62 5.29 17.23 5.29ZM8.97001 8.64L6.32001 5.99L8.97001 3.34L11.62 5.99L8.97001 8.64Z"
+ />
+ <path
+ class="star-eye"
+ d="M8.96997 6.73999C9.38418 6.73999 9.71997 6.4042 9.71997 5.98999C9.71997 5.57578 9.38418 5.23999 8.96997 5.23999C8.55576 5.23999 8.21997 5.57578 8.21997 5.98999C8.21997 6.4042 8.55576 6.73999 8.96997 6.73999Z"
+ />
+ <path
+ class="star-inflate"
+ d="M12.7599 5.65004C12.3799 5.51004 9.58992 3.74004 9.24992 3.43004C9.18992 3.34004 9.09992 3.29004 8.98992 3.29004C8.87992 3.29004 8.77992 3.35004 8.72992 3.43004C8.38992 3.74004 5.56992 5.55004 5.17992 5.70004C5.02992 5.73004 4.91992 5.86004 4.91992 6.01004C4.91992 6.16004 5.02992 6.29004 5.17992 6.32004C5.55992 6.47004 8.34992 8.23004 8.68992 8.54004C8.74992 8.63004 8.83992 8.68004 8.94992 8.69004C9.05992 8.69004 9.15992 8.63004 9.21992 8.55004C9.55992 8.24004 12.3799 6.43004 12.7699 6.28004C12.9199 6.25004 13.0299 6.12004 13.0299 5.97004C13.0299 5.82004 12.9199 5.69004 12.7699 5.66004L12.7599 5.65004ZM8.96992 7.72004C8.09992 7.14004 7.81992 6.86004 7.23992 5.99004C7.81992 5.12004 8.09992 4.84004 8.96992 4.26004C9.83992 4.84004 10.1199 5.12004 10.6999 5.99004C10.1199 6.86004 9.83992 7.14004 8.96992 7.72004Z"
+ />
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/animating/task.tsx b/js/app/packages/macro-icons/wide/animating/task.tsx
new file mode 100644
index 0000000000..0fef2aa98a
--- /dev/null
+++ b/js/app/packages/macro-icons/wide/animating/task.tsx
@@ -0,0 +1,41 @@
+export const AnimatedTaskIcon = (props: { triggerAnimation?: boolean }) => {
+ return (
+ <svg
+ width="100%"
+ height="100%"
+ viewBox="0 -3 18 18"
+ fill="currentColor"
+ stroke="none"
+ xmlns="http://www.w3.org/2000/svg"
+ overflow="visible"
+ class={`animated-task-icon ${props.triggerAnimation ? 'animating' : ''}`}
+ >
+ <title>Animated task icon</title>
+ <style>{`
+ .animated-task-icon {
+ .box {
+ transition: transform 0.4s ease;
+ }
+ .checkmark {
+ transition: transform 0.4s ease;
+ }
+ }
+ .animated-task-icon.animating {
+ .box {
+ transform: translateY(6px);
+ }
+ .checkmark {
+ transform: translateY(-7.5px);
+ }
+ }
+ `}</style>
+ <path class="box" d="M1.5 0V1.5H4.5V4.5H1.5V1.5H0V6H6V0H1.5Z" />
+ <path
+ class="checkmark"
+ d="M3.01 12L0 9L1.07 7.93L3.01 9.88L6.02 6.87L7.08 7.93L3.01 12Z"
+ />
+ <path d="M18 2.25H8V3.75H18V2.25Z" />
+ <path d="M18 8.37H8V9.87H18V8.37Z" />
+ </svg>
+ );
+};
diff --git a/js/app/packages/macro-icons/wide/task.svg b/js/app/packages/macro-icons/wide/task.svg
index 74e99a1907..da28c84e3c 100644
--- a/js/app/packages/macro-icons/wide/task.svg
+++ b/js/app/packages/macro-icons/wide/task.svg
@@ -1,6 +1,6 @@
<svg width="100%" height="100%" viewBox="0 -3 18 18" stroke="none" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
-<path d="M1.5 0V1.5H4.5V4.5H1.5V1.5H0V6H6V0H1.5Z"/>
-<path d="M3.01 12L0 9L1.07 7.93L3.01 9.88L6.02 6.87L7.08 7.93L3.01 12Z"/>
-<path d="M18 2.25H8V3.75H18V2.25Z"/>
-<path d="M18 8.37H8V9.87H18V8.37Z"/>
+<path class="box" d="M1.5 0V1.5H4.5V4.5H1.5V1.5H0V6H6V0H1.5Z"/>
+<path class="checkmark" d="M3.01 12L0 9L1.07 7.93L3.01 9.88L6.02 6.87L7.08 7.93L3.01 12Z"/>
+<path class="line-1" d="M18 2.25H8V3.75H18V2.25Z"/>
+<path class="line-2" d="M18 8.37H8V9.87H18V8.37Z"/>
</svg>