@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,128 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-calendar-days), 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 CalendarDaysProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
day1: {
|
|
19
|
+
initial: { opacity: 1 },
|
|
20
|
+
animate: {
|
|
21
|
+
opacity: [0, 0, 1],
|
|
22
|
+
transition: { duration: 1, times: [0, 0.1, 0.18], ease: 'easeOut' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
day2: {
|
|
26
|
+
initial: { opacity: 1 },
|
|
27
|
+
animate: {
|
|
28
|
+
opacity: [0, 0, 1],
|
|
29
|
+
transition: { duration: 1, times: [0, 0.22, 0.3], ease: 'easeOut' },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
day3: {
|
|
33
|
+
initial: { opacity: 1 },
|
|
34
|
+
animate: {
|
|
35
|
+
opacity: [0, 0, 1],
|
|
36
|
+
transition: { duration: 1, times: [0, 0.34, 0.42], ease: 'easeOut' },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
day4: {
|
|
40
|
+
initial: { opacity: 1 },
|
|
41
|
+
animate: {
|
|
42
|
+
opacity: [0, 0, 1],
|
|
43
|
+
transition: { duration: 1, times: [0, 0.46, 0.54], ease: 'easeOut' },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
day5: {
|
|
47
|
+
initial: { opacity: 1 },
|
|
48
|
+
animate: {
|
|
49
|
+
opacity: [0, 0, 1],
|
|
50
|
+
transition: { duration: 1, times: [0, 0.58, 0.66], ease: 'easeOut' },
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
day6: {
|
|
54
|
+
initial: { opacity: 1 },
|
|
55
|
+
animate: {
|
|
56
|
+
opacity: [0, 0, 1],
|
|
57
|
+
transition: { duration: 1, times: [0, 0.7, 0.78], ease: 'easeOut' },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
} satisfies Record<string, Variants>,
|
|
61
|
+
} as const;
|
|
62
|
+
|
|
63
|
+
function IconComponent({ size, ...props }: CalendarDaysProps) {
|
|
64
|
+
const { controls } = useAnimateIconContext();
|
|
65
|
+
const variants = getVariants(animations);
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<motion.svg
|
|
69
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
70
|
+
width={size}
|
|
71
|
+
height={size}
|
|
72
|
+
viewBox="0 0 24 24"
|
|
73
|
+
fill="none"
|
|
74
|
+
stroke="currentColor"
|
|
75
|
+
strokeWidth={2}
|
|
76
|
+
strokeLinecap="round"
|
|
77
|
+
strokeLinejoin="round"
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
80
|
+
<path d="M8 2v3" />
|
|
81
|
+
<path d="M16 2v3" />
|
|
82
|
+
<rect x={3} y={3} width={18} height={18} rx={2} />
|
|
83
|
+
<path d="M3 9h18" />
|
|
84
|
+
<motion.path
|
|
85
|
+
d="M8 13h.01"
|
|
86
|
+
variants={variants.day1}
|
|
87
|
+
initial="initial"
|
|
88
|
+
animate={controls}
|
|
89
|
+
/>
|
|
90
|
+
<motion.path
|
|
91
|
+
d="M12 13h.01"
|
|
92
|
+
variants={variants.day2}
|
|
93
|
+
initial="initial"
|
|
94
|
+
animate={controls}
|
|
95
|
+
/>
|
|
96
|
+
<motion.path
|
|
97
|
+
d="M16 13h.01"
|
|
98
|
+
variants={variants.day3}
|
|
99
|
+
initial="initial"
|
|
100
|
+
animate={controls}
|
|
101
|
+
/>
|
|
102
|
+
<motion.path
|
|
103
|
+
d="M8 17h.01"
|
|
104
|
+
variants={variants.day4}
|
|
105
|
+
initial="initial"
|
|
106
|
+
animate={controls}
|
|
107
|
+
/>
|
|
108
|
+
<motion.path
|
|
109
|
+
d="M12 17h.01"
|
|
110
|
+
variants={variants.day5}
|
|
111
|
+
initial="initial"
|
|
112
|
+
animate={controls}
|
|
113
|
+
/>
|
|
114
|
+
<motion.path
|
|
115
|
+
d="M16 17h.01"
|
|
116
|
+
variants={variants.day6}
|
|
117
|
+
initial="initial"
|
|
118
|
+
animate={controls}
|
|
119
|
+
/>
|
|
120
|
+
</motion.svg>
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function CalendarDays(props: CalendarDaysProps) {
|
|
125
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { animations, CalendarDays as CalendarDaysAnimated };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-calendar), 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 CalendarProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
ring1: {
|
|
19
|
+
initial: { y: 0 },
|
|
20
|
+
animate: {
|
|
21
|
+
y: [0, -1, 0, -0.3, 0],
|
|
22
|
+
transition: {
|
|
23
|
+
duration: 0.5,
|
|
24
|
+
ease: 'easeInOut',
|
|
25
|
+
times: [0, 0.3, 0.55, 0.75, 1],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
ring2: {
|
|
30
|
+
initial: { y: 0 },
|
|
31
|
+
animate: {
|
|
32
|
+
y: [0, -1, 0, -0.3, 0],
|
|
33
|
+
transition: {
|
|
34
|
+
duration: 0.5,
|
|
35
|
+
ease: 'easeInOut',
|
|
36
|
+
times: [0, 0.3, 0.55, 0.75, 1],
|
|
37
|
+
delay: 0.08,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
} satisfies Record<string, Variants>,
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
function IconComponent({ size, ...props }: CalendarProps) {
|
|
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.path
|
|
62
|
+
d="M8 2v3"
|
|
63
|
+
variants={variants.ring1}
|
|
64
|
+
initial="initial"
|
|
65
|
+
animate={controls}
|
|
66
|
+
/>
|
|
67
|
+
<motion.path
|
|
68
|
+
d="M16 2v3"
|
|
69
|
+
variants={variants.ring2}
|
|
70
|
+
initial="initial"
|
|
71
|
+
animate={controls}
|
|
72
|
+
/>
|
|
73
|
+
<rect x={3} y={3} width={18} height={18} rx={2} />
|
|
74
|
+
<path d="M3 9h18" />
|
|
75
|
+
</motion.svg>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function Calendar(props: CalendarProps) {
|
|
80
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { animations, Calendar as CalendarAnimated };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-camera), 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 CameraProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
body: {
|
|
19
|
+
initial: { scale: 1 },
|
|
20
|
+
animate: {
|
|
21
|
+
scale: [1, 0.94, 1],
|
|
22
|
+
transition: { duration: 0.4, ease: 'easeInOut' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
lens: {
|
|
26
|
+
initial: { scale: 1 },
|
|
27
|
+
animate: {
|
|
28
|
+
scale: [1, 0.7, 1.1, 1],
|
|
29
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
} satisfies Record<string, Variants>,
|
|
33
|
+
flash: {
|
|
34
|
+
body: {},
|
|
35
|
+
lens: {
|
|
36
|
+
initial: { fill: 'currentColor', fillOpacity: 0 },
|
|
37
|
+
animate: {
|
|
38
|
+
fillOpacity: [0, 1, 0, 1, 0, 1, 0],
|
|
39
|
+
transition: {
|
|
40
|
+
duration: 0.6,
|
|
41
|
+
times: [0, 0.17, 0.33, 0.5, 0.67, 0.83, 1],
|
|
42
|
+
ease: 'easeInOut',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
} satisfies Record<string, Variants>,
|
|
47
|
+
} as const;
|
|
48
|
+
|
|
49
|
+
function IconComponent({ size, ...props }: CameraProps) {
|
|
50
|
+
const { controls } = useAnimateIconContext();
|
|
51
|
+
const variants = getVariants(animations);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<motion.svg
|
|
55
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
56
|
+
width={size}
|
|
57
|
+
height={size}
|
|
58
|
+
viewBox="0 0 24 24"
|
|
59
|
+
fill="none"
|
|
60
|
+
stroke="currentColor"
|
|
61
|
+
strokeWidth={2}
|
|
62
|
+
strokeLinecap="round"
|
|
63
|
+
strokeLinejoin="round"
|
|
64
|
+
{...props}
|
|
65
|
+
>
|
|
66
|
+
<motion.g variants={variants.body} initial="initial" animate={controls}>
|
|
67
|
+
<path d="M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z" />
|
|
68
|
+
<motion.circle
|
|
69
|
+
cx={12}
|
|
70
|
+
cy={13}
|
|
71
|
+
r={3}
|
|
72
|
+
variants={variants.lens}
|
|
73
|
+
initial="initial"
|
|
74
|
+
animate={controls}
|
|
75
|
+
/>
|
|
76
|
+
</motion.g>
|
|
77
|
+
</motion.svg>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function Camera(props: CameraProps) {
|
|
82
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { animations, Camera as CameraAnimated };
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-chart-column-increasing), 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 ChartColumnIncreasingProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: (() => {
|
|
18
|
+
const animation: Record<string, Variants> = {
|
|
19
|
+
path4: {},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
for (let i = 1; i <= 3; i++) {
|
|
23
|
+
animation[`path${i}`] = {
|
|
24
|
+
initial: { opacity: 1, pathLength: 1 },
|
|
25
|
+
animate: {
|
|
26
|
+
opacity: [0, 1],
|
|
27
|
+
pathLength: [0, 1],
|
|
28
|
+
transition: {
|
|
29
|
+
ease: 'easeInOut',
|
|
30
|
+
duration: 0.4,
|
|
31
|
+
delay: (i - 1) * 0.3,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return animation as Record<string, Variants>;
|
|
38
|
+
})() satisfies Record<string, Variants>,
|
|
39
|
+
'default-loop': (() => {
|
|
40
|
+
const n = 3;
|
|
41
|
+
const delayStep = 0.3;
|
|
42
|
+
const segDuration = 0.4;
|
|
43
|
+
|
|
44
|
+
const startOut = (i: number) => (n - i) * delayStep;
|
|
45
|
+
const endOut = (i: number) => startOut(i) + segDuration;
|
|
46
|
+
|
|
47
|
+
const outTotal = Math.max(
|
|
48
|
+
...Array.from({ length: n }, (_, k) => endOut(k + 1)),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
const startIn = (i: number) => outTotal + (i - 1) * delayStep;
|
|
52
|
+
const endIn = (i: number) => startIn(i) + segDuration;
|
|
53
|
+
|
|
54
|
+
const totalDuration = Math.max(
|
|
55
|
+
...Array.from({ length: n }, (_, k) => endIn(k + 1)),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const animation: Record<string, Variants> = {};
|
|
59
|
+
|
|
60
|
+
for (let i = 1; i <= n; i++) {
|
|
61
|
+
const tSO = startOut(i) / totalDuration;
|
|
62
|
+
const tEO = endOut(i) / totalDuration;
|
|
63
|
+
const tSI = startIn(i) / totalDuration;
|
|
64
|
+
const tEI = endIn(i) / totalDuration;
|
|
65
|
+
|
|
66
|
+
animation[`path${i}`] = {
|
|
67
|
+
initial: { opacity: 1, pathLength: 1 },
|
|
68
|
+
animate: {
|
|
69
|
+
pathLength: [1, 1, 0, 0, 1],
|
|
70
|
+
opacity: [1, 1, 0, 0, 1],
|
|
71
|
+
transition: {
|
|
72
|
+
ease: 'easeInOut',
|
|
73
|
+
duration: totalDuration,
|
|
74
|
+
times: [0, tSO, tEO, tSI, tEI],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return animation as Record<string, Variants>;
|
|
81
|
+
})() satisfies Record<string, Variants>,
|
|
82
|
+
decreasing: {
|
|
83
|
+
path1: {
|
|
84
|
+
initial: { d: 'M8 17V13' },
|
|
85
|
+
animate: {
|
|
86
|
+
d: 'M8 17V5',
|
|
87
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
path2: {},
|
|
91
|
+
path3: {
|
|
92
|
+
initial: { d: 'M18 17V5' },
|
|
93
|
+
animate: {
|
|
94
|
+
d: 'M18 17V13',
|
|
95
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
} satisfies Record<string, Variants>,
|
|
99
|
+
} as const;
|
|
100
|
+
|
|
101
|
+
function IconComponent({ size, ...props }: ChartColumnIncreasingProps) {
|
|
102
|
+
const { controls } = useAnimateIconContext();
|
|
103
|
+
const variants = getVariants(animations);
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<motion.svg
|
|
107
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
108
|
+
width={size}
|
|
109
|
+
height={size}
|
|
110
|
+
viewBox="0 0 24 24"
|
|
111
|
+
fill="none"
|
|
112
|
+
stroke="currentColor"
|
|
113
|
+
strokeWidth={2}
|
|
114
|
+
strokeLinecap="round"
|
|
115
|
+
strokeLinejoin="round"
|
|
116
|
+
{...props}
|
|
117
|
+
>
|
|
118
|
+
<motion.path
|
|
119
|
+
d="M8 17V13"
|
|
120
|
+
variants={variants.path1}
|
|
121
|
+
initial="initial"
|
|
122
|
+
animate={controls}
|
|
123
|
+
/>
|
|
124
|
+
<motion.path
|
|
125
|
+
d="M13 17V9"
|
|
126
|
+
variants={variants.path2}
|
|
127
|
+
initial="initial"
|
|
128
|
+
animate={controls}
|
|
129
|
+
/>
|
|
130
|
+
<motion.path
|
|
131
|
+
d="M18 17V5"
|
|
132
|
+
variants={variants.path3}
|
|
133
|
+
initial="initial"
|
|
134
|
+
animate={controls}
|
|
135
|
+
/>
|
|
136
|
+
<motion.path
|
|
137
|
+
d="M3 3v16a2 2 0 0 0 2 2h16"
|
|
138
|
+
variants={variants.path4}
|
|
139
|
+
initial="initial"
|
|
140
|
+
animate={controls}
|
|
141
|
+
/>
|
|
142
|
+
</motion.svg>
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function ChartColumnIncreasing(props: ChartColumnIncreasingProps) {
|
|
147
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export { animations, ChartColumnIncreasing as ChartColumnIncreasingAnimated };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-chart-column), 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 ChartColumnProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: (() => {
|
|
18
|
+
const animation: Record<string, Variants> = {
|
|
19
|
+
path4: {},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
for (let i = 1; i <= 3; i++) {
|
|
23
|
+
animation[`path${i}`] = {
|
|
24
|
+
initial: { opacity: 1, pathLength: 1 },
|
|
25
|
+
animate: {
|
|
26
|
+
opacity: [0, 1],
|
|
27
|
+
pathLength: [0, 1],
|
|
28
|
+
transition: {
|
|
29
|
+
ease: 'easeInOut',
|
|
30
|
+
duration: 0.4,
|
|
31
|
+
delay: (i - 1) * 0.3,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return animation as Record<string, Variants>;
|
|
38
|
+
})() satisfies Record<string, Variants>,
|
|
39
|
+
'default-loop': (() => {
|
|
40
|
+
const n = 3;
|
|
41
|
+
const delayStep = 0.3;
|
|
42
|
+
const segDuration = 0.4;
|
|
43
|
+
|
|
44
|
+
const startOut = (i: number) => (n - i) * delayStep;
|
|
45
|
+
const endOut = (i: number) => startOut(i) + segDuration;
|
|
46
|
+
|
|
47
|
+
const outTotal = Math.max(
|
|
48
|
+
...Array.from({ length: n }, (_, k) => endOut(k + 1)),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
const startIn = (i: number) => outTotal + (i - 1) * delayStep;
|
|
52
|
+
const endIn = (i: number) => startIn(i) + segDuration;
|
|
53
|
+
|
|
54
|
+
const totalDuration = Math.max(
|
|
55
|
+
...Array.from({ length: n }, (_, k) => endIn(k + 1)),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const animation: Record<string, Variants> = {};
|
|
59
|
+
|
|
60
|
+
for (let i = 1; i <= n; i++) {
|
|
61
|
+
const tSO = startOut(i) / totalDuration;
|
|
62
|
+
const tEO = endOut(i) / totalDuration;
|
|
63
|
+
const tSI = startIn(i) / totalDuration;
|
|
64
|
+
const tEI = endIn(i) / totalDuration;
|
|
65
|
+
|
|
66
|
+
animation[`path${i}`] = {
|
|
67
|
+
initial: { opacity: 1, pathLength: 1 },
|
|
68
|
+
animate: {
|
|
69
|
+
pathLength: [1, 1, 0, 0, 1],
|
|
70
|
+
opacity: [1, 1, 0, 0, 1],
|
|
71
|
+
transition: {
|
|
72
|
+
ease: 'easeInOut',
|
|
73
|
+
duration: totalDuration,
|
|
74
|
+
times: [0, tSO, tEO, tSI, tEI],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return animation as Record<string, Variants>;
|
|
81
|
+
})() satisfies Record<string, Variants>,
|
|
82
|
+
increasing: {
|
|
83
|
+
path1: {
|
|
84
|
+
initial: { d: 'M8 17V13' },
|
|
85
|
+
animate: {
|
|
86
|
+
d: 'M8 17V13',
|
|
87
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
path2: {
|
|
91
|
+
initial: { d: 'M13 17V5' },
|
|
92
|
+
animate: {
|
|
93
|
+
d: 'M13 17V9',
|
|
94
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
path3: {
|
|
98
|
+
initial: { d: 'M18 17V9' },
|
|
99
|
+
animate: {
|
|
100
|
+
d: 'M18 17V5',
|
|
101
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
} satisfies Record<string, Variants>,
|
|
105
|
+
decreasing: {
|
|
106
|
+
path1: {
|
|
107
|
+
initial: { d: 'M8 17V13' },
|
|
108
|
+
animate: {
|
|
109
|
+
d: 'M8 17V5',
|
|
110
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
path2: {
|
|
114
|
+
initial: { d: 'M13 17V5' },
|
|
115
|
+
animate: {
|
|
116
|
+
d: 'M13 17V9',
|
|
117
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
path3: {
|
|
121
|
+
initial: { d: 'M18 17V9' },
|
|
122
|
+
animate: {
|
|
123
|
+
d: 'M18 17V13',
|
|
124
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
} satisfies Record<string, Variants>,
|
|
128
|
+
} as const;
|
|
129
|
+
|
|
130
|
+
function IconComponent({ size, ...props }: ChartColumnProps) {
|
|
131
|
+
const { controls } = useAnimateIconContext();
|
|
132
|
+
const variants = getVariants(animations);
|
|
133
|
+
|
|
134
|
+
return (
|
|
135
|
+
<motion.svg
|
|
136
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
137
|
+
width={size}
|
|
138
|
+
height={size}
|
|
139
|
+
viewBox="0 0 24 24"
|
|
140
|
+
fill="none"
|
|
141
|
+
stroke="currentColor"
|
|
142
|
+
strokeWidth={2}
|
|
143
|
+
strokeLinecap="round"
|
|
144
|
+
strokeLinejoin="round"
|
|
145
|
+
{...props}
|
|
146
|
+
>
|
|
147
|
+
<motion.path
|
|
148
|
+
d="M8 17V13"
|
|
149
|
+
variants={variants.path1}
|
|
150
|
+
initial="initial"
|
|
151
|
+
animate={controls}
|
|
152
|
+
/>
|
|
153
|
+
<motion.path
|
|
154
|
+
d="M13 17V5"
|
|
155
|
+
variants={variants.path2}
|
|
156
|
+
initial="initial"
|
|
157
|
+
animate={controls}
|
|
158
|
+
/>
|
|
159
|
+
<motion.path
|
|
160
|
+
d="M18 17V9"
|
|
161
|
+
variants={variants.path3}
|
|
162
|
+
initial="initial"
|
|
163
|
+
animate={controls}
|
|
164
|
+
/>
|
|
165
|
+
<motion.path
|
|
166
|
+
d="M3 3v16a2 2 0 0 0 2 2h16"
|
|
167
|
+
variants={variants.path4}
|
|
168
|
+
initial="initial"
|
|
169
|
+
animate={controls}
|
|
170
|
+
/>
|
|
171
|
+
</motion.svg>
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function ChartColumn(props: ChartColumnProps) {
|
|
176
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export { animations, ChartColumn as ChartColumnAnimated };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-chart-line), 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 ChartLineProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
path1: {},
|
|
19
|
+
path2: {
|
|
20
|
+
initial: { opacity: 1, pathLength: 1, pathOffset: 0 },
|
|
21
|
+
animate: {
|
|
22
|
+
opacity: [0, 1],
|
|
23
|
+
pathLength: [0, 1],
|
|
24
|
+
pathOffset: [1, 0],
|
|
25
|
+
transition: {
|
|
26
|
+
duration: 0.8,
|
|
27
|
+
ease: 'easeInOut',
|
|
28
|
+
opacity: { duration: 0.01 },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
} satisfies Record<string, Variants>,
|
|
33
|
+
'default-loop': {
|
|
34
|
+
path1: {},
|
|
35
|
+
path2: {
|
|
36
|
+
initial: { opacity: 1, pathLength: 1, pathOffset: 0 },
|
|
37
|
+
animate: {
|
|
38
|
+
opacity: [1, 0, 1],
|
|
39
|
+
pathLength: [1, 0, 1],
|
|
40
|
+
pathOffset: [0, 1, 0],
|
|
41
|
+
transition: {
|
|
42
|
+
duration: 1.6,
|
|
43
|
+
ease: 'easeInOut',
|
|
44
|
+
opacity: { duration: 0.01 },
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
} satisfies Record<string, Variants>,
|
|
49
|
+
} as const;
|
|
50
|
+
|
|
51
|
+
function IconComponent({ size, ...props }: ChartLineProps) {
|
|
52
|
+
const { controls } = useAnimateIconContext();
|
|
53
|
+
const variants = getVariants(animations);
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<motion.svg
|
|
57
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
58
|
+
width={size}
|
|
59
|
+
height={size}
|
|
60
|
+
viewBox="0 0 24 24"
|
|
61
|
+
fill="none"
|
|
62
|
+
stroke="currentColor"
|
|
63
|
+
strokeWidth={2}
|
|
64
|
+
strokeLinecap="round"
|
|
65
|
+
strokeLinejoin="round"
|
|
66
|
+
{...props}
|
|
67
|
+
>
|
|
68
|
+
<motion.path
|
|
69
|
+
d="M3 3v16a2 2 0 0 0 2 2h16"
|
|
70
|
+
variants={variants.path1}
|
|
71
|
+
initial="initial"
|
|
72
|
+
animate={controls}
|
|
73
|
+
/>
|
|
74
|
+
<motion.path
|
|
75
|
+
d="m19 9-5 5-4-4-3 3"
|
|
76
|
+
variants={variants.path2}
|
|
77
|
+
initial="initial"
|
|
78
|
+
animate={controls}
|
|
79
|
+
/>
|
|
80
|
+
</motion.svg>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function ChartLine(props: ChartLineProps) {
|
|
85
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { animations, ChartLine as ChartLineAnimated };
|