4.0.2 • Published 2 years ago

yu-open-lib v4.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

yu-open-lib

Install

yarn add yu-open-lib

Interactive Documentation with Storybook

yarn storybook

Warning: First time running Storybook it will take quite a while as it caches all dependencies used in the library

Or Ctrl + F5 in Vscode

Will run at: https://localhost:6006 by default

Read more about Story Book


Create new release/version

  • Create feature branch
git checkout -b JIRA-XXX-some-feature-here
  • Commit your changes
git add .
git commit -m "My commit message"
git push --set-upstream origin JIRA-XXX-some-feature-here
  • Now add a reviewer to your Pull Request and wait for it to be reviewed/merged

  • Create new release with the desired type

    • major - For breaking Changes (existing code already using the library has to change)
    • minor - No breaking changes, new components or decently big visual changes
    • patch - No breaking changes, bug fixes

Theme Usage

import React from 'react'

import { CssBaseline } from '@mui/material'
import { ThemeProvider } from '@mui/material/styles'

import { AppTheme } from 'yu-open-lib'

const theme = AppTheme({ darkMode: false })

const App = () => {
  return (
    <ThemeProvider theme={theme}>
      <CssBaseline />
      ...
    </ThemeProvider>
  )
}

Components Usage

import React, { useState } from 'react'

import { ConfirmDialog } from 'yu-open-lib'
import 'yu-open-lib/dist/index.css'

const App = () => {
  const [dialog, setDialog] = useState(false)

  const onConfirm = () => {
    console.log('confirm')
    setDialog(false)
  }

  const onCancel = () => {
    console.log('cancel')
    setDialog(false)
  }

  return (
    <div>
      <ConfirmDialog
        open={dialog}
        handleClose={onCancel}
        handleConfirm={onConfirm}
        title="Some title"
        text="Some text"
        cancelText="Cancel"
        confirmText="Confirm"
      />

      <button onClick={() => setDialog(true)}>Open Dialog</button>
    </div>
  )
}

License

MIT © YU Tecnologia e Consultoria

4.0.1

2 years ago

4.0.0

2 years ago

4.0.2

2 years ago

2.6.0

2 years ago

2.8.1

2 years ago

2.8.0

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

2.7.3

2 years ago

3.0.0

2 years ago

2.7.0

2 years ago

2.9.0

2 years ago

2.7.2

2 years ago

2.7.1

2 years ago

2.5.7

3 years ago

2.5.6

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.4.2

3 years ago

2.3.8

3 years ago

2.5.5

3 years ago

2.5.0

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.4

3 years ago

2.5.3

3 years ago

2.3.4

3 years ago

2.3.3

3 years ago

2.3.6

3 years ago

2.3.5

3 years ago

2.3.7

3 years ago

2.3.0

3 years ago

2.1.2

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.3.2

3 years ago

2.1.4

3 years ago

2.3.1

3 years ago

2.1.3

3 years ago

2.1.5

3 years ago

2.0.6

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.11

4 years ago

1.7.10

4 years ago

1.7.9

4 years ago

1.7.8

4 years ago

1.7.7

4 years ago

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.3

4 years ago

1.6.0-7

4 years ago

1.6.0-8

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.0-3

4 years ago

1.6.0-0

4 years ago

1.5.10

4 years ago

1.5.8

4 years ago

1.5.7

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago