Skip to content

Commit

Permalink
fixed linter and live-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharzil committed Feb 26, 2025
1 parent cabac0d commit ec31df8
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ export default {
AttentionBoxLink
},
argTypes: metaSettings.argTypes,
decorators: metaSettings.decorators
decorators: metaSettings.decorators,
parameters: {
docs: {
liveEdit: {
scope: { Info }
}
}
}
};

export const Overview = {
Expand Down Expand Up @@ -102,12 +109,10 @@ export const States = {
parameters: {
docs: {
liveEdit: {
scope: { StoryDescription, Info, ThumbsUp, Favorite }
scope: { StoryDescription, ThumbsUp, Favorite }
}
}
},

name: "States"
}
};

export const AttentionBoxWithLink = {
Expand Down Expand Up @@ -145,15 +150,7 @@ export const Dismissable = {
/>
</div>
);
},
parameters: {
docs: {
liveEdit: {
scope: { Info }
}
}
},
name: "Dismissable "
}
};

export const NaturalAttentionBox = {
Expand All @@ -169,16 +166,7 @@ export const NaturalAttentionBox = {
type="dark"
/>
</div>
),
parameters: {
docs: {
liveEdit: {
scope: { Info }
}
}
},

name: "Natural attention box"
)
};

export const AttentionBoxInsideADialogCombobox = {
Expand Down Expand Up @@ -247,13 +235,6 @@ export const AttentionBoxAnimation = {
</>
);
},
parameters: {
docs: {
liveEdit: {
scope: { Info }
}
}
},

name: "Attention box inside a dialog/combobox"
};
79 changes: 20 additions & 59 deletions packages/core/src/components/Avatar/__stories__/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ export default {
type: AvatarBadgePropsType
}
}
},
parameters: {
docs: {
liveEdit: {
scope: { person1 }
}
}
}
};

Expand Down Expand Up @@ -86,16 +93,7 @@ export const Size = {
<Avatar size="medium" src={person1} type="img" ariaLabel="Julia Martinez" />
<Avatar size="large" src={person1} type="img" ariaLabel="Julia Martinez" />
</>
),
parameters: {
docs: {
liveEdit: {
scope: { person1 }
}
}
},

name: "Size"
)
};

export const Disable = {
Expand All @@ -106,16 +104,7 @@ export const Disable = {
<Avatar size="medium" src={person1} type="img" disabled />
<Avatar size="large" src={person1} type="img" disabled />
</>
),
parameters: {
docs: {
liveEdit: {
scope: { person1 }
}
}
},

name: "Disable"
)
};

export const AvatarWithText = {
Expand All @@ -126,9 +115,7 @@ export const AvatarWithText = {
<Avatar size="medium" type="text" text="RM" backgroundColor="lipstick" ariaLabel="Ron Meir" />
<Avatar size="large" type="text" text="RM" backgroundColor="done-green" ariaLabel="Ron Meir" />
</>
),

name: "Avatar with text"
)
};

export const SquareAvatar = {
Expand All @@ -139,16 +126,7 @@ export const SquareAvatar = {
<Avatar size="medium" type="icon" icon={WhatsNew} backgroundColor="aquamarine" square ariaLabel="Present" />
<Avatar size="large" type="text" text="RM" backgroundColor="working_orange" square ariaLabel="Ron Meir" />
</>
),
parameters: {
docs: {
liveEdit: {
scope: { WhatsNew }
}
}
},

name: "Square avatar"
)
};

export const AvatarWithRightBadge = {
Expand All @@ -161,12 +139,10 @@ export const AvatarWithRightBadge = {
parameters: {
docs: {
liveEdit: {
scope: { person1, guest, owner }
scope: { guest, owner }
}
}
},

name: "Avatar with right badge"
}
};

export const AvatarWithLeftBadge = {
Expand All @@ -180,12 +156,10 @@ export const AvatarWithLeftBadge = {
parameters: {
docs: {
liveEdit: {
scope: { person1, home, minus }
scope: { home, minus }
}
}
},

name: "Avatar with left badge"
}
};

export const AvatarWithTooltip = {
Expand Down Expand Up @@ -222,12 +196,10 @@ export const AvatarWithTooltip = {
parameters: {
docs: {
liveEdit: {
scope: { StoryDescription, person1 }
scope: { StoryDescription }
}
}
},

name: "Avatar with tooltip"
}
};

export const ClickableAvatar = {
Expand All @@ -244,16 +216,7 @@ export const ClickableAvatar = {
<Counter count={count} />
</Flex>
);
},
parameters: {
docs: {
liveEdit: {
scope: { person1 }
}
}
},

name: "Clickable avatar"
}
};

export const MultipleAvatars = {
Expand All @@ -267,10 +230,8 @@ export const MultipleAvatars = {
parameters: {
docs: {
liveEdit: {
scope: { person1, person2, person3 }
scope: { person2, person3 }
}
}
},

name: "Multiple avatars"
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default {
}`
}
}

}
},
decorators: metaSettings.decorators,
Expand Down
Loading

0 comments on commit ec31df8

Please sign in to comment.