@nordmanai/nif 0.0.0-stage → 0.1.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.
Files changed (167) hide show
  1. package/README.md +61 -2
  2. package/dist/index.d.ts +95 -0
  3. package/dist/index.js +5799 -0
  4. package/dist/styles.css +2 -0
  5. package/dist/tokens.css +69 -0
  6. package/dist/ui/components/nm-accordion/nm-accordion.d.ts +6 -0
  7. package/dist/ui/components/nm-ai/nm-ai.d.ts +222 -0
  8. package/dist/ui/components/nm-avatar/nm-avatar.d.ts +12 -0
  9. package/dist/ui/components/nm-bar-overflow/nm-bar-overflow.d.ts +15 -0
  10. package/dist/ui/components/nm-bar-overflow/use-bar-overflow.d.ts +7 -0
  11. package/dist/ui/components/nm-button/nm-button.d.ts +17 -0
  12. package/dist/ui/components/nm-chatbox/nm-chatbox-icon.d.ts +7 -0
  13. package/dist/ui/components/nm-chatbox/nm-chatbox.d.ts +19 -0
  14. package/dist/ui/components/nm-checkbox/nm-checkbox.d.ts +2 -0
  15. package/dist/ui/components/nm-collection/nm-collection-bar.d.ts +16 -0
  16. package/dist/ui/components/nm-collection/nm-collection-grid.d.ts +9 -0
  17. package/dist/ui/components/nm-collection/nm-collection-query.d.ts +18 -0
  18. package/dist/ui/components/nm-collection/nm-collection-row-menu.d.ts +7 -0
  19. package/dist/ui/components/nm-collection/nm-collection-table.d.ts +13 -0
  20. package/dist/ui/components/nm-collection/nm-collection-tile-actions.d.ts +7 -0
  21. package/dist/ui/components/nm-collection/nm-collection-title.d.ts +10 -0
  22. package/dist/ui/components/nm-collection/use-collection-scroll-reveal.d.ts +3 -0
  23. package/dist/ui/components/nm-composer/nm-composer.d.ts +29 -0
  24. package/dist/ui/components/nm-dropdown/nm-dropdown-item.d.ts +26 -0
  25. package/dist/ui/components/nm-dropdown/nm-dropdown-options.d.ts +12 -0
  26. package/dist/ui/components/nm-dropdown/nm-dropdown-panel.d.ts +16 -0
  27. package/dist/ui/components/nm-dropdown/nm-dropdown-placement.d.ts +55 -0
  28. package/dist/ui/components/nm-dropdown/nm-dropdown.d.ts +31 -0
  29. package/dist/ui/components/nm-dropdown-menu/nm-dropdown-menu.d.ts +30 -0
  30. package/dist/ui/components/nm-field/nm-field.d.ts +50 -0
  31. package/dist/ui/components/nm-hover-card/nm-hover-card.d.ts +5 -0
  32. package/dist/ui/components/nm-icon/nm-icon.d.ts +7 -0
  33. package/dist/ui/components/nm-icon/nm-lucide.d.ts +7 -0
  34. package/dist/ui/components/nm-icon-border/nm-icon-border.d.ts +21 -0
  35. package/dist/ui/components/nm-list-item/nm-list-item.d.ts +23 -0
  36. package/dist/ui/components/nm-message/nm-message-actions.d.ts +7 -0
  37. package/dist/ui/components/nm-message/nm-message-meta.d.ts +10 -0
  38. package/dist/ui/components/nm-message/nm-text-shimmer.d.ts +4 -0
  39. package/dist/ui/components/nm-message/nm-trace.d.ts +58 -0
  40. package/dist/ui/components/nm-modal/nm-modal.d.ts +35 -0
  41. package/dist/ui/components/nm-panel-bar/nm-panel-bar.d.ts +17 -0
  42. package/dist/ui/components/nm-popover/nm-popover.d.ts +8 -0
  43. package/dist/ui/components/nm-progress/nm-progress.d.ts +3 -0
  44. package/dist/ui/components/nm-questionnaire/nm-questionnaire.d.ts +17 -0
  45. package/dist/ui/components/nm-radio-group/nm-radio-group.d.ts +4 -0
  46. package/dist/ui/components/nm-rail-icon/nm-rail-icon.d.ts +6 -0
  47. package/dist/ui/components/nm-segmented/nm-segmented.d.ts +20 -0
  48. package/dist/ui/components/nm-separator/nm-separator.d.ts +2 -0
  49. package/dist/ui/components/nm-slider/nm-slider.d.ts +2 -0
  50. package/dist/ui/components/nm-small-icon-button/nm-small-icon-button.d.ts +21 -0
  51. package/dist/ui/components/nm-switch/nm-switch.d.ts +2 -0
  52. package/dist/ui/components/nm-tabs/nm-tabs.d.ts +9 -0
  53. package/dist/ui/components/nm-toggle/nm-toggle.d.ts +9 -0
  54. package/dist/ui/components/nm-tooltip/nm-tooltip.d.ts +5 -0
  55. package/dist/ui/components/nm-top-bar/nm-top-bar.d.ts +12 -0
  56. package/dist/ui/components/nordman-icon-button/nordman-icon-button.d.ts +29 -0
  57. package/dist/ui/components/nordman-login/nordman-login.d.ts +36 -0
  58. package/dist/ui/components/nordman-login-field/nordman-login-field.d.ts +13 -0
  59. package/dist/ui/components/nordman-login-forgot/nordman-login-forgot.d.ts +9 -0
  60. package/dist/ui/components/nordman-login-google/nordman-login-google.d.ts +6 -0
  61. package/dist/ui/components/nordman-login-hero/nordman-login-hero.d.ts +6 -0
  62. package/dist/ui/components/nordman-login-register/nordman-login-register.d.ts +11 -0
  63. package/dist/ui/components/nordman-login-reset/nordman-login-reset.d.ts +9 -0
  64. package/dist/ui/components/nordman-login-reveal/nordman-login-reveal.d.ts +6 -0
  65. package/dist/ui/components/nordman-login-sign-in/nordman-login-sign-in.d.ts +11 -0
  66. package/dist/ui/components/nordman-toggle/nordman-toggle.d.ts +12 -0
  67. package/dist/ui/config/nm-ai.d.ts +47 -0
  68. package/dist/ui/config/nm-app-panel.d.ts +36 -0
  69. package/dist/ui/config/nm-appearance.d.ts +65 -0
  70. package/dist/ui/config/nm-bar-overflow.d.ts +9 -0
  71. package/dist/ui/config/nm-button.d.ts +30 -0
  72. package/dist/ui/config/nm-chatbox-icons.d.ts +42 -0
  73. package/dist/ui/config/nm-chatbox.d.ts +40 -0
  74. package/dist/ui/config/nm-collection.d.ts +88 -0
  75. package/dist/ui/config/nm-composer.d.ts +43 -0
  76. package/dist/ui/config/nm-dropdown.d.ts +56 -0
  77. package/dist/ui/config/nm-fade.d.ts +6 -0
  78. package/dist/ui/config/nm-field.d.ts +36 -0
  79. package/dist/ui/config/nm-header-icons.d.ts +15 -0
  80. package/dist/ui/config/nm-icon-border.d.ts +3 -0
  81. package/dist/ui/config/nm-icon-button.d.ts +26 -0
  82. package/dist/ui/config/nm-icons.d.ts +359 -0
  83. package/dist/ui/config/nm-list-item.d.ts +14 -0
  84. package/dist/ui/config/nm-message.d.ts +87 -0
  85. package/dist/ui/config/nm-modal.d.ts +67 -0
  86. package/dist/ui/config/nm-panel-bar.d.ts +9 -0
  87. package/dist/ui/config/nm-questionnaire.d.ts +57 -0
  88. package/dist/ui/config/nm-radius.d.ts +49 -0
  89. package/dist/ui/config/nm-rail-icons.d.ts +14 -0
  90. package/dist/ui/config/nm-rail.d.ts +5 -0
  91. package/dist/ui/config/nm-segmented.d.ts +17 -0
  92. package/dist/ui/config/nm-site-palette.d.ts +30 -0
  93. package/dist/ui/config/nm-small-icon-button.d.ts +12 -0
  94. package/dist/ui/config/nm-tabs.d.ts +8 -0
  95. package/dist/ui/config/nm-top-bar.d.ts +4 -0
  96. package/dist/ui/config/nordman-chrome.d.ts +12 -0
  97. package/dist/ui/config/nordman-login.d.ts +23 -0
  98. package/dist/ui/content/nm-modal.d.ts +1 -0
  99. package/dist/ui/content/nordman-login.d.ts +38 -0
  100. package/dist/ui/kit-logger.d.ts +1 -0
  101. package/dist/ui/lib/appearance/appearanceState.d.ts +27 -0
  102. package/dist/ui/lib/appearance/applyAppearance.d.ts +5 -0
  103. package/dist/ui/lib/appearance/cloudOrbAppearance.d.ts +4 -0
  104. package/dist/ui/lib/appearance/color.d.ts +13 -0
  105. package/dist/ui/lib/appearance/deriveTokens.d.ts +4 -0
  106. package/dist/ui/lib/appearance/index.d.ts +6 -0
  107. package/dist/ui/lib/appearance/markTokens.d.ts +2 -0
  108. package/dist/ui/lib/appearance/readLayoutMetrics.d.ts +4 -0
  109. package/dist/ui/lib/bar-overflow.d.ts +13 -0
  110. package/dist/ui/lib/logger.d.ts +8 -0
  111. package/dist/ui/lib/menu-motion.d.ts +72 -0
  112. package/dist/ui/lib/nm-class.d.ts +2 -0
  113. package/dist/ui/lib/nordman-ui-locale.d.ts +9 -0
  114. package/interface/app-panel/code.svg +5 -0
  115. package/interface/app-panel/console.svg +5 -0
  116. package/interface/app-panel/copy.svg +5 -0
  117. package/interface/app-panel/ellipsis.svg +7 -0
  118. package/interface/app-panel/message.svg +5 -0
  119. package/interface/app-panel/network.svg +10 -0
  120. package/interface/app-panel/play.svg +5 -0
  121. package/interface/app-panel/plus.svg +5 -0
  122. package/interface/chatbox/app.svg +5 -0
  123. package/interface/chatbox/audio-lines.svg +5 -0
  124. package/interface/chatbox/check.svg +5 -0
  125. package/interface/chatbox/globe.svg +5 -0
  126. package/interface/chatbox/integration.svg +5 -0
  127. package/interface/chatbox/mic.svg +5 -0
  128. package/interface/chatbox/paperclip.svg +5 -0
  129. package/interface/chatbox/pointer.svg +5 -0
  130. package/interface/chatbox/send.svg +5 -0
  131. package/interface/chatbox/settings.svg +5 -0
  132. package/interface/chatbox/spreadsheet.svg +5 -0
  133. package/interface/chatbox/x.svg +5 -0
  134. package/interface/collection/audio.svg +5 -0
  135. package/interface/collection/download.svg +5 -0
  136. package/interface/collection/expand.svg +5 -0
  137. package/interface/collection/grid.svg +10 -0
  138. package/interface/collection/image.svg +5 -0
  139. package/interface/collection/spreadsheet.svg +5 -0
  140. package/interface/collection/video.svg +5 -0
  141. package/interface/header/app.svg +5 -0
  142. package/interface/header/bot.svg +5 -0
  143. package/interface/header/chat.svg +10 -0
  144. package/interface/header/folder.svg +5 -0
  145. package/interface/header/layers.svg +10 -0
  146. package/interface/header/panel.svg +5 -0
  147. package/interface/header/play.svg +3 -0
  148. package/interface/header/schedule.svg +8 -0
  149. package/interface/header/search.svg +5 -0
  150. package/interface/header/settings.svg +5 -0
  151. package/interface/header/users.svg +5 -0
  152. package/interface/message/chevron.svg +5 -0
  153. package/interface/message/copy.svg +5 -0
  154. package/interface/message/fork.svg +5 -0
  155. package/interface/message/refresh.svg +5 -0
  156. package/interface/message/volume.svg +5 -0
  157. package/interface/rail/app.svg +5 -0
  158. package/interface/rail/bot.svg +5 -0
  159. package/interface/rail/chats.svg +5 -0
  160. package/interface/rail/folder.svg +5 -0
  161. package/interface/rail/library.svg +5 -0
  162. package/interface/rail/plus-sm.svg +5 -0
  163. package/interface/rail/plus.svg +5 -0
  164. package/interface/rail/search.svg +5 -0
  165. package/interface/rail/settings.svg +8 -0
  166. package/interface/rail/spreadsheet.svg +5 -0
  167. package/package.json +71 -4
