@nordmanai/nif 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -2
- package/bin/nif.mjs +196 -0
- package/dist/index.d.ts +124 -0
- package/dist/index.js +12961 -0
- package/dist/styles.css +2 -0
- package/dist/tokens.css +72 -0
- package/dist/ui/components/nm-ai/nm-ai.d.ts +222 -0
- package/dist/ui/components/nm-avatar/nm-avatar.d.ts +12 -0
- package/dist/ui/components/nm-bar-overflow/nm-bar-overflow.d.ts +15 -0
- package/dist/ui/components/nm-bar-overflow/use-bar-overflow.d.ts +7 -0
- package/dist/ui/components/nm-brand-logo/nm-brand-logo.d.ts +10 -0
- package/dist/ui/components/nm-breadcrumb/nm-breadcrumb.d.ts +11 -0
- package/dist/ui/components/nm-button/nm-button.d.ts +19 -0
- package/dist/ui/components/nm-button-group/nm-button-group.d.ts +17 -0
- package/dist/ui/components/nm-calendar/nm-calendar.d.ts +3 -0
- package/dist/ui/components/nm-card/nm-card.d.ts +34 -0
- package/dist/ui/components/nm-chatbox/nm-chatbox-icon.d.ts +7 -0
- package/dist/ui/components/nm-chatbox/nm-chatbox.d.ts +19 -0
- package/dist/ui/components/nm-checkbox/nm-checkbox.d.ts +2 -0
- package/dist/ui/components/nm-chip/nm-chip.d.ts +38 -0
- package/dist/ui/components/nm-code-block/nm-code-block.d.ts +55 -0
- package/dist/ui/components/nm-collection/nm-collection-bar.d.ts +16 -0
- package/dist/ui/components/nm-collection/nm-collection-grid.d.ts +9 -0
- package/dist/ui/components/nm-collection/nm-collection-query.d.ts +18 -0
- package/dist/ui/components/nm-collection/nm-collection-row-menu.d.ts +7 -0
- package/dist/ui/components/nm-collection/nm-collection-table.d.ts +13 -0
- package/dist/ui/components/nm-collection/nm-collection-tile-actions.d.ts +7 -0
- package/dist/ui/components/nm-collection/nm-collection-title.d.ts +10 -0
- package/dist/ui/components/nm-collection/use-collection-scroll-reveal.d.ts +3 -0
- package/dist/ui/components/nm-color-picker/nm-color-picker.d.ts +15 -0
- package/dist/ui/components/nm-combobox/nm-combobox.d.ts +26 -0
- package/dist/ui/components/nm-command/nm-command.d.ts +37 -0
- package/dist/ui/components/nm-composer/nm-composer.d.ts +33 -0
- package/dist/ui/components/nm-context-menu/nm-context-menu.d.ts +9 -0
- package/dist/ui/components/nm-date-picker/nm-date-picker.d.ts +35 -0
- package/dist/ui/components/nm-dialog/nm-dialog.d.ts +13 -0
- package/dist/ui/components/nm-dropdown/nm-dropdown-item.d.ts +26 -0
- package/dist/ui/components/nm-dropdown/nm-dropdown-options.d.ts +12 -0
- package/dist/ui/components/nm-dropdown/nm-dropdown-panel.d.ts +16 -0
- package/dist/ui/components/nm-dropdown/nm-dropdown-placement.d.ts +55 -0
- package/dist/ui/components/nm-dropdown/nm-dropdown.d.ts +31 -0
- package/dist/ui/components/nm-dropdown-menu/nm-dropdown-menu.d.ts +30 -0
- package/dist/ui/components/nm-field/nm-field.d.ts +52 -0
- package/dist/ui/components/nm-form-field/nm-form-field.d.ts +18 -0
- package/dist/ui/components/nm-gallery/nm-gallery.d.ts +8 -0
- package/dist/ui/components/nm-hover-card/nm-hover-card.d.ts +5 -0
- package/dist/ui/components/nm-icon/nm-icon.d.ts +7 -0
- package/dist/ui/components/nm-icon/nm-lucide.d.ts +7 -0
- package/dist/ui/components/nm-icon-border/nm-icon-border.d.ts +21 -0
- package/dist/ui/components/nm-input/nm-input.d.ts +5 -0
- package/dist/ui/components/nm-input-group/nm-input-group.d.ts +9 -0
- package/dist/ui/components/nm-label/nm-label.d.ts +2 -0
- package/dist/ui/components/nm-list-item/nm-list-item.d.ts +23 -0
- package/dist/ui/components/nm-menubar/nm-menubar.d.ts +9 -0
- package/dist/ui/components/nm-message/nm-message-actions.d.ts +7 -0
- package/dist/ui/components/nm-message/nm-message-meta.d.ts +10 -0
- package/dist/ui/components/nm-message/nm-text-shimmer.d.ts +4 -0
- package/dist/ui/components/nm-message/nm-trace.d.ts +58 -0
- package/dist/ui/components/nm-modal/nm-modal.d.ts +35 -0
- package/dist/ui/components/nm-native-select/nm-native-select.d.ts +5 -0
- package/dist/ui/components/nm-panel/nm-panel.d.ts +14 -0
- package/dist/ui/components/nm-panel-bar/nm-panel-bar.d.ts +17 -0
- package/dist/ui/components/nm-popover/nm-popover.d.ts +8 -0
- package/dist/ui/components/nm-progress/nm-progress.d.ts +3 -0
- package/dist/ui/components/nm-prose/nm-prose.d.ts +6 -0
- package/dist/ui/components/nm-questionnaire/nm-questionnaire.d.ts +17 -0
- package/dist/ui/components/nm-radio-group/nm-radio-group.d.ts +4 -0
- package/dist/ui/components/nm-rail-icon/nm-rail-icon.d.ts +6 -0
- package/dist/ui/components/nm-resize-handle/nm-resize-handle.d.ts +18 -0
- package/dist/ui/components/nm-segmented/nm-segmented.d.ts +20 -0
- package/dist/ui/components/nm-select/nm-select.d.ts +22 -0
- package/dist/ui/components/nm-separator/nm-separator.d.ts +2 -0
- package/dist/ui/components/nm-side-panel/nm-side-panel.d.ts +33 -0
- package/dist/ui/components/nm-slider/nm-slider.d.ts +6 -0
- package/dist/ui/components/nm-small-icon-button/nm-small-icon-button.d.ts +21 -0
- package/dist/ui/components/nm-status-bar/nm-status-bar.d.ts +8 -0
- package/dist/ui/components/nm-switch/nm-switch.d.ts +2 -0
- package/dist/ui/components/nm-table/nm-table.d.ts +38 -0
- package/dist/ui/components/nm-tabs/nm-tabs.d.ts +9 -0
- package/dist/ui/components/nm-textarea/nm-textarea.d.ts +2 -0
- package/dist/ui/components/nm-toggle/nm-toggle.d.ts +9 -0
- package/dist/ui/components/nm-toolbar/nm-toolbar.d.ts +21 -0
- package/dist/ui/components/nm-tooltip/nm-tooltip.d.ts +5 -0
- package/dist/ui/components/nm-top-bar/nm-top-bar.d.ts +12 -0
- package/dist/ui/components/nordman-icon-button/nordman-icon-button.d.ts +29 -0
- package/dist/ui/components/nordman-login/nordman-login.d.ts +36 -0
- package/dist/ui/components/nordman-login-field/nordman-login-field.d.ts +13 -0
- package/dist/ui/components/nordman-login-forgot/nordman-login-forgot.d.ts +9 -0
- package/dist/ui/components/nordman-login-google/nordman-login-google.d.ts +6 -0
- package/dist/ui/components/nordman-login-hero/nordman-login-hero.d.ts +6 -0
- package/dist/ui/components/nordman-login-register/nordman-login-register.d.ts +11 -0
- package/dist/ui/components/nordman-login-reset/nordman-login-reset.d.ts +9 -0
- package/dist/ui/components/nordman-login-reveal/nordman-login-reveal.d.ts +6 -0
- package/dist/ui/components/nordman-login-sign-in/nordman-login-sign-in.d.ts +11 -0
- package/dist/ui/components/nordman-toggle/nordman-toggle.d.ts +12 -0
- package/dist/ui/config/nm-ai.d.ts +44 -0
- package/dist/ui/config/nm-app-panel.d.ts +36 -0
- package/dist/ui/config/nm-appearance.d.ts +100 -0
- package/dist/ui/config/nm-bar-overflow.d.ts +9 -0
- package/dist/ui/config/nm-button.d.ts +31 -0
- package/dist/ui/config/nm-chatbox-icons.d.ts +42 -0
- package/dist/ui/config/nm-chatbox.d.ts +40 -0
- package/dist/ui/config/nm-collection.d.ts +88 -0
- package/dist/ui/config/nm-composer.d.ts +42 -0
- package/dist/ui/config/nm-dropdown.d.ts +56 -0
- package/dist/ui/config/nm-fade.d.ts +6 -0
- package/dist/ui/config/nm-field.d.ts +38 -0
- package/dist/ui/config/nm-header-icons.d.ts +15 -0
- package/dist/ui/config/nm-icon-border.d.ts +3 -0
- package/dist/ui/config/nm-icon-button.d.ts +26 -0
- package/dist/ui/config/nm-icons.d.ts +371 -0
- package/dist/ui/config/nm-list-item.d.ts +14 -0
- package/dist/ui/config/nm-message.d.ts +87 -0
- package/dist/ui/config/nm-modal.d.ts +67 -0
- package/dist/ui/config/nm-panel-bar.d.ts +9 -0
- package/dist/ui/config/nm-questionnaire.d.ts +57 -0
- package/dist/ui/config/nm-radius.d.ts +49 -0
- package/dist/ui/config/nm-rail-icons.d.ts +14 -0
- package/dist/ui/config/nm-rail.d.ts +5 -0
- package/dist/ui/config/nm-segmented.d.ts +17 -0
- package/dist/ui/config/nm-side-panel.d.ts +33 -0
- package/dist/ui/config/nm-site-palette.d.ts +30 -0
- package/dist/ui/config/nm-small-icon-button.d.ts +12 -0
- package/dist/ui/config/nm-tabs.d.ts +8 -0
- package/dist/ui/config/nm-top-bar.d.ts +4 -0
- package/dist/ui/config/nordman-chrome.d.ts +12 -0
- package/dist/ui/config/nordman-login.d.ts +23 -0
- package/dist/ui/content/nm-modal.d.ts +1 -0
- package/dist/ui/content/nordman-login.d.ts +38 -0
- package/dist/ui/kit-logger.d.ts +1 -0
- package/dist/ui/lib/appearance/appearanceState.d.ts +28 -0
- package/dist/ui/lib/appearance/applyAppearance.d.ts +5 -0
- package/dist/ui/lib/appearance/cloudOrbAppearance.d.ts +4 -0
- package/dist/ui/lib/appearance/color.d.ts +13 -0
- package/dist/ui/lib/appearance/deriveTokens.d.ts +6 -0
- package/dist/ui/lib/appearance/index.d.ts +6 -0
- package/dist/ui/lib/appearance/markTokens.d.ts +2 -0
- package/dist/ui/lib/appearance/readLayoutMetrics.d.ts +4 -0
- package/dist/ui/lib/bar-overflow.d.ts +13 -0
- package/dist/ui/lib/logger.d.ts +8 -0
- package/dist/ui/lib/menu-motion.d.ts +72 -0
- package/dist/ui/lib/nm-class.d.ts +2 -0
- package/dist/ui/lib/nordman-ui-locale.d.ts +9 -0
- package/interface/app-panel/code.svg +5 -0
- package/interface/app-panel/console.svg +5 -0
- package/interface/app-panel/copy.svg +5 -0
- package/interface/app-panel/ellipsis.svg +7 -0
- package/interface/app-panel/message.svg +5 -0
- package/interface/app-panel/network.svg +10 -0
- package/interface/app-panel/play.svg +5 -0
- package/interface/app-panel/plus.svg +5 -0
- package/interface/chatbox/app.svg +5 -0
- package/interface/chatbox/audio-lines.svg +5 -0
- package/interface/chatbox/check.svg +5 -0
- package/interface/chatbox/globe.svg +5 -0
- package/interface/chatbox/integration.svg +5 -0
- package/interface/chatbox/mic.svg +5 -0
- package/interface/chatbox/paperclip.svg +5 -0
- package/interface/chatbox/pointer.svg +5 -0
- package/interface/chatbox/send.svg +5 -0
- package/interface/chatbox/settings.svg +5 -0
- package/interface/chatbox/spreadsheet.svg +5 -0
- package/interface/chatbox/x.svg +5 -0
- package/interface/collection/audio.svg +5 -0
- package/interface/collection/download.svg +5 -0
- package/interface/collection/expand.svg +5 -0
- package/interface/collection/grid.svg +10 -0
- package/interface/collection/image.svg +5 -0
- package/interface/collection/spreadsheet.svg +5 -0
- package/interface/collection/video.svg +5 -0
- package/interface/header/app.svg +5 -0
- package/interface/header/bot.svg +5 -0
- package/interface/header/chat.svg +10 -0
- package/interface/header/folder.svg +5 -0
- package/interface/header/layers.svg +10 -0
- package/interface/header/panel.svg +5 -0
- package/interface/header/play.svg +3 -0
- package/interface/header/schedule.svg +8 -0
- package/interface/header/search.svg +5 -0
- package/interface/header/settings.svg +5 -0
- package/interface/header/users.svg +5 -0
- package/interface/message/chevron.svg +5 -0
- package/interface/message/copy.svg +5 -0
- package/interface/message/fork.svg +5 -0
- package/interface/message/refresh.svg +5 -0
- package/interface/message/volume.svg +5 -0
- package/interface/rail/app.svg +5 -0
- package/interface/rail/bot.svg +5 -0
- package/interface/rail/chats.svg +5 -0
- package/interface/rail/folder.svg +5 -0
- package/interface/rail/library.svg +5 -0
- package/interface/rail/plus-sm.svg +5 -0
- package/interface/rail/plus.svg +5 -0
- package/interface/rail/search.svg +5 -0
- package/interface/rail/settings.svg +8 -0
- package/interface/rail/spreadsheet.svg +5 -0
- package/package.json +79 -4
- package/registry/index.json +1634 -0
- package/registry/tokens.css +72 -0
- package/registry/ui/components/nm-ai/nm-ai.css +358 -0
- package/registry/ui/components/nm-ai/nm-ai.tsx +632 -0
- package/registry/ui/components/nm-app-panel/nm-app-panel.css +169 -0
- package/registry/ui/components/nm-ask/nm-ask.css +277 -0
- package/registry/ui/components/nm-avatar/nm-avatar.css +85 -0
- package/registry/ui/components/nm-avatar/nm-avatar.tsx +30 -0
- package/registry/ui/components/nm-bar-overflow/nm-bar-overflow.css +43 -0
- package/registry/ui/components/nm-bar-overflow/nm-bar-overflow.tsx +61 -0
- package/registry/ui/components/nm-bar-overflow/use-bar-overflow.ts +92 -0
- package/registry/ui/components/nm-brand-logo/nm-brand-logo.css +20 -0
- package/registry/ui/components/nm-brand-logo/nm-brand-logo.tsx +21 -0
- package/registry/ui/components/nm-breadcrumb/nm-breadcrumb.css +57 -0
- package/registry/ui/components/nm-breadcrumb/nm-breadcrumb.tsx +42 -0
- package/registry/ui/components/nm-button/nm-button.css +110 -0
- package/registry/ui/components/nm-button/nm-button.tsx +58 -0
- package/registry/ui/components/nm-button-group/nm-button-group.css +87 -0
- package/registry/ui/components/nm-button-group/nm-button-group.tsx +32 -0
- package/registry/ui/components/nm-calendar/nm-calendar.css +178 -0
- package/registry/ui/components/nm-calendar/nm-calendar.tsx +43 -0
- package/registry/ui/components/nm-card/nm-card.css +130 -0
- package/registry/ui/components/nm-card/nm-card.tsx +83 -0
- package/registry/ui/components/nm-chatbox/nm-chatbox-icon.tsx +39 -0
- package/registry/ui/components/nm-chatbox/nm-chatbox.css +682 -0
- package/registry/ui/components/nm-chatbox/nm-chatbox.tsx +101 -0
- package/registry/ui/components/nm-checkbox/nm-checkbox.css +61 -0
- package/registry/ui/components/nm-checkbox/nm-checkbox.tsx +14 -0
- package/registry/ui/components/nm-chip/nm-chip.css +112 -0
- package/registry/ui/components/nm-chip/nm-chip.tsx +86 -0
- package/registry/ui/components/nm-code-block/nm-code-block.css +240 -0
- package/registry/ui/components/nm-code-block/nm-code-block.tsx +196 -0
- package/registry/ui/components/nm-collection/nm-collection-bar.tsx +65 -0
- package/registry/ui/components/nm-collection/nm-collection-grid.tsx +69 -0
- package/registry/ui/components/nm-collection/nm-collection-query.tsx +99 -0
- package/registry/ui/components/nm-collection/nm-collection-row-menu.tsx +55 -0
- package/registry/ui/components/nm-collection/nm-collection-table.tsx +99 -0
- package/registry/ui/components/nm-collection/nm-collection-tile-actions.tsx +50 -0
- package/registry/ui/components/nm-collection/nm-collection-title.tsx +25 -0
- package/registry/ui/components/nm-collection/nm-collection.css +353 -0
- package/registry/ui/components/nm-collection/use-collection-scroll-reveal.ts +38 -0
- package/registry/ui/components/nm-color-picker/nm-color-picker.css +67 -0
- package/registry/ui/components/nm-color-picker/nm-color-picker.tsx +79 -0
- package/registry/ui/components/nm-combobox/nm-combobox.css +72 -0
- package/registry/ui/components/nm-combobox/nm-combobox.tsx +80 -0
- package/registry/ui/components/nm-command/nm-command.css +190 -0
- package/registry/ui/components/nm-command/nm-command.tsx +125 -0
- package/registry/ui/components/nm-composer/nm-composer.css +178 -0
- package/registry/ui/components/nm-composer/nm-composer.tsx +151 -0
- package/registry/ui/components/nm-context-menu/nm-context-menu.tsx +25 -0
- package/registry/ui/components/nm-date-picker/nm-date-picker.css +140 -0
- package/registry/ui/components/nm-date-picker/nm-date-picker.tsx +153 -0
- package/registry/ui/components/nm-dialog/nm-dialog.css +84 -0
- package/registry/ui/components/nm-dialog/nm-dialog.tsx +40 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown-item.ts +68 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown-options.tsx +242 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown-panel.tsx +171 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown-placement.ts +157 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown.css +312 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown.tsx +412 -0
- package/registry/ui/components/nm-dropdown-menu/nm-dropdown-menu.css +145 -0
- package/registry/ui/components/nm-dropdown-menu/nm-dropdown-menu.tsx +118 -0
- package/registry/ui/components/nm-field/nm-field.css +356 -0
- package/registry/ui/components/nm-field/nm-field.tsx +355 -0
- package/registry/ui/components/nm-form-field/nm-form-field.css +103 -0
- package/registry/ui/components/nm-form-field/nm-form-field.tsx +71 -0
- package/registry/ui/components/nm-gallery/nm-gallery.css +66 -0
- package/registry/ui/components/nm-gallery/nm-gallery.tsx +31 -0
- package/registry/ui/components/nm-hover-card/nm-hover-card.css +26 -0
- package/registry/ui/components/nm-hover-card/nm-hover-card.tsx +28 -0
- package/registry/ui/components/nm-icon/nm-icon.css +6 -0
- package/registry/ui/components/nm-icon/nm-icon.tsx +69 -0
- package/registry/ui/components/nm-icon/nm-lucide.tsx +180 -0
- package/registry/ui/components/nm-icon-border/nm-icon-border.tsx +56 -0
- package/registry/ui/components/nm-input/nm-input.css +75 -0
- package/registry/ui/components/nm-input/nm-input.tsx +7 -0
- package/registry/ui/components/nm-input-group/nm-input-group.css +66 -0
- package/registry/ui/components/nm-input-group/nm-input-group.tsx +20 -0
- package/registry/ui/components/nm-label/nm-label.css +11 -0
- package/registry/ui/components/nm-label/nm-label.tsx +6 -0
- package/registry/ui/components/nm-list-item/nm-list-item.css +177 -0
- package/registry/ui/components/nm-list-item/nm-list-item.tsx +112 -0
- package/registry/ui/components/nm-menubar/nm-menubar.css +32 -0
- package/registry/ui/components/nm-menubar/nm-menubar.tsx +19 -0
- package/registry/ui/components/nm-message/nm-message-actions.tsx +24 -0
- package/registry/ui/components/nm-message/nm-message-meta.tsx +49 -0
- package/registry/ui/components/nm-message/nm-message.css +686 -0
- package/registry/ui/components/nm-message/nm-text-shimmer.tsx +6 -0
- package/registry/ui/components/nm-message/nm-trace.tsx +219 -0
- package/registry/ui/components/nm-modal/nm-modal.css +763 -0
- package/registry/ui/components/nm-modal/nm-modal.tsx +497 -0
- package/registry/ui/components/nm-native-select/nm-native-select.css +47 -0
- package/registry/ui/components/nm-native-select/nm-native-select.tsx +23 -0
- package/registry/ui/components/nm-panel/nm-panel.css +73 -0
- package/registry/ui/components/nm-panel/nm-panel.tsx +35 -0
- package/registry/ui/components/nm-panel-bar/nm-panel-bar.css +20 -0
- package/registry/ui/components/nm-panel-bar/nm-panel-bar.tsx +48 -0
- package/registry/ui/components/nm-popover/nm-popover.css +43 -0
- package/registry/ui/components/nm-popover/nm-popover.tsx +40 -0
- package/registry/ui/components/nm-progress/nm-progress.css +21 -0
- package/registry/ui/components/nm-progress/nm-progress.tsx +14 -0
- package/registry/ui/components/nm-prose/nm-prose.css +81 -0
- package/registry/ui/components/nm-prose/nm-prose.tsx +10 -0
- package/registry/ui/components/nm-questionnaire/nm-questionnaire.css +182 -0
- package/registry/ui/components/nm-questionnaire/nm-questionnaire.tsx +221 -0
- package/registry/ui/components/nm-radio-group/nm-radio-group.css +48 -0
- package/registry/ui/components/nm-radio-group/nm-radio-group.tsx +15 -0
- package/registry/ui/components/nm-rail-icon/nm-rail-icon.css +6 -0
- package/registry/ui/components/nm-rail-icon/nm-rail-icon.tsx +28 -0
- package/registry/ui/components/nm-resize-handle/nm-resize-handle.css +45 -0
- package/registry/ui/components/nm-resize-handle/nm-resize-handle.tsx +102 -0
- package/registry/ui/components/nm-segmented/nm-segmented.css +104 -0
- package/registry/ui/components/nm-segmented/nm-segmented.tsx +77 -0
- package/registry/ui/components/nm-select/nm-select.css +78 -0
- package/registry/ui/components/nm-select/nm-select.tsx +64 -0
- package/registry/ui/components/nm-separator/nm-separator.css +14 -0
- package/registry/ui/components/nm-separator/nm-separator.tsx +6 -0
- package/registry/ui/components/nm-side-panel/nm-side-panel.css +93 -0
- package/registry/ui/components/nm-side-panel/nm-side-panel.tsx +86 -0
- package/registry/ui/components/nm-slider/nm-slider.css +53 -0
- package/registry/ui/components/nm-slider/nm-slider.tsx +40 -0
- package/registry/ui/components/nm-small-icon-button/nm-small-icon-button.tsx +66 -0
- package/registry/ui/components/nm-status-bar/nm-status-bar.css +50 -0
- package/registry/ui/components/nm-status-bar/nm-status-bar.tsx +28 -0
- package/registry/ui/components/nm-switch/nm-switch.css +45 -0
- package/registry/ui/components/nm-switch/nm-switch.tsx +10 -0
- package/registry/ui/components/nm-table/nm-table.css +155 -0
- package/registry/ui/components/nm-table/nm-table.tsx +95 -0
- package/registry/ui/components/nm-tabs/nm-tabs.css +28 -0
- package/registry/ui/components/nm-tabs/nm-tabs.tsx +32 -0
- package/registry/ui/components/nm-textarea/nm-textarea.css +41 -0
- package/registry/ui/components/nm-textarea/nm-textarea.tsx +6 -0
- package/registry/ui/components/nm-toggle/nm-toggle.css +55 -0
- package/registry/ui/components/nm-toggle/nm-toggle.tsx +16 -0
- package/registry/ui/components/nm-toolbar/nm-toolbar.css +42 -0
- package/registry/ui/components/nm-toolbar/nm-toolbar.tsx +54 -0
- package/registry/ui/components/nm-tooltip/nm-tooltip.css +37 -0
- package/registry/ui/components/nm-tooltip/nm-tooltip.tsx +35 -0
- package/registry/ui/components/nm-top-bar/nm-top-bar.css +29 -0
- package/registry/ui/components/nm-top-bar/nm-top-bar.tsx +34 -0
- package/registry/ui/components/nordman-icon-button/nordman-icon-button.css +119 -0
- package/registry/ui/components/nordman-icon-button/nordman-icon-button.tsx +185 -0
- package/registry/ui/components/nordman-login/nordman-login.css +195 -0
- package/registry/ui/components/nordman-login/nordman-login.tsx +136 -0
- package/registry/ui/components/nordman-login-field/nordman-login-field.tsx +55 -0
- package/registry/ui/components/nordman-login-forgot/nordman-login-forgot.tsx +56 -0
- package/registry/ui/components/nordman-login-google/nordman-login-google.tsx +28 -0
- package/registry/ui/components/nordman-login-hero/nordman-login-hero.tsx +38 -0
- package/registry/ui/components/nordman-login-register/nordman-login-register.tsx +70 -0
- package/registry/ui/components/nordman-login-reset/nordman-login-reset.tsx +71 -0
- package/registry/ui/components/nordman-login-reveal/nordman-login-reveal.tsx +41 -0
- package/registry/ui/components/nordman-login-sign-in/nordman-login-sign-in.tsx +69 -0
- package/registry/ui/components/nordman-toggle/nordman-toggle.css +28 -0
- package/registry/ui/components/nordman-toggle/nordman-toggle.tsx +35 -0
- package/registry/ui/config/nm-ai.ts +59 -0
- package/registry/ui/config/nm-appearance.ts +275 -0
- package/registry/ui/config/nm-bar-overflow.ts +10 -0
- package/registry/ui/config/nm-button.ts +38 -0
- package/registry/ui/config/nm-chatbox-icons.ts +67 -0
- package/registry/ui/config/nm-chatbox.ts +42 -0
- package/registry/ui/config/nm-collection.ts +101 -0
- package/registry/ui/config/nm-composer.ts +39 -0
- package/registry/ui/config/nm-dropdown.ts +62 -0
- package/registry/ui/config/nm-field.ts +43 -0
- package/registry/ui/config/nm-icon-button.ts +35 -0
- package/registry/ui/config/nm-icons.ts +417 -0
- package/registry/ui/config/nm-list-item.ts +14 -0
- package/registry/ui/config/nm-message.ts +106 -0
- package/registry/ui/config/nm-modal.ts +76 -0
- package/registry/ui/config/nm-panel-bar.ts +11 -0
- package/registry/ui/config/nm-questionnaire.ts +53 -0
- package/registry/ui/config/nm-radius.ts +56 -0
- package/registry/ui/config/nm-rail-icons.ts +27 -0
- package/registry/ui/config/nm-segmented.ts +19 -0
- package/registry/ui/config/nm-side-panel.ts +16 -0
- package/registry/ui/config/nm-site-palette.ts +30 -0
- package/registry/ui/config/nm-small-icon-button.ts +17 -0
- package/registry/ui/config/nm-tabs.ts +9 -0
- package/registry/ui/config/nm-top-bar.ts +4 -0
- package/registry/ui/config/nordman-chrome.ts +14 -0
- package/registry/ui/config/nordman-login.ts +28 -0
- package/registry/ui/content/nm-modal.ts +5 -0
- package/registry/ui/content/nordman-login.ts +85 -0
- package/registry/ui/kit-logger.ts +1 -0
- package/registry/ui/lib/appearance/appearanceState.ts +240 -0
- package/registry/ui/lib/appearance/applyAppearance.ts +36 -0
- package/registry/ui/lib/appearance/cloudOrbAppearance.ts +36 -0
- package/registry/ui/lib/appearance/color.ts +96 -0
- package/registry/ui/lib/appearance/deriveTokens.ts +218 -0
- package/registry/ui/lib/appearance/index.ts +6 -0
- package/registry/ui/lib/appearance/markTokens.ts +49 -0
- package/registry/ui/lib/appearance/readLayoutMetrics.ts +28 -0
- package/registry/ui/lib/bar-overflow.ts +41 -0
- package/registry/ui/lib/logger.ts +53 -0
- package/registry/ui/lib/menu-motion.ts +187 -0
- package/registry/ui/lib/nm-class.ts +4 -0
- package/registry/ui/lib/nordman-ui-locale.ts +43 -0
- package/registry/ui/styles/interface-theme.css +196 -0
- package/registry/ui/styles/light-appearance.css +72 -0
- package/registry/ui/styles/tokens.css +424 -0
- package/registry/ui/styles/utilities.css +12 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type FormEvent, type ReactNode } from 'react';
|
|
2
|
+
import { NORDMAN_LOGIN_FIELDS, NORDMAN_LOGIN_FORM_ID } from '../../config/nordman-login.ts';
|
|
3
|
+
import { NordmanLoginField } from '../nordman-login-field/nordman-login-field.tsx';
|
|
4
|
+
import { nordmanLoginCopy } from '../../content/nordman-login.ts';
|
|
5
|
+
import { createLogger } from '../../kit-logger.ts';
|
|
6
|
+
import { NmButton } from '../nm-button/nm-button.tsx';
|
|
7
|
+
|
|
8
|
+
const logger = createLogger('interface-nordman-login-sign-in');
|
|
9
|
+
|
|
10
|
+
export type NordmanLoginSignInProps = {
|
|
11
|
+
pending: boolean;
|
|
12
|
+
passwordMin: number;
|
|
13
|
+
onForgot: () => void;
|
|
14
|
+
onSignIn: (input: { username: string; password: string }) => void;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export function NordmanLoginSignIn(props: NordmanLoginSignInProps): ReactNode {
|
|
18
|
+
function onSubmit(event: FormEvent<HTMLFormElement>): void {
|
|
19
|
+
event.preventDefault();
|
|
20
|
+
const data = new FormData(event.currentTarget);
|
|
21
|
+
const username = String(data.get(NORDMAN_LOGIN_FIELDS.username) ?? '');
|
|
22
|
+
const password = String(data.get(NORDMAN_LOGIN_FIELDS.password) ?? '');
|
|
23
|
+
logger.debug('submit', 'start');
|
|
24
|
+
props.onSignIn({ username, password });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<form className="nm-login__form" id={NORDMAN_LOGIN_FORM_ID} onSubmit={onSubmit}>
|
|
29
|
+
<NordmanLoginField
|
|
30
|
+
id={NORDMAN_LOGIN_FIELDS.username}
|
|
31
|
+
name={NORDMAN_LOGIN_FIELDS.username}
|
|
32
|
+
label={nordmanLoginCopy.identifier}
|
|
33
|
+
type="text"
|
|
34
|
+
autoComplete="username"
|
|
35
|
+
placeholder={nordmanLoginCopy.identifierPlaceholder}
|
|
36
|
+
/>
|
|
37
|
+
<NordmanLoginField
|
|
38
|
+
id={NORDMAN_LOGIN_FIELDS.password}
|
|
39
|
+
name={NORDMAN_LOGIN_FIELDS.password}
|
|
40
|
+
label={nordmanLoginCopy.password}
|
|
41
|
+
type="password"
|
|
42
|
+
autoComplete="current-password"
|
|
43
|
+
placeholder={nordmanLoginCopy.passwordPlaceholder}
|
|
44
|
+
minLength={props.passwordMin}
|
|
45
|
+
accessory={
|
|
46
|
+
<button
|
|
47
|
+
className="nm-login__forgot"
|
|
48
|
+
type="button"
|
|
49
|
+
data-testid="cta-forgot-password"
|
|
50
|
+
onClick={props.onForgot}
|
|
51
|
+
>
|
|
52
|
+
{nordmanLoginCopy.forgot}
|
|
53
|
+
</button>
|
|
54
|
+
}
|
|
55
|
+
/>
|
|
56
|
+
<div className="nm-login__submit">
|
|
57
|
+
<NmButton
|
|
58
|
+
label={props.pending ? nordmanLoginCopy.pending : nordmanLoginCopy.submit}
|
|
59
|
+
tone="filled"
|
|
60
|
+
size="large"
|
|
61
|
+
block
|
|
62
|
+
type="submit"
|
|
63
|
+
disabled={props.pending}
|
|
64
|
+
testId="cta-login"
|
|
65
|
+
/>
|
|
66
|
+
</div>
|
|
67
|
+
</form>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.nm-toggle {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: stretch;
|
|
4
|
+
gap: var(--nm-space-2);
|
|
5
|
+
width: fit-content;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
padding: var(--toggle-pad);
|
|
9
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
10
|
+
border-radius: var(--toggle-r);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.nm-toggle__item {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
height: var(--toggle-h);
|
|
17
|
+
padding: 0 var(--toggle-px);
|
|
18
|
+
border-radius: var(--toggle-r);
|
|
19
|
+
color: var(--nm-fg-subtle);
|
|
20
|
+
flex: 0 0 auto;
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
font-size: var(--control-fs);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.nm-toggle__item[data-active='true'] {
|
|
26
|
+
background: var(--nm-panel);
|
|
27
|
+
color: var(--nm-fg);
|
|
28
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { createLogger } from '../../kit-logger.ts';
|
|
3
|
+
|
|
4
|
+
const logger = createLogger('interface-nordman-toggle');
|
|
5
|
+
|
|
6
|
+
export type NordmanToggleItem = {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type NordmanToggleProps = {
|
|
13
|
+
items: readonly NordmanToggleItem[];
|
|
14
|
+
active: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export function NordmanToggle(props: NordmanToggleProps): ReactNode {
|
|
19
|
+
logger.debug('render', props.active, { items: props.items.length });
|
|
20
|
+
return (
|
|
21
|
+
<nav className="nm-toggle" data-testid={props.testId}>
|
|
22
|
+
{props.items.map((item) => (
|
|
23
|
+
<a
|
|
24
|
+
key={item.id}
|
|
25
|
+
className="nm-toggle__item"
|
|
26
|
+
href={item.href}
|
|
27
|
+
data-active={item.id === props.active ? 'true' : 'false'}
|
|
28
|
+
aria-current={item.id === props.active ? 'page' : undefined}
|
|
29
|
+
>
|
|
30
|
+
{item.label}
|
|
31
|
+
</a>
|
|
32
|
+
))}
|
|
33
|
+
</nav>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** AI Elements for Nordman. Each is a composition of the kit's trace, message, dropdown and chatbox parts. */
|
|
2
|
+
import type { NmTraceStatus } from './nm-message.ts';
|
|
3
|
+
|
|
4
|
+
export const NM_AI_STATUS = ['pending', 'running', 'done', 'error'] as const;
|
|
5
|
+
export type NmAiStatus = (typeof NM_AI_STATUS)[number];
|
|
6
|
+
|
|
7
|
+
/** Trace lines show `running`, `error` and `pending`. A finished line carries no status. */
|
|
8
|
+
export function nmAiTraceStatus(status: NmAiStatus): NmTraceStatus | undefined {
|
|
9
|
+
return status === 'done' ? undefined : status;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const NM_TOOL_STATES = [
|
|
13
|
+
'input-streaming',
|
|
14
|
+
'input-available',
|
|
15
|
+
'approval-requested',
|
|
16
|
+
'approval-responded',
|
|
17
|
+
'output-available',
|
|
18
|
+
'output-error',
|
|
19
|
+
'output-denied',
|
|
20
|
+
] as const;
|
|
21
|
+
export type NmToolState = (typeof NM_TOOL_STATES)[number];
|
|
22
|
+
|
|
23
|
+
export const NM_AI_BADGE_TONES = ['neutral', 'ok', 'error', 'warn'] as const;
|
|
24
|
+
export type NmAiBadgeTone = (typeof NM_AI_BADGE_TONES)[number];
|
|
25
|
+
|
|
26
|
+
export const NM_AI_CLASSES = {
|
|
27
|
+
bubble: 'nm-ai-bubble',
|
|
28
|
+
bubbleUser: 'nm-ai-bubble--user',
|
|
29
|
+
turn: 'nm-ai-turn',
|
|
30
|
+
turnUser: 'nm-ai-turn--user',
|
|
31
|
+
turnBody: 'nm-ai-turn__body',
|
|
32
|
+
turnFooter: 'nm-ai-turn__footer',
|
|
33
|
+
item: 'nm-ai-item',
|
|
34
|
+
itemMedia: 'nm-ai-item__media',
|
|
35
|
+
itemBody: 'nm-ai-item__body',
|
|
36
|
+
itemTitle: 'nm-ai-item__title',
|
|
37
|
+
itemDescription: 'nm-ai-item__description',
|
|
38
|
+
itemActions: 'nm-ai-item__actions',
|
|
39
|
+
sheet: 'nm-ai-sheet',
|
|
40
|
+
sheetHead: 'nm-ai-sheet__head',
|
|
41
|
+
sheetBody: 'nm-ai-sheet__body',
|
|
42
|
+
stack: 'nm-ai-stack',
|
|
43
|
+
checkpoint: 'nm-ai-checkpoint',
|
|
44
|
+
contextRows: 'nm-ai-context__rows',
|
|
45
|
+
tree: 'nm-ai-tree',
|
|
46
|
+
treeNode: 'nm-ai-tree__node',
|
|
47
|
+
citation: 'nm-ai-citation',
|
|
48
|
+
suggestions: 'nm-ai-suggestions',
|
|
49
|
+
suggestion: 'nm-ai-suggestion',
|
|
50
|
+
thread: 'nm-ai-thread',
|
|
51
|
+
threadEmpty: 'nm-ai-thread__empty',
|
|
52
|
+
threadJump: 'nm-ai-thread__jump',
|
|
53
|
+
selector: 'nm-ai-selector',
|
|
54
|
+
tests: 'nm-ai-tests',
|
|
55
|
+
testRow: 'nm-ai-tests__row',
|
|
56
|
+
frame: 'nm-ai-frame',
|
|
57
|
+
steps: 'nm-ai-steps',
|
|
58
|
+
stepsItem: 'nm-ai-steps__item',
|
|
59
|
+
} as const;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { NM_SITE_PALETTE } from './nm-site-palette.ts';
|
|
2
|
+
|
|
3
|
+
/** Single source of truth for Nordman visual appearance settings (Chat + kit). */
|
|
4
|
+
|
|
5
|
+
export const NM_APPEARANCE_STORAGE_KEY = 'nordman-appearance-v1' as const;
|
|
6
|
+
|
|
7
|
+
/** Dispatched on `window` after `applyAppearanceState` updates document tokens. */
|
|
8
|
+
export const NM_APPEARANCE_APPLIED_EVENT = 'nordman-appearance-applied' as const;
|
|
9
|
+
|
|
10
|
+
export const NM_APPEARANCE_MODES = ['system', 'light', 'dark'] as const;
|
|
11
|
+
export type NmAppearanceMode = (typeof NM_APPEARANCE_MODES)[number];
|
|
12
|
+
|
|
13
|
+
export const NM_UI_FONT_SIZE_PX = {
|
|
14
|
+
min: 12,
|
|
15
|
+
max: 16,
|
|
16
|
+
default: 14,
|
|
17
|
+
} as const;
|
|
18
|
+
|
|
19
|
+
/** Poppins ships nine weights. The setting is the Regular weight. Medium, semibold and bold step up from it. */
|
|
20
|
+
export const NM_FONT_WEIGHTS = [
|
|
21
|
+
{ id: '100', label: 'Thin' },
|
|
22
|
+
{ id: '200', label: 'ExtraLight' },
|
|
23
|
+
{ id: '300', label: 'Light' },
|
|
24
|
+
{ id: '400', label: 'Regular' },
|
|
25
|
+
{ id: '500', label: 'Medium' },
|
|
26
|
+
{ id: '600', label: 'SemiBold' },
|
|
27
|
+
{ id: '700', label: 'Bold' },
|
|
28
|
+
{ id: '800', label: 'ExtraBold' },
|
|
29
|
+
{ id: '900', label: 'Black' },
|
|
30
|
+
] as const;
|
|
31
|
+
|
|
32
|
+
export const NM_UI_FONT_WEIGHT = {
|
|
33
|
+
min: 100,
|
|
34
|
+
max: 900,
|
|
35
|
+
default: 400,
|
|
36
|
+
} as const;
|
|
37
|
+
|
|
38
|
+
export const NM_UI_ICON_SIZE_PX = {
|
|
39
|
+
min: 14,
|
|
40
|
+
max: 24,
|
|
41
|
+
default: 18,
|
|
42
|
+
} as const;
|
|
43
|
+
|
|
44
|
+
/** 100 = kit default corner roundness; scales all `--nm-*-radius` tokens. */
|
|
45
|
+
export const NM_UI_RADIUS_PERCENT = {
|
|
46
|
+
min: 50,
|
|
47
|
+
max: 150,
|
|
48
|
+
default: 100,
|
|
49
|
+
} as const;
|
|
50
|
+
|
|
51
|
+
/** 100 = kit default spacing; scales every `--nm-space-*`, `--nm-gap-*` and `--nm-pad-*` token. */
|
|
52
|
+
export const NM_UI_SPACE_PERCENT = {
|
|
53
|
+
min: 75,
|
|
54
|
+
max: 125,
|
|
55
|
+
default: 100,
|
|
56
|
+
} as const;
|
|
57
|
+
|
|
58
|
+
export const NM_APPEARANCE_CONTRAST = {
|
|
59
|
+
min: 0,
|
|
60
|
+
max: 100,
|
|
61
|
+
default: 0,
|
|
62
|
+
} as const;
|
|
63
|
+
|
|
64
|
+
export const NM_ACCENT_PRESETS = [
|
|
65
|
+
'default',
|
|
66
|
+
'blue',
|
|
67
|
+
'green',
|
|
68
|
+
'yellow',
|
|
69
|
+
'pink',
|
|
70
|
+
'orange',
|
|
71
|
+
'purple',
|
|
72
|
+
'white',
|
|
73
|
+
'custom',
|
|
74
|
+
] as const;
|
|
75
|
+
export type NmAccentPreset = (typeof NM_ACCENT_PRESETS)[number];
|
|
76
|
+
|
|
77
|
+
export type NmAppearancePalette = {
|
|
78
|
+
canvas: string;
|
|
79
|
+
foreground: string;
|
|
80
|
+
accent: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type NmThemePresetDefinition = {
|
|
84
|
+
id: string;
|
|
85
|
+
label: string;
|
|
86
|
+
swatch: string;
|
|
87
|
+
dark: Pick<NmAppearancePalette, 'canvas' | 'foreground'>;
|
|
88
|
+
light: Pick<NmAppearancePalette, 'canvas' | 'foreground'>;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const NM_THEME_PRESETS: readonly NmThemePresetDefinition[] = [
|
|
92
|
+
{
|
|
93
|
+
id: 'nordman',
|
|
94
|
+
label: 'Nordman',
|
|
95
|
+
swatch: '#D2BB9C',
|
|
96
|
+
dark: { canvas: NM_SITE_PALETTE.dark.canvas, foreground: NM_SITE_PALETTE.dark.fg },
|
|
97
|
+
light: { canvas: NM_SITE_PALETTE.light.canvas, foreground: NM_SITE_PALETTE.light.fg },
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'ayu',
|
|
101
|
+
label: 'Ayu',
|
|
102
|
+
swatch: '#E6B450',
|
|
103
|
+
dark: { canvas: '#10141C', foreground: '#BFBDB6' },
|
|
104
|
+
light: { canvas: '#FAFAFA', foreground: '#5C6773' },
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'dracula',
|
|
108
|
+
label: 'Dracula',
|
|
109
|
+
swatch: '#FF79C6',
|
|
110
|
+
dark: { canvas: '#282A36', foreground: '#F8F8F2' },
|
|
111
|
+
light: { canvas: '#F8F8F2', foreground: '#282A36' },
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'catppuccin',
|
|
115
|
+
label: 'Catppuccin',
|
|
116
|
+
swatch: '#CBA6F7',
|
|
117
|
+
dark: { canvas: '#1E1E2E', foreground: '#CDD6F4' },
|
|
118
|
+
light: { canvas: '#EFF1F5', foreground: '#4C4F69' },
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 'everforest',
|
|
122
|
+
label: 'Everforest',
|
|
123
|
+
swatch: '#A7C080',
|
|
124
|
+
dark: { canvas: '#2D353B', foreground: '#D3C6AA' },
|
|
125
|
+
light: { canvas: '#EFEDD9', foreground: '#5C6A72' },
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 'github',
|
|
129
|
+
label: 'GitHub',
|
|
130
|
+
swatch: '#58A6FF',
|
|
131
|
+
dark: { canvas: '#0D1117', foreground: '#C9D1D9' },
|
|
132
|
+
light: { canvas: '#FFFFFF', foreground: '#24292F' },
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: 'gruvbox',
|
|
136
|
+
label: 'Gruvbox',
|
|
137
|
+
swatch: '#B8BB26',
|
|
138
|
+
dark: { canvas: '#282828', foreground: '#EBDBB2' },
|
|
139
|
+
light: { canvas: '#FBF1C7', foreground: '#3C3836' },
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: 'linear',
|
|
143
|
+
label: 'Linear',
|
|
144
|
+
swatch: '#5E6AD2',
|
|
145
|
+
dark: { canvas: '#08090A', foreground: '#EEEFF1' },
|
|
146
|
+
light: { canvas: '#FFFFFF', foreground: '#222326' },
|
|
147
|
+
},
|
|
148
|
+
{ id: 'tokyo-night', label: 'Tokyo Night', swatch: '#7AA2F7', dark: { canvas: '#1A1B26', foreground: '#C0CAF5' }, light: { canvas: '#E1E2E7', foreground: '#3760BF' } },
|
|
149
|
+
{ id: 'nord', label: 'Nord', swatch: '#88C0D0', dark: { canvas: '#2E3440', foreground: '#D8DEE9' }, light: { canvas: '#ECEFF4', foreground: '#2E3440' } },
|
|
150
|
+
{ id: 'rose-pine', label: 'Rosé Pine', swatch: '#EBBCBA', dark: { canvas: '#191724', foreground: '#E0DEF4' }, light: { canvas: '#FAF4ED', foreground: '#575279' } },
|
|
151
|
+
{ id: 'solarized', label: 'Solarized', swatch: '#268BD2', dark: { canvas: '#002B36', foreground: '#839496' }, light: { canvas: '#FDF6E3', foreground: '#657B83' } },
|
|
152
|
+
{ id: 'monokai', label: 'Monokai', swatch: '#A6E22E', dark: { canvas: '#272822', foreground: '#F8F8F2' }, light: { canvas: '#FAFAF5', foreground: '#272822' } },
|
|
153
|
+
{ id: 'one', label: 'One', swatch: '#61AFEF', dark: { canvas: '#282C34', foreground: '#ABB2BF' }, light: { canvas: '#FAFAFA', foreground: '#383A42' } },
|
|
154
|
+
{ id: 'synthwave', label: 'Synthwave', swatch: '#FF7EDB', dark: { canvas: '#262335', foreground: '#FFFFFF' }, light: { canvas: '#FFF5FC', foreground: '#2A2139' } },
|
|
155
|
+
{ id: 'night-owl', label: 'Night Owl', swatch: '#82AAFF', dark: { canvas: '#011627', foreground: '#D6DEEB' }, light: { canvas: '#FBFBFB', foreground: '#403F53' } },
|
|
156
|
+
{ id: 'kanagawa', label: 'Kanagawa', swatch: '#7E9CD8', dark: { canvas: '#1F1F28', foreground: '#DCD7BA' }, light: { canvas: '#F2ECBC', foreground: '#545464' } },
|
|
157
|
+
{ id: 'palenight', label: 'Palenight', swatch: '#C792EA', dark: { canvas: '#292D3E', foreground: '#A6ACCD' }, light: { canvas: '#FAFAFA', foreground: '#546E7A' } },
|
|
158
|
+
{ id: 'lsd', label: 'LSD', swatch: '#FF2BD6', dark: { canvas: '#0D0221', foreground: '#F5E9FF' }, light: { canvas: '#FFF4FD', foreground: '#2B0A4A' } },
|
|
159
|
+
/** The colours are yours: the three pickers are open while this theme is chosen. */
|
|
160
|
+
{ id: 'custom', label: 'Custom', swatch: '#D2BB9C', dark: { canvas: NM_SITE_PALETTE.dark.canvas, foreground: NM_SITE_PALETTE.dark.fg }, light: { canvas: NM_SITE_PALETTE.light.canvas, foreground: NM_SITE_PALETTE.light.fg } },
|
|
161
|
+
] as const;
|
|
162
|
+
|
|
163
|
+
export const NM_ACCENT_HEX: Record<Exclude<NmAccentPreset, 'default' | 'custom'>, string> = {
|
|
164
|
+
blue: '#58A6FF',
|
|
165
|
+
green: '#3DDC84',
|
|
166
|
+
yellow: '#E6B450',
|
|
167
|
+
pink: '#FF79C6',
|
|
168
|
+
orange: '#FF9F43',
|
|
169
|
+
purple: '#A371F7',
|
|
170
|
+
white: '#FFFFFF',
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export const NM_APPEARANCE_DEFAULTS = {
|
|
174
|
+
mode: 'system' as NmAppearanceMode,
|
|
175
|
+
themePresetId: 'nordman',
|
|
176
|
+
accentPreset: 'default' as NmAccentPreset,
|
|
177
|
+
customAccentHex: '#D2BB9C',
|
|
178
|
+
backgroundHex: NM_SITE_PALETTE.dark.canvas,
|
|
179
|
+
foregroundHex: NM_SITE_PALETTE.dark.fg,
|
|
180
|
+
uiFontSizePx: NM_UI_FONT_SIZE_PX.default,
|
|
181
|
+
uiFontWeight: NM_UI_FONT_WEIGHT.default as number,
|
|
182
|
+
uiIconSizePx: NM_UI_ICON_SIZE_PX.default,
|
|
183
|
+
uiRadiusPercent: NM_UI_RADIUS_PERCENT.default,
|
|
184
|
+
uiSpacePercent: NM_UI_SPACE_PERCENT.default,
|
|
185
|
+
contrast: NM_APPEARANCE_CONTRAST.default,
|
|
186
|
+
} as const;
|
|
187
|
+
|
|
188
|
+
export const NM_APPEARANCE_CSS_VARS = [
|
|
189
|
+
'--nm-canvas',
|
|
190
|
+
'--nm-fg',
|
|
191
|
+
'--nm-fg-muted',
|
|
192
|
+
'--nm-fg-subtle',
|
|
193
|
+
'--nm-stroke',
|
|
194
|
+
'--nm-line',
|
|
195
|
+
'--nm-line-strong',
|
|
196
|
+
'--nm-divider',
|
|
197
|
+
'--control-fs',
|
|
198
|
+
'--nm-panel',
|
|
199
|
+
'--nm-raised',
|
|
200
|
+
'--nm-inset',
|
|
201
|
+
'--nm-mark-primary',
|
|
202
|
+
'--nm-mark-secondary',
|
|
203
|
+
'--nm-mark-tertiary',
|
|
204
|
+
'--nm-mark-surface',
|
|
205
|
+
'--nm-canvas-rgb',
|
|
206
|
+
'--nm-fg-rgb',
|
|
207
|
+
'--nm-fg-muted-rgb',
|
|
208
|
+
'--nm-fg-subtle-rgb',
|
|
209
|
+
'--nm-stroke-rgb',
|
|
210
|
+
'--nm-line-rgb',
|
|
211
|
+
'--nm-panel-rgb',
|
|
212
|
+
'--nm-raised-rgb',
|
|
213
|
+
'--nm-inset-rgb',
|
|
214
|
+
'--sand',
|
|
215
|
+
'--nm-accent',
|
|
216
|
+
'--nm-accent-rgb',
|
|
217
|
+
'--orb-ui-cloud-appearance-deepColor',
|
|
218
|
+
'--orb-ui-cloud-appearance-upperColor',
|
|
219
|
+
'--orb-ui-cloud-appearance-lowerColor',
|
|
220
|
+
'--orb-ui-cloud-appearance-highlightColor',
|
|
221
|
+
'--orb-ui-cloud-appearance-launchColor',
|
|
222
|
+
'--orb-ui-cloud-appearance-spinnerColor',
|
|
223
|
+
'--nm-weight-light',
|
|
224
|
+
'--nm-weight-regular',
|
|
225
|
+
'--nm-weight-medium',
|
|
226
|
+
'--nm-weight-semibold',
|
|
227
|
+
'--nm-weight-bold',
|
|
228
|
+
'--nm-type-body',
|
|
229
|
+
'--nm-type-ui',
|
|
230
|
+
'--nm-type-ui-sm',
|
|
231
|
+
'--nm-type-lede',
|
|
232
|
+
'--nm-type-section',
|
|
233
|
+
'--nm-type-card',
|
|
234
|
+
'--nm-type-caption',
|
|
235
|
+
'--markdown-font-size',
|
|
236
|
+
'--font-size-base',
|
|
237
|
+
'--font-size-sm',
|
|
238
|
+
'--nm-icon-button',
|
|
239
|
+
'--nm-icon-sm',
|
|
240
|
+
'--nm-rail-icon',
|
|
241
|
+
'--nm-ui-chip-min-height',
|
|
242
|
+
'--nm-radius-scale',
|
|
243
|
+
'--nm-space-scale',
|
|
244
|
+
'--text-primary',
|
|
245
|
+
'--text-secondary',
|
|
246
|
+
'--text-tertiary',
|
|
247
|
+
'--text-muted',
|
|
248
|
+
'--presentation',
|
|
249
|
+
'--surface-primary',
|
|
250
|
+
'--surface-chat',
|
|
251
|
+
'--surface-secondary',
|
|
252
|
+
'--surface-secondary-alt',
|
|
253
|
+
'--surface-tertiary',
|
|
254
|
+
'--surface-primary-alt',
|
|
255
|
+
'--surface-dialog',
|
|
256
|
+
'--surface-hover',
|
|
257
|
+
'--surface-active',
|
|
258
|
+
'--border-light',
|
|
259
|
+
'--border-medium',
|
|
260
|
+
'--link',
|
|
261
|
+
'--link-hover',
|
|
262
|
+
'--link-visited',
|
|
263
|
+
'--accent-primary',
|
|
264
|
+
'--ring-primary',
|
|
265
|
+
'--brand-purple',
|
|
266
|
+
'--nordman-accent',
|
|
267
|
+
] as const;
|
|
268
|
+
|
|
269
|
+
export function findThemePreset(id: string): NmThemePresetDefinition | undefined {
|
|
270
|
+
return NM_THEME_PRESETS.find((preset) => preset.id === id);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function defaultThemePresetId(): string {
|
|
274
|
+
return NM_APPEARANCE_DEFAULTS.themePresetId;
|
|
275
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const NM_BAR_OVERFLOW_CLASSES = {
|
|
2
|
+
root: 'nm-bar-overflow',
|
|
3
|
+
row: 'nm-bar-overflow__row',
|
|
4
|
+
start: 'nm-bar-overflow__start',
|
|
5
|
+
} as const;
|
|
6
|
+
|
|
7
|
+
export const NM_BAR_OVERFLOW_TEST_IDS = {
|
|
8
|
+
root: 'bar-overflow',
|
|
9
|
+
menu: 'bar-overflow-menu',
|
|
10
|
+
} as const;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const NM_BUTTON_TONES = {
|
|
2
|
+
filled: 'filled',
|
|
3
|
+
outline: 'outline',
|
|
4
|
+
muted: 'muted',
|
|
5
|
+
panel: 'panel',
|
|
6
|
+
danger: 'danger',
|
|
7
|
+
} as const;
|
|
8
|
+
|
|
9
|
+
export type NmButtonTone = (typeof NM_BUTTON_TONES)[keyof typeof NM_BUTTON_TONES];
|
|
10
|
+
|
|
11
|
+
export const NM_BUTTON_SIZES = {
|
|
12
|
+
default: 'default',
|
|
13
|
+
compact: 'compact',
|
|
14
|
+
chip: 'chip',
|
|
15
|
+
large: 'large',
|
|
16
|
+
} as const;
|
|
17
|
+
|
|
18
|
+
export type NmButtonSize = (typeof NM_BUTTON_SIZES)[keyof typeof NM_BUTTON_SIZES];
|
|
19
|
+
|
|
20
|
+
export const NM_BUTTON_CLASSES = {
|
|
21
|
+
root: 'nm-button',
|
|
22
|
+
filled: 'nm-button--filled',
|
|
23
|
+
outline: 'nm-button--outline',
|
|
24
|
+
muted: 'nm-button--muted',
|
|
25
|
+
panel: 'nm-button--panel',
|
|
26
|
+
danger: 'nm-button--danger',
|
|
27
|
+
default: 'nm-button--default',
|
|
28
|
+
compact: 'nm-button--compact',
|
|
29
|
+
chip: 'nm-button--chip',
|
|
30
|
+
large: 'nm-button--large',
|
|
31
|
+
block: 'nm-button--block',
|
|
32
|
+
icon: 'nm-button--icon',
|
|
33
|
+
} as const;
|
|
34
|
+
|
|
35
|
+
/** The button's class names, for triggers that must stay a Base UI part, such as a menu or popover trigger. */
|
|
36
|
+
export function nmButtonClassName(tone: NmButtonTone, size: NmButtonSize = NM_BUTTON_SIZES.default, iconOnly = false): string {
|
|
37
|
+
return `${NM_BUTTON_CLASSES.root} ${NM_BUTTON_CLASSES[tone]} ${NM_BUTTON_CLASSES[size]}${iconOnly ? ` ${NM_BUTTON_CLASSES.icon}` : ''}`;
|
|
38
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export const NM_CHATBOX_ICON_IDS = [
|
|
2
|
+
'paperclip',
|
|
3
|
+
'settings',
|
|
4
|
+
'globe',
|
|
5
|
+
'spreadsheet',
|
|
6
|
+
'pointer',
|
|
7
|
+
'mic',
|
|
8
|
+
'mic-off',
|
|
9
|
+
'audio-lines',
|
|
10
|
+
'send',
|
|
11
|
+
'stop',
|
|
12
|
+
'loader',
|
|
13
|
+
'x',
|
|
14
|
+
'check',
|
|
15
|
+
'integration',
|
|
16
|
+
'app',
|
|
17
|
+
'steer',
|
|
18
|
+
'queue',
|
|
19
|
+
'interrupt-steer',
|
|
20
|
+
'interrupt-send',
|
|
21
|
+
] as const;
|
|
22
|
+
|
|
23
|
+
export type NmChatboxIconId = (typeof NM_CHATBOX_ICON_IDS)[number];
|
|
24
|
+
|
|
25
|
+
/** Public path for the composer MCP chip glyph — CSS `--nm-chatbox-integration-icon` must match. */
|
|
26
|
+
export const NM_CHATBOX_INTEGRATION_ICON_PATH = '/interface/chatbox/integration.svg';
|
|
27
|
+
|
|
28
|
+
export const NM_CHATBOX_ICON_SRC = {
|
|
29
|
+
paperclip: '/interface/chatbox/paperclip.svg',
|
|
30
|
+
settings: '/interface/chatbox/settings.svg',
|
|
31
|
+
globe: '/interface/chatbox/globe.svg',
|
|
32
|
+
spreadsheet: '/interface/chatbox/spreadsheet.svg',
|
|
33
|
+
pointer: '/interface/chatbox/pointer.svg',
|
|
34
|
+
mic: '/interface/chatbox/mic.svg',
|
|
35
|
+
'mic-off': '/interface/chatbox/mic.svg',
|
|
36
|
+
'audio-lines': '/interface/chatbox/audio-lines.svg',
|
|
37
|
+
send: '/interface/chatbox/send.svg',
|
|
38
|
+
stop: '/interface/chatbox/stop.svg',
|
|
39
|
+
loader: '/interface/chatbox/loader.svg',
|
|
40
|
+
x: '/interface/chatbox/x.svg',
|
|
41
|
+
check: '/interface/chatbox/check.svg',
|
|
42
|
+
integration: NM_CHATBOX_INTEGRATION_ICON_PATH,
|
|
43
|
+
app: '/interface/chatbox/app.svg',
|
|
44
|
+
steer: '/interface/chatbox/settings.svg',
|
|
45
|
+
queue: '/interface/chatbox/settings.svg',
|
|
46
|
+
'interrupt-steer': '/interface/chatbox/settings.svg',
|
|
47
|
+
'interrupt-send': '/interface/chatbox/send.svg',
|
|
48
|
+
} as const satisfies Record<NmChatboxIconId, string>;
|
|
49
|
+
|
|
50
|
+
/** Composer footer / dictation controls — values are `NmChatboxIcon` ids. */
|
|
51
|
+
export const NM_CHATBOX_COMPOSER_ACTION_ICONS = {
|
|
52
|
+
send: 'send',
|
|
53
|
+
stop: 'stop',
|
|
54
|
+
audioLines: 'audio-lines',
|
|
55
|
+
loader: 'loader',
|
|
56
|
+
check: 'check',
|
|
57
|
+
cancel: 'x',
|
|
58
|
+
interruptSteer: 'interrupt-steer',
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
/** During-run send menu row icons — values are `NmChatboxIcon` ids. */
|
|
62
|
+
export const NM_CHATBOX_DURING_RUN_MENU_ICONS = {
|
|
63
|
+
steer: 'steer',
|
|
64
|
+
queue: 'queue',
|
|
65
|
+
interruptSteer: 'interrupt-steer',
|
|
66
|
+
interruptSend: 'interrupt-send',
|
|
67
|
+
} as const;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const NM_CHATBOX_CLASSES = {
|
|
2
|
+
root: 'nm-chatbox',
|
|
3
|
+
files: 'nm-chatbox__files',
|
|
4
|
+
fileList: 'nm-chatbox__file-list',
|
|
5
|
+
fileItem: 'nm-chatbox__file-item',
|
|
6
|
+
imageAttachment: 'nm-chatbox__image-attachment',
|
|
7
|
+
imagePreview: 'nm-chatbox__image-preview',
|
|
8
|
+
prompt: 'nm-chatbox__prompt',
|
|
9
|
+
chips: 'nm-chatbox__chips',
|
|
10
|
+
promptField: 'nm-chatbox__prompt-field',
|
|
11
|
+
placeholder: 'nm-chatbox__placeholder',
|
|
12
|
+
field: 'nm-chatbox__field',
|
|
13
|
+
inline: 'nm-chatbox__inline',
|
|
14
|
+
inlineLink: 'nm-chatbox__inline-link',
|
|
15
|
+
row: 'nm-chatbox__row',
|
|
16
|
+
tools: 'nm-chatbox__tools',
|
|
17
|
+
actions: 'nm-chatbox__actions',
|
|
18
|
+
dictation: 'nm-chatbox__dictation',
|
|
19
|
+
app: 'nm-chatbox__app',
|
|
20
|
+
menu: 'nm-chatbox-menu',
|
|
21
|
+
menuText: 'nm-chatbox-menu--text',
|
|
22
|
+
menuItem: 'nm-chatbox-menu__item',
|
|
23
|
+
menuCopy: 'nm-chatbox-menu__copy',
|
|
24
|
+
menuHint: 'nm-chatbox-menu__hint',
|
|
25
|
+
menuSection: 'nm-chatbox-menu__section',
|
|
26
|
+
menuIcon: 'nm-chatbox-menu__icon',
|
|
27
|
+
menuLogo: 'nm-chatbox-menu__logo',
|
|
28
|
+
menuAnchor: 'nm-chatbox-menu__anchor',
|
|
29
|
+
connectTitle: 'nm-chatbox__connect-title',
|
|
30
|
+
connectIcon: 'nm-chatbox__connect-icon',
|
|
31
|
+
chip: 'nm-chatbox__chip',
|
|
32
|
+
chipIcon: 'nm-chatbox__chip-icon',
|
|
33
|
+
chipConnected: 'nm-chatbox__chip--connected',
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
36
|
+
/** Add menu rows include an icon. Slash rows are a name and a short description. */
|
|
37
|
+
export const NM_CHATBOX_MENU_MODE = {
|
|
38
|
+
icons: 'icons',
|
|
39
|
+
text: 'text',
|
|
40
|
+
} as const;
|
|
41
|
+
|
|
42
|
+
export type NmChatboxMenuMode = (typeof NM_CHATBOX_MENU_MODE)[keyof typeof NM_CHATBOX_MENU_MODE];
|