@veritone-ce/design-system 2.4.4 → 2.4.5

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.
@@ -129,6 +129,7 @@ function Menu({
129
129
  {
130
130
  role: "menuitem",
131
131
  isActive: i === activeIndex,
132
+ disabled: option.disabled,
132
133
  ...getItemProps({
133
134
  onClick(event) {
134
135
  option.onSelect(event);
@@ -125,6 +125,7 @@ function Menu({
125
125
  {
126
126
  role: "menuitem",
127
127
  isActive: i === activeIndex,
128
+ disabled: option.disabled,
128
129
  ...getItemProps({
129
130
  onClick(event) {
130
131
  option.onSelect(event);
@@ -5,6 +5,7 @@ export type MenuOption = {
5
5
  render?: React.ReactNode;
6
6
  icon?: React.ReactNode;
7
7
  onSelect(e: React.MouseEvent<HTMLButtonElement>): void;
8
+ disabled?: boolean;
8
9
  };
9
10
  export type MenuRole = 'tooltip' | 'dialog' | 'alertdialog' | 'menu' | 'listbox' | 'grid' | 'tree' | 'select' | 'label' | 'combobox';
10
11
  export type MenuProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "private": false,
5
5
  "description": "Design System for Veritone CE",
6
6
  "keywords": [