package/README.md CHANGED
@@ -1,3 +1,62 @@
1
- # Temporary Holding Version
1
+ # @nordmanai/nif
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Nordman Interface Framework. One UI and UX system for every Nordman product.
4
+
5
+ The order is fixed: **Base UI > shadcn > NIF**. Each component takes its behaviour and accessibility from a Base UI primitive, follows the shadcn composition, and is styled only by NIF tokens. Colour, spacing, radius, font size and icon size come from the Theming settings, so a product never hardcodes them.
6
+
7
+ Docs and live examples: https://design.nordman.app
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install @nordmanai/nif @base-ui/react framer-motion lucide-react react react-dom
13
+ ```
14
+
15
+ ## Use
16
+
17
+ Load the styles once, near the root of the app.
18
+
19
+ ```tsx
20
+ import '@nordmanai/nif/styles.css';
21
+ ```
22
+
23
+ Then import components.
24
+
25
+ ```tsx
26
+ import { NmButton, NmDropdownMenu, NmDropdownMenuContent, NmDropdownMenuItem, NmDropdownMenuTrigger } from '@nordmanai/nif';
27
+ import { nmButtonClassName } from '@nordmanai/nif';
28
+
29
+ export function Example() {
30
+ return (
31
+ <>
32
+ <NmButton label="Save" tone="filled" icon="check" />
33
+ <NmDropdownMenu>
34
+ <NmDropdownMenuTrigger className={nmButtonClassName('outline')}>Open</NmDropdownMenuTrigger>
35
+ <NmDropdownMenuContent>
36
+ <NmDropdownMenuItem>Profile</NmDropdownMenuItem>
37
+ </NmDropdownMenuContent>
38
+ </NmDropdownMenu>
39
+ </>
40
+ );
41
+ }
42
+ ```
43
+
44
+ ## Icons and marks
45
+
46
+ Some components load icons and marks by URL from `/interface/`. Serve the package's `interface` folder at that path.
47
+
48
+ ```bash
49
+ cp -r node_modules/@nordmanai/nif/interface public/interface
50
+ ```
51
+
52
+ ## Theming
53
+
54
+ ```tsx
55
+ import { applyAppearanceState, createDefaultAppearanceState } from '@nordmanai/nif';
56
+
57
+ applyAppearanceState({ ...createDefaultAppearanceState(), uiRadiusPercent: 120, uiSpacePercent: 110 });
58
+ ```
59
+
60
+ ## Source of truth
61
+
62
+ NIF is authored in the Nordman web repo (`ui/` and `assets/tokens.css`). This package is built from that source. Never edit a copy in a product.
@@ -0,0 +1,95 @@
1
+ import './styles.css';
2
+ export * from './ui/components/nm-accordion/nm-accordion.tsx';
3
+ export * from './ui/components/nm-ai/nm-ai.tsx';
4
+ export * from './ui/components/nm-avatar/nm-avatar.tsx';
5
+ export * from './ui/components/nm-bar-overflow/nm-bar-overflow.tsx';
6
+ export * from './ui/components/nm-bar-overflow/use-bar-overflow.ts';
7
+ export * from './ui/components/nm-button/nm-button.tsx';
8
+ export * from './ui/components/nm-chatbox/nm-chatbox-icon.tsx';
9
+ export * from './ui/components/nm-chatbox/nm-chatbox.tsx';
10
+ export * from './ui/components/nm-checkbox/nm-checkbox.tsx';
11
+ export * from './ui/components/nm-collection/nm-collection-bar.tsx';
12
+ export * from './ui/components/nm-collection/nm-collection-grid.tsx';
13
+ export * from './ui/components/nm-collection/nm-collection-query.tsx';
14
+ export * from './ui/components/nm-collection/nm-collection-row-menu.tsx';
15
+ export * from './ui/components/nm-collection/nm-collection-table.tsx';
16
+ export * from './ui/components/nm-collection/nm-collection-tile-actions.tsx';
17
+ export * from './ui/components/nm-collection/nm-collection-title.tsx';
18
+ export * from './ui/components/nm-collection/use-collection-scroll-reveal.ts';
19
+ export * from './ui/components/nm-composer/nm-composer.tsx';
20
+ export * from './ui/components/nm-dropdown/nm-dropdown-item.ts';
21
+ export * from './ui/components/nm-dropdown/nm-dropdown-options.tsx';
22
+ export * from './ui/components/nm-dropdown/nm-dropdown-panel.tsx';
23
+ export * from './ui/components/nm-dropdown/nm-dropdown-placement.ts';
24
+ export * from './ui/components/nm-dropdown/nm-dropdown.tsx';
25
+ export * from './ui/components/nm-dropdown-menu/nm-dropdown-menu.tsx';
26
+ export * from './ui/components/nm-field/nm-field.tsx';
27
+ export * from './ui/components/nm-hover-card/nm-hover-card.tsx';
28
+ export * from './ui/components/nm-icon/nm-icon.tsx';
29
+ export * from './ui/components/nm-icon/nm-lucide.tsx';
30
+ export * from './ui/components/nm-icon-border/nm-icon-border.tsx';
31
+ export * from './ui/components/nm-list-item/nm-list-item.tsx';
32
+ export * from './ui/components/nm-message/nm-message-actions.tsx';
33
+ export * from './ui/components/nm-message/nm-message-meta.tsx';
34
+ export * from './ui/components/nm-message/nm-text-shimmer.tsx';
35
+ export * from './ui/components/nm-message/nm-trace.tsx';
36
+ export * from './ui/components/nm-modal/nm-modal.tsx';
37
+ export * from './ui/components/nm-panel-bar/nm-panel-bar.tsx';
38
+ export * from './ui/components/nm-popover/nm-popover.tsx';
39
+ export * from './ui/components/nm-progress/nm-progress.tsx';
40
+ export * from './ui/components/nm-questionnaire/nm-questionnaire.tsx';
41
+ export * from './ui/components/nm-radio-group/nm-radio-group.tsx';
42
+ export * from './ui/components/nm-rail-icon/nm-rail-icon.tsx';
43
+ export * from './ui/components/nm-segmented/nm-segmented.tsx';
44
+ export * from './ui/components/nm-separator/nm-separator.tsx';
45
+ export * from './ui/components/nm-slider/nm-slider.tsx';
46
+ export * from './ui/components/nm-small-icon-button/nm-small-icon-button.tsx';
47
+ export * from './ui/components/nm-switch/nm-switch.tsx';
48
+ export * from './ui/components/nm-tabs/nm-tabs.tsx';
49
+ export * from './ui/components/nm-toggle/nm-toggle.tsx';
50
+ export * from './ui/components/nm-tooltip/nm-tooltip.tsx';
51
+ export * from './ui/components/nm-top-bar/nm-top-bar.tsx';
52
+ export * from './ui/components/nordman-icon-button/nordman-icon-button.tsx';
53
+ export * from './ui/components/nordman-login/nordman-login.tsx';
54
+ export * from './ui/components/nordman-login-field/nordman-login-field.tsx';
55
+ export * from './ui/components/nordman-login-forgot/nordman-login-forgot.tsx';
56
+ export * from './ui/components/nordman-login-google/nordman-login-google.tsx';
57
+ export * from './ui/components/nordman-login-hero/nordman-login-hero.tsx';
58
+ export * from './ui/components/nordman-login-register/nordman-login-register.tsx';
59
+ export * from './ui/components/nordman-login-reset/nordman-login-reset.tsx';
60
+ export * from './ui/components/nordman-login-reveal/nordman-login-reveal.tsx';
61
+ export * from './ui/components/nordman-login-sign-in/nordman-login-sign-in.tsx';
62
+ export * from './ui/components/nordman-toggle/nordman-toggle.tsx';
63
+ export * from './ui/config/nm-ai.ts';
64
+ export * from './ui/config/nm-app-panel.ts';
65
+ export * from './ui/config/nm-appearance.ts';
66
+ export * from './ui/config/nm-bar-overflow.ts';
67
+ export * from './ui/config/nm-button.ts';
68
+ export * from './ui/config/nm-chatbox-icons.ts';
69
+ export * from './ui/config/nm-chatbox.ts';
70
+ export * from './ui/config/nm-collection.ts';
71
+ export * from './ui/config/nm-composer.ts';
72
+ export * from './ui/config/nm-dropdown.ts';
73
+ export * from './ui/config/nm-fade.ts';
74
+ export * from './ui/config/nm-field.ts';
75
+ export * from './ui/config/nm-header-icons.ts';
76
+ export * from './ui/config/nm-icon-border.ts';
77
+ export * from './ui/config/nm-icon-button.ts';
78
+ export * from './ui/config/nm-icons.ts';
79
+ export * from './ui/config/nm-list-item.ts';
80
+ export * from './ui/config/nm-message.ts';
81
+ export * from './ui/config/nm-modal.ts';
82
+ export * from './ui/config/nm-panel-bar.ts';
83
+ export * from './ui/config/nm-questionnaire.ts';
84
+ export * from './ui/config/nm-radius.ts';
85
+ export * from './ui/config/nm-rail-icons.ts';
86
+ export * from './ui/config/nm-rail.ts';
87
+ export * from './ui/config/nm-segmented.ts';
88
+ export * from './ui/config/nm-site-palette.ts';
89
+ export * from './ui/config/nm-small-icon-button.ts';
90
+ export * from './ui/config/nm-tabs.ts';
91
+ export * from './ui/config/nm-top-bar.ts';
92
+ export * from './ui/config/nordman-chrome.ts';
93
+ export * from './ui/config/nordman-login.ts';
94
+ export * from './ui/lib/appearance/index.ts';
95
+ export * from './ui/lib/nm-class.ts';