GithubHelp home page GithubHelp logo

palantir / blueprint Goto Github PK

View Code? Open in Web Editor NEW
20.4K 516.0 2.1K 171.33 MB

A React-based UI toolkit for the web

Home Page: https://blueprintjs.com/

License: Apache License 2.0

JavaScript 2.64% TypeScript 89.19% HTML 0.23% Shell 0.31% SCSS 7.55% Handlebars 0.07% Less 0.02%
react components typescript lerna design system ui toolkit table sass

blueprint's People

Contributors

adidahiya avatar bvandercar-vt avatar cmslewis avatar cperinet avatar cyu06 avatar dependabot[bot] avatar dlech avatar ejose19 avatar ericjeney avatar giladgray avatar gscshoyru avatar invlid avatar jaamison avatar jkillian avatar johnly13 avatar justinbhopper avatar leebyp avatar llorca avatar maclockard avatar mattskrobola avatar mcintyret avatar mud avatar patrickszmucer avatar pkwi avatar reiv avatar rootulp avatar styu avatar tanmoyopenroot avatar tgreenwatts avatar themadcreator 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  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  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

blueprint's Issues

move examples into their packages

i think the component examples should live in their respective packages, closer to the code they exemplify. this means that they'll be in the NPM package that users npm install so they'll have the examples locally to start from.

question is where the files should go?

  1. in examples/ directory as a sibling of src/ and test/:

    packages/core/examples/buttonsExample.tsx
    
  2. in respective src/components/ directory:

    packages/core/src/components/buttons/buttonsExample.tsx
    

Couldn't find Type Defination file

I was trying to pull Type Defination using typings. But I couldn't found single file having all the definitions in file. Like blueprint.core.d.ts.

Can you tell me where I can find them?

PS: Please close the issue if it is not appropriate or in pending task. I filled a issue as I can't find twitter of it.

First-class support for @import'ing blueprint scss files

Given this import:

@import "node_modules/@blueprintjs/core/src/blueprint.scss";

Webpack is throwing an error

ERROR in ./~/css-loader!./~/postcss-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./src/styles/app.scss
Module build failed: 
@import "../node_modules/bourbon/app/assets/stylesheets/bourbon";
^
      File to import not found or unreadable: ../node_modules/bourbon/app/assets/stylesheets/bourbon
Parent style sheet: /Users/dave/www/portalv3/node_modules/@blueprintjs/core/src/common/_font-imports.scss
      in /Users/dave/www/portalv3/node_modules/@blueprintjs/core/src/common/_font-imports.scss (line 4, column 1)
...

The path to ../node_modules/bourbon/app/assets/stylesheets/bourbon is invalid, as bourbon isn't installed as a dependency because it's listed under devDependencies. Is this library not intended to allow users to override the variables?

(2,1): error TS2688: Cannot find type definition file for 'dom4'.

I'm getting following error in TypeScript:

ERROR in node_modules\@blueprintjs\core\dist\components\collapse\collapse.d.ts
(2,1): error TS2688: Cannot find type definition file for 'dom4'.

Using TypeScript 2.0.3, installed the blueprint using:

npm install --save @blueprintjs/core

Wrong link in example

On http://blueprintjs.com/docs/#overview

<!DOCTYPE HTML>
<html>
  <head>
    ...
    <link href="path/to/node_modules/@blueprintjs/core/blueprint.css" rel="stylesheet" />
    ...
  </head>
  ...
</html>

The path to the CSS file is incorrect.

It should be

<!DOCTYPE HTML>
<html>
  <head>
    ...
    <link href="path/to/node_modules/@blueprintjs/core/dist/blueprint.css" rel="stylesheet" />
    ...
  </head>
  ...
</html>

move wiki pages

  • Release Process
  • Development Practices
    • Coding Guidelines
  • Build Tasks
  • Editor integration
  • Docs Development



  • Update CONTRIBUTING.md

Don't use .pt- prefix for landing page CSS classes

I think we should reserve the .pt- prefix exclusively for our public API. The world is a lot simpler if, whenever you see a .pt- class, you can be sure that it's part of the Blueprint API.

A reasonable alternative would be .bp- here, but the table package uses that. So feel free to make up a new one.

Issues with Install via Gulp

Getting an error after installing master and running npm run gulp on my OS X box:

$ git describe --tags
release-1.0.1-14-g6571359
 ~/build/blueprint  ⑂ master  »
$ npm run gulp

> [email protected] gulp build/blueprint
> gulp

/Users/mwilson/build/blueprint/gulp/index.js:28
        dest(project, ...paths) {
                      ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (build/blueprint/gulpfile.js:71:1)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/5.10.1/bin/node" "/usr/local/bin/npm" "run" "gulp"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] gulp: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] gulp script 'gulp'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the blueprint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs blueprint
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls blueprint
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     build/blueprint/npm-debug.log

npm-debug.log.zip

Cursor jumps while editing EditableText inside a Dialog

Here's a fun one: if you have an EditableText component inside a Dialog, any change to the contents of the EditableText (inserting or deleting a character) moves the cursor to the end of the component. This makes it nearly impossible to use except if you're just typing contents at the end.

Reported by vshekhawat.

Modified repro:

import { Dialog, EditableText } from "../src";
import * as React from "react";

interface IReproState {
  text: string;
}

export class DialogExample extends React.Component<{}, IReproState> {
    public constructor() {
        super();
        this.state = {
            text: "",
        };
    }

    public render() {
        return (
            <Dialog isOpen>
                <EditableText
                    value={this.state.text}
                    onChange={this.setText}
                />
            </Dialog>
        );
    }

    private setText = (text: string) => {
        this.setState({
            text,
        });
    }
}

Rerendering uncontrolled Tabs can incorrectly reset selected index back to initial

Uncontrolled tabs that have an initialSelectedTabIndex specified will fall back to that initial value upon rerender, even after a click selection has set the internal state to a new selected tab.

Local repro: rerendering the top part of my local example shows this tab index reset, even after a new tab has been selected.
uncontrolled-reset

I would expect this reset to only occur if the component was completely unmounted then remounted.

SSR with blueprint

Server side rendering with blueprint breaks, dom4.max.js is requiring tons of things.

Add demo page

I think it's useful for people to see the general view of this framework and how the components play with each other.

Improve keyboard navigation in docs

Via HN:

Just a nitpick, but when looking at the docs, I can't move with Page Up/Page Down unless I click in the "content column/area", kind of annoying when one navigates using the left bar and then can't move around (on no-mouse setups, e.g. trackpoint + keyboard).

which version to start at?

currently the packages here have the same versions as their previous internal incarnations.

should we reset them all to 1.0.0 in this repo?
i don't see any harm in doing so: they are new packages with new names.

Decrease docs website file size

I was showing the BP website to a person unfamiliar with it, and (about) 10MB of content ends up being a really heavy initial load. It would be great to reduce this, also I think in general the developer community prefers less-heavy experiences.

Possible ideas:

  • Remove all angular examples from public docs site / move them to a separate page
  • Make sure that all sources (JS/CSS) are appropriately minified
  • Make sure that no duplicate dependencies are getting included
  • Eliminate any extra dependencies that are only being used for a small feature. Or, make sure to use Webpack 2's tree-shaking feature appropriately.
  • Make sure inline source maps aren't included anywhere (#112)

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.