@nordmanai/nif 0.2.1 → 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 +7 -0
- package/dist/index.js +31332 -11730
- 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 +7 -3
- 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-kbd/nm-kbd.d.ts +5 -0
- 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-toolbar/nm-toolbar.d.ts +6 -2
- 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-icon-button.d.ts +0 -2
- 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 +5113 -72
- 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 +41 -20
- 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 +29 -250
- 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-icon-border/nm-icon-border.tsx +1 -1
- package/registry/ui/components/nm-input/nm-input.css +1 -0
- package/registry/ui/components/nm-kbd/nm-kbd.css +23 -0
- package/registry/ui/components/nm-kbd/nm-kbd.tsx +12 -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-segmented/nm-segmented.tsx +1 -1
- 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.css +0 -6
- package/registry/ui/components/nm-toolbar/nm-toolbar.tsx +16 -7
- package/registry/ui/components/nm-tooltip/nm-tooltip.css +17 -0
- 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.css +6 -9
- 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-icon-button.ts +0 -2
- 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,122 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-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 XProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
line1: {
|
|
19
|
+
initial: {
|
|
20
|
+
rotate: 0,
|
|
21
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
22
|
+
},
|
|
23
|
+
animate: {
|
|
24
|
+
rotate: 90,
|
|
25
|
+
transition: { ease: 'easeInOut', duration: 0.4 },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
line2: {
|
|
29
|
+
initial: {
|
|
30
|
+
rotate: 0,
|
|
31
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
32
|
+
},
|
|
33
|
+
animate: {
|
|
34
|
+
rotate: 90,
|
|
35
|
+
transition: { ease: 'easeInOut', duration: 0.4, delay: 0.1 },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
} satisfies Record<string, Variants>,
|
|
39
|
+
plus: {
|
|
40
|
+
line1: {
|
|
41
|
+
initial: {
|
|
42
|
+
rotate: 0,
|
|
43
|
+
x1: 6,
|
|
44
|
+
y1: 18,
|
|
45
|
+
x2: 18,
|
|
46
|
+
y2: 6,
|
|
47
|
+
transition: { ease: 'easeInOut', duration: 0.3, delay: 0.1 },
|
|
48
|
+
},
|
|
49
|
+
animate: {
|
|
50
|
+
rotate: 45,
|
|
51
|
+
x1: 7.1,
|
|
52
|
+
y1: 16.9,
|
|
53
|
+
x2: 16.9,
|
|
54
|
+
y2: 7.1,
|
|
55
|
+
transition: { ease: 'easeInOut', duration: 0.3, delay: 0.1 },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
line2: {
|
|
59
|
+
initial: {
|
|
60
|
+
rotate: 0,
|
|
61
|
+
x1: 6,
|
|
62
|
+
y1: 6,
|
|
63
|
+
x2: 18,
|
|
64
|
+
y2: 18,
|
|
65
|
+
transition: { ease: 'easeInOut', duration: 0.3 },
|
|
66
|
+
},
|
|
67
|
+
animate: {
|
|
68
|
+
rotate: 45,
|
|
69
|
+
x1: 7.1,
|
|
70
|
+
y1: 7.1,
|
|
71
|
+
x2: 16.9,
|
|
72
|
+
y2: 16.9,
|
|
73
|
+
transition: { ease: 'easeInOut', duration: 0.3 },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
} satisfies Record<string, Variants>,
|
|
77
|
+
} as const;
|
|
78
|
+
|
|
79
|
+
function IconComponent({ size, ...props }: XProps) {
|
|
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={6}
|
|
98
|
+
y1={18}
|
|
99
|
+
x2={18}
|
|
100
|
+
y2={6}
|
|
101
|
+
variants={variants.line1}
|
|
102
|
+
initial="initial"
|
|
103
|
+
animate={controls}
|
|
104
|
+
/>
|
|
105
|
+
<motion.line
|
|
106
|
+
x1={6}
|
|
107
|
+
y1={6}
|
|
108
|
+
x2={18}
|
|
109
|
+
y2={18}
|
|
110
|
+
variants={variants.line2}
|
|
111
|
+
initial="initial"
|
|
112
|
+
animate={controls}
|
|
113
|
+
/>
|
|
114
|
+
</motion.svg>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function X(props: XProps) {
|
|
119
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export { animations, X as XAnimated };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-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 ZapProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
group: {
|
|
19
|
+
initial: { scale: 1 },
|
|
20
|
+
animate: {
|
|
21
|
+
scale: [1, 0.9, 1.15, 1],
|
|
22
|
+
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
path: {},
|
|
26
|
+
} satisfies Record<string, Variants>,
|
|
27
|
+
fill: {
|
|
28
|
+
group: {
|
|
29
|
+
initial: { scale: 1 },
|
|
30
|
+
animate: {
|
|
31
|
+
scale: [1, 0.9, 1.15, 1],
|
|
32
|
+
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
path: {
|
|
36
|
+
initial: { fill: 'currentColor', fillOpacity: 0 },
|
|
37
|
+
animate: { fillOpacity: 1, transition: { delay: 0.2 } },
|
|
38
|
+
},
|
|
39
|
+
} satisfies Record<string, Variants>,
|
|
40
|
+
shake: {
|
|
41
|
+
group: {
|
|
42
|
+
initial: { scale: 1, rotate: 0 },
|
|
43
|
+
animate: {
|
|
44
|
+
scale: [1, 0.9, 1.08, 0.98, 1],
|
|
45
|
+
rotate: [0, -8, 8, -4, 0],
|
|
46
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
path: {},
|
|
50
|
+
} satisfies Record<string, Variants>,
|
|
51
|
+
} as const;
|
|
52
|
+
|
|
53
|
+
function IconComponent({ size, ...props }: ZapProps) {
|
|
54
|
+
const { controls } = useAnimateIconContext();
|
|
55
|
+
const variants = getVariants(animations);
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<motion.svg
|
|
59
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
+
width={size}
|
|
61
|
+
height={size}
|
|
62
|
+
viewBox="0 0 24 24"
|
|
63
|
+
fill="none"
|
|
64
|
+
stroke="currentColor"
|
|
65
|
+
strokeWidth={2}
|
|
66
|
+
strokeLinecap="round"
|
|
67
|
+
strokeLinejoin="round"
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
<motion.g variants={variants.group} initial="initial" animate={controls}>
|
|
71
|
+
<motion.path
|
|
72
|
+
d="M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"
|
|
73
|
+
variants={variants.path}
|
|
74
|
+
initial="initial"
|
|
75
|
+
animate={controls}
|
|
76
|
+
/>
|
|
77
|
+
</motion.g>
|
|
78
|
+
</motion.svg>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function Zap(props: ZapProps) {
|
|
83
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { animations, Zap as ZapAnimated };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-zoom-in), 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 ZoomInProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
lens: {
|
|
19
|
+
initial: { scale: 1, transformOrigin: '44.44% 44.44%' },
|
|
20
|
+
animate: {
|
|
21
|
+
scale: [1, 1.1, 1],
|
|
22
|
+
transformOrigin: '44.44% 44.44%',
|
|
23
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
sign: {
|
|
27
|
+
initial: { rotate: 0 },
|
|
28
|
+
animate: { rotate: 90, transition: { duration: 0.5, ease: 'easeInOut' } },
|
|
29
|
+
},
|
|
30
|
+
} satisfies Record<string, Variants>,
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
function IconComponent({ size, ...props }: ZoomInProps) {
|
|
34
|
+
const { controls } = useAnimateIconContext();
|
|
35
|
+
const variants = getVariants(animations);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<motion.svg
|
|
39
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
40
|
+
width={size}
|
|
41
|
+
height={size}
|
|
42
|
+
viewBox="0 0 24 24"
|
|
43
|
+
fill="none"
|
|
44
|
+
stroke="currentColor"
|
|
45
|
+
strokeWidth={2}
|
|
46
|
+
strokeLinecap="round"
|
|
47
|
+
strokeLinejoin="round"
|
|
48
|
+
{...props}
|
|
49
|
+
>
|
|
50
|
+
<motion.g variants={variants.lens} initial="initial" animate={controls}>
|
|
51
|
+
<line x1={21} x2={16.65} y1={21} y2={16.65} />
|
|
52
|
+
<circle cx={11} cy={11} r={8} />
|
|
53
|
+
<motion.g variants={variants.sign} initial="initial" animate={controls}>
|
|
54
|
+
<line x1={11} x2={11} y1={8} y2={14} />
|
|
55
|
+
<line x1={8} x2={14} y1={11} y2={11} />
|
|
56
|
+
</motion.g>
|
|
57
|
+
</motion.g>
|
|
58
|
+
</motion.svg>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function ZoomIn(props: ZoomInProps) {
|
|
63
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { animations, ZoomIn as ZoomInAnimated };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* From Animate UI's registry (icons-lucide-zoom-out), 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 ZoomOutProps = IconProps<keyof typeof animations>;
|
|
15
|
+
|
|
16
|
+
const animations = {
|
|
17
|
+
default: {
|
|
18
|
+
lens: {
|
|
19
|
+
initial: { scale: 1, transformOrigin: '44.44% 44.44%' },
|
|
20
|
+
animate: {
|
|
21
|
+
scale: [1, 1.1, 1],
|
|
22
|
+
transformOrigin: '44.44% 44.44%',
|
|
23
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
sign: {
|
|
27
|
+
initial: { scaleX: 1 },
|
|
28
|
+
animate: {
|
|
29
|
+
scaleX: [1, 0.4, 1],
|
|
30
|
+
transition: { duration: 0.5, ease: 'easeInOut' },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
} satisfies Record<string, Variants>,
|
|
34
|
+
shrink: {
|
|
35
|
+
lens: {
|
|
36
|
+
initial: { scale: 1, transformOrigin: '44.44% 44.44%' },
|
|
37
|
+
animate: {
|
|
38
|
+
scale: [1, 0.86, 1],
|
|
39
|
+
transformOrigin: '44.44% 44.44%',
|
|
40
|
+
transition: { duration: 0.9, times: [0, 0.45, 1], ease: 'easeInOut' },
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
sign: {},
|
|
44
|
+
} satisfies Record<string, Variants>,
|
|
45
|
+
} as const;
|
|
46
|
+
|
|
47
|
+
function IconComponent({ size, ...props }: ZoomOutProps) {
|
|
48
|
+
const { controls } = useAnimateIconContext();
|
|
49
|
+
const variants = getVariants(animations);
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<motion.svg
|
|
53
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
54
|
+
width={size}
|
|
55
|
+
height={size}
|
|
56
|
+
viewBox="0 0 24 24"
|
|
57
|
+
fill="none"
|
|
58
|
+
stroke="currentColor"
|
|
59
|
+
strokeWidth={2}
|
|
60
|
+
strokeLinecap="round"
|
|
61
|
+
strokeLinejoin="round"
|
|
62
|
+
{...props}
|
|
63
|
+
>
|
|
64
|
+
<motion.g variants={variants.lens} initial="initial" animate={controls}>
|
|
65
|
+
<line x1={21} x2={16.65} y1={21} y2={16.65} />
|
|
66
|
+
<circle cx={11} cy={11} r={8} />
|
|
67
|
+
<motion.line
|
|
68
|
+
x1={8}
|
|
69
|
+
x2={14}
|
|
70
|
+
y1={11}
|
|
71
|
+
y2={11}
|
|
72
|
+
variants={variants.sign}
|
|
73
|
+
initial="initial"
|
|
74
|
+
animate={controls}
|
|
75
|
+
/>
|
|
76
|
+
</motion.g>
|
|
77
|
+
</motion.svg>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ZoomOut(props: ZoomOutProps) {
|
|
82
|
+
return <IconWrapper icon={IconComponent} {...props} />;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { animations, ZoomOut as ZoomOutAnimated };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode, SVGAttributes } from 'react';
|
|
2
2
|
import { NM_ICONS, type NmIconId, type NmIconSpec } from '../../config/nm-icons.ts';
|
|
3
3
|
import { hasNmLucide, NmLucide } from './nm-lucide.tsx';
|
|
4
4
|
import { createLogger } from '../../kit-logger.ts';
|
|
5
5
|
|
|
6
6
|
const logger = createLogger('interface-nm-icon');
|
|
7
7
|
|
|
8
|
-
export type NmIconProps = {
|
|
8
|
+
export type NmIconProps = Omit<SVGAttributes<SVGElement>, 'id' | 'className' | 'style' | 'viewBox' | 'fill' | 'stroke'> & {
|
|
9
9
|
id: NmIconId;
|
|
10
10
|
className?: string;
|
|
11
|
+
/** A size in px or any CSS length, for the rare icon that is not the themed icon size. */
|
|
12
|
+
size?: number | string;
|
|
13
|
+
style?: CSSProperties;
|
|
11
14
|
};
|
|
12
15
|
|
|
13
16
|
function iconStrokes(path: string | readonly string[] | undefined): string[] {
|
|
@@ -20,10 +23,20 @@ function iconStrokes(path: string | readonly string[] | undefined): string[] {
|
|
|
20
23
|
return [...path];
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
function sizedStyle(size: number | string | undefined, style: CSSProperties | undefined): CSSProperties | undefined {
|
|
27
|
+
if (size == null) {
|
|
28
|
+
return style;
|
|
29
|
+
}
|
|
30
|
+
const length = typeof size === 'number' ? `${size}px` : size;
|
|
31
|
+
return { width: length, height: length, ...style };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function NmIcon(allProps: NmIconProps): ReactNode {
|
|
35
|
+
const { id, className, size, style, ...rest } = allProps;
|
|
36
|
+
const props = { id, className, size, style };
|
|
24
37
|
if (hasNmLucide(props.id)) {
|
|
25
38
|
logger.debug('render', props.id);
|
|
26
|
-
return <NmLucide id={props.id} className={props.className} />;
|
|
39
|
+
return <NmLucide id={props.id} className={props.className} size={props.size} style={props.style} {...rest} />;
|
|
27
40
|
}
|
|
28
41
|
const spec: NmIconSpec | undefined = NM_ICONS[props.id as keyof typeof NM_ICONS];
|
|
29
42
|
if (!spec) {
|
|
@@ -38,8 +51,10 @@ export function NmIcon(props: NmIconProps): ReactNode {
|
|
|
38
51
|
data-icon={props.id}
|
|
39
52
|
viewBox={spec.viewBox}
|
|
40
53
|
fill="none"
|
|
41
|
-
aria-hidden=
|
|
54
|
+
aria-hidden={rest['aria-label'] == null ? 'true' : undefined}
|
|
42
55
|
focusable="false"
|
|
56
|
+
{...rest}
|
|
57
|
+
style={sizedStyle(props.size, props.style)}
|
|
43
58
|
>
|
|
44
59
|
{spec.fill ? <path d={spec.fill} fill="currentColor" /> : null}
|
|
45
60
|
{strokes.map((d) => (
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/* Generated by scripts/extend-icons.mjs. */
|
|
2
|
+
import {
|
|
3
|
+
Activity,
|
|
4
|
+
AppWindow,
|
|
5
|
+
ArchiveRestore,
|
|
6
|
+
ArrowDown,
|
|
7
|
+
ArrowLeftRight,
|
|
8
|
+
ArrowRightLeft,
|
|
9
|
+
ArrowUpDown,
|
|
10
|
+
ArrowUpLeft,
|
|
11
|
+
Ban,
|
|
12
|
+
Beaker,
|
|
13
|
+
Bitcoin,
|
|
14
|
+
Bone,
|
|
15
|
+
BookCopy,
|
|
16
|
+
Bookmark,
|
|
17
|
+
BookmarkPlus,
|
|
18
|
+
CalendarDays,
|
|
19
|
+
ChartColumn,
|
|
20
|
+
ChartColumnIncreasing,
|
|
21
|
+
ChartLine,
|
|
22
|
+
CheckCheck,
|
|
23
|
+
ChevronLeft,
|
|
24
|
+
ChevronRight,
|
|
25
|
+
ChevronUp,
|
|
26
|
+
ChevronsUpDown,
|
|
27
|
+
Circle,
|
|
28
|
+
CircleAlert,
|
|
29
|
+
CircleCheckBig,
|
|
30
|
+
CircleDashed,
|
|
31
|
+
CircleDot,
|
|
32
|
+
CirclePlus,
|
|
33
|
+
CircleQuestionMark,
|
|
34
|
+
CircleX,
|
|
35
|
+
Clock3,
|
|
36
|
+
Clock4,
|
|
37
|
+
CloudSun,
|
|
38
|
+
CodeXml,
|
|
39
|
+
CopyCheck,
|
|
40
|
+
CornerDownRight,
|
|
41
|
+
Database,
|
|
42
|
+
Dices,
|
|
43
|
+
Earth,
|
|
44
|
+
ExternalLink,
|
|
45
|
+
Eye,
|
|
46
|
+
EyeOff,
|
|
47
|
+
FastForward,
|
|
48
|
+
Feather,
|
|
49
|
+
FileClock,
|
|
50
|
+
FileCode,
|
|
51
|
+
FileImage,
|
|
52
|
+
FileJson,
|
|
53
|
+
FilePenLine,
|
|
54
|
+
FilePlus2,
|
|
55
|
+
FileQuestionMark,
|
|
56
|
+
FileSearch,
|
|
57
|
+
FileSpreadsheet,
|
|
58
|
+
FileType2,
|
|
59
|
+
FileUp,
|
|
60
|
+
FileX2,
|
|
61
|
+
Files,
|
|
62
|
+
Film,
|
|
63
|
+
FolderKanban,
|
|
64
|
+
FunnelX,
|
|
65
|
+
GitBranchPlus,
|
|
66
|
+
GitCommitHorizontal,
|
|
67
|
+
GitFork,
|
|
68
|
+
GraduationCap,
|
|
69
|
+
GripVertical,
|
|
70
|
+
History,
|
|
71
|
+
ImageOff,
|
|
72
|
+
ImageUp,
|
|
73
|
+
Info,
|
|
74
|
+
KeyRound,
|
|
75
|
+
Keyboard,
|
|
76
|
+
Laptop,
|
|
77
|
+
Layers,
|
|
78
|
+
LayoutDashboard,
|
|
79
|
+
Library,
|
|
80
|
+
LifeBuoy,
|
|
81
|
+
Lightbulb,
|
|
82
|
+
Link,
|
|
83
|
+
Link2Off,
|
|
84
|
+
List,
|
|
85
|
+
ListTree,
|
|
86
|
+
MapPin,
|
|
87
|
+
MessageCircleQuestionMark,
|
|
88
|
+
MessageSquare,
|
|
89
|
+
MessageSquarePlus,
|
|
90
|
+
MessageSquareText,
|
|
91
|
+
MessagesSquare,
|
|
92
|
+
Minimize2,
|
|
93
|
+
MousePointerClick,
|
|
94
|
+
Newspaper,
|
|
95
|
+
NotebookPen,
|
|
96
|
+
OctagonPause,
|
|
97
|
+
Paperclip,
|
|
98
|
+
PenLine,
|
|
99
|
+
PenTool,
|
|
100
|
+
PinOff,
|
|
101
|
+
PlaneTakeoff,
|
|
102
|
+
PlugZap,
|
|
103
|
+
QrCode,
|
|
104
|
+
Radio,
|
|
105
|
+
RefreshCw,
|
|
106
|
+
Rocket,
|
|
107
|
+
RotateCw,
|
|
108
|
+
Scale,
|
|
109
|
+
ScanSearch,
|
|
110
|
+
ScrollText,
|
|
111
|
+
Send,
|
|
112
|
+
Share2,
|
|
113
|
+
Shield,
|
|
114
|
+
ShieldCheck,
|
|
115
|
+
ShieldEllipsis,
|
|
116
|
+
ShoppingBag,
|
|
117
|
+
SlidersHorizontal,
|
|
118
|
+
Sparkles,
|
|
119
|
+
SquarePen,
|
|
120
|
+
SquareSlash,
|
|
121
|
+
SquareTerminal,
|
|
122
|
+
Star,
|
|
123
|
+
Table2,
|
|
124
|
+
TextQuote,
|
|
125
|
+
Trash,
|
|
126
|
+
TrendingUp,
|
|
127
|
+
TriangleAlert,
|
|
128
|
+
Trophy,
|
|
129
|
+
Type,
|
|
130
|
+
User,
|
|
131
|
+
UserCheck,
|
|
132
|
+
Users,
|
|
133
|
+
UtensilsCrossed,
|
|
134
|
+
Variable,
|
|
135
|
+
Video,
|
|
136
|
+
WandSparkles,
|
|
137
|
+
Zap,
|
|
138
|
+
ZapOff,
|
|
139
|
+
ZoomIn,
|
|
140
|
+
ZoomOut,
|
|
141
|
+
type LucideIcon,
|
|
142
|
+
} from 'lucide-react';
|
|
143
|
+
import type { NM_EXTENDED_ICON_IDS } from '../../config/nm-icons-extended.ts';
|
|
144
|
+
|
|
145
|
+
export const NM_LUCIDE_EXTENDED: Record<(typeof NM_EXTENDED_ICON_IDS)[number], LucideIcon> = {
|
|
146
|
+
'activity': Activity,
|
|
147
|
+
'app-window': AppWindow,
|
|
148
|
+
'archive-restore': ArchiveRestore,
|
|
149
|
+
'arrow-down': ArrowDown,
|
|
150
|
+
'arrow-left-right': ArrowLeftRight,
|
|
151
|
+
'arrow-right-left': ArrowRightLeft,
|
|
152
|
+
'arrow-up-down': ArrowUpDown,
|
|
153
|
+
'arrow-up-left': ArrowUpLeft,
|
|
154
|
+
'ban': Ban,
|
|
155
|
+
'beaker': Beaker,
|
|
156
|
+
'bitcoin': Bitcoin,
|
|
157
|
+
'bone': Bone,
|
|
158
|
+
'book-copy': BookCopy,
|
|
159
|
+
'bookmark': Bookmark,
|
|
160
|
+
'bookmark-plus': BookmarkPlus,
|
|
161
|
+
'calendar-days': CalendarDays,
|
|
162
|
+
'chart-column': ChartColumn,
|
|
163
|
+
'chart-column-increasing': ChartColumnIncreasing,
|
|
164
|
+
'chart-line': ChartLine,
|
|
165
|
+
'check-check': CheckCheck,
|
|
166
|
+
'chevron-left': ChevronLeft,
|
|
167
|
+
'chevron-right': ChevronRight,
|
|
168
|
+
'chevron-up': ChevronUp,
|
|
169
|
+
'chevrons-up-down': ChevronsUpDown,
|
|
170
|
+
'circle': Circle,
|
|
171
|
+
'circle-alert': CircleAlert,
|
|
172
|
+
'circle-check-big': CircleCheckBig,
|
|
173
|
+
'circle-dashed': CircleDashed,
|
|
174
|
+
'circle-dot': CircleDot,
|
|
175
|
+
'circle-plus': CirclePlus,
|
|
176
|
+
'circle-question-mark': CircleQuestionMark,
|
|
177
|
+
'circle-x': CircleX,
|
|
178
|
+
'clock-3': Clock3,
|
|
179
|
+
'clock-4': Clock4,
|
|
180
|
+
'cloud-sun': CloudSun,
|
|
181
|
+
'code-xml': CodeXml,
|
|
182
|
+
'copy-check': CopyCheck,
|
|
183
|
+
'corner-down-right': CornerDownRight,
|
|
184
|
+
'database': Database,
|
|
185
|
+
'dices': Dices,
|
|
186
|
+
'earth': Earth,
|
|
187
|
+
'external-link': ExternalLink,
|
|
188
|
+
'eye': Eye,
|
|
189
|
+
'eye-off': EyeOff,
|
|
190
|
+
'fast-forward': FastForward,
|
|
191
|
+
'feather': Feather,
|
|
192
|
+
'file-clock': FileClock,
|
|
193
|
+
'file-code': FileCode,
|
|
194
|
+
'file-image': FileImage,
|
|
195
|
+
'file-json': FileJson,
|
|
196
|
+
'file-pen-line': FilePenLine,
|
|
197
|
+
'file-plus-2': FilePlus2,
|
|
198
|
+
'file-question-mark': FileQuestionMark,
|
|
199
|
+
'file-search': FileSearch,
|
|
200
|
+
'file-spreadsheet': FileSpreadsheet,
|
|
201
|
+
'file-type-2': FileType2,
|
|
202
|
+
'file-up': FileUp,
|
|
203
|
+
'file-x-2': FileX2,
|
|
204
|
+
'files': Files,
|
|
205
|
+
'film': Film,
|
|
206
|
+
'folder-kanban': FolderKanban,
|
|
207
|
+
'funnel-x': FunnelX,
|
|
208
|
+
'git-branch-plus': GitBranchPlus,
|
|
209
|
+
'git-commit-horizontal': GitCommitHorizontal,
|
|
210
|
+
'git-fork': GitFork,
|
|
211
|
+
'graduation-cap': GraduationCap,
|
|
212
|
+
'grip-vertical': GripVertical,
|
|
213
|
+
'history': History,
|
|
214
|
+
'image-off': ImageOff,
|
|
215
|
+
'image-up': ImageUp,
|
|
216
|
+
'info': Info,
|
|
217
|
+
'key-round': KeyRound,
|
|
218
|
+
'keyboard': Keyboard,
|
|
219
|
+
'laptop': Laptop,
|
|
220
|
+
'layers': Layers,
|
|
221
|
+
'layout-dashboard': LayoutDashboard,
|
|
222
|
+
'library': Library,
|
|
223
|
+
'life-buoy': LifeBuoy,
|
|
224
|
+
'lightbulb': Lightbulb,
|
|
225
|
+
'link': Link,
|
|
226
|
+
'link-2-off': Link2Off,
|
|
227
|
+
'list': List,
|
|
228
|
+
'list-tree': ListTree,
|
|
229
|
+
'map-pin': MapPin,
|
|
230
|
+
'message-circle-question-mark': MessageCircleQuestionMark,
|
|
231
|
+
'message-square': MessageSquare,
|
|
232
|
+
'message-square-plus': MessageSquarePlus,
|
|
233
|
+
'message-square-text': MessageSquareText,
|
|
234
|
+
'messages-square': MessagesSquare,
|
|
235
|
+
'minimize-2': Minimize2,
|
|
236
|
+
'mouse-pointer-click': MousePointerClick,
|
|
237
|
+
'newspaper': Newspaper,
|
|
238
|
+
'notebook-pen': NotebookPen,
|
|
239
|
+
'octagon-pause': OctagonPause,
|
|
240
|
+
'paperclip': Paperclip,
|
|
241
|
+
'pen-line': PenLine,
|
|
242
|
+
'pen-tool': PenTool,
|
|
243
|
+
'pin-off': PinOff,
|
|
244
|
+
'plane-takeoff': PlaneTakeoff,
|
|
245
|
+
'plug-zap': PlugZap,
|
|
246
|
+
'qr-code': QrCode,
|
|
247
|
+
'radio': Radio,
|
|
248
|
+
'refresh-cw': RefreshCw,
|
|
249
|
+
'rocket': Rocket,
|
|
250
|
+
'rotate-cw': RotateCw,
|
|
251
|
+
'scale': Scale,
|
|
252
|
+
'scan-search': ScanSearch,
|
|
253
|
+
'scroll-text': ScrollText,
|
|
254
|
+
'send': Send,
|
|
255
|
+
'share-2': Share2,
|
|
256
|
+
'shield': Shield,
|
|
257
|
+
'shield-check': ShieldCheck,
|
|
258
|
+
'shield-ellipsis': ShieldEllipsis,
|
|
259
|
+
'shopping-bag': ShoppingBag,
|
|
260
|
+
'sliders-horizontal': SlidersHorizontal,
|
|
261
|
+
'sparkles': Sparkles,
|
|
262
|
+
'square-pen': SquarePen,
|
|
263
|
+
'square-slash': SquareSlash,
|
|
264
|
+
'square-terminal': SquareTerminal,
|
|
265
|
+
'star': Star,
|
|
266
|
+
'table-2': Table2,
|
|
267
|
+
'text-quote': TextQuote,
|
|
268
|
+
'trash': Trash,
|
|
269
|
+
'trending-up': TrendingUp,
|
|
270
|
+
'triangle-alert': TriangleAlert,
|
|
271
|
+
'trophy': Trophy,
|
|
272
|
+
'type': Type,
|
|
273
|
+
'user': User,
|
|
274
|
+
'user-check': UserCheck,
|
|
275
|
+
'users': Users,
|
|
276
|
+
'utensils-crossed': UtensilsCrossed,
|
|
277
|
+
'variable': Variable,
|
|
278
|
+
'video': Video,
|
|
279
|
+
'wand-sparkles': WandSparkles,
|
|
280
|
+
'zap': Zap,
|
|
281
|
+
'zap-off': ZapOff,
|
|
282
|
+
'zoom-in': ZoomIn,
|
|
283
|
+
'zoom-out': ZoomOut,
|
|
284
|
+
};
|