-
Notifications
You must be signed in to change notification settings - Fork 0
[PB-5294]: feat/create-suite-launcher-component #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PB-5294]: feat/create-suite-launcher-component #65
Conversation
larryrider
commented
Dec 1, 2025
- Creates SuiteLauncher component with its tests
- Improves dialog component by allowing support to JSX elements and adding optional maxWidth prop
- Improves popover component
…d adding maxWidth prop
| ) : isValidElement(suiteApp.icon as JSX.Element) ? ( | ||
| cloneElement(suiteApp.icon as JSX.Element, { | ||
| size: 26, | ||
| className: | ||
| `${suiteApp.icon.props?.className ?? ''} ${suiteApp.isMain ? 'text-primary' : ''} ` + | ||
| `${suiteApp.availableSoon || suiteApp.isLocked ? 'opacity-50 filter grayscale' : ''}`, | ||
| weight: suiteApp.isMain ? 'fill' : 'regular', | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🚀
| className="font-medium dark:font-normal text-purple-10 dark:text-purple-1" | ||
| style={{ lineHeight: 1, fontSize: 'xx-small' }} | ||
| > | ||
| {soonText ?? 'Soon'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can pass the label as a prop😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be a good option, but for now I think its better this way so its easier to config (you only decide if its availableSoon, if its disabled or if its main, and ui just decides its css.
If its needed in the future, we can always add more complexity to it