@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,145 @@
|
|
|
1
|
+
.nm-menu__positioner {
|
|
2
|
+
z-index: var(--nm-menu-z);
|
|
3
|
+
outline: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Panel radius, padding and row radius follow the concentric rule in tokens.css. */
|
|
7
|
+
.nm-menu {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--nm-space-2);
|
|
12
|
+
min-width: var(--nm-width-menu);
|
|
13
|
+
max-height: var(--available-height);
|
|
14
|
+
padding: var(--nm-list-pad);
|
|
15
|
+
overflow-x: hidden;
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
18
|
+
border-radius: var(--nm-menu-radius);
|
|
19
|
+
background: var(--nm-panel);
|
|
20
|
+
color: var(--nm-fg);
|
|
21
|
+
font-family: var(--nm-font);
|
|
22
|
+
font-size: var(--nm-type-ui);
|
|
23
|
+
outline: none;
|
|
24
|
+
transition: opacity 0.12s;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.nm-menu[data-starting-style],
|
|
28
|
+
.nm-menu[data-ending-style] {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nm-menu__label {
|
|
33
|
+
padding: var(--nm-space-6) var(--nm-icon-pad);
|
|
34
|
+
color: var(--nm-fg-subtle);
|
|
35
|
+
font-size: var(--nm-type-ui-sm);
|
|
36
|
+
font-weight: var(--nm-weight-medium);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.nm-menu__item {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--nm-space-8);
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
min-height: var(--nm-icon-control);
|
|
45
|
+
padding: var(--nm-icon-pad);
|
|
46
|
+
border: 0;
|
|
47
|
+
border-radius: var(--nm-panel-item-radius);
|
|
48
|
+
background: transparent;
|
|
49
|
+
color: var(--nm-fg);
|
|
50
|
+
font: inherit;
|
|
51
|
+
font-weight: var(--nm-weight-medium);
|
|
52
|
+
line-height: var(--nm-leading-tight);
|
|
53
|
+
text-align: left;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
outline: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.nm-menu__item:hover,
|
|
60
|
+
.nm-menu__item[data-highlighted],
|
|
61
|
+
.nm-menu__item[data-popup-open] {
|
|
62
|
+
background: var(--nm-line);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.nm-menu__item[data-disabled] {
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nm-menu__item[data-variant='destructive'] {
|
|
71
|
+
color: var(--nm-destructive);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.nm-menu__item .nm-icon {
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
color: var(--nm-fg-subtle);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.nm-menu__item[data-variant='destructive'] .nm-icon {
|
|
80
|
+
color: inherit;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nm-menu__item--choice {
|
|
84
|
+
padding-left: var(--nm-icon-pad);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nm-menu__indicator {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
width: var(--nm-icon-button);
|
|
91
|
+
height: var(--nm-icon-button);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* The chevron icon points down. A submenu opens to the side, so it turns to point right. */
|
|
95
|
+
.nm-menu__sub-chevron {
|
|
96
|
+
margin-left: auto;
|
|
97
|
+
transform: rotate(-90deg);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nm-menu__text {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex: 1;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: var(--nm-space-2);
|
|
105
|
+
min-width: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nm-menu__description {
|
|
109
|
+
color: var(--nm-fg-subtle);
|
|
110
|
+
font-size: var(--nm-type-ui-sm);
|
|
111
|
+
font-weight: var(--nm-weight-regular);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.nm-menu__item:has(.nm-menu__description) {
|
|
115
|
+
align-items: flex-start;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.nm-menu__dot {
|
|
119
|
+
width: var(--nm-space-8);
|
|
120
|
+
height: var(--nm-space-8);
|
|
121
|
+
margin: calc((var(--nm-icon-button) - var(--nm-space-8)) / 2);
|
|
122
|
+
border-radius: 50%;
|
|
123
|
+
background: var(--nm-stroke);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.nm-menu__dot[data-status='ok'] {
|
|
127
|
+
background: var(--ok);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.nm-menu__dot[data-status='error'] {
|
|
131
|
+
background: var(--nm-destructive);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.nm-menu__shortcut {
|
|
135
|
+
margin-left: auto;
|
|
136
|
+
color: var(--nm-fg-subtle);
|
|
137
|
+
font-size: var(--nm-type-ui-sm);
|
|
138
|
+
letter-spacing: var(--nm-track);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.nm-menu__separator {
|
|
142
|
+
height: var(--nm-rule);
|
|
143
|
+
margin: var(--nm-space-4) calc(var(--nm-list-pad) * -1);
|
|
144
|
+
background: var(--nm-line-strong);
|
|
145
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
3
|
+
import { nmClass } from '../../lib/nm-class.ts';
|
|
4
|
+
import { NmIcon } from '../nm-icon/nm-icon.tsx';
|
|
5
|
+
|
|
6
|
+
/** Base UI Menu, in the shadcn dropdown-menu composition, styled by NIF tokens. */
|
|
7
|
+
export function NmDropdownMenu(props: MenuPrimitive.Root.Props) {
|
|
8
|
+
return <MenuPrimitive.Root data-slot="dropdown-menu" {...props} />;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function NmDropdownMenuTrigger(props: MenuPrimitive.Trigger.Props) {
|
|
12
|
+
return <MenuPrimitive.Trigger data-slot="dropdown-menu-trigger" {...props} />;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
type PositionProps = Pick<MenuPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>;
|
|
16
|
+
|
|
17
|
+
export function NmDropdownMenuContent({
|
|
18
|
+
align = 'start',
|
|
19
|
+
alignOffset = 0,
|
|
20
|
+
side = 'bottom',
|
|
21
|
+
sideOffset = 8,
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: MenuPrimitive.Popup.Props & PositionProps) {
|
|
25
|
+
return (
|
|
26
|
+
<MenuPrimitive.Portal>
|
|
27
|
+
<MenuPrimitive.Positioner className="nm-menu__positioner" align={align} alignOffset={alignOffset} side={side} sideOffset={sideOffset}>
|
|
28
|
+
<MenuPrimitive.Popup data-slot="dropdown-menu-content" className={nmClass('nm-menu', className as string)} {...props} />
|
|
29
|
+
</MenuPrimitive.Positioner>
|
|
30
|
+
</MenuPrimitive.Portal>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function NmDropdownMenuGroup(props: MenuPrimitive.Group.Props) {
|
|
35
|
+
return <MenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function NmDropdownMenuLabel({ className, ...props }: MenuPrimitive.GroupLabel.Props) {
|
|
39
|
+
return <MenuPrimitive.GroupLabel data-slot="dropdown-menu-label" className={nmClass('nm-menu__label', className as string)} {...props} />;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function NmDropdownMenuItem({
|
|
43
|
+
className,
|
|
44
|
+
variant = 'default',
|
|
45
|
+
...props
|
|
46
|
+
}: MenuPrimitive.Item.Props & { variant?: 'default' | 'destructive' }) {
|
|
47
|
+
return <MenuPrimitive.Item data-slot="dropdown-menu-item" data-variant={variant} className={nmClass('nm-menu__item', className as string)} {...props} />;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function NmDropdownMenuSub(props: MenuPrimitive.SubmenuRoot.Props) {
|
|
51
|
+
return <MenuPrimitive.SubmenuRoot data-slot="dropdown-menu-sub" {...props} />;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function NmDropdownMenuSubTrigger({ className, children, ...props }: MenuPrimitive.SubmenuTrigger.Props) {
|
|
55
|
+
return (
|
|
56
|
+
<MenuPrimitive.SubmenuTrigger data-slot="dropdown-menu-sub-trigger" className={nmClass('nm-menu__item', className as string)} {...props}>
|
|
57
|
+
{children}
|
|
58
|
+
<NmIcon id="chevron" className="nm-menu__sub-chevron" />
|
|
59
|
+
</MenuPrimitive.SubmenuTrigger>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NmDropdownMenuSubContent({ align = 'start', alignOffset = -12, side = 'right', sideOffset = 0, className, ...props }: MenuPrimitive.Popup.Props & PositionProps) {
|
|
64
|
+
return <NmDropdownMenuContent align={align} alignOffset={alignOffset} side={side} sideOffset={sideOffset} className={className as string} {...props} />;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function NmDropdownMenuCheckboxItem({ className, children, ...props }: MenuPrimitive.CheckboxItem.Props) {
|
|
68
|
+
return (
|
|
69
|
+
<MenuPrimitive.CheckboxItem data-slot="dropdown-menu-checkbox-item" className={nmClass('nm-menu__item nm-menu__item--choice', className as string)} {...props}>
|
|
70
|
+
<span className="nm-menu__indicator">
|
|
71
|
+
<MenuPrimitive.CheckboxItemIndicator>
|
|
72
|
+
<NmIcon id="check" />
|
|
73
|
+
</MenuPrimitive.CheckboxItemIndicator>
|
|
74
|
+
</span>
|
|
75
|
+
{children}
|
|
76
|
+
</MenuPrimitive.CheckboxItem>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function NmDropdownMenuRadioGroup(props: MenuPrimitive.RadioGroup.Props) {
|
|
81
|
+
return <MenuPrimitive.RadioGroup data-slot="dropdown-menu-radio-group" {...props} />;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function NmDropdownMenuRadioItem({ className, children, ...props }: MenuPrimitive.RadioItem.Props) {
|
|
85
|
+
return (
|
|
86
|
+
<MenuPrimitive.RadioItem data-slot="dropdown-menu-radio-item" className={nmClass('nm-menu__item nm-menu__item--choice', className as string)} {...props}>
|
|
87
|
+
<span className="nm-menu__indicator">
|
|
88
|
+
<MenuPrimitive.RadioItemIndicator>
|
|
89
|
+
<NmIcon id="check" />
|
|
90
|
+
</MenuPrimitive.RadioItemIndicator>
|
|
91
|
+
</span>
|
|
92
|
+
{children}
|
|
93
|
+
</MenuPrimitive.RadioItem>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function NmDropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props) {
|
|
98
|
+
return <MenuPrimitive.Separator data-slot="dropdown-menu-separator" className={nmClass('nm-menu__separator', className as string)} {...props} />;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function NmDropdownMenuShortcut({ className, ...props }: ComponentProps<'span'>) {
|
|
102
|
+
return <span data-slot="dropdown-menu-shortcut" className={nmClass('nm-menu__shortcut', className)} {...props} />;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** Two lines in an item: the title, then a quieter description. */
|
|
106
|
+
export function NmDropdownMenuText({ title, description }: { title: string; description?: string }) {
|
|
107
|
+
return (
|
|
108
|
+
<span className="nm-menu__text">
|
|
109
|
+
<span>{title}</span>
|
|
110
|
+
{description ? <span className="nm-menu__description">{description}</span> : null}
|
|
111
|
+
</span>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** A status dot at the start of an item. */
|
|
116
|
+
export function NmDropdownMenuDot({ status }: { status?: 'ok' | 'error' }) {
|
|
117
|
+
return <span className="nm-menu__dot" data-status={status} aria-hidden="true" />;
|
|
118
|
+
}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
.nm-field {
|
|
2
|
+
display: flex;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--nm-space-8);
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
min-height: var(--nm-field-h);
|
|
9
|
+
padding: 0 var(--control-px);
|
|
10
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
11
|
+
border-radius: var(--nm-control-r);
|
|
12
|
+
background: var(--nm-raised);
|
|
13
|
+
color: var(--nm-fg-subtle);
|
|
14
|
+
font-family: var(--nm-font);
|
|
15
|
+
font-size: var(--control-fs);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Only the single-row field has the field height. The stacked field holds a caption above its box. */
|
|
19
|
+
.nm-field:not(.nm-field--stack):not(:has(textarea)) {
|
|
20
|
+
height: var(--nm-field-h);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nm-field:not(.nm-field--stack):focus-within,
|
|
24
|
+
.nm-field__box:focus-within {
|
|
25
|
+
border-color: var(--nm-stroke);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nm-field__icon,
|
|
29
|
+
.nm-field__step .nm-icon {
|
|
30
|
+
display: block;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
width: var(--nm-icon-button);
|
|
33
|
+
height: var(--nm-icon-button);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.nm-field__control {
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
height: auto;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0;
|
|
42
|
+
border: 0;
|
|
43
|
+
background: transparent;
|
|
44
|
+
color: var(--nm-fg);
|
|
45
|
+
font-family: var(--nm-font);
|
|
46
|
+
font-size: var(--control-fs);
|
|
47
|
+
font-weight: var(--nm-weight-regular);
|
|
48
|
+
line-height: var(--nm-icon-button);
|
|
49
|
+
outline: none;
|
|
50
|
+
appearance: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nm-field__control::placeholder {
|
|
54
|
+
color: var(--nm-stroke);
|
|
55
|
+
opacity: 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nm-field__control::-webkit-search-cancel-button,
|
|
59
|
+
.nm-field__control::-webkit-search-decoration {
|
|
60
|
+
appearance: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nm-field__trail {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: var(--nm-space-4);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nm-field__meta {
|
|
71
|
+
color: var(--nm-fg-subtle);
|
|
72
|
+
font-size: var(--nm-type-ui-sm);
|
|
73
|
+
font-weight: var(--nm-weight-semibold);
|
|
74
|
+
font-variant-numeric: tabular-nums;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.nm-field__step {
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
padding: 0;
|
|
83
|
+
border: 0;
|
|
84
|
+
background: transparent;
|
|
85
|
+
color: var(--nm-fg-subtle);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nm-field__step:disabled {
|
|
90
|
+
cursor: default;
|
|
91
|
+
opacity: 0.35;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.nm-field--stack {
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
align-items: stretch;
|
|
97
|
+
gap: var(--field-label-gap);
|
|
98
|
+
min-height: 0;
|
|
99
|
+
padding: 0;
|
|
100
|
+
border: 0;
|
|
101
|
+
border-radius: 0;
|
|
102
|
+
background: transparent;
|
|
103
|
+
color: var(--nm-fg);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.nm-field__caption {
|
|
107
|
+
margin: 0;
|
|
108
|
+
color: var(--nm-fg-subtle);
|
|
109
|
+
font-family: var(--nm-font);
|
|
110
|
+
font-size: var(--field-label-fs);
|
|
111
|
+
font-weight: var(--nm-weight-regular);
|
|
112
|
+
line-height: normal;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.nm-field__row {
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
gap: var(--nm-space-8);
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.nm-field__box {
|
|
123
|
+
position: relative;
|
|
124
|
+
display: flex;
|
|
125
|
+
flex: 1 1 auto;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: var(--nm-space-8);
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
min-width: 0;
|
|
130
|
+
height: var(--nm-field-h);
|
|
131
|
+
min-height: var(--nm-field-h);
|
|
132
|
+
max-height: var(--nm-field-h);
|
|
133
|
+
padding: 0 var(--control-px);
|
|
134
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
135
|
+
border-radius: var(--nm-control-r);
|
|
136
|
+
background: var(--nm-raised);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* The box padding is the inset. Icons add none, so icon and text sit the same distance from the edge. */
|
|
140
|
+
.nm-field--stack .nm-field__icon,
|
|
141
|
+
.nm-field--stack .nm-field__trail .nm-icon {
|
|
142
|
+
box-sizing: content-box;
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.nm-modal .nm-field .nm-field__control {
|
|
147
|
+
width: 100%;
|
|
148
|
+
padding: 0;
|
|
149
|
+
border-radius: 0;
|
|
150
|
+
background: transparent;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.nm-field--stack .nm-field__control {
|
|
154
|
+
color: var(--nm-fg);
|
|
155
|
+
line-height: var(--nm-leading-ui);
|
|
156
|
+
text-align: left;
|
|
157
|
+
cursor: text;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.nm-field--stack .nm-field__control::placeholder,
|
|
161
|
+
.nm-field--stack .nm-field__control:placeholder-shown {
|
|
162
|
+
color: var(--nm-stroke);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.nm-field--stack .nm-field__control[readonly],
|
|
166
|
+
.nm-field--stack .nm-field__control[data-empty='true'] {
|
|
167
|
+
color: var(--nm-stroke);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.nm-field--stack .nm-field__control[data-emphasis='true'] {
|
|
171
|
+
color: var(--nm-fg);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nm-field__mark {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
align-items: center;
|
|
178
|
+
width: var(--nm-icon-button);
|
|
179
|
+
height: var(--nm-icon-button);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.nm-field__mark svg {
|
|
183
|
+
display: block;
|
|
184
|
+
width: var(--nm-icon-button);
|
|
185
|
+
height: var(--nm-icon-button);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.nm-field--stack[data-leading='face'] .nm-field__box {
|
|
189
|
+
height: auto;
|
|
190
|
+
min-height: calc(var(--nm-list-face) + var(--nm-space-12) * 2);
|
|
191
|
+
max-height: none;
|
|
192
|
+
padding: var(--nm-space-12) var(--nm-space-16);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.nm-field--stack[data-leading='face'] .nm-field__mark {
|
|
196
|
+
width: var(--nm-list-face);
|
|
197
|
+
height: var(--nm-list-face);
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
border-radius: calc(var(--nm-list-face) / 2);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.nm-field--stack[data-leading='face'] .nm-field__mark > *,
|
|
203
|
+
.nm-field--stack[data-leading='face'] .nm-field__mark svg {
|
|
204
|
+
width: 100%;
|
|
205
|
+
height: 100%;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.nm-field__trail .nm-dropdown .nm-icon {
|
|
209
|
+
padding: 0;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.nm-field--stack[data-kind='area'] .nm-field__box {
|
|
213
|
+
align-items: flex-start;
|
|
214
|
+
height: auto;
|
|
215
|
+
max-height: none;
|
|
216
|
+
min-height: var(--nm-field-area);
|
|
217
|
+
padding: var(--field-area-py) var(--control-px);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.nm-field--stack button.nm-field__control {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: space-between;
|
|
224
|
+
cursor: pointer;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nm-field--stack button.nm-field__control .nm-icon {
|
|
228
|
+
box-sizing: content-box;
|
|
229
|
+
flex-shrink: 0;
|
|
230
|
+
width: var(--nm-icon-button);
|
|
231
|
+
height: var(--nm-icon-button);
|
|
232
|
+
padding: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.nm-field--stack textarea.nm-field__control,
|
|
236
|
+
.nm-modal .nm-field textarea.nm-field__control {
|
|
237
|
+
height: calc(var(--nm-field-area) - var(--field-area-py) * 2);
|
|
238
|
+
min-height: calc(var(--nm-field-area) - var(--field-area-py) * 2);
|
|
239
|
+
max-height: calc(var(--nm-field-area) - var(--field-area-py) * 2);
|
|
240
|
+
overflow-y: auto;
|
|
241
|
+
field-sizing: fixed;
|
|
242
|
+
resize: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.nm-field--stack textarea.nm-field__control[readonly],
|
|
246
|
+
.nm-modal .nm-field textarea.nm-field__control[readonly] {
|
|
247
|
+
cursor: default;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.nm-field__add {
|
|
251
|
+
display: inline-flex;
|
|
252
|
+
flex: 0 0 auto;
|
|
253
|
+
align-items: center;
|
|
254
|
+
justify-content: center;
|
|
255
|
+
box-sizing: border-box;
|
|
256
|
+
width: var(--nm-field-h);
|
|
257
|
+
height: var(--nm-field-h);
|
|
258
|
+
padding: 0;
|
|
259
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
260
|
+
border-radius: var(--nm-control-r);
|
|
261
|
+
background: var(--nm-raised);
|
|
262
|
+
color: var(--nm-fg);
|
|
263
|
+
cursor: pointer;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.nm-field__add .nm-icon {
|
|
267
|
+
display: block;
|
|
268
|
+
width: var(--nm-icon-button);
|
|
269
|
+
height: var(--nm-icon-button);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.nm-field__menu {
|
|
273
|
+
position: absolute;
|
|
274
|
+
z-index: var(--nm-menu-z);
|
|
275
|
+
top: calc(100% + var(--nm-space-4));
|
|
276
|
+
right: 0;
|
|
277
|
+
left: 0;
|
|
278
|
+
margin: 0;
|
|
279
|
+
padding: var(--nm-menu-pad);
|
|
280
|
+
overflow: auto;
|
|
281
|
+
list-style: none;
|
|
282
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
283
|
+
border-radius: var(--nm-control-menu-radius);
|
|
284
|
+
background: var(--nm-panel);
|
|
285
|
+
max-height: var(--nm-dropdown-max);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.nm-field__search {
|
|
289
|
+
display: flex;
|
|
290
|
+
align-items: center;
|
|
291
|
+
gap: var(--nm-space-8);
|
|
292
|
+
padding: var(--nm-space-8) var(--nm-control-option-inset);
|
|
293
|
+
border-bottom: var(--nm-rule) solid var(--nm-line);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.nm-field__search-input {
|
|
297
|
+
width: 100%;
|
|
298
|
+
min-width: 0;
|
|
299
|
+
margin: 0;
|
|
300
|
+
padding: 0;
|
|
301
|
+
border: 0;
|
|
302
|
+
background: transparent;
|
|
303
|
+
color: var(--nm-fg);
|
|
304
|
+
font-family: var(--nm-font);
|
|
305
|
+
font-size: var(--nm-type-ui);
|
|
306
|
+
font-weight: var(--nm-weight-medium);
|
|
307
|
+
line-height: var(--nm-leading-ui);
|
|
308
|
+
outline: none;
|
|
309
|
+
appearance: none;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.nm-field__search-input::placeholder {
|
|
313
|
+
color: var(--nm-stroke);
|
|
314
|
+
opacity: 1;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.nm-field__value {
|
|
318
|
+
display: flex;
|
|
319
|
+
flex: 1;
|
|
320
|
+
align-items: center;
|
|
321
|
+
min-width: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.nm-field__value,
|
|
325
|
+
.nm-field__option {
|
|
326
|
+
gap: var(--nm-space-12);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.nm-field__swatches {
|
|
330
|
+
display: inline-flex;
|
|
331
|
+
gap: var(--nm-space-4);
|
|
332
|
+
margin-inline-start: auto;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.nm-field__option {
|
|
336
|
+
display: flex;
|
|
337
|
+
align-items: center;
|
|
338
|
+
width: 100%;
|
|
339
|
+
padding: var(--nm-space-12) var(--nm-control-option-inset);
|
|
340
|
+
border: 0;
|
|
341
|
+
border-radius: var(--nm-control-option-radius);
|
|
342
|
+
background: transparent;
|
|
343
|
+
color: var(--nm-fg);
|
|
344
|
+
font-family: var(--nm-font);
|
|
345
|
+
font-size: var(--nm-type-ui);
|
|
346
|
+
font-weight: var(--nm-weight-medium);
|
|
347
|
+
line-height: var(--nm-leading-ui);
|
|
348
|
+
letter-spacing: var(--nm-track);
|
|
349
|
+
text-align: left;
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.nm-field__option:hover,
|
|
354
|
+
.nm-field__option[aria-selected='true'] {
|
|
355
|
+
background: var(--nm-inset);
|
|
356
|
+
}
|