Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Add new icon and variant props to ActionButton types
Browse files Browse the repository at this point in the history
  • Loading branch information
csuarez committed Aug 25, 2023
1 parent 010dce4 commit c412205
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"homepage": "https://github.com/RocketChat/Rocket.Chat.Apps-engine#readme",
"devDependencies": {
"@rocket.chat/icons": "^0.31.25",
"@rocket.chat/ui-kit": "^0.31.22",
"@types/adm-zip": "^0.5.0",
"@types/lodash.clonedeep": "^4.5.7",
Expand Down
5 changes: 4 additions & 1 deletion src/definition/ui/IUIActionButtonDescriptor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Keys as IconName } from '@rocket.chat/icons';
import { UIActionButtonContext } from './UIActionButtonContext';

export enum RoomTypeFilter {
Expand Down Expand Up @@ -30,8 +31,10 @@ export interface IUActionButtonWhen {

export interface IUIActionButtonDescriptor {
actionId: string;
labelI18n: string;
context: UIActionButtonContext;
icon?: IconName;
labelI18n: string;
variant?: 'danger';
when?: IUActionButtonWhen;
}
export interface IUIActionButton extends IUIActionButtonDescriptor {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@rocket.chat/icons@^0.31.25":
version "0.31.25"
resolved "https://registry.yarnpkg.com/@rocket.chat/icons/-/icons-0.31.25.tgz#62866e9640c28e707a13b6dcc3e6dc0607bccca7"
integrity sha512-UAwhOfiESGTWnnhawZjfteg3LflvpVHfOx5GVfSp1p/+yIOlpLiOuE10dloJnb3TK5QZXdaI4Jruh6TIAbqH8Q==

"@rocket.chat/ui-kit@^0.31.22":
version "0.31.23"
resolved "https://registry.yarnpkg.com/@rocket.chat/ui-kit/-/ui-kit-0.31.23.tgz#76126b11f7eb3490f19a97b613447e3d267724a6"
Expand Down

0 comments on commit c412205

Please sign in to comment.