@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,122 @@
|
|
|
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 FigmaIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface FigmaIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
pathLength: 1,
|
|
22
|
+
opacity: 1,
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
pathLength: [0, 1],
|
|
26
|
+
opacity: [0, 1],
|
|
27
|
+
transition: {
|
|
28
|
+
delay: 0.3,
|
|
29
|
+
duration: 0.5,
|
|
30
|
+
opacity: { delay: 0.25 },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const FigmaIcon = forwardRef<FigmaIconHandle, FigmaIconProps>(
|
|
36
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
37
|
+
const controls = useAnimation();
|
|
38
|
+
const isControlledRef = useRef(false);
|
|
39
|
+
|
|
40
|
+
useImperativeHandle(ref, () => {
|
|
41
|
+
isControlledRef.current = true;
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
startAnimation: () => controls.start("animate"),
|
|
45
|
+
stopAnimation: () => controls.start("normal"),
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const handleMouseEnter = useCallback(
|
|
50
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
51
|
+
if (isControlledRef.current) {
|
|
52
|
+
onMouseEnter?.(e);
|
|
53
|
+
} else {
|
|
54
|
+
controls.start("animate");
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[controls, onMouseEnter]
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const handleMouseLeave = useCallback(
|
|
61
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
62
|
+
if (isControlledRef.current) {
|
|
63
|
+
onMouseLeave?.(e);
|
|
64
|
+
} else {
|
|
65
|
+
controls.start("normal");
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[controls, onMouseLeave]
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<div
|
|
73
|
+
className={cn(className)}
|
|
74
|
+
onMouseEnter={handleMouseEnter}
|
|
75
|
+
onMouseLeave={handleMouseLeave}
|
|
76
|
+
{...props}
|
|
77
|
+
>
|
|
78
|
+
<svg
|
|
79
|
+
fill="none"
|
|
80
|
+
height={size}
|
|
81
|
+
stroke="currentColor"
|
|
82
|
+
strokeLinecap="round"
|
|
83
|
+
strokeLinejoin="round"
|
|
84
|
+
strokeWidth="2"
|
|
85
|
+
viewBox="0 0 24 24"
|
|
86
|
+
width={size}
|
|
87
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
88
|
+
>
|
|
89
|
+
<motion.path
|
|
90
|
+
animate={controls}
|
|
91
|
+
d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"
|
|
92
|
+
variants={VARIANTS}
|
|
93
|
+
/>
|
|
94
|
+
<motion.path
|
|
95
|
+
animate={controls}
|
|
96
|
+
d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"
|
|
97
|
+
variants={VARIANTS}
|
|
98
|
+
/>
|
|
99
|
+
<motion.path
|
|
100
|
+
animate={controls}
|
|
101
|
+
d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"
|
|
102
|
+
variants={VARIANTS}
|
|
103
|
+
/>
|
|
104
|
+
<motion.path
|
|
105
|
+
animate={controls}
|
|
106
|
+
d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"
|
|
107
|
+
variants={VARIANTS}
|
|
108
|
+
/>
|
|
109
|
+
<motion.path
|
|
110
|
+
animate={controls}
|
|
111
|
+
d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"
|
|
112
|
+
variants={VARIANTS}
|
|
113
|
+
/>
|
|
114
|
+
</svg>
|
|
115
|
+
</div>
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
FigmaIcon.displayName = "FigmaIcon";
|
|
121
|
+
|
|
122
|
+
export { FigmaIcon };
|
|
@@ -0,0 +1,105 @@
|
|
|
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 FileChartLineIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface FileChartLineIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
pathLength: 1,
|
|
22
|
+
opacity: 1,
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
pathLength: [0, 1],
|
|
26
|
+
opacity: [0, 1],
|
|
27
|
+
transition: {
|
|
28
|
+
delay: 0.15,
|
|
29
|
+
duration: 0.3,
|
|
30
|
+
opacity: { delay: 0.1 },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const FileChartLineIcon = forwardRef<
|
|
36
|
+
FileChartLineIconHandle,
|
|
37
|
+
FileChartLineIconProps
|
|
38
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
39
|
+
const controls = useAnimation();
|
|
40
|
+
const isControlledRef = useRef(false);
|
|
41
|
+
|
|
42
|
+
useImperativeHandle(ref, () => {
|
|
43
|
+
isControlledRef.current = true;
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
startAnimation: () => controls.start("animate"),
|
|
47
|
+
stopAnimation: () => controls.start("normal"),
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const handleMouseEnter = useCallback(
|
|
52
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
53
|
+
if (isControlledRef.current) {
|
|
54
|
+
onMouseEnter?.(e);
|
|
55
|
+
} else {
|
|
56
|
+
controls.start("animate");
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[controls, onMouseEnter]
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const handleMouseLeave = useCallback(
|
|
63
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
64
|
+
if (isControlledRef.current) {
|
|
65
|
+
onMouseLeave?.(e);
|
|
66
|
+
} else {
|
|
67
|
+
controls.start("normal");
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
[controls, onMouseLeave]
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div
|
|
75
|
+
className={cn(className)}
|
|
76
|
+
onMouseEnter={handleMouseEnter}
|
|
77
|
+
onMouseLeave={handleMouseLeave}
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
80
|
+
<svg
|
|
81
|
+
fill="none"
|
|
82
|
+
height={size}
|
|
83
|
+
stroke="currentColor"
|
|
84
|
+
strokeLinecap="round"
|
|
85
|
+
strokeLinejoin="round"
|
|
86
|
+
strokeWidth="2"
|
|
87
|
+
viewBox="0 0 24 24"
|
|
88
|
+
width={size}
|
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
90
|
+
>
|
|
91
|
+
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
|
|
92
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
93
|
+
<motion.path
|
|
94
|
+
animate={controls}
|
|
95
|
+
d="m8 17 2.5-2.5 2 2L16 13"
|
|
96
|
+
variants={VARIANTS}
|
|
97
|
+
/>
|
|
98
|
+
</svg>
|
|
99
|
+
</div>
|
|
100
|
+
);
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
FileChartLineIcon.displayName = "FileChartLineIcon";
|
|
104
|
+
|
|
105
|
+
export { FileChartLineIcon };
|
|
@@ -0,0 +1,108 @@
|
|
|
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 FileCheck2IconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface FileCheck2IconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const CHECK_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
pathLength: 1,
|
|
22
|
+
opacity: 1,
|
|
23
|
+
transition: {
|
|
24
|
+
duration: 0.3,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
animate: {
|
|
28
|
+
pathLength: [0, 1],
|
|
29
|
+
opacity: [0, 1],
|
|
30
|
+
transition: {
|
|
31
|
+
pathLength: { duration: 0.4, ease: "easeInOut" },
|
|
32
|
+
opacity: { duration: 0.4, ease: "easeInOut" },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const FileCheck2Icon = forwardRef<FileCheck2IconHandle, FileCheck2IconProps>(
|
|
38
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
39
|
+
const controls = useAnimation();
|
|
40
|
+
const isControlledRef = useRef(false);
|
|
41
|
+
|
|
42
|
+
useImperativeHandle(ref, () => {
|
|
43
|
+
isControlledRef.current = true;
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
startAnimation: () => controls.start("animate"),
|
|
47
|
+
stopAnimation: () => controls.start("normal"),
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const handleMouseEnter = useCallback(
|
|
52
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
53
|
+
if (isControlledRef.current) {
|
|
54
|
+
onMouseEnter?.(e);
|
|
55
|
+
} else {
|
|
56
|
+
controls.start("animate");
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[controls, onMouseEnter]
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const handleMouseLeave = useCallback(
|
|
63
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
64
|
+
if (isControlledRef.current) {
|
|
65
|
+
onMouseLeave?.(e);
|
|
66
|
+
} else {
|
|
67
|
+
controls.start("normal");
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
[controls, onMouseLeave]
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div
|
|
75
|
+
className={cn(className)}
|
|
76
|
+
onMouseEnter={handleMouseEnter}
|
|
77
|
+
onMouseLeave={handleMouseLeave}
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
80
|
+
<svg
|
|
81
|
+
fill="none"
|
|
82
|
+
height={size}
|
|
83
|
+
stroke="currentColor"
|
|
84
|
+
strokeLinecap="round"
|
|
85
|
+
strokeLinejoin="round"
|
|
86
|
+
strokeWidth="2"
|
|
87
|
+
viewBox="0 0 24 24"
|
|
88
|
+
width={size}
|
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
90
|
+
>
|
|
91
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
92
|
+
<path d="M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4" />
|
|
93
|
+
<motion.path
|
|
94
|
+
animate={controls}
|
|
95
|
+
d="m3 15 2 2 4-4"
|
|
96
|
+
initial="normal"
|
|
97
|
+
style={{ transformOrigin: "center" }}
|
|
98
|
+
variants={CHECK_VARIANTS}
|
|
99
|
+
/>
|
|
100
|
+
</svg>
|
|
101
|
+
</div>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
FileCheck2Icon.displayName = "FileCheck2Icon";
|
|
107
|
+
|
|
108
|
+
export { FileCheck2Icon };
|
|
@@ -0,0 +1,108 @@
|
|
|
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 FileCheckIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface FileCheckIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const CHECK_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
pathLength: 1,
|
|
22
|
+
opacity: 1,
|
|
23
|
+
transition: {
|
|
24
|
+
duration: 0.3,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
animate: {
|
|
28
|
+
pathLength: [0, 1],
|
|
29
|
+
opacity: [0, 1],
|
|
30
|
+
transition: {
|
|
31
|
+
pathLength: { duration: 0.4, ease: "easeInOut" },
|
|
32
|
+
opacity: { duration: 0.4, ease: "easeInOut" },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const FileCheckIcon = forwardRef<FileCheckIconHandle, FileCheckIconProps>(
|
|
38
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
39
|
+
const controls = useAnimation();
|
|
40
|
+
const isControlledRef = useRef(false);
|
|
41
|
+
|
|
42
|
+
useImperativeHandle(ref, () => {
|
|
43
|
+
isControlledRef.current = true;
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
startAnimation: () => controls.start("animate"),
|
|
47
|
+
stopAnimation: () => controls.start("normal"),
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const handleMouseEnter = useCallback(
|
|
52
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
53
|
+
if (isControlledRef.current) {
|
|
54
|
+
onMouseEnter?.(e);
|
|
55
|
+
} else {
|
|
56
|
+
controls.start("animate");
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[controls, onMouseEnter]
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const handleMouseLeave = useCallback(
|
|
63
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
64
|
+
if (isControlledRef.current) {
|
|
65
|
+
onMouseLeave?.(e);
|
|
66
|
+
} else {
|
|
67
|
+
controls.start("normal");
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
[controls, onMouseLeave]
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div
|
|
75
|
+
className={cn(className)}
|
|
76
|
+
onMouseEnter={handleMouseEnter}
|
|
77
|
+
onMouseLeave={handleMouseLeave}
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
80
|
+
<svg
|
|
81
|
+
fill="none"
|
|
82
|
+
height={size}
|
|
83
|
+
stroke="currentColor"
|
|
84
|
+
strokeLinecap="round"
|
|
85
|
+
strokeLinejoin="round"
|
|
86
|
+
strokeWidth="2"
|
|
87
|
+
viewBox="0 0 24 24"
|
|
88
|
+
width={size}
|
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
90
|
+
>
|
|
91
|
+
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
|
|
92
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
93
|
+
<motion.path
|
|
94
|
+
animate={controls}
|
|
95
|
+
d="m9 15 2 2 4-4"
|
|
96
|
+
initial="normal"
|
|
97
|
+
style={{ transformOrigin: "center" }}
|
|
98
|
+
variants={CHECK_VARIANTS}
|
|
99
|
+
/>
|
|
100
|
+
</svg>
|
|
101
|
+
</div>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
FileCheckIcon.displayName = "FileCheckIcon";
|
|
107
|
+
|
|
108
|
+
export { FileCheckIcon };
|
|
@@ -0,0 +1,99 @@
|
|
|
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 FileCogIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const G_VARIANTS: Variants = {
|
|
16
|
+
normal: { rotate: 0 },
|
|
17
|
+
animate: { rotate: 180 },
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const FileCogIcon = forwardRef<
|
|
21
|
+
FileCogIconHandle,
|
|
22
|
+
HTMLAttributes<HTMLDivElement>
|
|
23
|
+
>(({ onMouseEnter, onMouseLeave, className, ...props }, ref) => {
|
|
24
|
+
const controls = useAnimation();
|
|
25
|
+
const isControlledRef = useRef(false);
|
|
26
|
+
|
|
27
|
+
useImperativeHandle(ref, () => {
|
|
28
|
+
isControlledRef.current = true;
|
|
29
|
+
return {
|
|
30
|
+
startAnimation: () => controls.start("animate"),
|
|
31
|
+
stopAnimation: () => controls.start("normal"),
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const handleMouseEnter = useCallback(
|
|
36
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
37
|
+
if (isControlledRef.current) {
|
|
38
|
+
onMouseEnter?.(e);
|
|
39
|
+
} else {
|
|
40
|
+
controls.start("animate");
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
[controls, onMouseEnter]
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
const handleMouseLeave = useCallback(
|
|
47
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
48
|
+
if (isControlledRef.current) {
|
|
49
|
+
onMouseLeave?.(e);
|
|
50
|
+
} else {
|
|
51
|
+
controls.start("normal");
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
[controls, onMouseLeave]
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<div
|
|
59
|
+
className={cn(className)}
|
|
60
|
+
onMouseEnter={handleMouseEnter}
|
|
61
|
+
onMouseLeave={handleMouseLeave}
|
|
62
|
+
{...props}
|
|
63
|
+
>
|
|
64
|
+
<svg
|
|
65
|
+
fill="none"
|
|
66
|
+
height="28"
|
|
67
|
+
stroke="currentColor"
|
|
68
|
+
strokeLinecap="round"
|
|
69
|
+
strokeLinejoin="round"
|
|
70
|
+
strokeWidth="2"
|
|
71
|
+
viewBox="0 0 24 24"
|
|
72
|
+
width="28"
|
|
73
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
74
|
+
>
|
|
75
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
76
|
+
<path d="M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5" />
|
|
77
|
+
<motion.g
|
|
78
|
+
animate={controls}
|
|
79
|
+
transition={{ type: "spring", stiffness: 50, damping: 10 }}
|
|
80
|
+
variants={G_VARIANTS}
|
|
81
|
+
>
|
|
82
|
+
<path d="m3.2 12.9-.9-.4" />
|
|
83
|
+
<path d="m3.2 15.1-.9.4" />
|
|
84
|
+
<path d="m4.9 11.2-.4-.9" />
|
|
85
|
+
<path d="m4.9 16.8-.4.9" />
|
|
86
|
+
<path d="m7.5 10.3-.4.9" />
|
|
87
|
+
<path d="m7.5 17.7-.4-.9" />
|
|
88
|
+
<path d="m9.7 12.5-.9.4" />
|
|
89
|
+
<path d="m9.7 15.5-.9-.4" />
|
|
90
|
+
<circle cx="6" cy="14" r="3" />
|
|
91
|
+
</motion.g>
|
|
92
|
+
</svg>
|
|
93
|
+
</div>
|
|
94
|
+
);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
FileCogIcon.displayName = "FileCogIcon";
|
|
98
|
+
|
|
99
|
+
export { FileCogIcon };
|
|
@@ -0,0 +1,115 @@
|
|
|
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 FilePenLineIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface FilePenLineIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const PEN_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
x: 0,
|
|
23
|
+
y: 0,
|
|
24
|
+
},
|
|
25
|
+
animate: {
|
|
26
|
+
rotate: [-0.3, 0.2, -0.4],
|
|
27
|
+
x: [0, -0.5, 1, 0],
|
|
28
|
+
y: [0, 1, -0.5, 0],
|
|
29
|
+
transition: {
|
|
30
|
+
duration: 0.5,
|
|
31
|
+
repeat: 1,
|
|
32
|
+
ease: "easeInOut",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const FilePenLineIcon = forwardRef<FilePenLineIconHandle, FilePenLineIconProps>(
|
|
38
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
39
|
+
const controls = useAnimation();
|
|
40
|
+
const isControlledRef = useRef(false);
|
|
41
|
+
|
|
42
|
+
useImperativeHandle(ref, () => {
|
|
43
|
+
isControlledRef.current = true;
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
startAnimation: () => controls.start("animate"),
|
|
47
|
+
stopAnimation: () => controls.start("normal"),
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const handleMouseEnter = useCallback(
|
|
52
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
53
|
+
if (isControlledRef.current) {
|
|
54
|
+
onMouseEnter?.(e);
|
|
55
|
+
} else {
|
|
56
|
+
controls.start("animate");
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[controls, onMouseEnter]
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const handleMouseLeave = useCallback(
|
|
63
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
64
|
+
if (isControlledRef.current) {
|
|
65
|
+
onMouseLeave?.(e);
|
|
66
|
+
} else {
|
|
67
|
+
controls.start("normal");
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
[controls, onMouseLeave]
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div
|
|
75
|
+
className={cn(className)}
|
|
76
|
+
onMouseEnter={handleMouseEnter}
|
|
77
|
+
onMouseLeave={handleMouseLeave}
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
80
|
+
<svg
|
|
81
|
+
fill="none"
|
|
82
|
+
height={size}
|
|
83
|
+
stroke="currentColor"
|
|
84
|
+
strokeLinecap="round"
|
|
85
|
+
strokeLinejoin="round"
|
|
86
|
+
strokeWidth="2"
|
|
87
|
+
viewBox="0 0 24 24"
|
|
88
|
+
width={size}
|
|
89
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
90
|
+
>
|
|
91
|
+
<path d="m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2" />
|
|
92
|
+
<motion.path
|
|
93
|
+
animate={controls}
|
|
94
|
+
d="M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"
|
|
95
|
+
initial="normal"
|
|
96
|
+
variants={PEN_VARIANTS}
|
|
97
|
+
/>
|
|
98
|
+
<motion.path
|
|
99
|
+
animate={controls}
|
|
100
|
+
d="M8 18h1"
|
|
101
|
+
transition={{ duration: 0.5 }}
|
|
102
|
+
variants={{
|
|
103
|
+
normal: { d: "M8 18h1" },
|
|
104
|
+
animate: { d: "M8 18h5" },
|
|
105
|
+
}}
|
|
106
|
+
/>
|
|
107
|
+
</svg>
|
|
108
|
+
</div>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
FilePenLineIcon.displayName = "FilePenLineIcon";
|
|
114
|
+
|
|
115
|
+
export { FilePenLineIcon };
|