@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,134 @@
|
|
|
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 AirplaneIconHandle {
|
|
10
|
+
startAnimation: () => void;
|
|
11
|
+
stopAnimation: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface AirplaneIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
size?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const SPEED_LINES = [
|
|
19
|
+
{ x1: 5, y1: 15, x2: 1, y2: 19, delay: 0.1 },
|
|
20
|
+
{ x1: 7, y1: 17, x2: 3, y2: 21, delay: 0.2 },
|
|
21
|
+
{ x1: 9, y1: 19, x2: 5, y2: 23, delay: 0.3 },
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
const AirplaneIcon = forwardRef<AirplaneIconHandle, AirplaneIconProps>(
|
|
25
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
26
|
+
const controls = useAnimation();
|
|
27
|
+
const isControlledRef = useRef(false);
|
|
28
|
+
|
|
29
|
+
useImperativeHandle(ref, () => {
|
|
30
|
+
isControlledRef.current = true;
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
startAnimation: () => controls.start("animate"),
|
|
34
|
+
stopAnimation: () => controls.start("normal"),
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const handleMouseEnter = useCallback(
|
|
39
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
40
|
+
if (isControlledRef.current) {
|
|
41
|
+
onMouseEnter?.(e);
|
|
42
|
+
} else {
|
|
43
|
+
controls.start("animate");
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[controls, onMouseEnter]
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const handleMouseLeave = useCallback(
|
|
50
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
51
|
+
if (isControlledRef.current) {
|
|
52
|
+
onMouseLeave?.(e);
|
|
53
|
+
} else {
|
|
54
|
+
controls.start("normal");
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[controls, onMouseLeave]
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<div
|
|
62
|
+
className={cn(className)}
|
|
63
|
+
onMouseEnter={handleMouseEnter}
|
|
64
|
+
onMouseLeave={handleMouseLeave}
|
|
65
|
+
{...props}
|
|
66
|
+
>
|
|
67
|
+
<svg
|
|
68
|
+
className="overflow-visible"
|
|
69
|
+
fill="none"
|
|
70
|
+
height={size}
|
|
71
|
+
stroke="currentColor"
|
|
72
|
+
strokeLinecap="round"
|
|
73
|
+
strokeLinejoin="round"
|
|
74
|
+
strokeWidth="2"
|
|
75
|
+
viewBox="0 0 24 24"
|
|
76
|
+
width={size}
|
|
77
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
78
|
+
>
|
|
79
|
+
<motion.path
|
|
80
|
+
animate={controls}
|
|
81
|
+
d="M17.8 19.2L16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"
|
|
82
|
+
transition={{
|
|
83
|
+
duration: 0.5,
|
|
84
|
+
}}
|
|
85
|
+
variants={{
|
|
86
|
+
normal: { x: 0, y: 0, scale: 1 },
|
|
87
|
+
animate: {
|
|
88
|
+
x: 3,
|
|
89
|
+
y: -3,
|
|
90
|
+
scale: 0.8,
|
|
91
|
+
},
|
|
92
|
+
}}
|
|
93
|
+
/>
|
|
94
|
+
{SPEED_LINES.map((line, index) => (
|
|
95
|
+
<motion.line
|
|
96
|
+
animate={controls}
|
|
97
|
+
initial={{ opacity: 0, pathLength: 1, pathSpacing: 1 }}
|
|
98
|
+
key={index}
|
|
99
|
+
stroke="currentColor"
|
|
100
|
+
strokeWidth="1"
|
|
101
|
+
transition={{ duration: 0.15, delay: line.delay }}
|
|
102
|
+
variants={{
|
|
103
|
+
normal: {
|
|
104
|
+
pathOffset: [0, 1],
|
|
105
|
+
translateX: -3,
|
|
106
|
+
translateY: 3,
|
|
107
|
+
opacity: 0,
|
|
108
|
+
transition: {
|
|
109
|
+
duration: 0.3,
|
|
110
|
+
times: [0, 0.6, 1],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
animate: {
|
|
114
|
+
pathOffset: [1, 2],
|
|
115
|
+
translateX: [0, 0],
|
|
116
|
+
translateY: [0, 0],
|
|
117
|
+
opacity: 1,
|
|
118
|
+
},
|
|
119
|
+
}}
|
|
120
|
+
x1={line.x1}
|
|
121
|
+
x2={line.x2}
|
|
122
|
+
y1={line.y1}
|
|
123
|
+
y2={line.y2}
|
|
124
|
+
/>
|
|
125
|
+
))}
|
|
126
|
+
</svg>
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
AirplaneIcon.displayName = "AirplaneIcon";
|
|
133
|
+
|
|
134
|
+
export { AirplaneIcon };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { easeInOut, easeOut, 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 AirplayIconHandle {
|
|
10
|
+
startAnimation: () => void;
|
|
11
|
+
stopAnimation: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface AirplayIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
size?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const DURATION = 0.3;
|
|
19
|
+
|
|
20
|
+
const SCREEN_VARIANTS = {
|
|
21
|
+
normal: {
|
|
22
|
+
opacity: 1,
|
|
23
|
+
pathLength: 1,
|
|
24
|
+
pathOffset: 0,
|
|
25
|
+
transition: { duration: DURATION },
|
|
26
|
+
},
|
|
27
|
+
animate: {
|
|
28
|
+
opacity: [0, 1],
|
|
29
|
+
pathLength: [0, 1],
|
|
30
|
+
pathOffset: [1, 0],
|
|
31
|
+
transition: {
|
|
32
|
+
duration: DURATION * 2,
|
|
33
|
+
ease: easeInOut,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const TRIANGLE_VARIANTS = {
|
|
39
|
+
normal: {
|
|
40
|
+
scale: 1,
|
|
41
|
+
opacity: 1,
|
|
42
|
+
transition: { duration: DURATION },
|
|
43
|
+
},
|
|
44
|
+
animate: {
|
|
45
|
+
scale: [0.6, 1.1, 1],
|
|
46
|
+
opacity: [0, 1],
|
|
47
|
+
transition: {
|
|
48
|
+
duration: DURATION * 2,
|
|
49
|
+
ease: easeOut,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const AirplayIcon = forwardRef<AirplayIconHandle, AirplayIconProps>(
|
|
55
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
56
|
+
const controls = useAnimation();
|
|
57
|
+
const isControlledRef = useRef(false);
|
|
58
|
+
|
|
59
|
+
useImperativeHandle(ref, () => {
|
|
60
|
+
isControlledRef.current = true;
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
startAnimation: async () => {
|
|
64
|
+
await controls.start("animate");
|
|
65
|
+
controls.start("normal");
|
|
66
|
+
},
|
|
67
|
+
stopAnimation: () => controls.start("normal"),
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const handleMouseEnter = useCallback(
|
|
72
|
+
async (e: React.MouseEvent<HTMLDivElement>) => {
|
|
73
|
+
if (isControlledRef.current) {
|
|
74
|
+
onMouseEnter?.(e);
|
|
75
|
+
} else {
|
|
76
|
+
await controls.start("animate");
|
|
77
|
+
controls.start("normal");
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
[controls, onMouseEnter]
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
const handleMouseLeave = useCallback(
|
|
84
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
85
|
+
if (isControlledRef.current) {
|
|
86
|
+
onMouseLeave?.(e);
|
|
87
|
+
} else {
|
|
88
|
+
controls.start("normal");
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
[controls, 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.path
|
|
113
|
+
animate={controls}
|
|
114
|
+
d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"
|
|
115
|
+
variants={SCREEN_VARIANTS}
|
|
116
|
+
/>
|
|
117
|
+
<motion.path
|
|
118
|
+
animate={controls}
|
|
119
|
+
d="M12 15l5 6H7z"
|
|
120
|
+
variants={TRIANGLE_VARIANTS}
|
|
121
|
+
/>
|
|
122
|
+
</svg>
|
|
123
|
+
</div>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
AirplayIcon.displayName = "AirplayIcon";
|
|
129
|
+
|
|
130
|
+
export { AirplayIcon };
|
|
@@ -0,0 +1,178 @@
|
|
|
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 AlarmClockIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface AlarmClockIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const PATH_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
y: 0,
|
|
22
|
+
x: 0,
|
|
23
|
+
transition: {
|
|
24
|
+
duration: 0.2,
|
|
25
|
+
type: "spring",
|
|
26
|
+
stiffness: 200,
|
|
27
|
+
damping: 25,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
animate: {
|
|
31
|
+
y: -1.5,
|
|
32
|
+
x: [-1, 1, -1, 1, -1, 0],
|
|
33
|
+
transition: {
|
|
34
|
+
y: {
|
|
35
|
+
duration: 0.2,
|
|
36
|
+
type: "spring",
|
|
37
|
+
stiffness: 200,
|
|
38
|
+
damping: 25,
|
|
39
|
+
},
|
|
40
|
+
x: {
|
|
41
|
+
duration: 0.3,
|
|
42
|
+
repeat: Number.POSITIVE_INFINITY,
|
|
43
|
+
ease: "linear",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const SECONDARY_PATH_VARIANTS: Variants = {
|
|
50
|
+
normal: {
|
|
51
|
+
y: 0,
|
|
52
|
+
x: 0,
|
|
53
|
+
transition: {
|
|
54
|
+
duration: 0.2,
|
|
55
|
+
type: "spring",
|
|
56
|
+
stiffness: 200,
|
|
57
|
+
damping: 25,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
animate: {
|
|
61
|
+
y: -2.5,
|
|
62
|
+
x: [-2, 2, -2, 2, -2, 0],
|
|
63
|
+
transition: {
|
|
64
|
+
y: {
|
|
65
|
+
duration: 0.2,
|
|
66
|
+
type: "spring",
|
|
67
|
+
stiffness: 200,
|
|
68
|
+
damping: 25,
|
|
69
|
+
},
|
|
70
|
+
x: {
|
|
71
|
+
duration: 0.3,
|
|
72
|
+
repeat: Number.POSITIVE_INFINITY,
|
|
73
|
+
ease: "linear",
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const AlarmClockIcon = forwardRef<AlarmClockIconHandle, AlarmClockIconProps>(
|
|
80
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
81
|
+
const controls = useAnimation();
|
|
82
|
+
const isControlledRef = useRef(false);
|
|
83
|
+
|
|
84
|
+
useImperativeHandle(ref, () => {
|
|
85
|
+
isControlledRef.current = true;
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
startAnimation: () => controls.start("animate"),
|
|
89
|
+
stopAnimation: () => controls.start("normal"),
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
const handleMouseEnter = useCallback(
|
|
94
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
95
|
+
if (isControlledRef.current) {
|
|
96
|
+
onMouseEnter?.(e);
|
|
97
|
+
} else {
|
|
98
|
+
controls.start("animate");
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
[controls, onMouseEnter]
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const handleMouseLeave = useCallback(
|
|
105
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
106
|
+
if (isControlledRef.current) {
|
|
107
|
+
onMouseLeave?.(e);
|
|
108
|
+
} else {
|
|
109
|
+
controls.start("normal");
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
[controls, onMouseLeave]
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
return (
|
|
116
|
+
<div
|
|
117
|
+
className={cn(className)}
|
|
118
|
+
onMouseEnter={handleMouseEnter}
|
|
119
|
+
onMouseLeave={handleMouseLeave}
|
|
120
|
+
{...props}
|
|
121
|
+
>
|
|
122
|
+
<svg
|
|
123
|
+
fill="none"
|
|
124
|
+
height={size}
|
|
125
|
+
stroke="currentColor"
|
|
126
|
+
strokeLinecap="round"
|
|
127
|
+
strokeLinejoin="round"
|
|
128
|
+
strokeWidth="2"
|
|
129
|
+
style={{ overflow: "visible" }}
|
|
130
|
+
viewBox="0 0 24 24"
|
|
131
|
+
width={size}
|
|
132
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
133
|
+
>
|
|
134
|
+
<motion.path
|
|
135
|
+
animate={controls}
|
|
136
|
+
d="M18 20.5L19.5 22"
|
|
137
|
+
initial="normal"
|
|
138
|
+
variants={PATH_VARIANTS}
|
|
139
|
+
/>
|
|
140
|
+
<motion.path
|
|
141
|
+
animate={controls}
|
|
142
|
+
d="M6 20.5L4.5 22"
|
|
143
|
+
initial="normal"
|
|
144
|
+
variants={PATH_VARIANTS}
|
|
145
|
+
/>
|
|
146
|
+
<motion.path
|
|
147
|
+
animate={controls}
|
|
148
|
+
d="M21 13C21 17.968 16.968 22 12 22C7.032 22 3 17.968 3 13C3 8.032 7.032 4 12 4C16.968 4 21 8.032 21 13Z"
|
|
149
|
+
initial="normal"
|
|
150
|
+
variants={PATH_VARIANTS}
|
|
151
|
+
/>
|
|
152
|
+
<motion.path
|
|
153
|
+
animate={controls}
|
|
154
|
+
d="M15.339 15.862L12.549 14.197C12.063 13.909 11.667 13.216 11.667 12.649V8.95898"
|
|
155
|
+
initial="normal"
|
|
156
|
+
variants={PATH_VARIANTS}
|
|
157
|
+
/>
|
|
158
|
+
<motion.path
|
|
159
|
+
animate={controls}
|
|
160
|
+
d="M18 2L21.747 5.31064"
|
|
161
|
+
initial="normal"
|
|
162
|
+
variants={SECONDARY_PATH_VARIANTS}
|
|
163
|
+
/>
|
|
164
|
+
<motion.path
|
|
165
|
+
animate={controls}
|
|
166
|
+
d="M6 2L2.25304 5.31064"
|
|
167
|
+
initial="normal"
|
|
168
|
+
variants={SECONDARY_PATH_VARIANTS}
|
|
169
|
+
/>
|
|
170
|
+
</svg>
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
|
|
176
|
+
AlarmClockIcon.displayName = "AlarmClockIcon";
|
|
177
|
+
|
|
178
|
+
export { AlarmClockIcon };
|
|
@@ -0,0 +1,98 @@
|
|
|
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 AlignCenterIconHandle {
|
|
10
|
+
startAnimation: () => void;
|
|
11
|
+
stopAnimation: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface AlignCenterIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
size?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const AlignCenterIcon = forwardRef<AlignCenterIconHandle, AlignCenterIconProps>(
|
|
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
|
+
|
|
26
|
+
return {
|
|
27
|
+
startAnimation: () => controls.start("animate"),
|
|
28
|
+
stopAnimation: () => controls.start("normal"),
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const handleMouseEnter = useCallback(
|
|
33
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
34
|
+
if (isControlledRef.current) {
|
|
35
|
+
onMouseEnter?.(e);
|
|
36
|
+
} else {
|
|
37
|
+
controls.start("animate");
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
[controls, onMouseEnter]
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
const handleMouseLeave = useCallback(
|
|
44
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
45
|
+
if (isControlledRef.current) {
|
|
46
|
+
onMouseLeave?.(e);
|
|
47
|
+
} else {
|
|
48
|
+
controls.start("normal");
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
[controls, onMouseLeave]
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<div
|
|
56
|
+
className={cn(className)}
|
|
57
|
+
onMouseEnter={handleMouseEnter}
|
|
58
|
+
onMouseLeave={handleMouseLeave}
|
|
59
|
+
{...props}
|
|
60
|
+
>
|
|
61
|
+
<svg
|
|
62
|
+
fill="none"
|
|
63
|
+
height={size}
|
|
64
|
+
stroke="currentColor"
|
|
65
|
+
strokeLinecap="round"
|
|
66
|
+
strokeLinejoin="round"
|
|
67
|
+
strokeWidth="2"
|
|
68
|
+
viewBox="0 0 24 24"
|
|
69
|
+
width={size}
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
>
|
|
72
|
+
<motion.path
|
|
73
|
+
animate={controls}
|
|
74
|
+
d="M17 12H7"
|
|
75
|
+
variants={{
|
|
76
|
+
normal: { translateX: 0 },
|
|
77
|
+
animate: {
|
|
78
|
+
translateX: [0, 3, -3, 2, -2, 0],
|
|
79
|
+
transition: {
|
|
80
|
+
ease: "linear",
|
|
81
|
+
translateX: {
|
|
82
|
+
duration: 1,
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
}}
|
|
87
|
+
/>
|
|
88
|
+
<path d="M19 18H5" />
|
|
89
|
+
<path d="M21 6H3" />
|
|
90
|
+
</svg>
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
AlignCenterIcon.displayName = "AlignCenterIcon";
|
|
97
|
+
|
|
98
|
+
export { AlignCenterIcon };
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { Transition } 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 AlignHorizontalIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface AlignHorizontalIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const DEFAULT_TRANSITION: Transition = {
|
|
20
|
+
type: "spring",
|
|
21
|
+
stiffness: 160,
|
|
22
|
+
damping: 17,
|
|
23
|
+
mass: 1,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const AlignHorizontalIcon = forwardRef<
|
|
27
|
+
AlignHorizontalIconHandle,
|
|
28
|
+
AlignHorizontalIconProps
|
|
29
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
30
|
+
const controls = useAnimation();
|
|
31
|
+
const isControlledRef = useRef(false);
|
|
32
|
+
|
|
33
|
+
useImperativeHandle(ref, () => {
|
|
34
|
+
isControlledRef.current = true;
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
startAnimation: () => controls.start("animate"),
|
|
38
|
+
stopAnimation: () => controls.start("normal"),
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const handleMouseEnter = useCallback(
|
|
43
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
44
|
+
if (isControlledRef.current) {
|
|
45
|
+
onMouseEnter?.(e);
|
|
46
|
+
} else {
|
|
47
|
+
controls.start("animate");
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
[controls, onMouseEnter]
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const handleMouseLeave = useCallback(
|
|
54
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
55
|
+
if (isControlledRef.current) {
|
|
56
|
+
onMouseLeave?.(e);
|
|
57
|
+
} else {
|
|
58
|
+
controls.start("normal");
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
[controls, onMouseLeave]
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<div
|
|
66
|
+
className={cn(className)}
|
|
67
|
+
onMouseEnter={handleMouseEnter}
|
|
68
|
+
onMouseLeave={handleMouseLeave}
|
|
69
|
+
{...props}
|
|
70
|
+
>
|
|
71
|
+
<svg
|
|
72
|
+
fill="none"
|
|
73
|
+
height={size}
|
|
74
|
+
stroke="currentColor"
|
|
75
|
+
strokeLinecap="round"
|
|
76
|
+
strokeLinejoin="round"
|
|
77
|
+
strokeWidth="2"
|
|
78
|
+
viewBox="0 0 24 24"
|
|
79
|
+
width={size}
|
|
80
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
81
|
+
>
|
|
82
|
+
<motion.rect
|
|
83
|
+
animate={controls}
|
|
84
|
+
height="10"
|
|
85
|
+
rx="2"
|
|
86
|
+
transition={DEFAULT_TRANSITION}
|
|
87
|
+
variants={{
|
|
88
|
+
normal: { scaleX: 1 },
|
|
89
|
+
animate: { scaleX: 0.85 },
|
|
90
|
+
}}
|
|
91
|
+
width="6"
|
|
92
|
+
x="9"
|
|
93
|
+
y="7"
|
|
94
|
+
/>
|
|
95
|
+
<motion.path
|
|
96
|
+
animate={controls}
|
|
97
|
+
d="M4 22V2"
|
|
98
|
+
transition={DEFAULT_TRANSITION}
|
|
99
|
+
variants={{
|
|
100
|
+
normal: { translateX: 0, scaleY: 1 },
|
|
101
|
+
animate: {
|
|
102
|
+
translateX: 2,
|
|
103
|
+
scaleY: 0.9,
|
|
104
|
+
},
|
|
105
|
+
}}
|
|
106
|
+
/>
|
|
107
|
+
<motion.path
|
|
108
|
+
animate={controls}
|
|
109
|
+
d="M20 22V2"
|
|
110
|
+
transition={DEFAULT_TRANSITION}
|
|
111
|
+
variants={{
|
|
112
|
+
normal: { translateX: 0, scaleY: 1 },
|
|
113
|
+
animate: {
|
|
114
|
+
translateX: -2,
|
|
115
|
+
scaleY: 0.9,
|
|
116
|
+
},
|
|
117
|
+
}}
|
|
118
|
+
/>
|
|
119
|
+
</svg>
|
|
120
|
+
</div>
|
|
121
|
+
);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
AlignHorizontalIcon.displayName = "AlignHorizontalIcon";
|
|
125
|
+
|
|
126
|
+
export { AlignHorizontalIcon };
|