@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,93 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-circle-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 CirclePlusProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
circle: {},
|
|
19
|
+
line1: {
|
|
20
|
+
initial: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
rotate: 90,
|
|
26
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
line2: {
|
|
30
|
+
initial: {
|
|
31
|
+
rotate: 0,
|
|
32
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
33
|
+
},
|
|
34
|
+
animate: {
|
|
35
|
+
rotate: 90,
|
|
36
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
} satisfies Record<string, Variants>,
|
|
40
|
+
} as const;
|
|
41
|
+
|
|
42
|
+
function IconComponent({ size, ...props }: CirclePlusProps) {
|
|
43
|
+
const { controls } = useAnimateIconContext();
|
|
44
|
+
const variants = getVariants(animations);
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<motion.svg
|
|
48
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
49
|
+
width={size}
|
|
50
|
+
height={size}
|
|
51
|
+
viewBox="0 0 24 24"
|
|
52
|
+
fill="none"
|
|
53
|
+
stroke="currentColor"
|
|
54
|
+
strokeWidth={2}
|
|
55
|
+
strokeLinecap="round"
|
|
56
|
+
strokeLinejoin="round"
|
|
57
|
+
{...props}
|
|
58
|
+
>
|
|
59
|
+
<motion.circle
|
|
60
|
+
cx={12}
|
|
61
|
+
cy={12}
|
|
62
|
+
r={10}
|
|
63
|
+
variants={variants.circle}
|
|
64
|
+
initial="initial"
|
|
65
|
+
animate={controls}
|
|
66
|
+
/>
|
|
67
|
+
<motion.line
|
|
68
|
+
x1={8}
|
|
69
|
+
y1={12}
|
|
70
|
+
x2={16}
|
|
71
|
+
y2={12}
|
|
72
|
+
variants={variants.line1}
|
|
73
|
+
initial="initial"
|
|
74
|
+
animate={controls}
|
|
75
|
+
/>
|
|
76
|
+
<motion.line
|
|
77
|
+
x1={12}
|
|
78
|
+
y1={16}
|
|
79
|
+
x2={12}
|
|
80
|
+
y2={8}
|
|
81
|
+
variants={variants.line2}
|
|
82
|
+
initial="initial"
|
|
83
|
+
animate={controls}
|
|
84
|
+
/>
|
|
85
|
+
</motion.svg>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function CirclePlus(props: CirclePlusProps) {
|
|
90
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { animations, CirclePlus as CirclePlusAnimated };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-circle-question-mark), 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 CircleQuestionMarkProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
mark: {
|
|
19
|
+
initial: { y: 0 },
|
|
20
|
+
animate: {
|
|
21
|
+
y: [0, -2, 0, -0.8, 0],
|
|
22
|
+
transition: {
|
|
23
|
+
duration: 0.6,
|
|
24
|
+
ease: 'easeInOut',
|
|
25
|
+
times: [0, 0.3, 0.55, 0.75, 1],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
} satisfies Record<string, Variants>,
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
function IconComponent({ size, ...props }: CircleQuestionMarkProps) {
|
|
33
|
+
const { controls } = useAnimateIconContext();
|
|
34
|
+
const variants = getVariants(animations);
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<motion.svg
|
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39
|
+
width={size}
|
|
40
|
+
height={size}
|
|
41
|
+
viewBox="0 0 24 24"
|
|
42
|
+
fill="none"
|
|
43
|
+
stroke="currentColor"
|
|
44
|
+
strokeWidth={2}
|
|
45
|
+
strokeLinecap="round"
|
|
46
|
+
strokeLinejoin="round"
|
|
47
|
+
{...props}
|
|
48
|
+
>
|
|
49
|
+
<circle cx={12} cy={12} r={10} />
|
|
50
|
+
<motion.g variants={variants.mark} initial="initial" animate={controls}>
|
|
51
|
+
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" />
|
|
52
|
+
<path d="M12 17h.01" />
|
|
53
|
+
</motion.g>
|
|
54
|
+
</motion.svg>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function CircleQuestionMark(props: CircleQuestionMarkProps) {
|
|
59
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { animations, CircleQuestionMark as CircleQuestionMarkAnimated };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-circle-x), 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 CircleXProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
circle: {},
|
|
19
|
+
line1: {
|
|
20
|
+
initial: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
rotate: 90,
|
|
26
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
line2: {
|
|
30
|
+
initial: {
|
|
31
|
+
rotate: 0,
|
|
32
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
33
|
+
},
|
|
34
|
+
animate: {
|
|
35
|
+
rotate: 90,
|
|
36
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
} satisfies Record<string, Variants>,
|
|
40
|
+
} as const;
|
|
41
|
+
|
|
42
|
+
function IconComponent({ size, ...props }: CircleXProps) {
|
|
43
|
+
const { controls } = useAnimateIconContext();
|
|
44
|
+
const variants = getVariants(animations);
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<motion.svg
|
|
48
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
49
|
+
width={size}
|
|
50
|
+
height={size}
|
|
51
|
+
viewBox="0 0 24 24"
|
|
52
|
+
fill="none"
|
|
53
|
+
stroke="currentColor"
|
|
54
|
+
strokeWidth={2}
|
|
55
|
+
strokeLinecap="round"
|
|
56
|
+
strokeLinejoin="round"
|
|
57
|
+
{...props}
|
|
58
|
+
>
|
|
59
|
+
<motion.circle
|
|
60
|
+
cx={12}
|
|
61
|
+
cy={12}
|
|
62
|
+
r={10}
|
|
63
|
+
variants={variants.circle}
|
|
64
|
+
initial="initial"
|
|
65
|
+
animate={controls}
|
|
66
|
+
/>
|
|
67
|
+
<motion.line
|
|
68
|
+
x1={9}
|
|
69
|
+
y1={15}
|
|
70
|
+
x2={15}
|
|
71
|
+
y2={9}
|
|
72
|
+
variants={variants.line1}
|
|
73
|
+
initial="initial"
|
|
74
|
+
animate={controls}
|
|
75
|
+
/>
|
|
76
|
+
<motion.line
|
|
77
|
+
x1={9}
|
|
78
|
+
y1={9}
|
|
79
|
+
x2={15}
|
|
80
|
+
y2={15}
|
|
81
|
+
variants={variants.line2}
|
|
82
|
+
initial="initial"
|
|
83
|
+
animate={controls}
|
|
84
|
+
/>
|
|
85
|
+
</motion.svg>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function CircleX(props: CircleXProps) {
|
|
90
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { animations, CircleX as CircleXAnimated };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-clock-3), 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 Clock3Props = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
circle: {},
|
|
19
|
+
line1: {
|
|
20
|
+
initial: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
transformOrigin: 'bottom left',
|
|
26
|
+
rotate: [0, 20, 0],
|
|
27
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
line2: {
|
|
31
|
+
initial: {
|
|
32
|
+
rotate: 0,
|
|
33
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
34
|
+
},
|
|
35
|
+
animate: {
|
|
36
|
+
transformOrigin: 'bottom left',
|
|
37
|
+
rotate: 360,
|
|
38
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
} satisfies Record<string, Variants>,
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
function IconComponent({ size, ...props }: Clock3Props) {
|
|
45
|
+
const { controls } = useAnimateIconContext();
|
|
46
|
+
const variants = getVariants(animations);
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<motion.svg
|
|
50
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
51
|
+
width={size}
|
|
52
|
+
height={size}
|
|
53
|
+
viewBox="0 0 24 24"
|
|
54
|
+
fill="none"
|
|
55
|
+
stroke="currentColor"
|
|
56
|
+
strokeWidth={2}
|
|
57
|
+
strokeLinecap="round"
|
|
58
|
+
strokeLinejoin="round"
|
|
59
|
+
{...props}
|
|
60
|
+
>
|
|
61
|
+
<motion.circle
|
|
62
|
+
cx={12}
|
|
63
|
+
cy={12}
|
|
64
|
+
r={10}
|
|
65
|
+
variants={variants.circle}
|
|
66
|
+
initial="initial"
|
|
67
|
+
animate={controls}
|
|
68
|
+
/>
|
|
69
|
+
<motion.line
|
|
70
|
+
x1={16.5}
|
|
71
|
+
y1={12}
|
|
72
|
+
x2={12}
|
|
73
|
+
y2={12}
|
|
74
|
+
variants={variants.line1}
|
|
75
|
+
initial="initial"
|
|
76
|
+
animate={controls}
|
|
77
|
+
/>
|
|
78
|
+
<motion.line
|
|
79
|
+
x1={12}
|
|
80
|
+
y1={6}
|
|
81
|
+
x2={12}
|
|
82
|
+
y2={12}
|
|
83
|
+
variants={variants.line2}
|
|
84
|
+
initial="initial"
|
|
85
|
+
animate={controls}
|
|
86
|
+
/>
|
|
87
|
+
</motion.svg>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function Clock3(props: Clock3Props) {
|
|
92
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { animations, Clock3 as Clock3Animated };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-clock-4), 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 Clock4Props = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
circle: {},
|
|
19
|
+
line1: {
|
|
20
|
+
initial: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
transformOrigin: 'top left',
|
|
26
|
+
rotate: [0, 20, 0],
|
|
27
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
line2: {
|
|
31
|
+
initial: {
|
|
32
|
+
rotate: 0,
|
|
33
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
34
|
+
},
|
|
35
|
+
animate: {
|
|
36
|
+
transformOrigin: 'bottom left',
|
|
37
|
+
rotate: 360,
|
|
38
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
} satisfies Record<string, Variants>,
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
function IconComponent({ size, ...props }: Clock4Props) {
|
|
45
|
+
const { controls } = useAnimateIconContext();
|
|
46
|
+
const variants = getVariants(animations);
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<motion.svg
|
|
50
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
51
|
+
width={size}
|
|
52
|
+
height={size}
|
|
53
|
+
viewBox="0 0 24 24"
|
|
54
|
+
fill="none"
|
|
55
|
+
stroke="currentColor"
|
|
56
|
+
strokeWidth={2}
|
|
57
|
+
strokeLinecap="round"
|
|
58
|
+
strokeLinejoin="round"
|
|
59
|
+
{...props}
|
|
60
|
+
>
|
|
61
|
+
<motion.circle
|
|
62
|
+
cx={12}
|
|
63
|
+
cy={12}
|
|
64
|
+
r={10}
|
|
65
|
+
variants={variants.circle}
|
|
66
|
+
initial="initial"
|
|
67
|
+
animate={controls}
|
|
68
|
+
/>
|
|
69
|
+
<motion.line
|
|
70
|
+
x1={12}
|
|
71
|
+
y1={12}
|
|
72
|
+
x2={16}
|
|
73
|
+
y2={14}
|
|
74
|
+
variants={variants.line1}
|
|
75
|
+
initial="initial"
|
|
76
|
+
animate={controls}
|
|
77
|
+
/>
|
|
78
|
+
<motion.line
|
|
79
|
+
x1={12}
|
|
80
|
+
y1={6}
|
|
81
|
+
x2={12}
|
|
82
|
+
y2={12}
|
|
83
|
+
variants={variants.line2}
|
|
84
|
+
initial="initial"
|
|
85
|
+
animate={controls}
|
|
86
|
+
/>
|
|
87
|
+
</motion.svg>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function Clock4(props: Clock4Props) {
|
|
92
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { animations, Clock4 as Clock4Animated };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-clock), 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 ClockProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
circle: {},
|
|
19
|
+
line1: {
|
|
20
|
+
initial: {
|
|
21
|
+
rotate: 0,
|
|
22
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
transformOrigin: 'top left',
|
|
26
|
+
rotate: [0, 20, 0],
|
|
27
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
line2: {
|
|
31
|
+
initial: {
|
|
32
|
+
rotate: 0,
|
|
33
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
34
|
+
},
|
|
35
|
+
animate: {
|
|
36
|
+
transformOrigin: 'bottom left',
|
|
37
|
+
rotate: 360,
|
|
38
|
+
transition: { ease: 'easeInOut', duration: 0.6 },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
} satisfies Record<string, Variants>,
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
function IconComponent({ size, ...props }: ClockProps) {
|
|
45
|
+
const { controls } = useAnimateIconContext();
|
|
46
|
+
const variants = getVariants(animations);
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<motion.svg
|
|
50
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
51
|
+
width={size}
|
|
52
|
+
height={size}
|
|
53
|
+
viewBox="0 0 24 24"
|
|
54
|
+
fill="none"
|
|
55
|
+
stroke="currentColor"
|
|
56
|
+
strokeWidth={2}
|
|
57
|
+
strokeLinecap="round"
|
|
58
|
+
strokeLinejoin="round"
|
|
59
|
+
{...props}
|
|
60
|
+
>
|
|
61
|
+
<motion.circle
|
|
62
|
+
cx={12}
|
|
63
|
+
cy={12}
|
|
64
|
+
r={10}
|
|
65
|
+
variants={variants.circle}
|
|
66
|
+
initial="initial"
|
|
67
|
+
animate={controls}
|
|
68
|
+
/>
|
|
69
|
+
<motion.line
|
|
70
|
+
x1={12}
|
|
71
|
+
y1={12}
|
|
72
|
+
x2={16}
|
|
73
|
+
y2={14}
|
|
74
|
+
variants={variants.line1}
|
|
75
|
+
initial="initial"
|
|
76
|
+
animate={controls}
|
|
77
|
+
/>
|
|
78
|
+
<motion.line
|
|
79
|
+
x1={12}
|
|
80
|
+
y1={6}
|
|
81
|
+
x2={12}
|
|
82
|
+
y2={12}
|
|
83
|
+
variants={variants.line2}
|
|
84
|
+
initial="initial"
|
|
85
|
+
animate={controls}
|
|
86
|
+
/>
|
|
87
|
+
</motion.svg>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function Clock(props: ClockProps) {
|
|
92
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { animations, Clock as ClockAnimated };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-cloud-sun), 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 CloudSunProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: (() => {
|
|
18
|
+
const animation: Record<string, Variants> = {
|
|
19
|
+
path1: {
|
|
20
|
+
initial: {
|
|
21
|
+
x: 0,
|
|
22
|
+
y: 0,
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
x: [0, -1, 1, 0],
|
|
26
|
+
y: [0, -1, 1, 0],
|
|
27
|
+
transition: {
|
|
28
|
+
duration: 1.4,
|
|
29
|
+
ease: 'easeInOut',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
path2: {},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
for (let i = 1; i <= 4; i++) {
|
|
37
|
+
animation[`line${i}`] = {
|
|
38
|
+
initial: { opacity: 1, scale: 1 },
|
|
39
|
+
animate: {
|
|
40
|
+
opacity: [0, 1],
|
|
41
|
+
pathLength: [0, 1],
|
|
42
|
+
transition: {
|
|
43
|
+
duration: 0.6,
|
|
44
|
+
ease: 'easeInOut',
|
|
45
|
+
delay: (i - 1) * 0.15,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return animation;
|
|
52
|
+
})() satisfies Record<string, Variants>,
|
|
53
|
+
} as const;
|
|
54
|
+
|
|
55
|
+
function IconComponent({ size, ...props }: CloudSunProps) {
|
|
56
|
+
const { controls } = useAnimateIconContext();
|
|
57
|
+
const variants = getVariants(animations);
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<motion.svg
|
|
61
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
62
|
+
width={size}
|
|
63
|
+
height={size}
|
|
64
|
+
viewBox="0 0 24 24"
|
|
65
|
+
fill="none"
|
|
66
|
+
stroke="currentColor"
|
|
67
|
+
strokeWidth={2}
|
|
68
|
+
strokeLinecap="round"
|
|
69
|
+
strokeLinejoin="round"
|
|
70
|
+
initial="initial"
|
|
71
|
+
animate={controls}
|
|
72
|
+
{...props}
|
|
73
|
+
>
|
|
74
|
+
<motion.path
|
|
75
|
+
d="M13,22h-6c-2.8,0-5-2.2-5-5,0-2.8,2.2-5,5-5,2.4,0,4.4,1.7,4.9,4h1.1c1.7,0,3,1.3,3,3s-1.3,3-3,3Z"
|
|
76
|
+
variants={variants.path1}
|
|
77
|
+
initial="initial"
|
|
78
|
+
animate={controls}
|
|
79
|
+
/>
|
|
80
|
+
<motion.path
|
|
81
|
+
d="M15.9,12.6c.4-2.2-1.1-4.2-3.3-4.6-.9-.1-1.8,0-2.6.5"
|
|
82
|
+
variants={variants.path2}
|
|
83
|
+
initial="initial"
|
|
84
|
+
animate={controls}
|
|
85
|
+
/>
|
|
86
|
+
<motion.line
|
|
87
|
+
x1="6.3"
|
|
88
|
+
y1="6.3"
|
|
89
|
+
x2="4.9"
|
|
90
|
+
y2="4.9"
|
|
91
|
+
variants={variants.line1}
|
|
92
|
+
initial="initial"
|
|
93
|
+
animate={controls}
|
|
94
|
+
/>
|
|
95
|
+
<motion.line
|
|
96
|
+
x1="12"
|
|
97
|
+
y1="4"
|
|
98
|
+
x2="12"
|
|
99
|
+
y2="2"
|
|
100
|
+
variants={variants.line2}
|
|
101
|
+
initial="initial"
|
|
102
|
+
animate={controls}
|
|
103
|
+
/>
|
|
104
|
+
<motion.line
|
|
105
|
+
x1="17.7"
|
|
106
|
+
y1="6.3"
|
|
107
|
+
x2="19.1"
|
|
108
|
+
y2="4.9"
|
|
109
|
+
variants={variants.line3}
|
|
110
|
+
initial="initial"
|
|
111
|
+
animate={controls}
|
|
112
|
+
/>
|
|
113
|
+
<motion.line
|
|
114
|
+
x1="20"
|
|
115
|
+
y1="12"
|
|
116
|
+
x2="22"
|
|
117
|
+
y2="12"
|
|
118
|
+
variants={variants.line4}
|
|
119
|
+
initial="initial"
|
|
120
|
+
animate={controls}
|
|
121
|
+
/>
|
|
122
|
+
</motion.svg>
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function CloudSun(props: CloudSunProps) {
|
|
127
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export { animations, CloudSun as CloudSunAnimated };
|