GithubHelp home page GithubHelp logo

tableau / tableau-ui Goto Github PK

View Code? Open in Web Editor NEW
92.0 25.0 29.0 1.99 MB

React UI components that have the look-and-feel of Tableau.

Home Page: https://tableau.github.io/tableau-ui/

License: Other

Ruby 0.60% HTML 39.20% CSS 60.20%
tableau tableau-extension tableau-wdc tableau-dashboards

tableau-ui's People

Contributors

benlower avatar craigkovatch avatar d45 avatar dependabot[bot] avatar greg-fix avatar keshiarose 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  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  avatar  avatar  avatar

Watchers

 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

tableau-ui's Issues

[Suggestion] Add Slider, Toggle and Section components

Slider and Toggle are mentioned in the extension-api UX Guidelines these look great and it would be amazing if we could just use them like any of the other components. Sliders might be tricky but the toggle should be relatively simple to implement...

What I mean by Section is a little bit more tricky to explain; in the extension-api UX Guidelines it also mentions how to structure a dialog, having a component to easily build out form sections with a nice header and correct padding and margins would be great. Perhaps this component could also make it easy to line up multiple columns of inputs as shown in some of the images.


DropdownSelect removes spaces from items

I'm passing some values to this component that have multiple spaces in the names but the component is stripping them out.

Eg, passing TEST [insert n number of spaces here] TEST will show the value TEST TEST and pass the incorrect value back through any callbacks/events.

I haven't checked other components for the same issue.

2020-04-17_10-51-12

How to get the tableau-ui.min.js

Hi
i was able to create an extension in tableau and i was trying to keep the ui-standard.may i know how can i get the tableau-ui.min.js file so that i can add it in my project?

TS Property '...' does not exist on type

Somehow the typings for this library seem to have broken for various elements (I have only checked the TextField, Button and DropDownselect). "Native" props are seemingly not recognized and cause typescript errors. Unsure when this was introduced.

Example

<TextField value="test" onChange={e => console.log(e.target.value)} />
Type '{ value: string; onChange: (e: any) => void; }' is not assignable to type 'IntrinsicAttributes & TextFieldProps & RefAttributes<HTMLInputElement>'.
  Property 'onChange' does not exist on type 'IntrinsicAttributes & TextFieldProps & RefAttributes<HTMLInputElement>'.ts(2322)

Live examples

https://codesandbox.io/s/1r4x82678q

Add `Typography` Component

Would be great to have typography components to easily access Tableau's standard fonts/styles for text across titles, informational text, paragraphs, etc.

Add `Textarea` component

Would be great to have a textarea component. We have users which are adding descriptions and the current is too small for this.

TextField with numeric value 0 displays 0 above the input

Example code:

<TextField value={0} />

Will display like this:
image

This happens because of the use of the boolean and operator (&&) which is used to determine whether to display the TextFieldClearButton. This operator will always return either side of the evaluation which in most cases won't matter since React will not render false, undefined, null or "" but unfortunately it will show 0.

This can be replaced by either Boolean(value) && <TextFieldClearButton /> or value ? <TextFieldClearButton /> : null

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.