wso2 / oxygen-ui Goto Github PK
View Code? Open in Web Editor NEWThe Design System powering WSO2 products.
Home Page: https://wso2.github.io/oxygen-ui
License: Apache License 2.0
The Design System powering WSO2 products.
Home Page: https://wso2.github.io/oxygen-ui
License: Apache License 2.0
Is your suggestion related to an experience ? Please describe.
MUI v6 is still in beta. We need to upgrade when the major release is done.
✨ What's new in MUI X v6? ✨
https://next.mui.com/x/whats-new/
Describe the improvement
Bump from v5
to v6
.
Describe the issue:
react-icons
How to reproduce:
Expected behavior:
Any SVG should be usable and they should be consistent.
Environment information (Please complete the following information; remove any unnecessary fields) :
Describe the issue:
The build is failing with the following stack trace at this line when storybook-static
build artefacts are there inside packages/react
.
`execSync(
`npx tsc --project tsconfig.lib.json --declarationDir ${outputDir} --emitDeclarationOnly false --outDir ${outputDir}`,
);`
Error: Command failed: npx tsc --project /Users/brion/Desktop/wso2/oxygen-ui/packages/react/tsconfig.lib.json --declarationDir /Users/brion/Desktop/wso2/oxygen-ui/packages/react/dist/transpiled --emitDeclarationOnly false --outDir /Users/brion/Desktop/wso2/oxygen-ui/packages/react/dist/transpiled
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at Object.<anonymous> (/Users/brion/Desktop/wso2/oxygen-ui/packages/react/scripts/build-components.js:29:1)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
status: 1,
signal: null,
output: [
null,
Buffer(399) [Uint8Array] [
115, 116, 111, 114, 121, 98, 111, 111, 107, 45, 115, 116,
97, 116, 105, 99, 47, 54, 50, 49, 46, 49, 51, 48,
54, 50, 101, 54, 98, 49, 51, 102, 57, 53, 100, 97,
99, 52, 56, 100, 97, 46, 109, 97, 110, 97, 103, 101,
114, 46, 98, 117, 110, 100, 108, 101, 46, 106, 115, 40,
50, 44, 49, 41, 58, 32, 101, 114, 114, 111, 114, 32,
84, 83, 57, 48, 48, 53, 58, 32, 68, 101, 99, 108,
97, 114, 97, 116, 105, 111, 110, 32, 101, 109, 105, 116,
32, 102, 111, 114,
... 299 more items
],
Buffer(0) [Uint8Array] []
],
pid: 46253,
stdout: Buffer(399) [Uint8Array] [
115, 116, 111, 114, 121, 98, 111, 111, 107, 45, 115, 116,
97, 116, 105, 99, 47, 54, 50, 49, 46, 49, 51, 48,
54, 50, 101, 54, 98, 49, 51, 102, 57, 53, 100, 97,
99, 52, 56, 100, 97, 46, 109, 97, 110, 97, 103, 101,
114, 46, 98, 117, 110, 100, 108, 101, 46, 106, 115, 40,
50, 44, 49, 41, 58, 32, 101, 114, 114, 111, 114, 32,
84, 83, 57, 48, 48, 53, 58, 32, 68, 101, 99, 108,
97, 114, 97, 116, 105, 111, 110, 32, 101, 109, 105, 116,
32, 102, 111, 114,
... 299 more items
],
stderr: Buffer(0) [Uint8Array] []
}
How to reproduce:
Build storybook static.
cd packages/react
pnpm build:storybook
Execure pnpm build
from the root.
Expected behavior:
Build shouldn't break.
Environment information (Please complete the following information; remove any unnecessary fields) :
Is your feature request related to a problem? Please describe.
Need to add Stylelint
to validate the styles.
Describe the solution you would prefer
Integrate @wso2/stylelint-config
to the repository.
Additional context
N/A
Describe the issue:
The components in the @oxygen-ui/react library are using defaultProps
, which is deprecated in function components in React. This results in console warnings, such as the one shown for the Typography component.
Refer react docs.
How to reproduce:
@oxygen-ui/react
library by running pnpm i @oxygen-ui/react
.@oxygen-ui/react
library which uses default props (e.g., Typography, Input, Drawer).Expected behavior:
No deprecation warnings should be shown in the console when using any component from the @oxygen-ui/react library.
Environment information
Describe the issue:
Oxygen UI doesn't use MUI's default animated label styles, rather prefers static labels.
However, there seems to be an issue when wrapping the Select
component.
How to reproduce:
Select
component with a label.Expected behavior:
Static label should appear on top of the Select
dropdon.
Environment information (Please complete the following information; remove any unnecessary fields) :
Is your suggestion related to an experience ? Please describe.
We have linked an empty stylesheet in some components and it is rendering a redundant style block in the browsers.
Empty Stylesheet: https://github.com/wso2/oxygen-ui/blob/v1.5.0/packages/react/src/components/Select/select.scss#L19
Import: https://github.com/wso2/oxygen-ui/blob/v1.5.0/packages/react/src/components/Select/Select.tsx#L26
Describe the improvement
Remove the empty stylesheets along with their respective imports.
Is your suggestion related to an experience ? Please describe.
Currently a "Diamond" icon is not available in the design system.
Describe the improvement
Add a "Diamond" icon to the design system.
Describe the issue:
Header
components Avatar
letter is appearing in lowercase
How to reproduce:
Header
component passing down a user without a profile image.Expected behavior:
The letter should be in uppercase.
Environment information (Please complete the following information; remove any unnecessary fields) :
Describe the issue:
It appears that the Oxygen UI Box component is not being rendered by jsdom for some reason. This issue does not occur when the Box component is imported from "mui/material".
Same issue was observed for ListItemText
component as well.
How to reproduce:
🔝
Expected behavior:
Unit tests should run without issues.
Right now we have many different icons and the package will keep growing as needs arise.
We need:
logout
and get the arrow-right-from-bracket
iconDescribe the issue:
The Code
component has a fixed font size when used within a text block, users will have to manually change the size to match.
How to reproduce:
Code
component inside a block of text (use a smaller font size).Code
component will not adjust with the parent.Expected behavior:
Text inside the Code
should adjust with the parent.
Environment information (Please complete the following information; remove any unnecessary fields) :
Is your feature request related to a problem? Please describe.
Given its widespread use, including a download icon is essential.
Describe the solution you would prefer
Add download icon to the UI
Additional context
Is your feature request related to a problem? Please describe.
Currently there is no OOTB component for using as placeholders.
Describe the solution you would prefer
It'd be great if there is a placeholder component, that is similar to https://semantic-ui.com/elements/placeholder.html
Additional context
Describe the issue:
$subject.
How to reproduce:
Card
component.Expected behavior:
Card
component should support a hover style OOTB.
Environment information (Please complete the following information; remove any unnecessary fields) :
Is your feature request related to a problem? Please describe.
Have more options for icons related to security, passwords and connectors
Describe the solution you would prefer
Add icons related to passwords and brands, Apple and Github.
Additional context
Github issue - wso2/product-is#18510
Is your suggestion related to an experience ? Please describe.
Related to DX
Describe the improvement
Adding changesets[1] to oxygen-ui repo can greatly improve DX regarding versioning and releasing packages.
[1] https://github.com/changesets/changesets
Additional context
N/A
The following improvements are required for the react-icons
library
check-circle-16
Is your suggestion related to an experience ? Please describe.
Related to developer experience
Describe the improvement
It is a bit tedious to always write the commit messages in the specified format and therefore developers tend to forget to follow the commit message guidelines. It'd be better if we can introduce a commit message linter to automatically enforce the commit message guidelines.
Additional context
Some popular commit linters:
Is your suggestion related to an experience ? Please describe.
MUI doesn't have an Image component in their stable components library
However, an Image
MUI component is in the Planning to build
stage in their roadmap
Describe the improvement
If the requirement to utilize the Image component arises and certain props unique to <img />
(HTMLImageElement) is needed, we can refer the implementation used by the mui-image library recommended by MUI and improve the existing <Image />
component in OxygenUI.
Additional context
The improvement must be done in the existing Image component. Currently we are not utilizing this component in any custom components or UIs.
Is your suggestion related to an experience ? Please describe.
The contribution doc doesn't have a guideline on issue and PR creation.
Describe the improvement
Add a clear and simple guide section for issue and PR creation.
Additional context
N/A
Add a new component named Table which is a wrapper around the MUI Table component.
Is your feature request related to a problem? Please describe.
Currently there's no CLI support for the Oxygen UI.
Describe the solution you would prefer
The solution would be to introduce a CLI that offers various utilities and tools to streamline workflows for Oxygen UI users. The CLI should provide an efficient workflow, enforce consistency, automate repetitive tasks, integrate with version control systems, allow customization, and include accessibility tools.
Additional context
Other design systems, such as shadcn ui, have implemented CLI tools to facilitate productivity and improve user experience. By incorporating a similar CLI into Oxygen UI, we can provide users with a more comprehensive toolkit aligned with industry standards.
This umbrella issue is dedicated to the comprehensive enhancement of the @oxygen-ui/react
package, where we aim to continuously grow the component suite.
We'll be focusing on the components marked with a ⭐️ as high priority.
The definition of done (DOD) of the development of a component is defined as follows.
Is your suggestion related to an experience ? Please describe.
Site at present - https://wso2.github.io/oxygen-ui/
Describe the improvement
Additional context
Inspiration :
Describe the issue:
Currently in the react package there is no autoprefixer integrated, which makes some css styles not applying to some older versions of browsers properly. Hence we need to integrate autoprefixer to the react package.
Is your suggestion related to an experience ? Please describe.
Currently, the asterisk of a required input label's has the same color as the text of the label.
Describe the improvement
Improve the color of the asterisk by updating the default color style to red (error main color).
Additional context
The motivation to implement this arose from a requirement in WSO2's Identity Server product, as outlined in the following GitHub issue - wso2/product-is#18642
Is your suggestion related to an experience ? Please describe.
Though there is a change in side panel, the hamburger action button seems to have no state change. I personally feel, it can be dynamic, showing extended vs collapsed view as two different states (icons that switch one to other).
Describe the improvement
We can use the regular hamburger for one of the states where the current one can point to the another state.
Additional context
Screencast from 2023-06-22 11-31-55.webm
Is your suggestion related to an experience ? Please describe.
ATM, we are hardcoding the oxygen
prefix in SCSS files.
Ex:
.oxygen-button {
font-size: 1rem;
padding: 8px 16px;
}
Describe the improvement
Need a way to automate this.
N/A
Describe the issue:
Some package resolving is failing due to gitpkg
has been moved to vercel, hence these URL's need to be updated to https://gitpkg.vercel.app
.
For more details:
Task checklist
Describe the issue:
pnpm
install fails with the following error in CI.
How to reproduce:
CI is using the latest
version of pnpm and there seems to be breaking changes (https://github.com/orgs/pnpm/discussions/4967)
Expected behavior:
CI should pass.
Related issues:
Is your suggestion related to an experience ? Please describe.
ATM, there are two options to change the theme.
1
.Describe the improvement
Since going forward, we are only going with 2
, we can hide 1
from the UI.
Additional context
We can't really remove the 1, since it's used in unison to change the entire storybook theme.
Describe the issue:
Has anyone got the following error when building oxygen-ui on Mac M1?
Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) with Node.js 18.x
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v8.0.0
Seems the arm architecture is not supported in node-sass v8 [1], but I was able to build the repo a few months ago with this same version afair.
[1] https://github.com/sass/node-sass/releases/tag/v8.0.0
How to reproduce:
pnpm install
and pnpm build
.Expected behavior:
Should be able to build without an issue.
Environment information (Please complete the following information; remove any unnecessary fields) :
Related issues:
Suggested labels:
Describe the issue:
Padding
.oxygen-autocomplete {
padding-top: 14px;
padding-bottom: 14px;
}
Tag Size
.oxygen-autocomplete .MuiButtonBase-root {
height: 32px;
}
How to reproduce:
Use Autocomplete
component in a project.
Expected behavior:
There shouldn't be any default styling.
Environment information (Please complete the following information; remove any unnecessary fields) :
Describe the issue:
Select
component is wrapped with a Box
element that's causing issues when using FormControl
.
How to reproduce:
Select
component with a FormControl
and add fullWidth
to the FormControl
.Select
is not honoring the form control styles.Expected behavior:
Wrapped elements should not be contained with other elements.
Environment information (Please complete the following information; remove any unnecessary fields) :
Is your suggestion related to an experience ? Please describe.
Storybook new version launch will be announced at a conference scheduled on Mar 14, 2023 from 10am - 12pm Pacific Standard Time.
https://storybook.js.org/releases/7.0/
Describe the improvement
Bump the version to v7
when possible and also need to check if @storybook/manager-webpack4
is necessary since we have v5.
Is your suggestion related to an experience ? Please describe.
When working with the @oxygen-ui/react
package in a project, we should be able to locally link the package to test our changes from within the app.
This should continuously watch for new changes in the oxygen-ui source and update the package on the linked side.
Describe the improvement
Describe the issue:
Recently the pnpm version of the release Github action was locked to 8.15.7
, due to an incompatibility of the newest version of pnpm. This need to be resolved and update the version of the pnpm to the latest.
How to reproduce:
Expected behavior:
Describe the issue:
Intellisense is not supported for the properties extended by Material-UI (MUI) for certain components of the @oxygen-ui/react
library.
Intellisense support for the box
component:
How to reproduce:
@oxygen-ui/react
.Expected behavior:
Suggest properties when typing the first part of the prop, in line with typical Intellisense behavior, facilitating faster and more accurate development
Environment information (Please complete the following information; remove any unnecessary fields) :
The requested Feature
Add a new component named Stack
which is a wrapper around the MUI Stack component.
Is your suggestion related to an experience ? Please describe.
Currently, the docs are still in the POC deployment (Vercel: https://oxygen-ui.vercel.app/).
They have to be deployed somewhere that's managed by WSO2.
Describe the improvement
As the first cut, it would be easier to deploy the docs site to gh-pages
.
Additional context
Deploying to gh-pages
would require to combine the root docs, storybook and examples under one domain.
Is your suggestion related to an experience ? Please describe.
Currently, the Avatar
component lacks the ability to generate random background colors.
Describe the improvement
The improvement involves adding a prop to the Avatar component that allows it to generate random background colors. Additionally, the component should accept a text input to use for the randomizer function.
Additional context
This enhancement will provide more flexibility and customization options when using the Avatar
component, allowing users to easily generate visually distinct avatars with random background colors based on provided text.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.