Giter Club home page Giter Club logo

sagu-ui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sagu-ui's Issues

Fix CI node version

as you can see on this log the CI and the engine vesion are mismatching. Please, set up the proper node version on the CI file.


the correct version is 18.16.0

Add support to jest

TODO:

  • install dependecies ( devmode) // use yarn
  • add configs
  • add test script to package.json
  • test one component

Create a Switch component

Create a beautiful and reusable Switch component

follow the best practices, use the another components as reference.

take a look at all the components that we have and follow the same style-guide of the project ( colors / shadows / etc... )

src/packages/Switch
 index.tsx
 stories.tsx
 styles.ts

if you have any questions I'm available to help

BUG - Deprecation Warning

Deprecation Warning on console

to reproduce:

Run the command

$ yarn lint
(node:73477) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./2020/" in the "exports" field module resolution of the package at /home/vini/src/sagu-ui/node_modules/es-abstract/package.json.
Update this package.json to use a subpath pattern like "./2020/*".
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:73477) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./helpers/" in the "exports" field module resolution of the package at /home/vini/src/sagu-ui/node_modules/es-abstract/package.json.
Update this package.json to use a subpath pattern like "./helpers/*".

Improve Theme Customization section on the README

We should improve the Theme Customization section on here:

image

should improve this exemple as:

....
  Object.assign(theme.colors.primary, { medium: "#510763" });

  return (
    <SaguProvider theme={theme}>
....

and here:

image

  const customColors = {
    tertiary: {
      lighter: "#fb973a",
      light: "#e37c1d",
      medium: "#da710f",
      dark: "#9e4c01"
    }
  };

  Object.assign(theme.colors, customColors);
  
  return (
    <SaguProvider theme={theme}>

please, be smart... you need to keep the rest of the example and add the improvement, make sure that it is properly formatted etc... thanks

Propose and create a new Component

Create a new component for our library.

Before starting, check what we already have:


Review the code of some existing components and use them as examples for styling and structure.


Feel free to be creative. If you need any help, don't hesitate to ask. :)


FIY: This issue will remain open during all Hacktoberfest ( at least). More than 1 person can be assigned to it and submit new components

Thanks ๐Ÿš€

How about a Tooltip Component?

Hey team,

So, I was thinking, tooltips are pretty handy, right? They're like little hints that show up when you hover over something. Thought it might be cool to have in saga ui.

Basic Ideas:

Positioning: Maybe have it pop up at the bottom?
Content: Just some text to start with.
Delay: A quick pop after hovering?
Arrow: A little arrow pointing at the thing?
I'd love to give it a try if everyone's on board. Thoughts?

Fix Pagination component

the Pagination component is not working as expected, I remove their storie and comment the exports

TODO:

  • check other components to understand our patterns
  • feel free to remove all logic/styles from this component and restart from scratch
  • you can use this code as a reference, it looks very simple and easy to copy/paste
  • adapt the implementation to use our own patterns and design system
  • create a storie for it
  • remove the comment on the exports ( mentioned in the description )

nice to have:

you can add tests if you want to

Deprecate GridMain and GridFluid components

both components are not working as expected, lets add for each component a warning message on the index.tsx file saying the component will be removed on 2.2.0 version.

console.warn('Deprecation warning: This component will be removed on v2.2.0, Use "Container" instead')

will be nice if you create a method under utils for send this message, this method should contain the name of who will be deprecated, the version, and optionally what to do instead.

pseudo code

export const logDeprecationWarning = (who:string, version:string, instead?:string) => {
   let message = `Deprecation warning: ${who} will be removed on ${version}.`;
    if(instead){
        message += ` Use ${instead} instead.` 
    }
    console.warn(message)
}

Fix skipped tests

there are some skipped tests under the codebase, please fix it ๐Ÿ™Œ

Add dots to slider

create a new optional prop named dots ( default false ) that increment dots for each slide that we have on the slider.

when the user click on the dot ( eg 3 ) should go to the slide 3

use the slide Single Item as exemple of behaviour

create beautiful dots, follow or current style-guide ( colors, shadows, etc )

here is our slider component

note: single image should not render the dot

Create a modal component

create a new component following the pattern/style-guide of the components that we already have.

Any questions I'm glad to help

Test some component with jest

we already have a lot of unit tests on the codebase, but not all components are tested, feel free to choose one and test it. Take a loot on the others to reference

How about adding a Toast Component?

Hey there,

Been playing around with saga-ui and thought โ€“ why not have a Toast component? Toasts are like those pop-ups you see when something happens, like a heads-up or a quick "you did this" message.

Basic Ideas:

Variants: Thinking about the usual ones like Success or Error.
Position: Top-right corner seems cool.
Duration: Not too long, not too short. Just enough to read.
Dismiss: A little 'X' or a tap/click to make it go away?
Would love to take a shot at it and see how it goes. What do you think?

Quick fixes at CONTRIBUTING.md

There are some mistakes that we need to fix:

  1. The 7 should be 6, and the 6 should be 7 (invert)

image

  1. Update 8 to "Test your changes"

image

  1. Fix code of conduct URL

it should be

https://github.com/vczb/sagu-ui/blob/main/CODE_OF_CONDUCT.md

image


thanks in advance

Fix typo on README

on the readme we have this text "styled-components are required"

image

should be:

_[styled-components](https://github.com/styled-components/styled-components) package is required_

it should look like this:

styled-components package is required

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.