@nordmanai/nif 0.2.9 → 0.2.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordmanai/nif",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
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.9",
2
+ "version": "0.2.10",
3
3
  "versions": {
4
4
  "@animate-ui/react": "^2.4.2",
5
5
  "@base-ui/react": "^1.9.0",
@@ -55,9 +55,6 @@ export function NmComboboxItem({ className, children, ...props }: ComboboxPrimit
55
55
  return (
56
56
  <ComboboxPrimitive.Item data-slot="combobox-item" className={nmClass('nm-menu__item nm-select__item', className as string)} {...props}>
57
57
  <span className="nm-select__text">{children}</span>
58
- <ComboboxPrimitive.ItemIndicator className="nm-select__check">
59
- <NmIcon id="check" />
60
- </ComboboxPrimitive.ItemIndicator>
61
58
  </ComboboxPrimitive.Item>
62
59
  );
63
60
  }
@@ -72,7 +72,11 @@
72
72
  min-width: 0;
73
73
  }
74
74
 
75
- .nm-select__check {
76
- display: inline-flex;
77
- flex-shrink: 0;
75
+ /* One choice is in effect, so the chosen row is shown by its fill. No mark: a mark reads as a toggle. */
76
+ .nm-select__item[data-selected] {
77
+ background: var(--nm-panel);
78
+ color: var(--nm-fg);
79
+ }
80
+ .nm-select__item[data-selected][data-highlighted] {
81
+ background: var(--nm-line);
78
82
  }
@@ -44,9 +44,6 @@ export function NmSelectItem({ className, children, ...props }: SelectPrimitive.
44
44
  return (
45
45
  <SelectPrimitive.Item data-slot="select-item" className={nmClass('nm-menu__item nm-select__item', className as string)} {...props}>
46
46
  <SelectPrimitive.ItemText className="nm-select__text">{children}</SelectPrimitive.ItemText>
47
- <SelectPrimitive.ItemIndicator className="nm-select__check">
48
- <NmIcon id="check" />
49
- </SelectPrimitive.ItemIndicator>
50
47
  </SelectPrimitive.Item>
51
48
  );
52
49
  }