@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 CircleDashedIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface CircleDashedIconProps 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 CircleDashedIcon = forwardRef<
|
|
28
|
+
CircleDashedIconHandle,
|
|
29
|
+
CircleDashedIconProps
|
|
30
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
31
|
+
const controls = useAnimation();
|
|
32
|
+
const isControlledRef = useRef(false);
|
|
33
|
+
|
|
34
|
+
useImperativeHandle(ref, () => {
|
|
35
|
+
isControlledRef.current = true;
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
startAnimation: () => controls.start("animate"),
|
|
39
|
+
stopAnimation: () => controls.start("normal"),
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const handleMouseEnter = useCallback(
|
|
44
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
45
|
+
if (isControlledRef.current) {
|
|
46
|
+
onMouseEnter?.(e);
|
|
47
|
+
} else {
|
|
48
|
+
controls.start("animate");
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
[controls, onMouseEnter]
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const handleMouseLeave = useCallback(
|
|
55
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
56
|
+
if (isControlledRef.current) {
|
|
57
|
+
onMouseLeave?.(e);
|
|
58
|
+
} else {
|
|
59
|
+
controls.start("normal");
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
[controls, onMouseLeave]
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<div
|
|
67
|
+
className={cn(className)}
|
|
68
|
+
onMouseEnter={handleMouseEnter}
|
|
69
|
+
onMouseLeave={handleMouseLeave}
|
|
70
|
+
{...props}
|
|
71
|
+
>
|
|
72
|
+
<svg
|
|
73
|
+
fill="none"
|
|
74
|
+
height={size}
|
|
75
|
+
stroke="currentColor"
|
|
76
|
+
strokeLinecap="round"
|
|
77
|
+
strokeLinejoin="round"
|
|
78
|
+
strokeWidth="2"
|
|
79
|
+
viewBox="0 0 24 24"
|
|
80
|
+
width={size}
|
|
81
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
82
|
+
>
|
|
83
|
+
{[
|
|
84
|
+
"M10.1 2.182a10 10 0 0 1 3.8 0",
|
|
85
|
+
"M13.9 21.818a10 10 0 0 1-3.8 0",
|
|
86
|
+
"M17.609 3.721a10 10 0 0 1 2.69 2.7",
|
|
87
|
+
"M2.182 13.9a10 10 0 0 1 0-3.8",
|
|
88
|
+
"M20.279 17.609a10 10 0 0 1-2.7 2.69",
|
|
89
|
+
"M21.818 10.1a10 10 0 0 1 0 3.8",
|
|
90
|
+
"M3.721 6.391a10 10 0 0 1 2.7-2.69",
|
|
91
|
+
"M6.391 20.279a10 10 0 0 1-2.69-2.7",
|
|
92
|
+
].map((d, index) => (
|
|
93
|
+
<motion.path
|
|
94
|
+
animate={controls}
|
|
95
|
+
custom={index + 1}
|
|
96
|
+
d={d}
|
|
97
|
+
key={d}
|
|
98
|
+
variants={PATH_VARIANTS}
|
|
99
|
+
/>
|
|
100
|
+
))}
|
|
101
|
+
</svg>
|
|
102
|
+
</div>
|
|
103
|
+
);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
CircleDashedIcon.displayName = "CircleDashedIcon";
|
|
107
|
+
|
|
108
|
+
export { CircleDashedIcon };
|
|
@@ -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 CircleDollarSignIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface CircleDollarSignIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const DOLLAR_MAIN_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
opacity: 1,
|
|
22
|
+
pathLength: 1,
|
|
23
|
+
transition: {
|
|
24
|
+
duration: 0.4,
|
|
25
|
+
opacity: { duration: 0.1 },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
animate: {
|
|
29
|
+
opacity: [0, 1],
|
|
30
|
+
pathLength: [0, 1],
|
|
31
|
+
transition: {
|
|
32
|
+
duration: 0.6,
|
|
33
|
+
opacity: { duration: 0.1 },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const DOLLAR_SECONDARY_VARIANTS: Variants = {
|
|
39
|
+
normal: {
|
|
40
|
+
opacity: 1,
|
|
41
|
+
pathLength: 1,
|
|
42
|
+
pathOffset: 0,
|
|
43
|
+
transition: {
|
|
44
|
+
delay: 0.3,
|
|
45
|
+
duration: 0.3,
|
|
46
|
+
opacity: { duration: 0.1, delay: 0.3 },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
animate: {
|
|
50
|
+
opacity: [0, 1],
|
|
51
|
+
pathLength: [0, 1],
|
|
52
|
+
pathOffset: [1, 0],
|
|
53
|
+
transition: {
|
|
54
|
+
delay: 0.5,
|
|
55
|
+
duration: 0.4,
|
|
56
|
+
opacity: { duration: 0.1, delay: 0.5 },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const CircleDollarSignIcon = forwardRef<
|
|
62
|
+
CircleDollarSignIconHandle,
|
|
63
|
+
CircleDollarSignIconProps
|
|
64
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
65
|
+
const controls = useAnimation();
|
|
66
|
+
const isControlledRef = useRef(false);
|
|
67
|
+
|
|
68
|
+
useImperativeHandle(ref, () => {
|
|
69
|
+
isControlledRef.current = true;
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
startAnimation: () => controls.start("animate"),
|
|
73
|
+
stopAnimation: () => controls.start("normal"),
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
const handleMouseEnter = useCallback(
|
|
78
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
79
|
+
if (isControlledRef.current) {
|
|
80
|
+
onMouseEnter?.(e);
|
|
81
|
+
} else {
|
|
82
|
+
controls.start("animate");
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
[controls, onMouseEnter]
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
const handleMouseLeave = useCallback(
|
|
89
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
90
|
+
if (isControlledRef.current) {
|
|
91
|
+
onMouseLeave?.(e);
|
|
92
|
+
} else {
|
|
93
|
+
controls.start("normal");
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
[controls, onMouseLeave]
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
return (
|
|
100
|
+
<div
|
|
101
|
+
className={cn(className)}
|
|
102
|
+
onMouseEnter={handleMouseEnter}
|
|
103
|
+
onMouseLeave={handleMouseLeave}
|
|
104
|
+
{...props}
|
|
105
|
+
>
|
|
106
|
+
<svg
|
|
107
|
+
fill="none"
|
|
108
|
+
height={size}
|
|
109
|
+
stroke="currentColor"
|
|
110
|
+
strokeLinecap="round"
|
|
111
|
+
strokeLinejoin="round"
|
|
112
|
+
strokeWidth="2"
|
|
113
|
+
viewBox="0 0 24 24"
|
|
114
|
+
width={size}
|
|
115
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
116
|
+
>
|
|
117
|
+
<circle cx="12" cy="12" r="10" />
|
|
118
|
+
<motion.path
|
|
119
|
+
animate={controls}
|
|
120
|
+
d="M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8"
|
|
121
|
+
initial="normal"
|
|
122
|
+
variants={DOLLAR_MAIN_VARIANTS}
|
|
123
|
+
/>
|
|
124
|
+
<motion.path
|
|
125
|
+
animate={controls}
|
|
126
|
+
d="M12 18V6"
|
|
127
|
+
initial="normal"
|
|
128
|
+
variants={DOLLAR_SECONDARY_VARIANTS}
|
|
129
|
+
/>
|
|
130
|
+
</svg>
|
|
131
|
+
</div>
|
|
132
|
+
);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
CircleDollarSignIcon.displayName = "CircleDollarSignIcon";
|
|
136
|
+
|
|
137
|
+
export { CircleDollarSignIcon };
|
|
@@ -0,0 +1,98 @@
|
|
|
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 CircleHelpIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface CircleHelpIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const VARIANTS: Variants = {
|
|
20
|
+
normal: { rotate: 0 },
|
|
21
|
+
animate: { rotate: [0, -10, 10, -10, 0] },
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const CircleHelpIcon = forwardRef<CircleHelpIconHandle, CircleHelpIconProps>(
|
|
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
|
+
fill="none"
|
|
69
|
+
height={size}
|
|
70
|
+
stroke="currentColor"
|
|
71
|
+
strokeLinecap="round"
|
|
72
|
+
strokeLinejoin="round"
|
|
73
|
+
strokeWidth="2"
|
|
74
|
+
viewBox="0 0 24 24"
|
|
75
|
+
width={size}
|
|
76
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
77
|
+
>
|
|
78
|
+
<circle cx="12" cy="12" r="10" />
|
|
79
|
+
<motion.g
|
|
80
|
+
animate={controls}
|
|
81
|
+
transition={{
|
|
82
|
+
duration: 0.5,
|
|
83
|
+
ease: "easeInOut",
|
|
84
|
+
}}
|
|
85
|
+
variants={VARIANTS}
|
|
86
|
+
>
|
|
87
|
+
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" />
|
|
88
|
+
<path d="M12 17h.01" />
|
|
89
|
+
</motion.g>
|
|
90
|
+
</svg>
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
CircleHelpIcon.displayName = "CircleHelpIcon";
|
|
97
|
+
|
|
98
|
+
export { CircleHelpIcon };
|
|
@@ -0,0 +1,121 @@
|
|
|
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 ClapIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface ClapIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
originX: "4px",
|
|
23
|
+
originY: "20px",
|
|
24
|
+
},
|
|
25
|
+
animate: {
|
|
26
|
+
rotate: [-10, -10, 0],
|
|
27
|
+
transition: {
|
|
28
|
+
duration: 0.8,
|
|
29
|
+
times: [0, 0.5, 1],
|
|
30
|
+
ease: "easeInOut",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const CLAP_VARIANTS: Variants = {
|
|
36
|
+
normal: {
|
|
37
|
+
rotate: 0,
|
|
38
|
+
originX: "3px",
|
|
39
|
+
originY: "11px",
|
|
40
|
+
},
|
|
41
|
+
animate: {
|
|
42
|
+
rotate: [0, -10, 16, 0],
|
|
43
|
+
transition: {
|
|
44
|
+
duration: 0.4,
|
|
45
|
+
times: [0, 0.3, 0.6, 1],
|
|
46
|
+
ease: "easeInOut",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const ClapIcon = forwardRef<ClapIconHandle, ClapIconProps>(
|
|
52
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
53
|
+
const controls = useAnimation();
|
|
54
|
+
const isControlledRef = useRef(false);
|
|
55
|
+
|
|
56
|
+
useImperativeHandle(ref, () => {
|
|
57
|
+
isControlledRef.current = true;
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
startAnimation: () => controls.start("animate"),
|
|
61
|
+
stopAnimation: () => controls.start("normal"),
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
const handleMouseEnter = useCallback(
|
|
66
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
67
|
+
if (isControlledRef.current) {
|
|
68
|
+
onMouseEnter?.(e);
|
|
69
|
+
} else {
|
|
70
|
+
controls.start("animate");
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
[controls, onMouseEnter]
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
const handleMouseLeave = useCallback(
|
|
77
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
78
|
+
if (isControlledRef.current) {
|
|
79
|
+
onMouseLeave?.(e);
|
|
80
|
+
} else {
|
|
81
|
+
controls.start("normal");
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
[controls, onMouseLeave]
|
|
85
|
+
);
|
|
86
|
+
return (
|
|
87
|
+
<div
|
|
88
|
+
className={cn(className)}
|
|
89
|
+
onMouseEnter={handleMouseEnter}
|
|
90
|
+
onMouseLeave={handleMouseLeave}
|
|
91
|
+
{...props}
|
|
92
|
+
>
|
|
93
|
+
<svg
|
|
94
|
+
fill="none"
|
|
95
|
+
height={size}
|
|
96
|
+
stroke="currentColor"
|
|
97
|
+
strokeLinecap="round"
|
|
98
|
+
strokeLinejoin="round"
|
|
99
|
+
strokeWidth="2"
|
|
100
|
+
style={{ overflow: "visible" }}
|
|
101
|
+
viewBox="0 0 24 24"
|
|
102
|
+
width={size}
|
|
103
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
104
|
+
>
|
|
105
|
+
<motion.g animate={controls} variants={VARIANTS}>
|
|
106
|
+
<motion.g animate={controls} variants={CLAP_VARIANTS}>
|
|
107
|
+
<path d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z" />
|
|
108
|
+
<path d="m6.2 5.3 3.1 3.9" />
|
|
109
|
+
<path d="m12.4 3.4 3.1 4" />
|
|
110
|
+
</motion.g>
|
|
111
|
+
<path d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z" />
|
|
112
|
+
</motion.g>
|
|
113
|
+
</svg>
|
|
114
|
+
</div>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
ClapIcon.displayName = "ClapIcon";
|
|
120
|
+
|
|
121
|
+
export { ClapIcon };
|
|
@@ -0,0 +1,109 @@
|
|
|
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 ClipboardCheckIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface ClipboardCheckIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const CHECK_VARIANTS: Variants = {
|
|
20
|
+
normal: {
|
|
21
|
+
pathLength: 1,
|
|
22
|
+
opacity: 0,
|
|
23
|
+
transition: {
|
|
24
|
+
duration: 0.3,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
animate: {
|
|
28
|
+
pathLength: [0, 1],
|
|
29
|
+
opacity: [0, 1],
|
|
30
|
+
transition: {
|
|
31
|
+
pathLength: { duration: 0.3, ease: "easeInOut" },
|
|
32
|
+
opacity: { duration: 0.3, ease: "easeInOut" },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const ClipboardCheckIcon = forwardRef<
|
|
38
|
+
ClipboardCheckIconHandle,
|
|
39
|
+
ClipboardCheckIconProps
|
|
40
|
+
>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
41
|
+
const controls = useAnimation();
|
|
42
|
+
const isControlledRef = useRef(false);
|
|
43
|
+
|
|
44
|
+
useImperativeHandle(ref, () => {
|
|
45
|
+
isControlledRef.current = true;
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
startAnimation: () => controls.start("animate"),
|
|
49
|
+
stopAnimation: () => controls.start("normal"),
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const handleMouseEnter = useCallback(
|
|
54
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
55
|
+
if (isControlledRef.current) {
|
|
56
|
+
onMouseEnter?.(e);
|
|
57
|
+
} else {
|
|
58
|
+
controls.start("animate");
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
[controls, onMouseEnter]
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
const handleMouseLeave = useCallback(
|
|
65
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
66
|
+
if (isControlledRef.current) {
|
|
67
|
+
onMouseLeave?.(e);
|
|
68
|
+
} else {
|
|
69
|
+
controls.start("normal");
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
[controls, onMouseLeave]
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<div
|
|
77
|
+
className={cn(className)}
|
|
78
|
+
onMouseEnter={handleMouseEnter}
|
|
79
|
+
onMouseLeave={handleMouseLeave}
|
|
80
|
+
{...props}
|
|
81
|
+
>
|
|
82
|
+
<svg
|
|
83
|
+
fill="none"
|
|
84
|
+
height={size}
|
|
85
|
+
stroke="currentColor"
|
|
86
|
+
strokeLinecap="round"
|
|
87
|
+
strokeLinejoin="round"
|
|
88
|
+
strokeWidth="2"
|
|
89
|
+
viewBox="0 0 24 24"
|
|
90
|
+
width={size}
|
|
91
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
92
|
+
>
|
|
93
|
+
<rect height="4" rx="1" ry="1" width="8" x="8" y="2" />
|
|
94
|
+
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />
|
|
95
|
+
<motion.path
|
|
96
|
+
animate={controls}
|
|
97
|
+
d="m9 14 2 2 4-4"
|
|
98
|
+
initial="normal"
|
|
99
|
+
style={{ transformOrigin: "center" }}
|
|
100
|
+
variants={CHECK_VARIANTS}
|
|
101
|
+
/>
|
|
102
|
+
</svg>
|
|
103
|
+
</div>
|
|
104
|
+
);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
ClipboardCheckIcon.displayName = "ClipboardCheckIcon";
|
|
108
|
+
|
|
109
|
+
export { ClipboardCheckIcon };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { Transition, 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 ClockIconHandle {
|
|
11
|
+
startAnimation: () => void;
|
|
12
|
+
stopAnimation: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface ClockIconProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const HAND_TRANSITION: Transition = {
|
|
20
|
+
duration: 0.6,
|
|
21
|
+
ease: [0.4, 0, 0.2, 1],
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const HAND_VARIANTS: Variants = {
|
|
25
|
+
normal: {
|
|
26
|
+
rotate: 0,
|
|
27
|
+
originX: "0%",
|
|
28
|
+
originY: "100%",
|
|
29
|
+
},
|
|
30
|
+
animate: {
|
|
31
|
+
rotate: 360,
|
|
32
|
+
originX: "0%",
|
|
33
|
+
originY: "100%",
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const MINUTE_HAND_TRANSITION: Transition = {
|
|
38
|
+
duration: 0.5,
|
|
39
|
+
ease: "easeInOut",
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const MINUTE_HAND_VARIANTS: Variants = {
|
|
43
|
+
normal: {
|
|
44
|
+
rotate: 0,
|
|
45
|
+
originX: "0%",
|
|
46
|
+
originY: "100%",
|
|
47
|
+
},
|
|
48
|
+
animate: {
|
|
49
|
+
rotate: 45,
|
|
50
|
+
originX: "0%",
|
|
51
|
+
originY: "100%",
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const ClockIcon = forwardRef<ClockIconHandle, ClockIconProps>(
|
|
56
|
+
({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
|
|
57
|
+
const controls = useAnimation();
|
|
58
|
+
const isControlledRef = useRef(false);
|
|
59
|
+
|
|
60
|
+
useImperativeHandle(ref, () => {
|
|
61
|
+
isControlledRef.current = true;
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
startAnimation: () => controls.start("animate"),
|
|
65
|
+
stopAnimation: () => controls.start("normal"),
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const handleMouseEnter = useCallback(
|
|
70
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
71
|
+
if (isControlledRef.current) {
|
|
72
|
+
onMouseEnter?.(e);
|
|
73
|
+
} else {
|
|
74
|
+
controls.start("animate");
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
[controls, onMouseEnter]
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
const handleMouseLeave = useCallback(
|
|
81
|
+
(e: React.MouseEvent<HTMLDivElement>) => {
|
|
82
|
+
if (isControlledRef.current) {
|
|
83
|
+
onMouseLeave?.(e);
|
|
84
|
+
} else {
|
|
85
|
+
controls.start("normal");
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
[controls, onMouseLeave]
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
return (
|
|
92
|
+
<div
|
|
93
|
+
className={cn(className)}
|
|
94
|
+
onMouseEnter={handleMouseEnter}
|
|
95
|
+
onMouseLeave={handleMouseLeave}
|
|
96
|
+
{...props}
|
|
97
|
+
>
|
|
98
|
+
<svg
|
|
99
|
+
fill="none"
|
|
100
|
+
height={size}
|
|
101
|
+
stroke="currentColor"
|
|
102
|
+
strokeLinecap="round"
|
|
103
|
+
strokeLinejoin="round"
|
|
104
|
+
strokeWidth="2"
|
|
105
|
+
viewBox="0 0 24 24"
|
|
106
|
+
width={size}
|
|
107
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
108
|
+
>
|
|
109
|
+
<circle cx="12" cy="12" r="10" />
|
|
110
|
+
<motion.line
|
|
111
|
+
animate={controls}
|
|
112
|
+
initial="normal"
|
|
113
|
+
transition={HAND_TRANSITION}
|
|
114
|
+
variants={HAND_VARIANTS}
|
|
115
|
+
x1="12"
|
|
116
|
+
x2="12"
|
|
117
|
+
y1="12"
|
|
118
|
+
y2="6"
|
|
119
|
+
/>
|
|
120
|
+
<motion.line
|
|
121
|
+
animate={controls}
|
|
122
|
+
initial="normal"
|
|
123
|
+
transition={MINUTE_HAND_TRANSITION}
|
|
124
|
+
variants={MINUTE_HAND_VARIANTS}
|
|
125
|
+
x1="12"
|
|
126
|
+
x2="16"
|
|
127
|
+
y1="12"
|
|
128
|
+
y2="12"
|
|
129
|
+
/>
|
|
130
|
+
</svg>
|
|
131
|
+
</div>
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
ClockIcon.displayName = "ClockIcon";
|
|
137
|
+
|
|
138
|
+
export { ClockIcon };
|