GithubHelp home page GithubHelp logo

snehilvj / dmc-docs Goto Github PK

View Code? Open in Web Editor NEW
47.0 3.0 14.0 2.62 MB

Documentation for Dash Mantine Components library.

Home Page: https://github.com/snehilvj/dash-mantine-components

License: MIT License

Python 91.61% CSS 6.00% JavaScript 2.25% Shell 0.14%
plotly plotly-dash dash python dash-mantine-components mantine

dmc-docs's Introduction

dmc-docs's People

Contributors

annmariew avatar jcuypers avatar lxstr avatar nlyle01 avatar snehilvj avatar tringuy1993 avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dmc-docs's Issues

Feedback on docs

Copied from issue on main repo.

I think it looks very nice! I was just about to ask for a link to code and/or a live app to get a better sense of the feel of the docs, but you beat me to it ;). The immediate things that strikes me as no-so-nice are,

  • The "Loading..." part that shows each time I click on a new component
  • Scroll bar in main panel not being mantine styled
  • Really long lines in the "Keyword Arguments" block, maybe cut at e.g. 125 characters to avoid horizontal scroll bars
  • Too much space below the "Keyword Arguments" block

Grid `align=stretch` example not stretched

I haven't dug into the docs code to see if there's a quick fix, but for now just wanted to raise the issue. Comparison below between Mantine and Dash Mantine below:

Mantine

flex-start and stretch

image

Dash Mantine

flex-start and stretch

image

https://github.com/snehilvj/dmc-docs/blob/main/docs/grid/justify.py#L26

demo = dmc.Grid(
    children=[
        dmc.Col(html.Div("1", style=style), span=3),
        dmc.Col(html.Div("2", style={**style, "minHeight": 80}), span=3),
        dmc.Col(html.Div("3", style={**style, "minHeight": 120}), span=3),
    ],
    gutter="md",
)

NavLink n_clicks not trigerring callbacks

I have a basic usage here:

layout = dmc.NavLink(
    label='test link',
    id='test-navlink'
)

@callback(
    Output('test-navlink', 'active'),
    Input('test-navlink', 'n_clicks'),
    prevent_initial_call=True
)
def func(n_clicks):
    if n_clicks:
        return True
    return False

However, it seems that the callback is never trigerred, even with print statements in the callback.

is the app up to date ?

Just pulled the main branch and ran the application locally, and there seems to be differences vs the deployed version.
For example when you resize the browser the side nav bar and table of contents nav does not disapear like on the deployed version (perhaps a lack of media queries), there also seems to be over 200 "id not found in layout" callback errors.

I ran the app with the following commands, and I tested using Google Chrome on Linux.

EDIT
I ran it with debug=False, and everything worked as normal, I'm a bit confused, does it load the assets directory only when not in debug mode, some sort of dash black box magic?

poetry install

poetry shell

python3 run.py

Perhaps there is something I am missing (I am new to Dash), maybe the current main branch is old? I don't see anyother branches or tags Any guidence would be appreciated.

By the way, dmc is a fantastic library, and your're design for the dmc-docs app is amazing. Thanks for all your hard work.

Mantine V6

Open items the Mantine V6 docs.

Please feel free to add to the list. Or better yet, open a pull request to address any of the items listed below. This is a great way to contribute to the dash-mantine-components library. Please let me know if you would like any help getting started. ๐Ÿ™‚

โžก๏ธ Current alpha release is dash-mantine-components==0.13.0a3
โžก๏ธ WIP docs hosted at: https://dmc-docs-pr-35.onrender.com/

Add Content

  • Migration guide - See the changelog for Mantine V6 and notes about breadking changes from PR 36 and 37

  • Update the DatePicker examples after the bug fixes noted in PR #37

  • Add example of a light-dark switch like the dmc-docs

  • Make sure all components have a Styles API section

  • Check the Mantine 6 docs and add missing content to each component

Add docs for new components:

  • AppShell - add after bug fix
  • AspectRatio - pending PR 40
  • Box - Don't do this one? It looks like in Dash the sx prop is available on all components
  • ColorInput - pending PR 40
  • DateInput - pending PR 40
  • Flex - pending PR 40
  • InputWrapper -- Don't do this one? https://v6.mantine.dev/core/input/#inputwrapper-component
  • PinInput - pending PR 40
  • Mark - pending PR 40
  • Rating - pending PR 40
  • ScrollArea - pending PR 40
  • Popover - pending PR 40

Review Needed

  • Should the endpoints have dashes in the component names like in the mantine docs? for example: "/pin-input" or "/date-picker"
  • Consistent title for first example in the docs. Currently ranges from "Introduction" "Usage" "Simple Example", "Simple Usage"....
  • Notifications section
  • Dates sections
  • Check prop names for transitionProps dict in all components.

Docs App Bug fixes & features

  • in .md files it's not possible to display quotes in inline code snippets. For example, this doesn't work: type="numeric" it displays as type="numeric"
  • Add redirects for DatePickerRange. Any other pages that need to be redirected from V0.12 docs?
  • Add side nav - pending in PR 40)
  • If you click on the TOC on the right, then go to a different component using the dropdown, you get strange results. It looks like the old hash remains and the page does not update correctly. (pending fix in PR 40)
  • The complete docstrings for dicts are not showing in the Keyword Arguments section. See for example LoadingOverlay section in current docs vs 0.13
  • This note about the extra props are not showing like in the current docs:

Along with the props mentioned below, these dmc components also Mantine style props such as m, mx, my, p, etc. Click here for more information.

Tooltip error

Hey @snehilvj
It looks like Tooltip example is crashing the browser. When I run it locally, I see this error, then the browser restarts:

Uncaught Error: flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.

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.