@inbeat/ui 0.9.3 → 0.10.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.0](https://github.com/Genoux/ib-toolkit/compare/ui-v0.9.4...ui-v0.10.0) (2026-10-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * **ui:** disable single multi-select options ([#50](https://github.com/Genoux/ib-toolkit/issues/50)) ([5be0d19](https://github.com/Genoux/ib-toolkit/commit/5be0d1918dab26cd08b2f46b7a26067bfe5cc9f4))
9
+
10
+ ## [0.9.4](https://github.com/Genoux/ib-toolkit/compare/ui-v0.9.3...ui-v0.9.4) (2026-10-08)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **ui:** Synchronize inbeat versions
16
+
3
17
  ## [0.9.3](https://github.com/Genoux/ib-toolkit/compare/ui-v0.9.2...ui-v0.9.3) (2026-10-08)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inbeat/ui",
3
- "version": "0.9.3",
3
+ "version": "0.10.0",
4
4
  "description": "inBeat design tokens and primitives (Radix + Tailwind v4), shipped as source",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -64,7 +64,7 @@
64
64
  "@base-ui/react": "^1.2.0",
65
65
  "@fontsource-variable/geist": "^5.3.0",
66
66
  "@fontsource-variable/geist-mono": "^5.3.0",
67
- "@inbeat/config": "^0.9.3",
67
+ "@inbeat/config": "^0.10.0",
68
68
  "@storybook/addon-a11y": "^10.6.0",
69
69
  "@storybook/addon-docs": "^10.6.0",
70
70
  "@storybook/addon-themes": "^10.6.0",
@@ -16,6 +16,7 @@ export type MultiSelectOption = {
16
16
  value: string;
17
17
  label: string;
18
18
  imageUrl?: string | null;
19
+ disabled?: boolean;
19
20
  };
20
21
 
21
22
  function truncateText(value: string, maxLength: number): string {
@@ -106,6 +107,7 @@ export function MultiSelectOptionList({
106
107
  {visibleOptions.map((option) => {
107
108
  const checked = selectedValues.includes(option.value);
108
109
  const rowId = `${idPrefix}-${option.value}`;
110
+ const isDisabled = disabled || option.disabled;
109
111
  return (
110
112
  <label
111
113
  key={option.value}
@@ -114,14 +116,14 @@ export function MultiSelectOptionList({
114
116
  className={cn(
115
117
  "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm",
116
118
  "hover:bg-muted/80 has-focus-visible:ring-2 has-focus-visible:ring-ring",
117
- disabled && "pointer-events-none opacity-50",
119
+ isDisabled && "pointer-events-none opacity-50",
118
120
  )}
119
121
  >
120
122
  <Checkbox
121
123
  id={rowId}
122
124
  checked={checked}
123
- disabled={disabled}
124
- onCheckedChange={disabled ? undefined : () => onToggle(option.value)}
125
+ disabled={isDisabled}
126
+ onCheckedChange={isDisabled ? undefined : () => onToggle(option.value)}
125
127
  />
126
128
  {option.imageUrl !== undefined ? (
127
129
  <PersonAvatar imageUrl={option.imageUrl} name={option.label} />