@romansmirnov/doku 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +113 -0
- package/bin/doku.js +32 -0
- package/bin/init.js +71 -0
- package/client/src/lib/utils.js +4 -0
- package/dist/assets/index-Bq96uZdY.css +1 -0
- package/dist/assets/index-DP3uLjsR.js +196 -0
- package/dist/assets/inter-v12-latin-100-46Mq0mOp.woff +0 -0
- package/dist/assets/inter-v12-latin-100-BQDzDElq.woff2 +0 -0
- package/dist/assets/inter-v12-latin-200-BxfrU12A.woff2 +0 -0
- package/dist/assets/inter-v12-latin-200-DXfqWPZg.woff +0 -0
- package/dist/assets/inter-v12-latin-300-DEbyFmpd.woff2 +0 -0
- package/dist/assets/inter-v12-latin-300-f7r92Nkj.woff +0 -0
- package/dist/assets/inter-v12-latin-500-BQ2gQN_M.woff +0 -0
- package/dist/assets/inter-v12-latin-500-DfX5FI9E.woff2 +0 -0
- package/dist/assets/inter-v12-latin-600-BvOeHRLc.woff2 +0 -0
- package/dist/assets/inter-v12-latin-600-D01NXWOK.woff +0 -0
- package/dist/assets/inter-v12-latin-700-B5TOIllR.woff +0 -0
- package/dist/assets/inter-v12-latin-700-Bj1B9WKG.woff2 +0 -0
- package/dist/assets/inter-v12-latin-800-Bdy4lAMa.woff2 +0 -0
- package/dist/assets/inter-v12-latin-800-DFVvDWwT.woff +0 -0
- package/dist/assets/inter-v12-latin-900-CMga-52B.woff2 +0 -0
- package/dist/assets/inter-v12-latin-900-ORHAl5ZU.woff +0 -0
- package/dist/assets/inter-v12-latin-regular-CahmJf_6.woff +0 -0
- package/dist/assets/inter-v12-latin-regular-YtgfLPRn.woff2 +0 -0
- package/dist/assets/module-CFHRyJc-.js +716 -0
- package/dist/assets/native-CUze18dq.js +1 -0
- package/dist/index.html +13 -0
- package/icons/LICENSE +21 -0
- package/icons/README.md +31 -0
- package/icons/icons/a-arrow-down.tsx +119 -0
- package/icons/icons/a-arrow-up.tsx +120 -0
- package/icons/icons/accessibility.tsx +172 -0
- package/icons/icons/activity.tsx +109 -0
- package/icons/icons/air-vent.tsx +119 -0
- package/icons/icons/airplane.tsx +134 -0
- package/icons/icons/airplay.tsx +130 -0
- package/icons/icons/alarm-clock.tsx +178 -0
- package/icons/icons/align-center.tsx +98 -0
- package/icons/icons/align-horizontal.tsx +126 -0
- package/icons/icons/align-left.tsx +126 -0
- package/icons/icons/align-right.tsx +126 -0
- package/icons/icons/align-vertical.tsx +126 -0
- package/icons/icons/ambulance.tsx +205 -0
- package/icons/icons/angry.tsx +165 -0
- package/icons/icons/annoyed.tsx +163 -0
- package/icons/icons/archive.tsx +132 -0
- package/icons/icons/arrow-big-down-dash.tsx +107 -0
- package/icons/icons/arrow-big-down.tsx +97 -0
- package/icons/icons/arrow-big-left-dash.tsx +107 -0
- package/icons/icons/arrow-big-left.tsx +97 -0
- package/icons/icons/arrow-big-right-dash.tsx +107 -0
- package/icons/icons/arrow-big-right.tsx +97 -0
- package/icons/icons/arrow-big-up-dash.tsx +107 -0
- package/icons/icons/arrow-big-up.tsx +96 -0
- package/icons/icons/arrow-down-0-1.tsx +120 -0
- package/icons/icons/arrow-down-1-0.tsx +120 -0
- package/icons/icons/arrow-down-a-z.tsx +116 -0
- package/icons/icons/arrow-down-left.tsx +113 -0
- package/icons/icons/arrow-down-right.tsx +117 -0
- package/icons/icons/arrow-down-z-a.tsx +116 -0
- package/icons/icons/arrow-down.tsx +112 -0
- package/icons/icons/arrow-left.tsx +112 -0
- package/icons/icons/arrow-right.tsx +112 -0
- package/icons/icons/arrow-up-left.tsx +98 -0
- package/icons/icons/arrow-up-right.tsx +99 -0
- package/icons/icons/arrow-up.tsx +112 -0
- package/icons/icons/at-sign.tsx +135 -0
- package/icons/icons/atom.tsx +124 -0
- package/icons/icons/attach-file.tsx +100 -0
- package/icons/icons/audio-lines.tsx +138 -0
- package/icons/icons/axe.tsx +104 -0
- package/icons/icons/badge-alert.tsx +98 -0
- package/icons/icons/badge-percent.tsx +111 -0
- package/icons/icons/ban.tsx +137 -0
- package/icons/icons/banana.tsx +115 -0
- package/icons/icons/battery-charging.tsx +101 -0
- package/icons/icons/battery-full.tsx +136 -0
- package/icons/icons/battery-low.tsx +116 -0
- package/icons/icons/battery-medium.tsx +127 -0
- package/icons/icons/battery-plus.tsx +102 -0
- package/icons/icons/battery-warning.tsx +104 -0
- package/icons/icons/battery.tsx +100 -0
- package/icons/icons/bell-electric.tsx +124 -0
- package/icons/icons/bell.tsx +93 -0
- package/icons/icons/blocks.tsx +92 -0
- package/icons/icons/bluetooth-connected.tsx +136 -0
- package/icons/icons/bluetooth-off.tsx +124 -0
- package/icons/icons/bluetooth-searching.tsx +128 -0
- package/icons/icons/bluetooth.tsx +99 -0
- package/icons/icons/bold.tsx +95 -0
- package/icons/icons/bone.tsx +98 -0
- package/icons/icons/book-text.tsx +101 -0
- package/icons/icons/bookmark-check.tsx +120 -0
- package/icons/icons/bookmark-minus.tsx +123 -0
- package/icons/icons/bookmark-plus.tsx +137 -0
- package/icons/icons/bookmark-x.tsx +131 -0
- package/icons/icons/bookmark.tsx +98 -0
- package/icons/icons/bot-message-square.tsx +172 -0
- package/icons/icons/bot.tsx +122 -0
- package/icons/icons/box.tsx +117 -0
- package/icons/icons/boxes.tsx +105 -0
- package/icons/icons/brain.tsx +192 -0
- package/icons/icons/calendar-check-2.tsx +111 -0
- package/icons/icons/calendar-check.tsx +111 -0
- package/icons/icons/calendar-cog.tsx +105 -0
- package/icons/icons/calendar-days.tsx +127 -0
- package/icons/icons/cart.tsx +97 -0
- package/icons/icons/cast.tsx +113 -0
- package/icons/icons/cctv.tsx +125 -0
- package/icons/icons/chart-bar-decreasing.tsx +129 -0
- package/icons/icons/chart-bar-increasing.tsx +129 -0
- package/icons/icons/chart-column-decreasing.tsx +130 -0
- package/icons/icons/chart-column-increasing.tsx +130 -0
- package/icons/icons/chart-line.tsx +103 -0
- package/icons/icons/chart-no-axes-column-decreasing.tsx +129 -0
- package/icons/icons/chart-no-axes-column-increasing.tsx +129 -0
- package/icons/icons/chart-pie.tsx +98 -0
- package/icons/icons/chart-scatter.tsx +146 -0
- package/icons/icons/chart-spline.tsx +103 -0
- package/icons/icons/check-check.tsx +117 -0
- package/icons/icons/check.tsx +108 -0
- package/icons/icons/chess-bishop.tsx +112 -0
- package/icons/icons/chess-king.tsx +113 -0
- package/icons/icons/chess-knight.tsx +114 -0
- package/icons/icons/chess-pawn.tsx +150 -0
- package/icons/icons/chevron-down.tsx +94 -0
- package/icons/icons/chevron-first.tsx +102 -0
- package/icons/icons/chevron-left.tsx +94 -0
- package/icons/icons/chevron-right.tsx +95 -0
- package/icons/icons/chevron-up.tsx +94 -0
- package/icons/icons/chevrons-down-up.tsx +108 -0
- package/icons/icons/chevrons-left-right.tsx +108 -0
- package/icons/icons/chevrons-right-left.tsx +108 -0
- package/icons/icons/chevrons-up-down.tsx +108 -0
- package/icons/icons/chrome.tsx +137 -0
- package/icons/icons/circle-check.tsx +107 -0
- package/icons/icons/circle-chevron-down.tsx +99 -0
- package/icons/icons/circle-chevron-left.tsx +97 -0
- package/icons/icons/circle-chevron-right.tsx +97 -0
- package/icons/icons/circle-chevron-up.tsx +99 -0
- package/icons/icons/circle-dashed.tsx +108 -0
- package/icons/icons/circle-dollar-sign.tsx +137 -0
- package/icons/icons/circle-help.tsx +98 -0
- package/icons/icons/clap.tsx +121 -0
- package/icons/icons/clipboard-check.tsx +109 -0
- package/icons/icons/clock.tsx +138 -0
- package/icons/icons/cloud-cog.tsx +101 -0
- package/icons/icons/cloud-download.tsx +98 -0
- package/icons/icons/cloud-lightning.tsx +97 -0
- package/icons/icons/cloud-rain-wind.tsx +109 -0
- package/icons/icons/cloud-rain.tsx +112 -0
- package/icons/icons/cloud-snow.tsx +125 -0
- package/icons/icons/cloud-sun.tsx +137 -0
- package/icons/icons/cloud-upload.tsx +97 -0
- package/icons/icons/coffee.tsx +118 -0
- package/icons/icons/cog.tsx +103 -0
- package/icons/icons/compass.tsx +98 -0
- package/icons/icons/concierge-bell.tsx +123 -0
- package/icons/icons/connect.tsx +164 -0
- package/icons/icons/construction.tsx +111 -0
- package/icons/icons/contrast.tsx +100 -0
- package/icons/icons/cooking-pot.tsx +120 -0
- package/icons/icons/copy.tsx +110 -0
- package/icons/icons/corner-down-left.tsx +98 -0
- package/icons/icons/corner-down-right.tsx +98 -0
- package/icons/icons/corner-left-down.tsx +98 -0
- package/icons/icons/corner-left-up.tsx +98 -0
- package/icons/icons/corner-right-down.tsx +98 -0
- package/icons/icons/corner-right-up.tsx +98 -0
- package/icons/icons/corner-up-left.tsx +98 -0
- package/icons/icons/corner-up-right.tsx +98 -0
- package/icons/icons/cpu.tsx +159 -0
- package/icons/icons/cup-soda.tsx +180 -0
- package/icons/icons/cursor-click.tsx +146 -0
- package/icons/icons/database-backup.tsx +96 -0
- package/icons/icons/delete.tsx +133 -0
- package/icons/icons/disc-3.tsx +93 -0
- package/icons/icons/discord.tsx +131 -0
- package/icons/icons/dollar-sign.tsx +135 -0
- package/icons/icons/download.tsx +99 -0
- package/icons/icons/downvote.tsx +96 -0
- package/icons/icons/dribbble.tsx +183 -0
- package/icons/icons/droplet.tsx +97 -0
- package/icons/icons/drum.tsx +112 -0
- package/icons/icons/earth.tsx +157 -0
- package/icons/icons/euro.tsx +141 -0
- package/icons/icons/ev-charger.tsx +102 -0
- package/icons/icons/expand.tsx +123 -0
- package/icons/icons/eye-off.tsx +99 -0
- package/icons/icons/eye.tsx +100 -0
- package/icons/icons/facebook.tsx +108 -0
- package/icons/icons/feather.tsx +103 -0
- package/icons/icons/figma.tsx +122 -0
- package/icons/icons/file-chart-line.tsx +105 -0
- package/icons/icons/file-check-2.tsx +108 -0
- package/icons/icons/file-check.tsx +108 -0
- package/icons/icons/file-cog.tsx +99 -0
- package/icons/icons/file-pen-line.tsx +115 -0
- package/icons/icons/file-stack.tsx +105 -0
- package/icons/icons/file-text.tsx +159 -0
- package/icons/icons/fingerprint.tsx +197 -0
- package/icons/icons/fish-symbol.tsx +101 -0
- package/icons/icons/flame.tsx +105 -0
- package/icons/icons/flask.tsx +120 -0
- package/icons/icons/folder-archive.tsx +95 -0
- package/icons/icons/folder-check.tsx +106 -0
- package/icons/icons/folder-clock.tsx +139 -0
- package/icons/icons/folder-code.tsx +108 -0
- package/icons/icons/folder-cog.tsx +101 -0
- package/icons/icons/folder-dot.tsx +97 -0
- package/icons/icons/folder-down.tsx +100 -0
- package/icons/icons/folder-git-2.tsx +146 -0
- package/icons/icons/folder-git.tsx +116 -0
- package/icons/icons/folder-heart.tsx +101 -0
- package/icons/icons/folder-input.tsx +100 -0
- package/icons/icons/folder-kanban.tsx +111 -0
- package/icons/icons/folder-key.tsx +104 -0
- package/icons/icons/folder-lock.tsx +103 -0
- package/icons/icons/folder-minus.tsx +96 -0
- package/icons/icons/folder-open.tsx +100 -0
- package/icons/icons/folder-output.tsx +101 -0
- package/icons/icons/folder-plus.tsx +109 -0
- package/icons/icons/folder-root.tsx +107 -0
- package/icons/icons/folder-sync.tsx +102 -0
- package/icons/icons/folder-tree.tsx +145 -0
- package/icons/icons/folder-up.tsx +100 -0
- package/icons/icons/folder-x.tsx +105 -0
- package/icons/icons/folders.tsx +122 -0
- package/icons/icons/frame.tsx +152 -0
- package/icons/icons/frown.tsx +174 -0
- package/icons/icons/gallery-horizontal-end.tsx +117 -0
- package/icons/icons/gallery-thumbnails.tsx +100 -0
- package/icons/icons/gallery-vertical-end.tsx +117 -0
- package/icons/icons/gauge.tsx +102 -0
- package/icons/icons/gavel.tsx +107 -0
- package/icons/icons/georgian-lari.tsx +148 -0
- package/icons/icons/git-branch.tsx +174 -0
- package/icons/icons/git-commit-horizontal.tsx +123 -0
- package/icons/icons/git-commit-vertical.tsx +117 -0
- package/icons/icons/git-compare-arrows.tsx +199 -0
- package/icons/icons/git-compare.tsx +170 -0
- package/icons/icons/git-fork.tsx +189 -0
- package/icons/icons/git-graph.tsx +212 -0
- package/icons/icons/git-merge.tsx +148 -0
- package/icons/icons/git-pull-request-closed.tsx +199 -0
- package/icons/icons/git-pull-request-create.tsx +189 -0
- package/icons/icons/git-pull-request.tsx +166 -0
- package/icons/icons/github.tsx +149 -0
- package/icons/icons/gitlab.tsx +103 -0
- package/icons/icons/graduation-cap.tsx +125 -0
- package/icons/icons/grip-horizontal.tsx +131 -0
- package/icons/icons/grip-vertical.tsx +128 -0
- package/icons/icons/grip.tsx +130 -0
- package/icons/icons/hammer.tsx +105 -0
- package/icons/icons/hand-coins.tsx +150 -0
- package/icons/icons/hand-fist.tsx +98 -0
- package/icons/icons/hand-grab.tsx +96 -0
- package/icons/icons/hand-heart.tsx +114 -0
- package/icons/icons/hand-helping.tsx +95 -0
- package/icons/icons/hand-metal.tsx +96 -0
- package/icons/icons/hand.tsx +95 -0
- package/icons/icons/hard-drive-download.tsx +102 -0
- package/icons/icons/hard-drive-upload.tsx +102 -0
- package/icons/icons/heart-handshake.tsx +97 -0
- package/icons/icons/heart-pulse.tsx +136 -0
- package/icons/icons/heart.tsx +90 -0
- package/icons/icons/history.tsx +159 -0
- package/icons/icons/home.tsx +103 -0
- package/icons/icons/hourglass.tsx +104 -0
- package/icons/icons/id-card.tsx +123 -0
- package/icons/icons/index.ts +3686 -0
- package/icons/icons/indian-rupee.tsx +153 -0
- package/icons/icons/instagram.tsx +187 -0
- package/icons/icons/italic.tsx +126 -0
- package/icons/icons/japanese-yen.tsx +141 -0
- package/icons/icons/key-circle.tsx +93 -0
- package/icons/icons/key-square.tsx +94 -0
- package/icons/icons/key.tsx +104 -0
- package/icons/icons/keyboard.tsx +134 -0
- package/icons/icons/languages.tsx +158 -0
- package/icons/icons/laptop-minimal-check.tsx +109 -0
- package/icons/icons/laugh.tsx +160 -0
- package/icons/icons/layers.tsx +113 -0
- package/icons/icons/layout-grid.tsx +157 -0
- package/icons/icons/layout-panel-top.tsx +143 -0
- package/icons/icons/link.tsx +107 -0
- package/icons/icons/linkedin.tsx +185 -0
- package/icons/icons/loader-circle.tsx +107 -0
- package/icons/icons/loader-pinwheel.tsx +110 -0
- package/icons/icons/loader.tsx +113 -0
- package/icons/icons/lock-keyhole-open.tsx +116 -0
- package/icons/icons/lock-keyhole.tsx +115 -0
- package/icons/icons/lock-open.tsx +114 -0
- package/icons/icons/lock.tsx +114 -0
- package/icons/icons/logout.tsx +105 -0
- package/icons/icons/mail-check.tsx +108 -0
- package/icons/icons/mailbox.tsx +110 -0
- package/icons/icons/map-pin-check-inside.tsx +120 -0
- package/icons/icons/map-pin-check.tsx +120 -0
- package/icons/icons/map-pin-house.tsx +120 -0
- package/icons/icons/map-pin-minus-inside.tsx +120 -0
- package/icons/icons/map-pin-minus.tsx +120 -0
- package/icons/icons/map-pin-off.tsx +122 -0
- package/icons/icons/map-pin-plus-inside.tsx +141 -0
- package/icons/icons/map-pin-plus.tsx +141 -0
- package/icons/icons/map-pin-x-inside.tsx +141 -0
- package/icons/icons/map-pin.tsx +122 -0
- package/icons/icons/maximize-2.tsx +105 -0
- package/icons/icons/maximize.tsx +123 -0
- package/icons/icons/meh.tsx +174 -0
- package/icons/icons/menu.tsx +125 -0
- package/icons/icons/message-circle-check.tsx +107 -0
- package/icons/icons/message-circle-dashed.tsx +108 -0
- package/icons/icons/message-circle-more.tsx +125 -0
- package/icons/icons/message-circle-plus.tsx +131 -0
- package/icons/icons/message-circle-x.tsx +131 -0
- package/icons/icons/message-circle.tsx +107 -0
- package/icons/icons/message-square-check.tsx +108 -0
- package/icons/icons/message-square-dashed.tsx +109 -0
- package/icons/icons/message-square-more.tsx +125 -0
- package/icons/icons/message-square-plus.tsx +131 -0
- package/icons/icons/message-square-x.tsx +131 -0
- package/icons/icons/message-square.tsx +107 -0
- package/icons/icons/mic-off.tsx +112 -0
- package/icons/icons/mic.tsx +104 -0
- package/icons/icons/minimize.tsx +123 -0
- package/icons/icons/monitor-check.tsx +110 -0
- package/icons/icons/moon.tsx +98 -0
- package/icons/icons/nfc.tsx +134 -0
- package/icons/icons/panel-left-close.tsx +99 -0
- package/icons/icons/panel-left-open.tsx +99 -0
- package/icons/icons/panel-right-open.tsx +99 -0
- package/icons/icons/party-popper.tsx +171 -0
- package/icons/icons/pause.tsx +130 -0
- package/icons/icons/pen-tool.tsx +114 -0
- package/icons/icons/philippine-peso.tsx +142 -0
- package/icons/icons/pickaxe.tsx +106 -0
- package/icons/icons/play.tsx +102 -0
- package/icons/icons/plug-zap.tsx +102 -0
- package/icons/icons/plus.tsx +92 -0
- package/icons/icons/pound-sterling.tsx +148 -0
- package/icons/icons/rabbit.tsx +107 -0
- package/icons/icons/radio-tower.tsx +138 -0
- package/icons/icons/radio.tsx +136 -0
- package/icons/icons/redo-dot.tsx +114 -0
- package/icons/icons/redo.tsx +103 -0
- package/icons/icons/refresh-ccw-dot.tsx +88 -0
- package/icons/icons/refresh-ccw.tsx +86 -0
- package/icons/icons/refresh-cw-off.tsx +90 -0
- package/icons/icons/refresh-cw.tsx +83 -0
- package/icons/icons/rocket.tsx +130 -0
- package/icons/icons/rocking-chair.tsx +131 -0
- package/icons/icons/roller-coaster.tsx +109 -0
- package/icons/icons/rotate-ccw.tsx +81 -0
- package/icons/icons/rotate-cw.tsx +81 -0
- package/icons/icons/route.tsx +131 -0
- package/icons/icons/russian-ruble.tsx +136 -0
- package/icons/icons/saudi-riyal.tsx +124 -0
- package/icons/icons/scan-face.tsx +145 -0
- package/icons/icons/scan-text.tsx +139 -0
- package/icons/icons/search.tsx +94 -0
- package/icons/icons/send.tsx +119 -0
- package/icons/icons/settings.tsx +92 -0
- package/icons/icons/shield-check.tsx +109 -0
- package/icons/icons/ship.tsx +120 -0
- package/icons/icons/shower-head.tsx +129 -0
- package/icons/icons/shrink.tsx +123 -0
- package/icons/icons/sliders-horizontal.tsx +247 -0
- package/icons/icons/smartphone-charging.tsx +98 -0
- package/icons/icons/smartphone-nfc.tsx +129 -0
- package/icons/icons/smile-plus.tsx +99 -0
- package/icons/icons/smile.tsx +163 -0
- package/icons/icons/snowflake.tsx +109 -0
- package/icons/icons/sparkles.tsx +148 -0
- package/icons/icons/square-activity.tsx +132 -0
- package/icons/icons/square-arrow-down.tsx +119 -0
- package/icons/icons/square-arrow-left.tsx +119 -0
- package/icons/icons/square-arrow-right.tsx +119 -0
- package/icons/icons/square-arrow-up.tsx +119 -0
- package/icons/icons/square-chevron-down.tsx +96 -0
- package/icons/icons/square-chevron-left.tsx +96 -0
- package/icons/icons/square-chevron-right.tsx +96 -0
- package/icons/icons/square-chevron-up.tsx +96 -0
- package/icons/icons/square-pen.tsx +101 -0
- package/icons/icons/square-stack.tsx +123 -0
- package/icons/icons/stethoscope.tsx +192 -0
- package/icons/icons/sun-dim.tsx +108 -0
- package/icons/icons/sun-medium.tsx +108 -0
- package/icons/icons/sun-moon.tsx +137 -0
- package/icons/icons/sun.tsx +107 -0
- package/icons/icons/sunset.tsx +133 -0
- package/icons/icons/swiss-franc.tsx +141 -0
- package/icons/icons/syringe.tsx +97 -0
- package/icons/icons/telescope.tsx +113 -0
- package/icons/icons/terminal.tsx +103 -0
- package/icons/icons/thermometer.tsx +100 -0
- package/icons/icons/timer.tsx +136 -0
- package/icons/icons/tornado.tsx +138 -0
- package/icons/icons/train-track.tsx +133 -0
- package/icons/icons/trending-down.tsx +151 -0
- package/icons/icons/trending-up-down.tsx +162 -0
- package/icons/icons/trending-up.tsx +150 -0
- package/icons/icons/truck.tsx +186 -0
- package/icons/icons/turkish-lira.tsx +141 -0
- package/icons/icons/twitch.tsx +157 -0
- package/icons/icons/twitter.tsx +109 -0
- package/icons/icons/underline.tsx +108 -0
- package/icons/icons/undo-dot.tsx +114 -0
- package/icons/icons/undo.tsx +109 -0
- package/icons/icons/upload.tsx +99 -0
- package/icons/icons/upvote.tsx +96 -0
- package/icons/icons/user-check.tsx +108 -0
- package/icons/icons/user-round-check.tsx +109 -0
- package/icons/icons/user-round-plus.tsx +127 -0
- package/icons/icons/user.tsx +119 -0
- package/icons/icons/users.tsx +113 -0
- package/icons/icons/vibrate.tsx +106 -0
- package/icons/icons/volume.tsx +135 -0
- package/icons/icons/washing-machine.tsx +132 -0
- package/icons/icons/waves-ladder.tsx +90 -0
- package/icons/icons/waves.tsx +112 -0
- package/icons/icons/waypoints.tsx +146 -0
- package/icons/icons/webhook.tsx +116 -0
- package/icons/icons/wifi-low.tsx +177 -0
- package/icons/icons/wifi.tsx +112 -0
- package/icons/icons/wind-arrow-down.tsx +150 -0
- package/icons/icons/wind.tsx +124 -0
- package/icons/icons/workflow.tsx +127 -0
- package/icons/icons/wrench.tsx +100 -0
- package/icons/icons/x.tsx +102 -0
- package/icons/icons/youtube.tsx +146 -0
- package/icons/icons/zap-off.tsx +115 -0
- package/icons/icons/zap.tsx +105 -0
- package/package.json +52 -0
- package/server/api.js +313 -0
- package/server/config.js +32 -0
- package/server/frontmatter.js +47 -0
- package/server/index.js +34 -0
- package/server/search.js +62 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { motion, useAnimation } from "motion/react";
|
|
4
|
+
import type { HTMLAttributes } from "react";
|
|
5
|
+
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
6
|
+
|
|
7
|
+
import { cn } from "@/lib/utils";
|
|
8
|
+
|
|
9
|
+
export interface HandMetalIconHandle {
|
|
10
|
+
startAnimation: () => void;
|
|
11
|
+
stopAnimation: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface HandMetalIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
size?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const HandMetalIcon = forwardRef<HandMetalIconHandle, HandMetalIconProps>(
|
|
19
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
20
|
+
const controls = useAnimation();
|
|
21
|
+
const isControlledRef = useRef(false);
|
|
22
|
+
|
|
23
|
+
useImperativeHandle(ref, () => {
|
|
24
|
+
isControlledRef.current = true;
|
|
25
|
+
return {
|
|
26
|
+
startAnimation: () => controls.start("animate"),
|
|
27
|
+
stopAnimation: () => controls.start("normal"),
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const handleMouseEnter = useCallback(
|
|
32
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
33
|
+
if (isControlledRef.current) {
|
|
34
|
+
onMouseEnter?.(e);
|
|
35
|
+
} else {
|
|
36
|
+
controls.start("animate");
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
[controls, onMouseEnter]
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const handleMouseLeave = useCallback(
|
|
43
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
44
|
+
if (isControlledRef.current) {
|
|
45
|
+
onMouseLeave?.(e);
|
|
46
|
+
} else {
|
|
47
|
+
controls.start("normal");
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
[controls, onMouseLeave]
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<div
|
|
55
|
+
className={cn(className)}
|
|
56
|
+
onMouseEnter={handleMouseEnter}
|
|
57
|
+
onMouseLeave={handleMouseLeave}
|
|
58
|
+
{...props}
|
|
59
|
+
>
|
|
60
|
+
<motion.svg
|
|
61
|
+
animate={controls}
|
|
62
|
+
fill="none"
|
|
63
|
+
height={size}
|
|
64
|
+
initial="normal"
|
|
65
|
+
stroke="currentColor"
|
|
66
|
+
strokeLinecap="round"
|
|
67
|
+
strokeLinejoin="round"
|
|
68
|
+
strokeWidth="2"
|
|
69
|
+
style={{ originX: "50%", originY: "90%" }}
|
|
70
|
+
variants={{
|
|
71
|
+
normal: { rotate: 0 },
|
|
72
|
+
animate: {
|
|
73
|
+
rotate: [0, -15, 15, -10, 10, 0],
|
|
74
|
+
transition: {
|
|
75
|
+
duration: 0.6,
|
|
76
|
+
ease: "easeInOut",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
}}
|
|
80
|
+
viewBox="0 0 24 24"
|
|
81
|
+
width={size}
|
|
82
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
83
|
+
>
|
|
84
|
+
<path d="M18 12.5V10a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" />
|
|
85
|
+
<path d="M14 11V9a2 2 0 1 0-4 0v2" />
|
|
86
|
+
<path d="M10 10.5V5a2 2 0 1 0-4 0v9" />
|
|
87
|
+
<path d="m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5" />
|
|
88
|
+
</motion.svg>
|
|
89
|
+
</div>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
HandMetalIcon.displayName = "HandMetalIcon";
|
|
95
|
+
|
|
96
|
+
export { HandMetalIcon };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { motion, useAnimation } from "motion/react";
|
|
4
|
+
import type { HTMLAttributes } from "react";
|
|
5
|
+
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
6
|
+
|
|
7
|
+
import { cn } from "@/lib/utils";
|
|
8
|
+
|
|
9
|
+
export interface HandIconHandle {
|
|
10
|
+
startAnimation: () => void;
|
|
11
|
+
stopAnimation: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface HandIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
size?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const HandIcon = forwardRef<HandIconHandle, HandIconProps>(
|
|
19
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
20
|
+
const controls = useAnimation();
|
|
21
|
+
const isControlledRef = useRef(false);
|
|
22
|
+
|
|
23
|
+
useImperativeHandle(ref, () => {
|
|
24
|
+
isControlledRef.current = true;
|
|
25
|
+
return {
|
|
26
|
+
startAnimation: () => controls.start("animate"),
|
|
27
|
+
stopAnimation: () => controls.start("normal"),
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const handleMouseEnter = useCallback(
|
|
32
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
33
|
+
if (isControlledRef.current) {
|
|
34
|
+
onMouseEnter?.(e);
|
|
35
|
+
} else {
|
|
36
|
+
controls.start("animate");
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
[controls, onMouseEnter]
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const handleMouseLeave = useCallback(
|
|
43
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
44
|
+
if (isControlledRef.current) {
|
|
45
|
+
onMouseLeave?.(e);
|
|
46
|
+
} else {
|
|
47
|
+
controls.start("normal");
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
[controls, onMouseLeave]
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<div
|
|
55
|
+
className={cn(className)}
|
|
56
|
+
onMouseEnter={handleMouseEnter}
|
|
57
|
+
onMouseLeave={handleMouseLeave}
|
|
58
|
+
{...props}
|
|
59
|
+
>
|
|
60
|
+
<motion.svg
|
|
61
|
+
animate={controls}
|
|
62
|
+
fill="none"
|
|
63
|
+
height={size}
|
|
64
|
+
initial="normal"
|
|
65
|
+
stroke="currentColor"
|
|
66
|
+
strokeLinecap="round"
|
|
67
|
+
strokeLinejoin="round"
|
|
68
|
+
strokeWidth="2"
|
|
69
|
+
variants={{
|
|
70
|
+
normal: { rotate: 0, originX: "50%", originY: "90%" },
|
|
71
|
+
animate: {
|
|
72
|
+
rotate: [0, -15, 10, -5, 0],
|
|
73
|
+
transition: {
|
|
74
|
+
duration: 0.8,
|
|
75
|
+
ease: "easeInOut",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
}}
|
|
79
|
+
viewBox="0 0 24 24"
|
|
80
|
+
width={size}
|
|
81
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
82
|
+
>
|
|
83
|
+
<path d="M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" />
|
|
84
|
+
<path d="M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" />
|
|
85
|
+
<path d="M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" />
|
|
86
|
+
<path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" />
|
|
87
|
+
</motion.svg>
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
HandIcon.displayName = "HandIcon";
|
|
94
|
+
|
|
95
|
+
export { HandIcon };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { Variants } from "motion/react";
|
|
4
|
+
import { motion, useAnimation } from "motion/react";
|
|
5
|
+
import type { HTMLAttributes } from "react";
|
|
6
|
+
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
7
|
+
|
|
8
|
+
import { cn } from "@/lib/utils";
|
|
9
|
+
|
|
10
|
+
export interface HardDriveDownloadIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface HardDriveDownloadIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const ARROW_VARIANTS: Variants = {
|
|
20
|
+
normal: { y: -1 },
|
|
21
|
+
animate: {
|
|
22
|
+
y: 0,
|
|
23
|
+
transition: {
|
|
24
|
+
type: "spring",
|
|
25
|
+
stiffness: 200,
|
|
26
|
+
damping: 10,
|
|
27
|
+
mass: 1,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const HardDriveDownloadIcon = forwardRef<
|
|
33
|
+
HardDriveDownloadIconHandle,
|
|
34
|
+
HardDriveDownloadIconProps
|
|
35
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
36
|
+
const controls = useAnimation();
|
|
37
|
+
const isControlledRef = useRef(false);
|
|
38
|
+
|
|
39
|
+
useImperativeHandle(ref, () => {
|
|
40
|
+
isControlledRef.current = true;
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
startAnimation: () => controls.start("animate"),
|
|
44
|
+
stopAnimation: () => controls.start("normal"),
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const handleMouseEnter = useCallback(
|
|
49
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
50
|
+
if (isControlledRef.current) {
|
|
51
|
+
onMouseEnter?.(e);
|
|
52
|
+
} else {
|
|
53
|
+
controls.start("animate");
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
[controls, onMouseEnter]
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
const handleMouseLeave = useCallback(
|
|
60
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
61
|
+
if (isControlledRef.current) {
|
|
62
|
+
onMouseLeave?.(e);
|
|
63
|
+
} else {
|
|
64
|
+
controls.start("normal");
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
[controls, onMouseLeave]
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<div
|
|
72
|
+
className={cn(className)}
|
|
73
|
+
onMouseEnter={handleMouseEnter}
|
|
74
|
+
onMouseLeave={handleMouseLeave}
|
|
75
|
+
{...props}
|
|
76
|
+
>
|
|
77
|
+
<svg
|
|
78
|
+
fill="none"
|
|
79
|
+
height={size}
|
|
80
|
+
stroke="currentColor"
|
|
81
|
+
strokeLinecap="round"
|
|
82
|
+
strokeLinejoin="round"
|
|
83
|
+
strokeWidth="2"
|
|
84
|
+
viewBox="0 0 24 24"
|
|
85
|
+
width={size}
|
|
86
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
87
|
+
>
|
|
88
|
+
<rect height="8" rx="2" width="20" x="2" y="14" />
|
|
89
|
+
<path d="M6 18h.01" />
|
|
90
|
+
<path d="M10 18h.01" />
|
|
91
|
+
<motion.g animate={controls} variants={ARROW_VARIANTS}>
|
|
92
|
+
<path d="M12 2v8" />
|
|
93
|
+
<path d="m16 6-4 4-4-4" />
|
|
94
|
+
</motion.g>
|
|
95
|
+
</svg>
|
|
96
|
+
</div>
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
HardDriveDownloadIcon.displayName = "HardDriveDownloadIcon";
|
|
101
|
+
|
|
102
|
+
export { HardDriveDownloadIcon };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { Variants } from "motion/react";
|
|
4
|
+
import { motion, useAnimation } from "motion/react";
|
|
5
|
+
import type { HTMLAttributes } from "react";
|
|
6
|
+
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
7
|
+
|
|
8
|
+
import { cn } from "@/lib/utils";
|
|
9
|
+
|
|
10
|
+
export interface HardDriveUploadIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface HardDriveUploadIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const ARROW_VARIANTS: Variants = {
|
|
20
|
+
normal: { y: 0 },
|
|
21
|
+
animate: {
|
|
22
|
+
y: -1,
|
|
23
|
+
transition: {
|
|
24
|
+
type: "spring",
|
|
25
|
+
stiffness: 200,
|
|
26
|
+
damping: 10,
|
|
27
|
+
mass: 1,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const HardDriveUploadIcon = forwardRef<
|
|
33
|
+
HardDriveUploadIconHandle,
|
|
34
|
+
HardDriveUploadIconProps
|
|
35
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
36
|
+
const controls = useAnimation();
|
|
37
|
+
const isControlledRef = useRef(false);
|
|
38
|
+
|
|
39
|
+
useImperativeHandle(ref, () => {
|
|
40
|
+
isControlledRef.current = true;
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
startAnimation: () => controls.start("animate"),
|
|
44
|
+
stopAnimation: () => controls.start("normal"),
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const handleMouseEnter = useCallback(
|
|
49
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
50
|
+
if (isControlledRef.current) {
|
|
51
|
+
onMouseEnter?.(e);
|
|
52
|
+
} else {
|
|
53
|
+
controls.start("animate");
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
[controls, onMouseEnter]
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
const handleMouseLeave = useCallback(
|
|
60
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
61
|
+
if (isControlledRef.current) {
|
|
62
|
+
onMouseLeave?.(e);
|
|
63
|
+
} else {
|
|
64
|
+
controls.start("normal");
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
[controls, onMouseLeave]
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<div
|
|
72
|
+
className={cn(className)}
|
|
73
|
+
onMouseEnter={handleMouseEnter}
|
|
74
|
+
onMouseLeave={handleMouseLeave}
|
|
75
|
+
{...props}
|
|
76
|
+
>
|
|
77
|
+
<svg
|
|
78
|
+
fill="none"
|
|
79
|
+
height={size}
|
|
80
|
+
stroke="currentColor"
|
|
81
|
+
strokeLinecap="round"
|
|
82
|
+
strokeLinejoin="round"
|
|
83
|
+
strokeWidth="2"
|
|
84
|
+
viewBox="0 0 24 24"
|
|
85
|
+
width={size}
|
|
86
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
87
|
+
>
|
|
88
|
+
<rect height="8" rx="2" width="20" x="2" y="14" />
|
|
89
|
+
<path d="M6 18h.01" />
|
|
90
|
+
<path d="M10 18h.01" />
|
|
91
|
+
<motion.g animate={controls} variants={ARROW_VARIANTS}>
|
|
92
|
+
<path d="m16 6-4-4-4 4" />
|
|
93
|
+
<path d="M12 2v8" />
|
|
94
|
+
</motion.g>
|
|
95
|
+
</svg>
|
|
96
|
+
</div>
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
HardDriveUploadIcon.displayName = "HardDriveUploadIcon";
|
|
101
|
+
|
|
102
|
+
export { HardDriveUploadIcon };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { motion, useAnimation } from "motion/react";
|
|
4
|
+
import type { HTMLAttributes } from "react";
|
|
5
|
+
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
6
|
+
|
|
7
|
+
import { cn } from "@/lib/utils";
|
|
8
|
+
|
|
9
|
+
export interface HeartHandshakeIconHandle {
|
|
10
|
+
startAnimation: () => void;
|
|
11
|
+
stopAnimation: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface HeartHandshakeIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
size?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const HeartHandshakeIcon = forwardRef<
|
|
19
|
+
HeartHandshakeIconHandle,
|
|
20
|
+
HeartHandshakeIconProps
|
|
21
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
22
|
+
const controls = useAnimation();
|
|
23
|
+
const isControlledRef = useRef(false);
|
|
24
|
+
|
|
25
|
+
useImperativeHandle(ref, () => {
|
|
26
|
+
isControlledRef.current = true;
|
|
27
|
+
return {
|
|
28
|
+
startAnimation: () => controls.start("animate"),
|
|
29
|
+
stopAnimation: () => controls.start("normal"),
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const handleMouseEnter = useCallback(
|
|
34
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
35
|
+
if (isControlledRef.current) {
|
|
36
|
+
onMouseEnter?.(e);
|
|
37
|
+
} else {
|
|
38
|
+
controls.start("animate");
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
[controls, onMouseEnter]
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const handleMouseLeave = useCallback(
|
|
45
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
46
|
+
if (isControlledRef.current) {
|
|
47
|
+
onMouseLeave?.(e);
|
|
48
|
+
} else {
|
|
49
|
+
controls.start("normal");
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
[controls, onMouseLeave]
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<div
|
|
57
|
+
className={cn(className)}
|
|
58
|
+
onMouseEnter={handleMouseEnter}
|
|
59
|
+
onMouseLeave={handleMouseLeave}
|
|
60
|
+
{...props}
|
|
61
|
+
>
|
|
62
|
+
<motion.svg
|
|
63
|
+
animate={controls}
|
|
64
|
+
fill="none"
|
|
65
|
+
height={size}
|
|
66
|
+
initial="normal"
|
|
67
|
+
stroke="currentColor"
|
|
68
|
+
strokeLinecap="round"
|
|
69
|
+
strokeLinejoin="round"
|
|
70
|
+
strokeWidth="2"
|
|
71
|
+
style={{ originX: "50%", originY: "50%" }}
|
|
72
|
+
variants={{
|
|
73
|
+
normal: { scale: 1, rotate: 0 },
|
|
74
|
+
animate: {
|
|
75
|
+
scale: [1, 0.9, 1, 1, 1, 1, 1],
|
|
76
|
+
rotate: [0, 0, 0, -7, 7, -3, 0],
|
|
77
|
+
transition: {
|
|
78
|
+
duration: 0.7,
|
|
79
|
+
|
|
80
|
+
times: [0, 0.15, 0.3, 0.4, 0.55, 0.75, 1],
|
|
81
|
+
ease: "easeInOut",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
}}
|
|
85
|
+
viewBox="0 0 24 24"
|
|
86
|
+
width={size}
|
|
87
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
88
|
+
>
|
|
89
|
+
<path d="M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762" />
|
|
90
|
+
</motion.svg>
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
HeartHandshakeIcon.displayName = "HeartHandshakeIcon";
|
|
96
|
+
|
|
97
|
+
export { HeartHandshakeIcon };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { Variants } from "motion/react";
|
|
4
|
+
import { motion, useAnimation } from "motion/react";
|
|
5
|
+
import type { HTMLAttributes } from "react";
|
|
6
|
+
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
7
|
+
|
|
8
|
+
import { cn } from "@/lib/utils";
|
|
9
|
+
|
|
10
|
+
export interface HeartPulseIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface HeartPulseIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const HEART_DRAW_VARIANTS: Variants = {
|
|
20
|
+
normal: { pathLength: 1, opacity: 1 },
|
|
21
|
+
hidden: { pathLength: 0, opacity: 0 },
|
|
22
|
+
draw: { pathLength: [0, 1], opacity: [0, 1] },
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const HEART_PULSE_VARIANTS: Variants = {
|
|
26
|
+
normal: { scale: 1 },
|
|
27
|
+
pulse: { scale: [1, 1.08, 1] },
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const LINE_VARIANTS: Variants = {
|
|
31
|
+
normal: { pathLength: 1, pathOffset: 0, opacity: 1 },
|
|
32
|
+
animate: { pathLength: [0, 1], pathOffset: [1, 0], opacity: [0, 1] },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const HeartPulseIcon = forwardRef<HeartPulseIconHandle, HeartPulseIconProps>(
|
|
36
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
37
|
+
const heartDrawControls = useAnimation();
|
|
38
|
+
const heartPulseControls = useAnimation();
|
|
39
|
+
const lineControls = useAnimation();
|
|
40
|
+
const isControlledRef = useRef(false);
|
|
41
|
+
|
|
42
|
+
const startAnimation = useCallback(async () => {
|
|
43
|
+
heartDrawControls.start("hidden", { duration: 0 });
|
|
44
|
+
await lineControls.start("animate", {
|
|
45
|
+
duration: 0.6,
|
|
46
|
+
ease: "linear",
|
|
47
|
+
opacity: { duration: 0.1 },
|
|
48
|
+
});
|
|
49
|
+
await heartDrawControls.start("draw", {
|
|
50
|
+
duration: 0.5,
|
|
51
|
+
ease: "easeOut",
|
|
52
|
+
opacity: { duration: 0.1 },
|
|
53
|
+
});
|
|
54
|
+
heartPulseControls.start("pulse", {
|
|
55
|
+
duration: 0.9,
|
|
56
|
+
repeat: 1,
|
|
57
|
+
ease: "easeInOut",
|
|
58
|
+
});
|
|
59
|
+
}, [heartDrawControls, heartPulseControls, lineControls]);
|
|
60
|
+
|
|
61
|
+
const stopAnimation = useCallback(() => {
|
|
62
|
+
heartDrawControls.start("normal", { duration: 0.3 });
|
|
63
|
+
heartPulseControls.start("normal", { duration: 0.3 });
|
|
64
|
+
lineControls.start("normal", { duration: 0.3 });
|
|
65
|
+
}, [heartDrawControls, heartPulseControls, lineControls]);
|
|
66
|
+
|
|
67
|
+
useImperativeHandle(ref, () => {
|
|
68
|
+
isControlledRef.current = true;
|
|
69
|
+
return { startAnimation, stopAnimation };
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
const handleMouseEnter = useCallback(
|
|
73
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
74
|
+
if (isControlledRef.current) {
|
|
75
|
+
onMouseEnter?.(e);
|
|
76
|
+
} else {
|
|
77
|
+
startAnimation();
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
[startAnimation, onMouseEnter]
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
const handleMouseLeave = useCallback(
|
|
84
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
85
|
+
if (isControlledRef.current) {
|
|
86
|
+
onMouseLeave?.(e);
|
|
87
|
+
} else {
|
|
88
|
+
stopAnimation();
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
[stopAnimation, onMouseLeave]
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
return (
|
|
95
|
+
<div
|
|
96
|
+
className={cn(className)}
|
|
97
|
+
onMouseEnter={handleMouseEnter}
|
|
98
|
+
onMouseLeave={handleMouseLeave}
|
|
99
|
+
{...props}
|
|
100
|
+
>
|
|
101
|
+
<svg
|
|
102
|
+
fill="none"
|
|
103
|
+
height={size}
|
|
104
|
+
stroke="currentColor"
|
|
105
|
+
strokeLinecap="round"
|
|
106
|
+
strokeLinejoin="round"
|
|
107
|
+
strokeWidth="2"
|
|
108
|
+
viewBox="0 0 24 24"
|
|
109
|
+
width={size}
|
|
110
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
111
|
+
>
|
|
112
|
+
<motion.g
|
|
113
|
+
animate={heartPulseControls}
|
|
114
|
+
style={{ originX: "12px", originY: "12px" }}
|
|
115
|
+
variants={HEART_PULSE_VARIANTS}
|
|
116
|
+
>
|
|
117
|
+
<motion.path
|
|
118
|
+
animate={heartDrawControls}
|
|
119
|
+
d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"
|
|
120
|
+
variants={HEART_DRAW_VARIANTS}
|
|
121
|
+
/>
|
|
122
|
+
</motion.g>
|
|
123
|
+
<motion.path
|
|
124
|
+
animate={lineControls}
|
|
125
|
+
d="M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27"
|
|
126
|
+
variants={LINE_VARIANTS}
|
|
127
|
+
/>
|
|
128
|
+
</svg>
|
|
129
|
+
</div>
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
HeartPulseIcon.displayName = "HeartPulseIcon";
|
|
135
|
+
|
|
136
|
+
export { HeartPulseIcon };
|