@nordmanai/nif 0.2.22 → 0.2.24

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.
@@ -1,4 +1,4 @@
1
- export declare const NM_ICON_IDS: readonly ['plus', 'user', 'paperclip', 'settings', 'globe', 'spreadsheet', 'pointer', 'mouse-pointer', 'mic', 'mic-off', 'audio-lines', 'send', 'chevron', 'check', 'circle-check', 'code', 'file-code', 'console', 'copy', 'volume', 'fork', 'chat', 'chat-dashed', 'folder', 'bot', 'app', 'layers', 'users', 'library', 'panel', 'ellipsis', 'camera', 'reload', 'expand', 'arrow-up-right', 'minimize', 'download', 'publish', 'share', 'pen', 'pin', 'archive', 'trash', 'folder-in', 'folder-out', 'duplicate', 'logout', 'table-properties', 'cable', 'menu', 'loader', 'monitor', 'server', 'filter', 'sliders', 'upload', 'image', 'image-plus', 'music', 'headphones', 'video', 'search', 'presentation', 'terminal', 'square-terminal', 'x', 'save', 'lock', 'mail', 'calendar', 'clock', 'gauge', 'minus', 'play', 'workflow', 'hard-drive', 'slack', 'github', 'building', 'file-text', 'wrench', 'file', 'brain', 'sun', 'moon', 'google', 'arrow-left', 'arrow-right', 'panel-left', 'rows'];
1
+ export declare const NM_ICON_IDS: readonly ['plus', 'user', 'paperclip', 'settings', 'globe', 'spreadsheet', 'pointer', 'mouse-pointer', 'mic', 'mic-off', 'audio-lines', 'send', 'chevron', 'check', 'circle-check', 'code', 'file-code', 'console', 'copy', 'volume', 'fork', 'chat', 'chat-dashed', 'folder', 'bot', 'app', 'layers', 'users', 'library', 'panel', 'ellipsis', 'camera', 'reload', 'expand', 'arrow-up-right', 'minimize', 'download', 'publish', 'share', 'pen', 'pin', 'archive', 'trash', 'folder-in', 'folder-open', 'folder-out', 'duplicate', 'logout', 'table-properties', 'cable', 'menu', 'loader', 'monitor', 'server', 'filter', 'sliders', 'upload', 'image', 'image-plus', 'music', 'headphones', 'video', 'search', 'presentation', 'terminal', 'square-terminal', 'x', 'save', 'lock', 'mail', 'calendar', 'clock', 'gauge', 'minus', 'play', 'workflow', 'hard-drive', 'slack', 'github', 'building', 'file-text', 'wrench', 'file', 'brain', 'sun', 'moon', 'google', 'arrow-left', 'arrow-right', 'panel-left', 'rows'];
2
2
  import type { NM_EXTENDED_ICON_IDS } from './nm-icons-extended.ts';
3
3
  export type NmCoreIconId = (typeof NM_ICON_IDS)[number];
4
4
  /** The core ids above plus the generated lucide ids in nm-icons-extended.ts. */
@@ -207,6 +207,10 @@ export declare const NM_ICONS: {
207
207
  readonly viewBox: '0 0 24 24';
208
208
  readonly path: readonly ["M3 6h18", "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"];
209
209
  };
210
+ readonly 'folder-open': {
211
+ readonly viewBox: '0 0 24 24';
212
+ readonly path: 'm6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2';
213
+ };
210
214
  readonly 'folder-in': {
211
215
  readonly viewBox: '0 0 24 24';
212
216
  readonly path: readonly ["M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z", "M12 11v6", "M9 14h6"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordmanai/nif",
3
- "version": "0.2.22",
3
+ "version": "0.2.24",
4
4
  "description": "Nordman Interface Framework: the one UI and UX system for every Nordman product. Base UI, in the shadcn composition, styled by NIF tokens.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.21",
2
+ "version": "0.2.24",
3
3
  "versions": {
4
4
  "@animate-ui/react": "^2.4.2",
5
5
  "@base-ui/react": "^1.9.0",
@@ -238,7 +238,7 @@
238
238
  min-height: calc(var(--nm-space-12) + var(--nm-icon-control) + var(--nm-space-8));
239
239
  }
240
240
  .nm-sidebar-provider:has(> .nm-sidebar__trigger--anchored) .nm-sidebar__header > .nm-sidebar__menu > .nm-sidebar__menu-item:first-child > .nm-sidebar__menu-button,
241
- .nm-sidebar-provider:has(> .nm-sidebar__trigger--anchored) .nm-sidebar__header > .nm-sidebar__brand {
241
+ .nm-sidebar__header > .nm-sidebar__brand {
242
242
  min-height: var(--nm-icon-control);
243
243
  }
244
244
  /* The product name: a row's geometry and type, semibold, with nothing to hover or press. */
@@ -378,6 +378,29 @@
378
378
  white-space: nowrap;
379
379
  outline: none;
380
380
  }
381
+ /* A label that folds its group: a button with the chevron beside the text. */
382
+ button.nm-sidebar__group-label {
383
+ width: 100%;
384
+ border: 0;
385
+ background: transparent;
386
+ font-family: inherit;
387
+ text-align: start;
388
+ cursor: pointer;
389
+ }
390
+ button.nm-sidebar__group-label:hover {
391
+ color: var(--nm-fg);
392
+ }
393
+ button.nm-sidebar__group-label:focus-visible {
394
+ outline: var(--nm-rule) solid var(--focus);
395
+ outline-offset: calc(var(--nm-rule) * -1);
396
+ }
397
+ button.nm-sidebar__group-label > .nm-sidebar__chevron {
398
+ margin-inline-start: 0;
399
+ opacity: 1;
400
+ }
401
+ button.nm-sidebar__group-label[aria-expanded='true'] > .nm-sidebar__chevron {
402
+ transform: none;
403
+ }
381
404
  .nm-sidebar__group-label .nm-icon {
382
405
  flex-shrink: 0;
383
406
  width: var(--nm-icon-sm);
@@ -43,6 +43,7 @@ export const NM_ICON_IDS = [
43
43
  'archive',
44
44
  'trash',
45
45
  'folder-in',
46
+ 'folder-open',
46
47
  'folder-out',
47
48
  'duplicate',
48
49
  'logout',
@@ -299,6 +300,10 @@ export const NM_ICONS = {
299
300
  'M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2',
300
301
  ],
301
302
  },
303
+ 'folder-open': {
304
+ viewBox: '0 0 24 24',
305
+ path: 'm6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2',
306
+ },
302
307
  'folder-in': {
303
308
  viewBox: '0 0 24 24',
304
309
  path: [