@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,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 SunDimIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface SunDimIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const PATH_VARIANTS: Variants = {
|
|
20
|
+
normal: { opacity: 1 },
|
|
21
|
+
animate: (i: number) => ({
|
|
22
|
+
opacity: [0, 1],
|
|
23
|
+
transition: { delay: i * 0.1, duration: 0.3 },
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const SunDimIcon = forwardRef<SunDimIconHandle, SunDimIconProps>(
|
|
28
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
29
|
+
const controls = useAnimation();
|
|
30
|
+
const isControlledRef = useRef(false);
|
|
31
|
+
|
|
32
|
+
useImperativeHandle(ref, () => {
|
|
33
|
+
isControlledRef.current = true;
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
startAnimation: () => controls.start("animate"),
|
|
37
|
+
stopAnimation: () => controls.start("normal"),
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const handleMouseEnter = useCallback(
|
|
42
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
43
|
+
if (isControlledRef.current) {
|
|
44
|
+
onMouseEnter?.(e);
|
|
45
|
+
} else {
|
|
46
|
+
controls.start("animate");
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[controls, onMouseEnter]
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const handleMouseLeave = useCallback(
|
|
53
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
54
|
+
if (isControlledRef.current) {
|
|
55
|
+
onMouseLeave?.(e);
|
|
56
|
+
} else {
|
|
57
|
+
controls.start("normal");
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
[controls, onMouseLeave]
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div
|
|
65
|
+
className={cn(className)}
|
|
66
|
+
onMouseEnter={handleMouseEnter}
|
|
67
|
+
onMouseLeave={handleMouseLeave}
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
<svg
|
|
71
|
+
fill="none"
|
|
72
|
+
height={size}
|
|
73
|
+
stroke="currentColor"
|
|
74
|
+
strokeLinecap="round"
|
|
75
|
+
strokeLinejoin="round"
|
|
76
|
+
strokeWidth="2"
|
|
77
|
+
viewBox="0 0 24 24"
|
|
78
|
+
width={size}
|
|
79
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
80
|
+
>
|
|
81
|
+
<circle cx="12" cy="12" r="4" />
|
|
82
|
+
{[
|
|
83
|
+
"M12 4h.01",
|
|
84
|
+
"M20 12h.01",
|
|
85
|
+
"M12 20h.01",
|
|
86
|
+
"M4 12h.01",
|
|
87
|
+
"M17.657 6.343h.01",
|
|
88
|
+
"M17.657 17.657h.01",
|
|
89
|
+
"M6.343 17.657h.01",
|
|
90
|
+
"M6.343 6.343h.01",
|
|
91
|
+
].map((d, index) => (
|
|
92
|
+
<motion.path
|
|
93
|
+
animate={controls}
|
|
94
|
+
custom={index + 1}
|
|
95
|
+
d={d}
|
|
96
|
+
key={d}
|
|
97
|
+
variants={PATH_VARIANTS}
|
|
98
|
+
/>
|
|
99
|
+
))}
|
|
100
|
+
</svg>
|
|
101
|
+
</div>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
SunDimIcon.displayName = "SunDimIcon";
|
|
107
|
+
|
|
108
|
+
export { SunDimIcon };
|
|
@@ -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 SunMediumIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface SunMediumIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const PATH_VARIANTS: Variants = {
|
|
20
|
+
normal: { opacity: 1 },
|
|
21
|
+
animate: (i: number) => ({
|
|
22
|
+
opacity: [0, 1],
|
|
23
|
+
transition: { delay: i * 0.1, duration: 0.3 },
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const SunMediumIcon = forwardRef<SunMediumIconHandle, SunMediumIconProps>(
|
|
28
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
29
|
+
const controls = useAnimation();
|
|
30
|
+
const isControlledRef = useRef(false);
|
|
31
|
+
|
|
32
|
+
useImperativeHandle(ref, () => {
|
|
33
|
+
isControlledRef.current = true;
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
startAnimation: () => controls.start("animate"),
|
|
37
|
+
stopAnimation: () => controls.start("normal"),
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const handleMouseEnter = useCallback(
|
|
42
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
43
|
+
if (isControlledRef.current) {
|
|
44
|
+
onMouseEnter?.(e);
|
|
45
|
+
} else {
|
|
46
|
+
controls.start("animate");
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[controls, onMouseEnter]
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const handleMouseLeave = useCallback(
|
|
53
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
54
|
+
if (isControlledRef.current) {
|
|
55
|
+
onMouseLeave?.(e);
|
|
56
|
+
} else {
|
|
57
|
+
controls.start("normal");
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
[controls, onMouseLeave]
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div
|
|
65
|
+
className={cn(className)}
|
|
66
|
+
onMouseEnter={handleMouseEnter}
|
|
67
|
+
onMouseLeave={handleMouseLeave}
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
<svg
|
|
71
|
+
fill="none"
|
|
72
|
+
height={size}
|
|
73
|
+
stroke="currentColor"
|
|
74
|
+
strokeLinecap="round"
|
|
75
|
+
strokeLinejoin="round"
|
|
76
|
+
strokeWidth="2"
|
|
77
|
+
viewBox="0 0 24 24"
|
|
78
|
+
width={size}
|
|
79
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
80
|
+
>
|
|
81
|
+
<circle cx="12" cy="12" r="4" />
|
|
82
|
+
{[
|
|
83
|
+
"M12 3v1",
|
|
84
|
+
"M12 20v1",
|
|
85
|
+
"M3 12h1",
|
|
86
|
+
"M20 12h1",
|
|
87
|
+
"m18.364 5.636-.707.707",
|
|
88
|
+
"m6.343 17.657-.707.707",
|
|
89
|
+
"m5.636 5.636.707.707",
|
|
90
|
+
"m17.657 17.657.707.707",
|
|
91
|
+
].map((d, index) => (
|
|
92
|
+
<motion.path
|
|
93
|
+
animate={controls}
|
|
94
|
+
custom={index + 1}
|
|
95
|
+
d={d}
|
|
96
|
+
key={d}
|
|
97
|
+
variants={PATH_VARIANTS}
|
|
98
|
+
/>
|
|
99
|
+
))}
|
|
100
|
+
</svg>
|
|
101
|
+
</div>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
SunMediumIcon.displayName = "SunMediumIcon";
|
|
107
|
+
|
|
108
|
+
export { SunMediumIcon };
|
|
@@ -0,0 +1,137 @@
|
|
|
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 SunMoonIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface SunMoonIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const SUN_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
},
|
|
23
|
+
animate: {
|
|
24
|
+
rotate: [0, -5, 5, -2, 2, 0],
|
|
25
|
+
transition: {
|
|
26
|
+
duration: 1.5,
|
|
27
|
+
ease: "easeInOut",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const MOON_VARIANTS: Variants = {
|
|
33
|
+
normal: { opacity: 1 },
|
|
34
|
+
animate: (i: number) => ({
|
|
35
|
+
opacity: [0, 1],
|
|
36
|
+
transition: { delay: i * 0.1, duration: 0.3 },
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const SunMoonIcon = forwardRef<SunMoonIconHandle, SunMoonIconProps>(
|
|
41
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
42
|
+
const sunControls = useAnimation();
|
|
43
|
+
const moonControls = useAnimation();
|
|
44
|
+
const isControlledRef = useRef(false);
|
|
45
|
+
|
|
46
|
+
useImperativeHandle(ref, () => {
|
|
47
|
+
isControlledRef.current = true;
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
startAnimation: () => {
|
|
51
|
+
sunControls.start("animate");
|
|
52
|
+
moonControls.start("animate");
|
|
53
|
+
},
|
|
54
|
+
stopAnimation: () => {
|
|
55
|
+
sunControls.start("normal");
|
|
56
|
+
moonControls.start("normal");
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const handleMouseEnter = useCallback(
|
|
62
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
63
|
+
if (isControlledRef.current) {
|
|
64
|
+
onMouseEnter?.(e);
|
|
65
|
+
} else {
|
|
66
|
+
sunControls.start("animate");
|
|
67
|
+
moonControls.start("animate");
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
[sunControls, moonControls, onMouseEnter]
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const handleMouseLeave = useCallback(
|
|
74
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
75
|
+
if (isControlledRef.current) {
|
|
76
|
+
onMouseLeave?.(e);
|
|
77
|
+
} else {
|
|
78
|
+
sunControls.start("normal");
|
|
79
|
+
moonControls.start("normal");
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
[sunControls, moonControls, onMouseLeave]
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<div
|
|
87
|
+
className={cn(className)}
|
|
88
|
+
onMouseEnter={handleMouseEnter}
|
|
89
|
+
onMouseLeave={handleMouseLeave}
|
|
90
|
+
{...props}
|
|
91
|
+
>
|
|
92
|
+
<svg
|
|
93
|
+
fill="none"
|
|
94
|
+
height={size}
|
|
95
|
+
stroke="currentColor"
|
|
96
|
+
strokeLinecap="round"
|
|
97
|
+
strokeLinejoin="round"
|
|
98
|
+
strokeWidth="2"
|
|
99
|
+
viewBox="0 0 24 24"
|
|
100
|
+
width={size}
|
|
101
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
102
|
+
>
|
|
103
|
+
<motion.g
|
|
104
|
+
animate={sunControls}
|
|
105
|
+
initial="normal"
|
|
106
|
+
variants={SUN_VARIANTS}
|
|
107
|
+
>
|
|
108
|
+
<path d="M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4" />
|
|
109
|
+
</motion.g>
|
|
110
|
+
{[
|
|
111
|
+
"M12 2v2",
|
|
112
|
+
"M12 20v2",
|
|
113
|
+
"m4.9 4.9 1.4 1.4",
|
|
114
|
+
"m17.7 17.7 1.4 1.4",
|
|
115
|
+
"M2 12h2",
|
|
116
|
+
"M20 12h2",
|
|
117
|
+
"m6.3 17.7-1.4 1.4",
|
|
118
|
+
"m19.1 4.9-1.4 1.4",
|
|
119
|
+
].map((d, index) => (
|
|
120
|
+
<motion.path
|
|
121
|
+
animate={moonControls}
|
|
122
|
+
custom={index + 1}
|
|
123
|
+
d={d}
|
|
124
|
+
initial="normal"
|
|
125
|
+
key={d}
|
|
126
|
+
variants={MOON_VARIANTS}
|
|
127
|
+
/>
|
|
128
|
+
))}
|
|
129
|
+
</svg>
|
|
130
|
+
</div>
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
SunMoonIcon.displayName = "SunMoonIcon";
|
|
136
|
+
|
|
137
|
+
export { SunMoonIcon };
|
|
@@ -0,0 +1,107 @@
|
|
|
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 SunIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface SunIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const PATH_VARIANTS: Variants = {
|
|
20
|
+
normal: { opacity: 1 },
|
|
21
|
+
animate: (i: number) => ({
|
|
22
|
+
opacity: [0, 1],
|
|
23
|
+
transition: { delay: i * 0.1, duration: 0.3 },
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const SunIcon = forwardRef<SunIconHandle, SunIconProps>(
|
|
28
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
29
|
+
const controls = useAnimation();
|
|
30
|
+
const isControlledRef = useRef(false);
|
|
31
|
+
|
|
32
|
+
useImperativeHandle(ref, () => {
|
|
33
|
+
isControlledRef.current = true;
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
startAnimation: () => controls.start("animate"),
|
|
37
|
+
stopAnimation: () => controls.start("normal"),
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const handleMouseEnter = useCallback(
|
|
42
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
43
|
+
if (isControlledRef.current) {
|
|
44
|
+
onMouseEnter?.(e);
|
|
45
|
+
} else {
|
|
46
|
+
controls.start("animate");
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[controls, onMouseEnter]
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const handleMouseLeave = useCallback(
|
|
53
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
54
|
+
if (isControlledRef.current) {
|
|
55
|
+
onMouseLeave?.(e);
|
|
56
|
+
} else {
|
|
57
|
+
controls.start("normal");
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
[controls, onMouseLeave]
|
|
61
|
+
);
|
|
62
|
+
return (
|
|
63
|
+
<div
|
|
64
|
+
className={cn(className)}
|
|
65
|
+
onMouseEnter={handleMouseEnter}
|
|
66
|
+
onMouseLeave={handleMouseLeave}
|
|
67
|
+
{...props}
|
|
68
|
+
>
|
|
69
|
+
<svg
|
|
70
|
+
fill="none"
|
|
71
|
+
height={size}
|
|
72
|
+
stroke="currentColor"
|
|
73
|
+
strokeLinecap="round"
|
|
74
|
+
strokeLinejoin="round"
|
|
75
|
+
strokeWidth="2"
|
|
76
|
+
viewBox="0 0 24 24"
|
|
77
|
+
width={size}
|
|
78
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
79
|
+
>
|
|
80
|
+
<circle cx="12" cy="12" r="4" />
|
|
81
|
+
{[
|
|
82
|
+
"M12 2v2",
|
|
83
|
+
"m19.07 4.93-1.41 1.41",
|
|
84
|
+
"M20 12h2",
|
|
85
|
+
"m17.66 17.66 1.41 1.41",
|
|
86
|
+
"M12 20v2",
|
|
87
|
+
"m6.34 17.66-1.41 1.41",
|
|
88
|
+
"M2 12h2",
|
|
89
|
+
"m4.93 4.93 1.41 1.41",
|
|
90
|
+
].map((d, index) => (
|
|
91
|
+
<motion.path
|
|
92
|
+
animate={controls}
|
|
93
|
+
custom={index + 1}
|
|
94
|
+
d={d}
|
|
95
|
+
key={d}
|
|
96
|
+
variants={PATH_VARIANTS}
|
|
97
|
+
/>
|
|
98
|
+
))}
|
|
99
|
+
</svg>
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
SunIcon.displayName = "SunIcon";
|
|
106
|
+
|
|
107
|
+
export { SunIcon };
|
|
@@ -0,0 +1,133 @@
|
|
|
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 SunsetIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface SunsetIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const ARROW_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
y: 0,
|
|
22
|
+
},
|
|
23
|
+
animate: {
|
|
24
|
+
y: [0, 1, 0],
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const RAYS_VARIANTS: Variants = {
|
|
28
|
+
normal: { opacity: 1 },
|
|
29
|
+
animate: (i: number) => ({
|
|
30
|
+
opacity: [0, 1],
|
|
31
|
+
transition: { delay: i * 0.1, duration: 0.3 },
|
|
32
|
+
}),
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const SunsetIcon = forwardRef<SunsetIconHandle, SunsetIconProps>(
|
|
36
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
37
|
+
const arrowControls = useAnimation();
|
|
38
|
+
const raysControls = useAnimation();
|
|
39
|
+
const isControlledRef = useRef(false);
|
|
40
|
+
|
|
41
|
+
useImperativeHandle(ref, () => {
|
|
42
|
+
isControlledRef.current = true;
|
|
43
|
+
|
|
44
|
+
return {
|
|
45
|
+
startAnimation: () => {
|
|
46
|
+
arrowControls.start("animate");
|
|
47
|
+
raysControls.start("animate");
|
|
48
|
+
},
|
|
49
|
+
stopAnimation: () => {
|
|
50
|
+
arrowControls.start("normal");
|
|
51
|
+
raysControls.start("normal");
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const handleMouseEnter = useCallback(
|
|
57
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
58
|
+
if (isControlledRef.current) {
|
|
59
|
+
onMouseEnter?.(e);
|
|
60
|
+
} else {
|
|
61
|
+
arrowControls.start("animate");
|
|
62
|
+
raysControls.start("animate");
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
[arrowControls, raysControls, onMouseEnter]
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const handleMouseLeave = useCallback(
|
|
69
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
70
|
+
if (isControlledRef.current) {
|
|
71
|
+
onMouseLeave?.(e);
|
|
72
|
+
} else {
|
|
73
|
+
arrowControls.start("normal");
|
|
74
|
+
raysControls.start("normal");
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
[arrowControls, raysControls, onMouseLeave]
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<div
|
|
82
|
+
className={cn(className)}
|
|
83
|
+
onMouseEnter={handleMouseEnter}
|
|
84
|
+
onMouseLeave={handleMouseLeave}
|
|
85
|
+
{...props}
|
|
86
|
+
>
|
|
87
|
+
<svg
|
|
88
|
+
fill="none"
|
|
89
|
+
height={size}
|
|
90
|
+
stroke="currentColor"
|
|
91
|
+
strokeLinecap="round"
|
|
92
|
+
strokeLinejoin="round"
|
|
93
|
+
strokeWidth="2"
|
|
94
|
+
viewBox="0 0 24 24"
|
|
95
|
+
width={size}
|
|
96
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
97
|
+
>
|
|
98
|
+
<motion.g
|
|
99
|
+
animate={arrowControls}
|
|
100
|
+
initial="normal"
|
|
101
|
+
variants={ARROW_VARIANTS}
|
|
102
|
+
>
|
|
103
|
+
<path d="M12 10V2" />
|
|
104
|
+
<path d="m16 6-4 4-4-4" />
|
|
105
|
+
</motion.g>
|
|
106
|
+
|
|
107
|
+
{[
|
|
108
|
+
"m4.93 10.93 1.41 1.41",
|
|
109
|
+
"M2 18h2",
|
|
110
|
+
"M20 18h2",
|
|
111
|
+
"m19.07 10.93-1.41 1.41",
|
|
112
|
+
"M22 22H2",
|
|
113
|
+
,
|
|
114
|
+
].map((d, index) => (
|
|
115
|
+
<motion.path
|
|
116
|
+
animate={raysControls}
|
|
117
|
+
custom={index + 1}
|
|
118
|
+
d={d}
|
|
119
|
+
initial="normal"
|
|
120
|
+
key={d}
|
|
121
|
+
variants={RAYS_VARIANTS}
|
|
122
|
+
/>
|
|
123
|
+
))}
|
|
124
|
+
<path d="M16 18a4 4 0 0 0-8 0" />
|
|
125
|
+
</svg>
|
|
126
|
+
</div>
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
SunsetIcon.displayName = "SunsetIcon";
|
|
132
|
+
|
|
133
|
+
export { SunsetIcon };
|