@nordmanai/nif 0.1.0 → 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 +18 -0
- package/bin/nif.mjs +196 -0
- package/dist/index.d.ts +30 -1
- package/dist/index.js +9661 -2499
- package/dist/styles.css +1 -1
- package/dist/tokens.css +4 -1
- package/dist/ui/components/nm-ai/nm-ai.d.ts +7 -7
- 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 +2 -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-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-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 +4 -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-field/nm-field.d.ts +2 -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-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-menubar/nm-menubar.d.ts +9 -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-prose/nm-prose.d.ts +6 -0
- package/dist/ui/components/nm-resize-handle/nm-resize-handle.d.ts +18 -0
- package/dist/ui/components/nm-select/nm-select.d.ts +22 -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 +5 -1
- package/dist/ui/components/nm-status-bar/nm-status-bar.d.ts +8 -0
- package/dist/ui/components/nm-table/nm-table.d.ts +38 -0
- package/dist/ui/components/nm-textarea/nm-textarea.d.ts +2 -0
- package/dist/ui/components/nm-toolbar/nm-toolbar.d.ts +21 -0
- package/dist/ui/config/nm-ai.d.ts +0 -3
- package/dist/ui/config/nm-appearance.d.ts +36 -1
- package/dist/ui/config/nm-button.d.ts +2 -1
- package/dist/ui/config/nm-composer.d.ts +1 -2
- package/dist/ui/config/nm-field.d.ts +2 -0
- package/dist/ui/config/nm-icons.d.ts +13 -1
- package/dist/ui/config/nm-radius.d.ts +4 -4
- package/dist/ui/config/nm-side-panel.d.ts +33 -0
- package/dist/ui/lib/appearance/appearanceState.d.ts +1 -0
- package/dist/ui/lib/appearance/deriveTokens.d.ts +2 -0
- package/package.json +12 -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
- package/dist/ui/components/nm-accordion/nm-accordion.d.ts +0 -6
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* Nordman design tokens: the one source for every colour on every Nordman page.
|
|
2
|
+
The website sets the theme with data-theme, the apps with html.light and html.dark.
|
|
3
|
+
--nm-* are the app names for the same values. Apps set them inline for custom appearance. */
|
|
4
|
+
:root{
|
|
5
|
+
--bg:#ffffff; --bg-2:#fafafa; --bg-3:#f2f2f2;
|
|
6
|
+
--fg:#171717; --fg-2:#666666; --fg-3:#8f8f8f;
|
|
7
|
+
--line:#ebebeb; --line-2:#e0e0e0;
|
|
8
|
+
--btn:#171717; --btn-fg:#ffffff; --btn-2:#ffffff;
|
|
9
|
+
--glow:0,0,0; --glow-a:.16;
|
|
10
|
+
--ok:#16a34a; --focus:#0070f3;
|
|
11
|
+
--header:rgba(255,255,255,.85);
|
|
12
|
+
--nm-stroke:var(--fg-2);
|
|
13
|
+
--nm-canvas-rgb:255 255 255; --nm-fg-rgb:23 23 23;
|
|
14
|
+
--nm-fg-muted-rgb:102 102 102; --nm-fg-subtle-rgb:102 102 102; --nm-stroke-rgb:102 102 102;
|
|
15
|
+
--nm-line-rgb:235 235 235; --nm-panel-rgb:242 242 242; --nm-raised-rgb:250 250 250; --nm-inset-rgb:242 242 242;
|
|
16
|
+
color-scheme:light;
|
|
17
|
+
--nm-canvas:var(--bg); --nm-fg:var(--fg);
|
|
18
|
+
--nm-fg-muted:var(--fg-2); --nm-fg-subtle:var(--fg-2);
|
|
19
|
+
--nm-line:var(--line); --nm-line-strong:var(--line-2);
|
|
20
|
+
--nm-panel:var(--bg-3); --nm-raised:var(--bg-2); --nm-inset:var(--bg-3);
|
|
21
|
+
|
|
22
|
+
/* One geometry for controls on every page. */
|
|
23
|
+
--control-h:32px; --control-h-sm:28px; --control-h-lg:40px;
|
|
24
|
+
--control-r:6px; --control-px:calc(12px * var(--nm-space-scale, 1)); --control-gap:calc(8px * var(--nm-space-scale, 1));
|
|
25
|
+
--control-fs:14px; --control-fw:var(--nm-weight-medium); --btn-hover:.88;
|
|
26
|
+
--field-label-fs:13px; --field-label-gap:calc(6px * var(--nm-space-scale, 1)); --field-area-py:calc(10px * var(--nm-space-scale, 1));
|
|
27
|
+
--tab-py:calc(10px * var(--nm-space-scale, 1)); --tab-px:calc(14px * var(--nm-space-scale, 1)); --tab-rule:2px;
|
|
28
|
+
--toggle-pad:calc(3px * var(--nm-space-scale, 1)); --toggle-h:30px; --toggle-px:calc(14px * var(--nm-space-scale, 1)); --toggle-r:999px;
|
|
29
|
+
--badge-h:20px; --badge-px:calc(8px * var(--nm-space-scale, 1)); --badge-fs:11px; --badge-r:999px;
|
|
30
|
+
--table-fs:15px; --table-head-fs:13px; --table-head-py:calc(12px * var(--nm-space-scale, 1)); --table-cell-py:calc(16px * var(--nm-space-scale, 1)); --table-gap:calc(16px * var(--nm-space-scale, 1));
|
|
31
|
+
}
|
|
32
|
+
@media (prefers-color-scheme:dark){
|
|
33
|
+
:root:not([data-theme="light"]):not(.light){
|
|
34
|
+
--bg:#000000; --bg-2:#0a0a0a; --bg-3:#1a1a1a;
|
|
35
|
+
--fg:#ededed; --fg-2:#a1a1a1; --fg-3:#707070;
|
|
36
|
+
--line:#1f1f1f; --line-2:#2e2e2e;
|
|
37
|
+
--btn:#ededed; --btn-fg:#0a0a0a; --btn-2:#0a0a0a;
|
|
38
|
+
--glow:255,255,255; --glow-a:.5;
|
|
39
|
+
--ok:#3fcf75; --focus:#52a8ff;
|
|
40
|
+
--header:rgba(0,0,0,.8);
|
|
41
|
+
--nm-stroke:var(--fg-3);
|
|
42
|
+
--nm-canvas-rgb:0 0 0; --nm-fg-rgb:237 237 237;
|
|
43
|
+
--nm-fg-muted-rgb:161 161 161; --nm-fg-subtle-rgb:161 161 161; --nm-stroke-rgb:112 112 112;
|
|
44
|
+
--nm-line-rgb:31 31 31; --nm-panel-rgb:26 26 26; --nm-raised-rgb:10 10 10; --nm-inset-rgb:26 26 26;
|
|
45
|
+
color-scheme:dark;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
:root[data-theme="dark"],:root.dark:not([data-theme="light"]){
|
|
49
|
+
--bg:#000000; --bg-2:#0a0a0a; --bg-3:#1a1a1a;
|
|
50
|
+
--fg:#ededed; --fg-2:#a1a1a1; --fg-3:#707070;
|
|
51
|
+
--line:#1f1f1f; --line-2:#2e2e2e;
|
|
52
|
+
--btn:#ededed; --btn-fg:#0a0a0a; --btn-2:#0a0a0a;
|
|
53
|
+
--glow:255,255,255; --glow-a:.5;
|
|
54
|
+
--ok:#3fcf75; --focus:#52a8ff;
|
|
55
|
+
--header:rgba(0,0,0,.8);
|
|
56
|
+
--nm-stroke:var(--fg-3);
|
|
57
|
+
--nm-canvas-rgb:0 0 0; --nm-fg-rgb:237 237 237;
|
|
58
|
+
--nm-fg-muted-rgb:161 161 161; --nm-fg-subtle-rgb:161 161 161; --nm-stroke-rgb:112 112 112;
|
|
59
|
+
--nm-line-rgb:31 31 31; --nm-panel-rgb:26 26 26; --nm-raised-rgb:10 10 10; --nm-inset-rgb:26 26 26;
|
|
60
|
+
color-scheme:dark;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Typeface. The one family every Nordman component and page sets its text in.
|
|
64
|
+
Poppins and Geist Mono are loaded by the app, or by @nordmanai/nif. Nothing may name another family. */
|
|
65
|
+
:root{
|
|
66
|
+
--nm-font:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
|
|
67
|
+
--nm-font-mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
|
|
68
|
+
--nm-weight-light:300; --nm-weight-regular:400; --nm-weight-medium:500; --nm-weight-semibold:600; --nm-weight-bold:700;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* One height for every field: input, select, date, colour, input group. Content never changes it. */
|
|
72
|
+
:root{ --nm-field-h:var(--control-h-lg); }
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
/* AI Elements. Spacing, radius and colour come from tokens, so Theming moves every element. */
|
|
2
|
+
.nm-ai-turn {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
gap: var(--nm-space-8);
|
|
7
|
+
width: 100%;
|
|
8
|
+
font-family: var(--nm-font);
|
|
9
|
+
font-size: var(--nm-type-ui);
|
|
10
|
+
color: var(--nm-fg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.nm-ai-turn--user {
|
|
14
|
+
align-items: flex-end;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.nm-ai-turn__body {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: var(--nm-space-12);
|
|
21
|
+
min-width: 0;
|
|
22
|
+
max-width: 100%;
|
|
23
|
+
line-height: var(--nm-leading-normal);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nm-ai-turn__footer {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--nm-space-4);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nm-ai-bubble {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
padding: var(--nm-space-12);
|
|
36
|
+
border-radius: var(--nm-control-r);
|
|
37
|
+
background: transparent;
|
|
38
|
+
line-height: var(--nm-leading-normal);
|
|
39
|
+
overflow-wrap: anywhere;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nm-ai-bubble--user {
|
|
43
|
+
background: var(--nm-panel);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nm-ai-item {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: var(--nm-space-12);
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
width: 100%;
|
|
52
|
+
padding: var(--nm-space-12);
|
|
53
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
54
|
+
border-radius: var(--nm-control-r);
|
|
55
|
+
background: var(--nm-raised);
|
|
56
|
+
color: var(--nm-fg);
|
|
57
|
+
font-family: var(--nm-font);
|
|
58
|
+
font-size: var(--nm-type-ui);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nm-ai-item__media {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
color: var(--nm-fg-subtle);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.nm-ai-item__body {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex: 1;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
gap: var(--nm-space-2);
|
|
72
|
+
min-width: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nm-ai-item__title {
|
|
76
|
+
font-weight: var(--nm-weight-medium);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.nm-ai-item__description {
|
|
80
|
+
color: var(--nm-fg-muted);
|
|
81
|
+
font-size: var(--nm-type-ui-sm);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.nm-ai-item__actions {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-shrink: 0;
|
|
87
|
+
gap: var(--nm-space-8);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.nm-ai-sheet {
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
gap: var(--nm-space-12);
|
|
95
|
+
width: 100%;
|
|
96
|
+
padding: var(--nm-panel-pad);
|
|
97
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
98
|
+
border-radius: var(--nm-control-menu-radius);
|
|
99
|
+
background: var(--nm-panel);
|
|
100
|
+
color: var(--nm-fg);
|
|
101
|
+
font-family: var(--nm-font);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.nm-ai-sheet__head {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
gap: var(--nm-space-8);
|
|
109
|
+
font-weight: var(--nm-weight-medium);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.nm-ai-sheet__body {
|
|
113
|
+
min-width: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.nm-ai-stack {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: var(--nm-space-8);
|
|
120
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.nm-ai-checkpoint {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: var(--nm-space-12);
|
|
127
|
+
width: 100%;
|
|
128
|
+
color: var(--nm-fg-subtle);
|
|
129
|
+
font-family: var(--nm-font);
|
|
130
|
+
font-size: var(--nm-type-ui-sm);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nm-ai-checkpoint::before,
|
|
134
|
+
.nm-ai-checkpoint::after {
|
|
135
|
+
content: '';
|
|
136
|
+
flex: 1;
|
|
137
|
+
height: var(--nm-rule);
|
|
138
|
+
background: var(--nm-line-strong);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.nm-ai-checkpoint__label {
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
gap: var(--nm-space-8);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
.nm-ai-context__head {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: space-between;
|
|
153
|
+
gap: var(--nm-space-12);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.nm-ai-context__head > span:last-child,
|
|
157
|
+
.nm-ai-context__rows > div > span:first-child {
|
|
158
|
+
color: var(--nm-fg-muted);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.nm-ai-context__rows {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
gap: var(--nm-space-4);
|
|
165
|
+
font-size: var(--nm-type-ui-sm);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.nm-ai-context__rows > div {
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
gap: var(--nm-space-12);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nm-ai-tree {
|
|
175
|
+
margin: 0;
|
|
176
|
+
padding: 0;
|
|
177
|
+
list-style: none;
|
|
178
|
+
font-family: var(--nm-font);
|
|
179
|
+
font-size: var(--nm-type-ui);
|
|
180
|
+
color: var(--nm-fg);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.nm-ai-tree .nm-ai-tree {
|
|
184
|
+
padding-left: var(--nm-space-16);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.nm-ai-tree__node {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: var(--nm-space-8);
|
|
191
|
+
width: 100%;
|
|
192
|
+
padding: var(--nm-space-4) var(--nm-space-8);
|
|
193
|
+
border: 0;
|
|
194
|
+
border-radius: var(--nm-control-r);
|
|
195
|
+
background: transparent;
|
|
196
|
+
color: inherit;
|
|
197
|
+
font: inherit;
|
|
198
|
+
text-align: left;
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.nm-ai-tree__node[data-selected] {
|
|
203
|
+
background: var(--nm-line);
|
|
204
|
+
color: var(--nm-fg);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.nm-ai-tree__node:hover {
|
|
208
|
+
background: var(--nm-inset);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.nm-ai-tree__node[data-kind='file'] {
|
|
212
|
+
cursor: default;
|
|
213
|
+
color: var(--nm-fg-muted);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* The chevron icon points down. Closed, a folder points right. Open, it points down. */
|
|
217
|
+
.nm-ai-tree__chevron {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
transform: rotate(-90deg);
|
|
220
|
+
transition: transform 0.15s;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.nm-ai-tree__chevron[data-open='true'] {
|
|
224
|
+
transform: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nm-ai-citation {
|
|
228
|
+
display: inline;
|
|
229
|
+
padding: 0 var(--nm-space-6);
|
|
230
|
+
border-radius: var(--badge-r);
|
|
231
|
+
background: var(--nm-panel);
|
|
232
|
+
color: var(--nm-fg-muted);
|
|
233
|
+
font-size: var(--nm-type-ui-sm);
|
|
234
|
+
vertical-align: baseline;
|
|
235
|
+
text-decoration: none;
|
|
236
|
+
cursor: default;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.nm-ai-suggestions {
|
|
240
|
+
display: flex;
|
|
241
|
+
gap: var(--nm-space-8);
|
|
242
|
+
max-width: 100%;
|
|
243
|
+
overflow-x: auto;
|
|
244
|
+
scrollbar-width: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.nm-ai-suggestion {
|
|
248
|
+
flex-shrink: 0;
|
|
249
|
+
height: var(--control-h);
|
|
250
|
+
padding: 0 var(--control-px);
|
|
251
|
+
border: var(--nm-rule) solid var(--nm-line-strong);
|
|
252
|
+
border-radius: var(--toggle-r);
|
|
253
|
+
background: transparent;
|
|
254
|
+
color: var(--nm-fg);
|
|
255
|
+
font-family: var(--nm-font);
|
|
256
|
+
font-size: var(--control-fs);
|
|
257
|
+
font-weight: var(--nm-weight-medium);
|
|
258
|
+
white-space: nowrap;
|
|
259
|
+
cursor: pointer;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.nm-ai-suggestion:hover:not(:disabled) {
|
|
263
|
+
background: var(--nm-inset);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
.nm-ai-thread {
|
|
270
|
+
position: relative;
|
|
271
|
+
display: flex;
|
|
272
|
+
flex-direction: column;
|
|
273
|
+
gap: var(--nm-space-24);
|
|
274
|
+
box-sizing: border-box;
|
|
275
|
+
width: 100%;
|
|
276
|
+
max-height: var(--nm-height-thread);
|
|
277
|
+
padding: var(--nm-space-16);
|
|
278
|
+
overflow-y: auto;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.nm-ai-thread__empty {
|
|
282
|
+
display: flex;
|
|
283
|
+
flex-direction: column;
|
|
284
|
+
align-items: center;
|
|
285
|
+
gap: var(--nm-space-8);
|
|
286
|
+
padding: var(--nm-gap-block) 0;
|
|
287
|
+
color: var(--nm-fg-muted);
|
|
288
|
+
font-family: var(--nm-font);
|
|
289
|
+
text-align: center;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.nm-ai-thread__jump {
|
|
293
|
+
position: sticky;
|
|
294
|
+
bottom: 0;
|
|
295
|
+
align-self: center;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.nm-ai-selector {
|
|
299
|
+
display: inline-flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
gap: var(--nm-space-8);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.nm-ai-tests {
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: column;
|
|
307
|
+
gap: var(--nm-space-4);
|
|
308
|
+
margin: 0;
|
|
309
|
+
padding: 0;
|
|
310
|
+
list-style: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.nm-ai-tests__row {
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
gap: var(--nm-space-8);
|
|
317
|
+
color: var(--nm-fg-muted);
|
|
318
|
+
font-size: var(--nm-type-ui-sm);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.nm-ai-tests__row[data-status='failed'] {
|
|
322
|
+
color: var(--nm-fg);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.nm-ai-frame {
|
|
326
|
+
display: flex;
|
|
327
|
+
gap: var(--nm-space-8);
|
|
328
|
+
color: var(--nm-fg-muted);
|
|
329
|
+
font-family: var(--nm-font-mono);
|
|
330
|
+
font-size: var(--nm-type-ui-sm);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.nm-ai-frame[data-internal='true'] {
|
|
334
|
+
color: var(--nm-fg-subtle);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.nm-ai-steps {
|
|
338
|
+
display: flex;
|
|
339
|
+
flex-direction: column;
|
|
340
|
+
gap: var(--nm-space-8);
|
|
341
|
+
margin: 0;
|
|
342
|
+
padding: 0;
|
|
343
|
+
list-style: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* A step is a line with its description under it. The trace list lays every li out as a row, so this wins by class. */
|
|
347
|
+
.nm-ai-steps > .nm-ai-steps__item {
|
|
348
|
+
display: flex;
|
|
349
|
+
flex-direction: column;
|
|
350
|
+
align-items: flex-start;
|
|
351
|
+
gap: var(--nm-space-2);
|
|
352
|
+
padding: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.nm-ai-steps__item > .nm-trace__description,
|
|
356
|
+
.nm-ai-steps__item > .nm-trace__badges {
|
|
357
|
+
margin-left: calc(var(--nm-icon-button) + var(--nm-space-8));
|
|
358
|
+
}
|