@nordmanai/nif 0.2.2 → 0.2.3
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/README.md +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +31342 -11760
- package/dist/styles.css +1 -1
- package/dist/ui/components/nm-ai/nm-ai.d.ts +4 -0
- package/dist/ui/components/nm-alert/nm-alert.d.ts +13 -0
- package/dist/ui/components/nm-button/nm-button.d.ts +4 -2
- package/dist/ui/components/nm-checkbox/nm-checkbox.d.ts +1 -1
- package/dist/ui/components/nm-chip/nm-chip.d.ts +5 -2
- package/dist/ui/components/nm-collapsible/nm-collapsible.d.ts +6 -0
- package/dist/ui/components/nm-combobox/nm-combobox.d.ts +1 -1
- package/dist/ui/components/nm-command/nm-command.d.ts +8 -1
- package/dist/ui/components/nm-composer/nm-composer.d.ts +47 -4
- package/dist/ui/components/nm-context-menu/nm-context-menu.d.ts +1 -1
- package/dist/ui/components/nm-dialog/nm-dialog.d.ts +1 -1
- package/dist/ui/components/nm-dropdown/nm-dropdown.d.ts +1 -1
- package/dist/ui/components/nm-dropdown-menu/nm-dropdown-menu.d.ts +11 -2
- package/dist/ui/components/nm-hover-card/nm-hover-card.d.ts +1 -1
- package/dist/ui/components/nm-icon/animated/activity.d.ts +72 -0
- package/dist/ui/components/nm-icon/animated/archive.d.ts +31 -0
- package/dist/ui/components/nm-icon/animated/arrow-down.d.ts +128 -0
- package/dist/ui/components/nm-icon/animated/arrow-left.d.ts +128 -0
- package/dist/ui/components/nm-icon/animated/arrow-right.d.ts +128 -0
- package/dist/ui/components/nm-icon/animated/arrow-up-down.d.ts +119 -0
- package/dist/ui/components/nm-icon/animated/arrow-up.d.ts +128 -0
- package/dist/ui/components/nm-icon/animated/audio-lines.d.ts +99 -0
- package/dist/ui/components/nm-icon/animated/bookmark-plus.d.ts +35 -0
- package/dist/ui/components/nm-icon/animated/bookmark.d.ts +52 -0
- package/dist/ui/components/nm-icon/animated/bot.d.ts +90 -0
- package/dist/ui/components/nm-icon/animated/calendar-days.d.ts +87 -0
- package/dist/ui/components/nm-icon/animated/calendar.d.ts +36 -0
- package/dist/ui/components/nm-icon/animated/camera.d.ts +50 -0
- package/dist/ui/components/nm-icon/animated/chart-column-increasing.d.ts +37 -0
- package/dist/ui/components/nm-icon/animated/chart-column.d.ts +86 -0
- package/dist/ui/components/nm-icon/animated/chart-line.d.ts +51 -0
- package/dist/ui/components/nm-icon/animated/check-check.d.ts +50 -0
- package/dist/ui/components/nm-icon/animated/check.d.ts +25 -0
- package/dist/ui/components/nm-icon/animated/chevron-down.d.ts +39 -0
- package/dist/ui/components/nm-icon/animated/chevron-left.d.ts +39 -0
- package/dist/ui/components/nm-icon/animated/chevron-right.d.ts +39 -0
- package/dist/ui/components/nm-icon/animated/chevron-up.d.ts +39 -0
- package/dist/ui/components/nm-icon/animated/circle-alert.d.ts +23 -0
- package/dist/ui/components/nm-icon/animated/circle-check-big.d.ts +26 -0
- package/dist/ui/components/nm-icon/animated/circle-check.d.ts +26 -0
- package/dist/ui/components/nm-icon/animated/circle-plus.d.ts +44 -0
- package/dist/ui/components/nm-icon/animated/circle-question-mark.d.ts +22 -0
- package/dist/ui/components/nm-icon/animated/circle-x.d.ts +44 -0
- package/dist/ui/components/nm-icon/animated/clock-3.d.ts +44 -0
- package/dist/ui/components/nm-icon/animated/clock-4.d.ts +44 -0
- package/dist/ui/components/nm-icon/animated/clock.d.ts +44 -0
- package/dist/ui/components/nm-icon/animated/cloud-sun.d.ts +9 -0
- package/dist/ui/components/nm-icon/animated/cloud-upload.d.ts +45 -0
- package/dist/ui/components/nm-icon/animated/copy.d.ts +135 -0
- package/dist/ui/components/nm-icon/animated/download.d.ts +45 -0
- package/dist/ui/components/nm-icon/animated/ellipsis.d.ts +141 -0
- package/dist/ui/components/nm-icon/animated/external-link.d.ts +49 -0
- package/dist/ui/components/nm-icon/animated/eye-off.d.ts +23 -0
- package/dist/ui/components/nm-icon/animated/eye.d.ts +39 -0
- package/dist/ui/components/nm-icon/animated/fast-forward.d.ts +34 -0
- package/dist/ui/components/nm-icon/animated/file-clock.d.ts +48 -0
- package/dist/ui/components/nm-icon/animated/file-text.d.ts +56 -0
- package/dist/ui/components/nm-icon/animated/file.d.ts +67 -0
- package/dist/ui/components/nm-icon/animated/folder.d.ts +92 -0
- package/dist/ui/components/nm-icon/animated/gauge.d.ts +47 -0
- package/dist/ui/components/nm-icon/animated/globe.d.ts +21 -0
- package/dist/ui/components/nm-icon/animated/graduation-cap.d.ts +41 -0
- package/dist/ui/components/nm-icon/animated/headphones.d.ts +50 -0
- package/dist/ui/components/nm-icon/animated/image.d.ts +40 -0
- package/dist/ui/components/nm-icon/animated/index.d.ts +2 -0
- package/dist/ui/components/nm-icon/animated/info.d.ts +37 -0
- package/dist/ui/components/nm-icon/animated/key-round.d.ts +37 -0
- package/dist/ui/components/nm-icon/animated/layers.d.ts +61 -0
- package/dist/ui/components/nm-icon/animated/layout-dashboard.d.ts +131 -0
- package/dist/ui/components/nm-icon/animated/library-big.d.ts +29 -0
- package/dist/ui/components/nm-icon/animated/lightbulb.d.ts +51 -0
- package/dist/ui/components/nm-icon/animated/link.d.ts +193 -0
- package/dist/ui/components/nm-icon/animated/list-filter.d.ts +13 -0
- package/dist/ui/components/nm-icon/animated/list.d.ts +111 -0
- package/dist/ui/components/nm-icon/animated/loader-circle.d.ts +24 -0
- package/dist/ui/components/nm-icon/animated/lock.d.ts +94 -0
- package/dist/ui/components/nm-icon/animated/log-out.d.ts +45 -0
- package/dist/ui/components/nm-icon/animated/mail.d.ts +100 -0
- package/dist/ui/components/nm-icon/animated/map-pin.d.ts +67 -0
- package/dist/ui/components/nm-icon/animated/menu.d.ts +57 -0
- package/dist/ui/components/nm-icon/animated/message-circle-dashed.d.ts +34 -0
- package/dist/ui/components/nm-icon/animated/message-circle.d.ts +23 -0
- package/dist/ui/components/nm-icon/animated/message-square-plus.d.ts +49 -0
- package/dist/ui/components/nm-icon/animated/message-square-text.d.ts +104 -0
- package/dist/ui/components/nm-icon/animated/message-square.d.ts +23 -0
- package/dist/ui/components/nm-icon/animated/mic-off.d.ts +23 -0
- package/dist/ui/components/nm-icon/animated/mic.d.ts +37 -0
- package/dist/ui/components/nm-icon/animated/minimize.d.ts +139 -0
- package/dist/ui/components/nm-icon/animated/minus.d.ts +54 -0
- package/dist/ui/components/nm-icon/animated/moon.d.ts +62 -0
- package/dist/ui/components/nm-icon/animated/music.d.ts +22 -0
- package/dist/ui/components/nm-icon/animated/notebook-pen.d.ts +41 -0
- package/dist/ui/components/nm-icon/animated/panel-left.d.ts +29 -0
- package/dist/ui/components/nm-icon/animated/panel-right.d.ts +29 -0
- package/dist/ui/components/nm-icon/animated/paperclip.d.ts +49 -0
- package/dist/ui/components/nm-icon/animated/pause.d.ts +59 -0
- package/dist/ui/components/nm-icon/animated/pencil.d.ts +25 -0
- package/dist/ui/components/nm-icon/animated/pin-off.d.ts +44 -0
- package/dist/ui/components/nm-icon/animated/pin.d.ts +85 -0
- package/dist/ui/components/nm-icon/animated/plane-takeoff.d.ts +25 -0
- package/dist/ui/components/nm-icon/animated/play.d.ts +43 -0
- package/dist/ui/components/nm-icon/animated/plug-zap.d.ts +49 -0
- package/dist/ui/components/nm-icon/animated/plus.d.ts +95 -0
- package/dist/ui/components/nm-icon/animated/radio.d.ts +24 -0
- package/dist/ui/components/nm-icon/animated/refresh-cw.d.ts +55 -0
- package/dist/ui/components/nm-icon/animated/rocket.d.ts +48 -0
- package/dist/ui/components/nm-icon/animated/rotate-ccw.d.ts +51 -0
- package/dist/ui/components/nm-icon/animated/rotate-cw.d.ts +71 -0
- package/dist/ui/components/nm-icon/animated/save.d.ts +21 -0
- package/dist/ui/components/nm-icon/animated/search.d.ts +42 -0
- package/dist/ui/components/nm-icon/animated/send.d.ts +39 -0
- package/dist/ui/components/nm-icon/animated/settings.d.ts +39 -0
- package/dist/ui/components/nm-icon/animated/share-2.d.ts +122 -0
- package/dist/ui/components/nm-icon/animated/share.d.ts +40 -0
- package/dist/ui/components/nm-icon/animated/shield-check.d.ts +36 -0
- package/dist/ui/components/nm-icon/animated/shopping-bag.d.ts +35 -0
- package/dist/ui/components/nm-icon/animated/sliders-horizontal.d.ts +239 -0
- package/dist/ui/components/nm-icon/animated/sparkles.d.ts +205 -0
- package/dist/ui/components/nm-icon/animated/star.d.ts +48 -0
- package/dist/ui/components/nm-icon/animated/sun.d.ts +9 -0
- package/dist/ui/components/nm-icon/animated/terminal.d.ts +22 -0
- package/dist/ui/components/nm-icon/animated/trash-2.d.ts +61 -0
- package/dist/ui/components/nm-icon/animated/trash.d.ts +37 -0
- package/dist/ui/components/nm-icon/animated/trending-up.d.ts +40 -0
- package/dist/ui/components/nm-icon/animated/triangle-alert.d.ts +37 -0
- package/dist/ui/components/nm-icon/animated/trophy.d.ts +23 -0
- package/dist/ui/components/nm-icon/animated/type.d.ts +57 -0
- package/dist/ui/components/nm-icon/animated/upload.d.ts +49 -0
- package/dist/ui/components/nm-icon/animated/user-round.d.ts +33 -0
- package/dist/ui/components/nm-icon/animated/user.d.ts +33 -0
- package/dist/ui/components/nm-icon/animated/users-round.d.ts +93 -0
- package/dist/ui/components/nm-icon/animated/users.d.ts +93 -0
- package/dist/ui/components/nm-icon/animated/volume-2.d.ts +10 -0
- package/dist/ui/components/nm-icon/animated/wand-sparkles.d.ts +71 -0
- package/dist/ui/components/nm-icon/animated/x.d.ts +95 -0
- package/dist/ui/components/nm-icon/animated/zap.d.ts +65 -0
- package/dist/ui/components/nm-icon/animated/zoom-in.d.ts +35 -0
- package/dist/ui/components/nm-icon/animated/zoom-out.d.ts +53 -0
- package/dist/ui/components/nm-icon/nm-icon.d.ts +6 -3
- package/dist/ui/components/nm-icon/nm-lucide-extended.d.ts +3 -0
- package/dist/ui/components/nm-icon/nm-lucide.d.ts +7 -3
- package/dist/ui/components/nm-menubar/nm-menubar.d.ts +2 -2
- package/dist/ui/components/nm-panel/nm-panel.d.ts +5 -1
- package/dist/ui/components/nm-popover/nm-popover.d.ts +2 -2
- package/dist/ui/components/nm-progress/nm-progress.d.ts +1 -1
- package/dist/ui/components/nm-radio-group/nm-radio-group.d.ts +2 -2
- package/dist/ui/components/nm-select/nm-select.d.ts +1 -1
- package/dist/ui/components/nm-skeleton/nm-skeleton.d.ts +3 -0
- package/dist/ui/components/nm-slider/nm-slider.d.ts +1 -1
- package/dist/ui/components/nm-small-icon-button/nm-small-icon-button.d.ts +3 -3
- package/dist/ui/components/nm-spinner/nm-spinner.d.ts +3 -0
- package/dist/ui/components/nm-switch/nm-switch.d.ts +1 -1
- package/dist/ui/components/nm-tabs/nm-tabs.d.ts +6 -0
- package/dist/ui/components/nm-toggle/nm-toggle.d.ts +1 -1
- package/dist/ui/components/nm-tooltip/nm-tooltip.d.ts +1 -1
- package/dist/ui/components/nm-voice-orb/nm-voice-orb.d.ts +18 -0
- package/dist/ui/components/nm-voice-orb/use-nm-voice-orb-theme.d.ts +2 -0
- package/dist/ui/config/nm-app-panel.d.ts +2 -0
- package/dist/ui/config/nm-button.d.ts +6 -0
- package/dist/ui/config/nm-composer.d.ts +11 -0
- package/dist/ui/config/nm-icons-extended.d.ts +1 -0
- package/dist/ui/config/nm-icons.d.ts +4 -1
- package/dist/ui/config/nm-voice-orb.d.ts +22 -0
- package/dist/ui/lib/nm-motion.d.ts +29 -0
- package/package.json +12 -8
- package/registry/index.json +5099 -71
- package/registry/ui/components/nm-ai/nm-ai.tsx +7 -4
- package/registry/ui/components/nm-alert/nm-alert.css +85 -0
- package/registry/ui/components/nm-alert/nm-alert.tsx +35 -0
- package/registry/ui/components/nm-button/nm-button.css +24 -0
- package/registry/ui/components/nm-button/nm-button.tsx +25 -11
- package/registry/ui/components/nm-checkbox/nm-checkbox.tsx +1 -1
- package/registry/ui/components/nm-chip/nm-chip.css +25 -0
- package/registry/ui/components/nm-chip/nm-chip.tsx +9 -3
- package/registry/ui/components/nm-collapsible/nm-collapsible.css +3 -0
- package/registry/ui/components/nm-collapsible/nm-collapsible.tsx +16 -0
- package/registry/ui/components/nm-combobox/nm-combobox.tsx +1 -1
- package/registry/ui/components/nm-command/nm-command.css +48 -0
- package/registry/ui/components/nm-command/nm-command.tsx +19 -5
- package/registry/ui/components/nm-composer/nm-composer.css +87 -3
- package/registry/ui/components/nm-composer/nm-composer.tsx +321 -33
- package/registry/ui/components/nm-context-menu/nm-context-menu.tsx +1 -1
- package/registry/ui/components/nm-dialog/nm-dialog.css +5 -6
- package/registry/ui/components/nm-dialog/nm-dialog.tsx +1 -1
- package/registry/ui/components/nm-dropdown/nm-dropdown.css +5 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown.tsx +28 -249
- package/registry/ui/components/nm-dropdown-menu/nm-dropdown-menu.css +8 -0
- package/registry/ui/components/nm-dropdown-menu/nm-dropdown-menu.tsx +85 -6
- package/registry/ui/components/nm-hover-card/nm-hover-card.tsx +1 -1
- package/registry/ui/components/nm-icon/animated/activity.tsx +109 -0
- package/registry/ui/components/nm-icon/animated/archive.tsx +85 -0
- package/registry/ui/components/nm-icon/animated/arrow-down.tsx +149 -0
- package/registry/ui/components/nm-icon/animated/arrow-left.tsx +149 -0
- package/registry/ui/components/nm-icon/animated/arrow-right.tsx +149 -0
- package/registry/ui/components/nm-icon/animated/arrow-up-down.tsx +168 -0
- package/registry/ui/components/nm-icon/animated/arrow-up.tsx +149 -0
- package/registry/ui/components/nm-icon/animated/audio-lines.tsx +190 -0
- package/registry/ui/components/nm-icon/animated/bookmark-plus.tsx +65 -0
- package/registry/ui/components/nm-icon/animated/bookmark.tsx +77 -0
- package/registry/ui/components/nm-icon/animated/bot.tsx +167 -0
- package/registry/ui/components/nm-icon/animated/calendar-days.tsx +128 -0
- package/registry/ui/components/nm-icon/animated/calendar.tsx +83 -0
- package/registry/ui/components/nm-icon/animated/camera.tsx +85 -0
- package/registry/ui/components/nm-icon/animated/chart-column-increasing.tsx +150 -0
- package/registry/ui/components/nm-icon/animated/chart-column.tsx +179 -0
- package/registry/ui/components/nm-icon/animated/chart-line.tsx +88 -0
- package/registry/ui/components/nm-icon/animated/check-check.tsx +105 -0
- package/registry/ui/components/nm-icon/animated/check.tsx +70 -0
- package/registry/ui/components/nm-icon/animated/chevron-down.tsx +73 -0
- package/registry/ui/components/nm-icon/animated/chevron-left.tsx +73 -0
- package/registry/ui/components/nm-icon/animated/chevron-right.tsx +73 -0
- package/registry/ui/components/nm-icon/animated/chevron-up.tsx +73 -0
- package/registry/ui/components/nm-icon/animated/circle-alert.tsx +84 -0
- package/registry/ui/components/nm-icon/animated/circle-check-big.tsx +75 -0
- package/registry/ui/components/nm-icon/animated/circle-check.tsx +77 -0
- package/registry/ui/components/nm-icon/animated/circle-plus.tsx +93 -0
- package/registry/ui/components/nm-icon/animated/circle-question-mark.tsx +62 -0
- package/registry/ui/components/nm-icon/animated/circle-x.tsx +93 -0
- package/registry/ui/components/nm-icon/animated/clock-3.tsx +95 -0
- package/registry/ui/components/nm-icon/animated/clock-4.tsx +95 -0
- package/registry/ui/components/nm-icon/animated/clock.tsx +95 -0
- package/registry/ui/components/nm-icon/animated/cloud-sun.tsx +130 -0
- package/registry/ui/components/nm-icon/animated/cloud-upload.tsx +93 -0
- package/registry/ui/components/nm-icon/animated/copy.tsx +153 -0
- package/registry/ui/components/nm-icon/animated/download.tsx +93 -0
- package/registry/ui/components/nm-icon/animated/ellipsis.tsx +189 -0
- package/registry/ui/components/nm-icon/animated/external-link.tsx +97 -0
- package/registry/ui/components/nm-icon/animated/eye-off.tsx +63 -0
- package/registry/ui/components/nm-icon/animated/eye.tsx +82 -0
- package/registry/ui/components/nm-icon/animated/fast-forward.tsx +72 -0
- package/registry/ui/components/nm-icon/animated/file-clock.tsx +105 -0
- package/registry/ui/components/nm-icon/animated/file-text.tsx +102 -0
- package/registry/ui/components/nm-icon/animated/file.tsx +124 -0
- package/registry/ui/components/nm-icon/animated/folder.tsx +132 -0
- package/registry/ui/components/nm-icon/animated/gauge.tsx +84 -0
- package/registry/ui/components/nm-icon/animated/globe.tsx +61 -0
- package/registry/ui/components/nm-icon/animated/graduation-cap.tsx +92 -0
- package/registry/ui/components/nm-icon/animated/headphones.tsx +85 -0
- package/registry/ui/components/nm-icon/animated/image.tsx +88 -0
- package/registry/ui/components/nm-icon/animated/index.ts +251 -0
- package/registry/ui/components/nm-icon/animated/info.tsx +75 -0
- package/registry/ui/components/nm-icon/animated/key-round.tsx +67 -0
- package/registry/ui/components/nm-icon/animated/layers.tsx +116 -0
- package/registry/ui/components/nm-icon/animated/layout-dashboard.tsx +176 -0
- package/registry/ui/components/nm-icon/animated/library-big.tsx +89 -0
- package/registry/ui/components/nm-icon/animated/lightbulb.tsx +106 -0
- package/registry/ui/components/nm-icon/animated/link.tsx +210 -0
- package/registry/ui/components/nm-icon/animated/list-filter.tsx +78 -0
- package/registry/ui/components/nm-icon/animated/list.tsx +184 -0
- package/registry/ui/components/nm-icon/animated/loader-circle.tsx +68 -0
- package/registry/ui/components/nm-icon/animated/lock.tsx +152 -0
- package/registry/ui/components/nm-icon/animated/log-out.tsx +93 -0
- package/registry/ui/components/nm-icon/animated/mail.tsx +131 -0
- package/registry/ui/components/nm-icon/animated/map-pin.tsx +111 -0
- package/registry/ui/components/nm-icon/animated/menu.tsx +121 -0
- package/registry/ui/components/nm-icon/animated/message-circle-dashed.tsx +140 -0
- package/registry/ui/components/nm-icon/animated/message-circle.tsx +66 -0
- package/registry/ui/components/nm-icon/animated/message-square-plus.tsx +106 -0
- package/registry/ui/components/nm-icon/animated/message-square-text.tsx +153 -0
- package/registry/ui/components/nm-icon/animated/message-square.tsx +66 -0
- package/registry/ui/components/nm-icon/animated/mic-off.tsx +65 -0
- package/registry/ui/components/nm-icon/animated/mic.tsx +77 -0
- package/registry/ui/components/nm-icon/animated/minimize.tsx +164 -0
- package/registry/ui/components/nm-icon/animated/minus.tsx +84 -0
- package/registry/ui/components/nm-icon/animated/moon.tsx +98 -0
- package/registry/ui/components/nm-icon/animated/music.tsx +62 -0
- package/registry/ui/components/nm-icon/animated/notebook-pen.tsx +114 -0
- package/registry/ui/components/nm-icon/animated/panel-left.tsx +77 -0
- package/registry/ui/components/nm-icon/animated/panel-right.tsx +77 -0
- package/registry/ui/components/nm-icon/animated/paperclip.tsx +83 -0
- package/registry/ui/components/nm-icon/animated/pause.tsx +116 -0
- package/registry/ui/components/nm-icon/animated/pencil.tsx +70 -0
- package/registry/ui/components/nm-icon/animated/pin-off.tsx +102 -0
- package/registry/ui/components/nm-icon/animated/pin.tsx +124 -0
- package/registry/ui/components/nm-icon/animated/plane-takeoff.tsx +62 -0
- package/registry/ui/components/nm-icon/animated/play.tsx +74 -0
- package/registry/ui/components/nm-icon/animated/plug-zap.tsx +117 -0
- package/registry/ui/components/nm-icon/animated/plus.tsx +122 -0
- package/registry/ui/components/nm-icon/animated/radio.tsx +137 -0
- package/registry/ui/components/nm-icon/animated/refresh-cw.tsx +103 -0
- package/registry/ui/components/nm-icon/animated/rocket.tsx +93 -0
- package/registry/ui/components/nm-icon/animated/rotate-ccw.tsx +87 -0
- package/registry/ui/components/nm-icon/animated/rotate-cw.tsx +98 -0
- package/registry/ui/components/nm-icon/animated/save.tsx +58 -0
- package/registry/ui/components/nm-icon/animated/search.tsx +90 -0
- package/registry/ui/components/nm-icon/animated/send.tsx +87 -0
- package/registry/ui/components/nm-icon/animated/settings.tsx +92 -0
- package/registry/ui/components/nm-icon/animated/share-2.tsx +148 -0
- package/registry/ui/components/nm-icon/animated/share.tsx +76 -0
- package/registry/ui/components/nm-icon/animated/shield-check.tsx +70 -0
- package/registry/ui/components/nm-icon/animated/shopping-bag.tsx +71 -0
- package/registry/ui/components/nm-icon/animated/sliders-horizontal.tsx +243 -0
- package/registry/ui/components/nm-icon/animated/sparkles.tsx +227 -0
- package/registry/ui/components/nm-icon/animated/star.tsx +86 -0
- package/registry/ui/components/nm-icon/animated/sun.tsx +148 -0
- package/registry/ui/components/nm-icon/animated/terminal.tsx +71 -0
- package/registry/ui/components/nm-icon/animated/trash-2.tsx +136 -0
- package/registry/ui/components/nm-icon/animated/trash.tsx +94 -0
- package/registry/ui/components/nm-icon/animated/trending-up.tsx +75 -0
- package/registry/ui/components/nm-icon/animated/triangle-alert.tsx +75 -0
- package/registry/ui/components/nm-icon/animated/trophy.tsx +62 -0
- package/registry/ui/components/nm-icon/animated/type.tsx +106 -0
- package/registry/ui/components/nm-icon/animated/upload.tsx +94 -0
- package/registry/ui/components/nm-icon/animated/user-round.tsx +84 -0
- package/registry/ui/components/nm-icon/animated/user.tsx +84 -0
- package/registry/ui/components/nm-icon/animated/users-round.tsx +156 -0
- package/registry/ui/components/nm-icon/animated/users.tsx +156 -0
- package/registry/ui/components/nm-icon/animated/volume-2.tsx +119 -0
- package/registry/ui/components/nm-icon/animated/wand-sparkles.tsx +111 -0
- package/registry/ui/components/nm-icon/animated/x.tsx +122 -0
- package/registry/ui/components/nm-icon/animated/zap.tsx +86 -0
- package/registry/ui/components/nm-icon/animated/zoom-in.tsx +66 -0
- package/registry/ui/components/nm-icon/animated/zoom-out.tsx +85 -0
- package/registry/ui/components/nm-icon/nm-icon.css +0 -1
- package/registry/ui/components/nm-icon/nm-icon.tsx +20 -5
- package/registry/ui/components/nm-icon/nm-lucide-extended.tsx +284 -0
- package/registry/ui/components/nm-icon/nm-lucide.tsx +55 -5
- package/registry/ui/components/nm-input/nm-input.css +1 -0
- package/registry/ui/components/nm-menubar/nm-menubar.tsx +2 -2
- package/registry/ui/components/nm-panel/nm-panel.css +7 -0
- package/registry/ui/components/nm-panel/nm-panel.tsx +19 -2
- package/registry/ui/components/nm-popover/nm-popover.tsx +4 -3
- package/registry/ui/components/nm-progress/nm-progress.tsx +1 -1
- package/registry/ui/components/nm-radio-group/nm-radio-group.tsx +2 -2
- package/registry/ui/components/nm-select/nm-select.tsx +1 -1
- package/registry/ui/components/nm-skeleton/nm-skeleton.css +17 -0
- package/registry/ui/components/nm-skeleton/nm-skeleton.tsx +7 -0
- package/registry/ui/components/nm-slider/nm-slider.tsx +1 -1
- package/registry/ui/components/nm-small-icon-button/nm-small-icon-button.tsx +3 -3
- package/registry/ui/components/nm-spinner/nm-spinner.css +22 -0
- package/registry/ui/components/nm-spinner/nm-spinner.tsx +7 -0
- package/registry/ui/components/nm-switch/nm-switch.css +20 -3
- package/registry/ui/components/nm-switch/nm-switch.tsx +1 -1
- package/registry/ui/components/nm-tabs/nm-tabs.css +4 -0
- package/registry/ui/components/nm-tabs/nm-tabs.tsx +19 -0
- package/registry/ui/components/nm-textarea/nm-textarea.css +1 -0
- package/registry/ui/components/nm-toggle/nm-toggle.tsx +1 -1
- package/registry/ui/components/nm-toolbar/nm-toolbar.tsx +4 -1
- package/registry/ui/components/nm-tooltip/nm-tooltip.tsx +1 -1
- package/registry/ui/components/nm-voice-orb/nm-voice-orb.css +17 -0
- package/registry/ui/components/nm-voice-orb/nm-voice-orb.tsx +112 -0
- package/registry/ui/components/nm-voice-orb/use-nm-voice-orb-theme.ts +34 -0
- package/registry/ui/components/nordman-icon-button/nordman-icon-button.tsx +7 -3
- package/registry/ui/config/nm-button.ts +6 -0
- package/registry/ui/config/nm-composer.ts +12 -0
- package/registry/ui/config/nm-icons-extended.ts +141 -0
- package/registry/ui/config/nm-icons.ts +6 -2
- package/registry/ui/config/nm-voice-orb.ts +50 -0
- package/registry/ui/lib/nm-motion.ts +30 -0
- package/registry/ui/styles/tokens.css +7 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-pin-off), with its import pointed at NIF's motion adapter. */
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { motion, type Variants } from 'motion/react';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
getVariants,
|
|
9
|
+
useAnimateIconContext,
|
|
10
|
+
IconWrapper,
|
|
11
|
+
type IconProps,
|
|
12
|
+
} from '@animate-ui/react/icons';
|
|
13
|
+
|
|
14
|
+
type PinOffProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
group: {
|
|
19
|
+
initial: {
|
|
20
|
+
x: 0,
|
|
21
|
+
},
|
|
22
|
+
animate: {
|
|
23
|
+
x: [0, '-7%', '7%', '-7%', '7%', 0],
|
|
24
|
+
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
path1: {},
|
|
28
|
+
path2: {},
|
|
29
|
+
path3: {},
|
|
30
|
+
path4: {},
|
|
31
|
+
} satisfies Record<string, Variants>,
|
|
32
|
+
off: {
|
|
33
|
+
path1: {},
|
|
34
|
+
path2: {},
|
|
35
|
+
path3: {
|
|
36
|
+
initial: {
|
|
37
|
+
opacity: 0,
|
|
38
|
+
pathLength: 0,
|
|
39
|
+
},
|
|
40
|
+
animate: {
|
|
41
|
+
opacity: 1,
|
|
42
|
+
pathLength: 1,
|
|
43
|
+
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
path4: {},
|
|
47
|
+
} satisfies Record<string, Variants>,
|
|
48
|
+
} as const;
|
|
49
|
+
|
|
50
|
+
function IconComponent({ size, ...props }: PinOffProps) {
|
|
51
|
+
const { controls } = useAnimateIconContext();
|
|
52
|
+
const variants = getVariants(animations);
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<motion.svg
|
|
56
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
57
|
+
width={size}
|
|
58
|
+
height={size}
|
|
59
|
+
viewBox="0 0 24 24"
|
|
60
|
+
fill="none"
|
|
61
|
+
stroke="currentColor"
|
|
62
|
+
strokeWidth={2}
|
|
63
|
+
strokeLinecap="round"
|
|
64
|
+
strokeLinejoin="round"
|
|
65
|
+
variants={variants.group}
|
|
66
|
+
initial="initial"
|
|
67
|
+
animate={controls}
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
<motion.path
|
|
71
|
+
d="M12 17v5"
|
|
72
|
+
variants={variants.path1}
|
|
73
|
+
initial="initial"
|
|
74
|
+
animate={controls}
|
|
75
|
+
/>
|
|
76
|
+
<motion.path
|
|
77
|
+
d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"
|
|
78
|
+
variants={variants.path2}
|
|
79
|
+
initial="initial"
|
|
80
|
+
animate={controls}
|
|
81
|
+
/>
|
|
82
|
+
<motion.path
|
|
83
|
+
d="m2 2 20 20"
|
|
84
|
+
variants={variants.path3}
|
|
85
|
+
initial="initial"
|
|
86
|
+
animate={controls}
|
|
87
|
+
/>
|
|
88
|
+
<motion.path
|
|
89
|
+
d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"
|
|
90
|
+
variants={variants.path4}
|
|
91
|
+
initial="initial"
|
|
92
|
+
animate={controls}
|
|
93
|
+
/>
|
|
94
|
+
</motion.svg>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function PinOff(props: PinOffProps) {
|
|
99
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export { animations, PinOff as PinOffAnimated };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-pin), with its import pointed at NIF's motion adapter. */
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { motion, Variants } from 'motion/react';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
getVariants,
|
|
9
|
+
useAnimateIconContext,
|
|
10
|
+
IconWrapper,
|
|
11
|
+
type IconProps,
|
|
12
|
+
} from '@animate-ui/react/icons';
|
|
13
|
+
|
|
14
|
+
type PinProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
group: {
|
|
19
|
+
initial: { rotate: 0, transformOrigin: 'bottom center' },
|
|
20
|
+
animate: {
|
|
21
|
+
rotate: [0, -10, 6, -3, 0],
|
|
22
|
+
transformOrigin: 'bottom center',
|
|
23
|
+
transition: { duration: 0.8, ease: 'easeInOut' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
line: {},
|
|
27
|
+
path: {},
|
|
28
|
+
} satisfies Record<string, Variants>,
|
|
29
|
+
bounce: {
|
|
30
|
+
group: {
|
|
31
|
+
initial: {
|
|
32
|
+
scale: 1,
|
|
33
|
+
rotate: 0,
|
|
34
|
+
x: 0,
|
|
35
|
+
y: 0,
|
|
36
|
+
transformOrigin: 'bottom center',
|
|
37
|
+
},
|
|
38
|
+
animate: {
|
|
39
|
+
scale: [1, 0.75, 1, 1],
|
|
40
|
+
rotate: [0, 30, -15, 0],
|
|
41
|
+
x: [0, 0, 0, 0],
|
|
42
|
+
y: [0, -6, 0, 0],
|
|
43
|
+
transformOrigin: 'bottom center',
|
|
44
|
+
transition: { ease: 'easeInOut', duration: 1 },
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
line: {},
|
|
48
|
+
path: {},
|
|
49
|
+
} satisfies Record<string, Variants>,
|
|
50
|
+
wiggle: {
|
|
51
|
+
group: {
|
|
52
|
+
initial: {
|
|
53
|
+
rotate: 0,
|
|
54
|
+
transformOrigin: 'bottom center',
|
|
55
|
+
},
|
|
56
|
+
animate: {
|
|
57
|
+
rotate: [0, 15, -10, 0],
|
|
58
|
+
transformOrigin: 'bottom center',
|
|
59
|
+
transition: { ease: 'easeInOut', duration: 1 },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
line: {},
|
|
63
|
+
path: {},
|
|
64
|
+
} satisfies Record<string, Variants>,
|
|
65
|
+
rotate: {
|
|
66
|
+
group: {
|
|
67
|
+
initial: {
|
|
68
|
+
transform: 'rotate3d(0, 1, 0, 0deg)',
|
|
69
|
+
perspective: 600,
|
|
70
|
+
},
|
|
71
|
+
animate: {
|
|
72
|
+
transform: 'rotate3d(0, 1, 0, 360deg)',
|
|
73
|
+
perspective: 600,
|
|
74
|
+
transition: { ease: 'easeInOut', duration: 0.7 },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
line: {},
|
|
78
|
+
path: {},
|
|
79
|
+
} satisfies Record<string, Variants>,
|
|
80
|
+
} as const;
|
|
81
|
+
|
|
82
|
+
function IconComponent({ size, ...props }: PinProps) {
|
|
83
|
+
const { controls } = useAnimateIconContext();
|
|
84
|
+
const variants = getVariants(animations);
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<motion.svg
|
|
88
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
89
|
+
width={size}
|
|
90
|
+
height={size}
|
|
91
|
+
viewBox="0 0 24 24"
|
|
92
|
+
fill="none"
|
|
93
|
+
stroke="currentColor"
|
|
94
|
+
strokeWidth={2}
|
|
95
|
+
strokeLinecap="round"
|
|
96
|
+
strokeLinejoin="round"
|
|
97
|
+
{...props}
|
|
98
|
+
>
|
|
99
|
+
<motion.g variants={variants.group} initial="initial" animate={controls}>
|
|
100
|
+
<motion.line
|
|
101
|
+
x1={12}
|
|
102
|
+
y1={17.1}
|
|
103
|
+
x2={12}
|
|
104
|
+
y2={22}
|
|
105
|
+
variants={variants.line}
|
|
106
|
+
initial="initial"
|
|
107
|
+
animate={controls}
|
|
108
|
+
/>
|
|
109
|
+
<motion.path
|
|
110
|
+
d="M9,10.8c0,.8-.4,1.5-1.1,1.8l-1.8.9c-.7.3-1.1,1-1.1,1.8v.8c0,.6.4,1,1,1h12c.6,0,1-.4,1-1v-.8c0-.8-.4-1.5-1.1-1.8l-1.8-.9c-.7-.3-1.1-1-1.1-1.8v-3.8c0-.6.4-1,1-1,1.1,0,2-.9,2-2s-.9-2-2-2h-8c-1.1,0-2,.9-2,2s.9,2,2,2,1,.4,1,1v3.8Z"
|
|
111
|
+
variants={variants.path}
|
|
112
|
+
initial="initial"
|
|
113
|
+
animate={controls}
|
|
114
|
+
/>
|
|
115
|
+
</motion.g>
|
|
116
|
+
</motion.svg>
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function Pin(props: PinProps) {
|
|
121
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { animations, Pin as PinAnimated };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-plane-takeoff), with its import pointed at NIF's motion adapter. */
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { motion, type Variants } from 'motion/react';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
getVariants,
|
|
9
|
+
useAnimateIconContext,
|
|
10
|
+
IconWrapper,
|
|
11
|
+
type IconProps,
|
|
12
|
+
} from '@animate-ui/react/icons';
|
|
13
|
+
|
|
14
|
+
type PlaneTakeoffProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
plane: {
|
|
19
|
+
initial: { y: 0, rotate: 0, transformOrigin: '0% 100%' },
|
|
20
|
+
animate: {
|
|
21
|
+
y: [0, -1, 0],
|
|
22
|
+
rotate: [0, -5, 0],
|
|
23
|
+
transformOrigin: '0% 100%',
|
|
24
|
+
transition: { duration: 0.8, ease: 'easeInOut' },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
} satisfies Record<string, Variants>,
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
function IconComponent({ size, ...props }: PlaneTakeoffProps) {
|
|
31
|
+
const { controls } = useAnimateIconContext();
|
|
32
|
+
const variants = getVariants(animations);
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<motion.svg
|
|
36
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
+
width={size}
|
|
38
|
+
height={size}
|
|
39
|
+
viewBox="0 0 24 24"
|
|
40
|
+
fill="none"
|
|
41
|
+
stroke="currentColor"
|
|
42
|
+
strokeWidth={2}
|
|
43
|
+
strokeLinecap="round"
|
|
44
|
+
strokeLinejoin="round"
|
|
45
|
+
{...props}
|
|
46
|
+
>
|
|
47
|
+
<path d="M2 22h20" />
|
|
48
|
+
<motion.path
|
|
49
|
+
d="M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z"
|
|
50
|
+
variants={variants.plane}
|
|
51
|
+
initial="initial"
|
|
52
|
+
animate={controls}
|
|
53
|
+
/>
|
|
54
|
+
</motion.svg>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function PlaneTakeoff(props: PlaneTakeoffProps) {
|
|
59
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { animations, PlaneTakeoff as PlaneTakeoffAnimated };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-play), with its import pointed at NIF's motion adapter. */
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { motion, type Variants } from 'motion/react';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
getVariants,
|
|
9
|
+
useAnimateIconContext,
|
|
10
|
+
IconWrapper,
|
|
11
|
+
type IconProps,
|
|
12
|
+
} from '@animate-ui/react/icons';
|
|
13
|
+
|
|
14
|
+
type PlayProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
polygon: {
|
|
19
|
+
initial: {
|
|
20
|
+
x: 0,
|
|
21
|
+
transition: { duration: 0.3, ease: 'easeInOut' },
|
|
22
|
+
},
|
|
23
|
+
animate: {
|
|
24
|
+
x: 3,
|
|
25
|
+
transition: { duration: 0.3, ease: 'easeInOut' },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
} satisfies Record<string, Variants>,
|
|
29
|
+
'default-loop': {
|
|
30
|
+
polygon: {
|
|
31
|
+
initial: {
|
|
32
|
+
x: 0,
|
|
33
|
+
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
34
|
+
},
|
|
35
|
+
animate: {
|
|
36
|
+
x: [0, 3, 0],
|
|
37
|
+
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
} satisfies Record<string, Variants>,
|
|
41
|
+
} as const;
|
|
42
|
+
|
|
43
|
+
function IconComponent({ size, ...props }: PlayProps) {
|
|
44
|
+
const { controls } = useAnimateIconContext();
|
|
45
|
+
const variants = getVariants(animations);
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<motion.svg
|
|
49
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
50
|
+
width={size}
|
|
51
|
+
height={size}
|
|
52
|
+
viewBox="0 0 24 24"
|
|
53
|
+
fill="none"
|
|
54
|
+
stroke="currentColor"
|
|
55
|
+
strokeWidth={2}
|
|
56
|
+
strokeLinecap="round"
|
|
57
|
+
strokeLinejoin="round"
|
|
58
|
+
{...props}
|
|
59
|
+
>
|
|
60
|
+
<motion.polygon
|
|
61
|
+
points="6 3 20 12 6 21 6 3"
|
|
62
|
+
variants={variants.polygon}
|
|
63
|
+
initial="initial"
|
|
64
|
+
animate={controls}
|
|
65
|
+
/>
|
|
66
|
+
</motion.svg>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function Play(props: PlayProps) {
|
|
71
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { animations, Play as PlayAnimated };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-plug-zap), with its import pointed at NIF's motion adapter. */
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { motion, type Variants } from 'motion/react';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
getVariants,
|
|
9
|
+
useAnimateIconContext,
|
|
10
|
+
IconWrapper,
|
|
11
|
+
type IconProps,
|
|
12
|
+
} from '@animate-ui/react/icons';
|
|
13
|
+
|
|
14
|
+
type PlugZapProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const PLUG: Variants = {
|
|
17
|
+
initial: { x: 0, y: 0 },
|
|
18
|
+
animate: {
|
|
19
|
+
x: [0, 1.2, 1.2, 0],
|
|
20
|
+
y: [0, -1.2, -1.2, 0],
|
|
21
|
+
transition: { duration: 0.8, ease: 'easeInOut', times: [0, 0.3, 0.55, 1] },
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const animations = {
|
|
26
|
+
default: {
|
|
27
|
+
path1: PLUG,
|
|
28
|
+
path2: PLUG,
|
|
29
|
+
path3: PLUG,
|
|
30
|
+
path4: PLUG,
|
|
31
|
+
path5: {
|
|
32
|
+
initial: { opacity: 1, scale: 1 },
|
|
33
|
+
animate: {
|
|
34
|
+
opacity: [1, 0.5, 1, 0.7, 1],
|
|
35
|
+
scale: [1, 1.2, 0.95, 1.08, 1],
|
|
36
|
+
transition: { duration: 0.5, ease: 'easeInOut', delay: 0.2 },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
} satisfies Record<string, Variants>,
|
|
40
|
+
flicker: {
|
|
41
|
+
path1: {},
|
|
42
|
+
path2: {},
|
|
43
|
+
path3: {},
|
|
44
|
+
path4: {},
|
|
45
|
+
path5: {
|
|
46
|
+
initial: {
|
|
47
|
+
opacity: 1,
|
|
48
|
+
scale: 1,
|
|
49
|
+
},
|
|
50
|
+
animate: {
|
|
51
|
+
opacity: [1, 0.5, 1, 0.5, 1],
|
|
52
|
+
scale: [1, 0.9, 1, 0.9, 1],
|
|
53
|
+
transition: {
|
|
54
|
+
duration: 1.8,
|
|
55
|
+
ease: 'easeInOut',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
} satisfies Record<string, Variants>,
|
|
60
|
+
} as const;
|
|
61
|
+
|
|
62
|
+
function IconComponent({ size, ...props }: PlugZapProps) {
|
|
63
|
+
const { controls } = useAnimateIconContext();
|
|
64
|
+
const variants = getVariants(animations);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<motion.svg
|
|
68
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
69
|
+
width={size}
|
|
70
|
+
height={size}
|
|
71
|
+
viewBox="0 0 24 24"
|
|
72
|
+
fill="none"
|
|
73
|
+
stroke="currentColor"
|
|
74
|
+
strokeWidth={2}
|
|
75
|
+
strokeLinecap="round"
|
|
76
|
+
strokeLinejoin="round"
|
|
77
|
+
{...props}
|
|
78
|
+
>
|
|
79
|
+
<motion.path
|
|
80
|
+
d="M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z"
|
|
81
|
+
variants={variants.path1}
|
|
82
|
+
initial="initial"
|
|
83
|
+
animate={controls}
|
|
84
|
+
/>
|
|
85
|
+
<motion.path
|
|
86
|
+
d="m2 22 3-3"
|
|
87
|
+
variants={variants.path2}
|
|
88
|
+
initial="initial"
|
|
89
|
+
animate={controls}
|
|
90
|
+
/>
|
|
91
|
+
<motion.path
|
|
92
|
+
d="M7.5 13.5 10 11"
|
|
93
|
+
variants={variants.path3}
|
|
94
|
+
initial="initial"
|
|
95
|
+
animate={controls}
|
|
96
|
+
/>
|
|
97
|
+
<motion.path
|
|
98
|
+
d="M10.5 16.5 13 14"
|
|
99
|
+
variants={variants.path4}
|
|
100
|
+
initial="initial"
|
|
101
|
+
animate={controls}
|
|
102
|
+
/>
|
|
103
|
+
<motion.path
|
|
104
|
+
d="m18 3-4 4h6l-4 4"
|
|
105
|
+
variants={variants.path5}
|
|
106
|
+
initial="initial"
|
|
107
|
+
animate={controls}
|
|
108
|
+
/>
|
|
109
|
+
</motion.svg>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function PlugZap(props: PlugZapProps) {
|
|
114
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export { animations, PlugZap as PlugZapAnimated };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-plus), with its import pointed at NIF's motion adapter. */
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { motion, type Variants } from 'motion/react';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
getVariants,
|
|
9
|
+
useAnimateIconContext,
|
|
10
|
+
IconWrapper,
|
|
11
|
+
type IconProps,
|
|
12
|
+
} from '@animate-ui/react/icons';
|
|
13
|
+
|
|
14
|
+
type PlusProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
line1: {
|
|
19
|
+
initial: {
|
|
20
|
+
rotate: 0,
|
|
21
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
22
|
+
},
|
|
23
|
+
animate: {
|
|
24
|
+
rotate: 90,
|
|
25
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
line2: {
|
|
29
|
+
initial: {
|
|
30
|
+
rotate: 0,
|
|
31
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
32
|
+
},
|
|
33
|
+
animate: {
|
|
34
|
+
rotate: 90,
|
|
35
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
} satisfies Record<string, Variants>,
|
|
39
|
+
x: {
|
|
40
|
+
line1: {
|
|
41
|
+
initial: {
|
|
42
|
+
rotate: 0,
|
|
43
|
+
x1: 12,
|
|
44
|
+
y1: 19,
|
|
45
|
+
x2: 12,
|
|
46
|
+
y2: 5,
|
|
47
|
+
transition: { ease: 'easeInOut', duration: 0.3, delay: 0.1 },
|
|
48
|
+
},
|
|
49
|
+
animate: {
|
|
50
|
+
rotate: 45,
|
|
51
|
+
x1: 12,
|
|
52
|
+
y1: 20.5,
|
|
53
|
+
x2: 12,
|
|
54
|
+
y2: 3.5,
|
|
55
|
+
transition: { ease: 'easeInOut', duration: 0.3, delay: 0.1 },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
line2: {
|
|
59
|
+
initial: {
|
|
60
|
+
rotate: 0,
|
|
61
|
+
x1: 5,
|
|
62
|
+
y1: 12,
|
|
63
|
+
x2: 19,
|
|
64
|
+
y2: 12,
|
|
65
|
+
transition: { ease: 'easeInOut', duration: 0.3 },
|
|
66
|
+
},
|
|
67
|
+
animate: {
|
|
68
|
+
rotate: 45,
|
|
69
|
+
x1: 3.5,
|
|
70
|
+
y1: 12,
|
|
71
|
+
x2: 20.5,
|
|
72
|
+
y2: 12,
|
|
73
|
+
transition: { ease: 'easeInOut', duration: 0.3 },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
} satisfies Record<string, Variants>,
|
|
77
|
+
} as const;
|
|
78
|
+
|
|
79
|
+
function IconComponent({ size, ...props }: PlusProps) {
|
|
80
|
+
const { controls } = useAnimateIconContext();
|
|
81
|
+
const variants = getVariants(animations);
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<motion.svg
|
|
85
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
86
|
+
width={size}
|
|
87
|
+
height={size}
|
|
88
|
+
viewBox="0 0 24 24"
|
|
89
|
+
fill="none"
|
|
90
|
+
stroke="currentColor"
|
|
91
|
+
strokeWidth={2}
|
|
92
|
+
strokeLinecap="round"
|
|
93
|
+
strokeLinejoin="round"
|
|
94
|
+
{...props}
|
|
95
|
+
>
|
|
96
|
+
<motion.line
|
|
97
|
+
x1={12}
|
|
98
|
+
y1={19}
|
|
99
|
+
x2={12}
|
|
100
|
+
y2={5}
|
|
101
|
+
variants={variants.line1}
|
|
102
|
+
initial="initial"
|
|
103
|
+
animate={controls}
|
|
104
|
+
/>
|
|
105
|
+
<motion.line
|
|
106
|
+
x1={5}
|
|
107
|
+
y1={12}
|
|
108
|
+
x2={19}
|
|
109
|
+
y2={12}
|
|
110
|
+
variants={variants.line2}
|
|
111
|
+
initial="initial"
|
|
112
|
+
animate={controls}
|
|
113
|
+
/>
|
|
114
|
+
</motion.svg>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function Plus(props: PlusProps) {
|
|
119
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export { animations, Plus as PlusAnimated };
|