Skip to content

Commit aca37cb

Browse files
V4 (Kauri) (segmentio#200)
* Stack component and React 16.3 * improvements * typo * add default value * themer wip * create select appearance * create link appearance * theme * fix border * progress on buttons theming * using new icons * in flight progress * withTheme single line * default theme cleanup in folder * more controls use withTheme * getTextareaClassName * getRowAppearance * getSelectClassName * getSegmentedControlClassName * remove ButtonAppearances * themed avatar * fixes * fix icon Combobox * themed badges * sunset icons * themed switch * remove color refs from components * updated colors story * default theme cleanup * upgrade to gatsby v2 * color docs * typography docs improvements * improve layer docs * improve alert docs * improve button docs * add icon docs * Table improvements + Menu component added * advanced table example * advanced table example * table docs update * component status fix * fix theme export + text size 600 * fix * 4.0.0-0 * scales added * 4.0.0-1 * color mapping example * prop type fix Select * fix tooltip * 4.0.0-2 * fix autofocus => autoFocus in Select * alert improvements * 4.0.0-3 * support auto height table rows * 4.0.0-4 * support border false * 4.0.0-5 * unify intent API, deprecate info * 4.0.0-6 * icon button default color change * 4.0.0-7 * docs update * Fix popover not closed when toggle button has children (segmentio#219) * Fix popover when toggle button has children * Add a story for popover * Update snapshot and fix tests * Refactor onbody click check * Increase package size limit * add hint prop to TextInputField * 4.0.0-8 * 4.0.0-9 * set default TextInputField height to 32 * 4.0.0-10 * add cursor not-allowed to disabled button * use transparent color for button disabled * focus management * Remove intent requirement on button, add default "none" (segmentio#225) * Remove intent requirement on button, add default "none" * Update snapshots * support is prop MenuItem * 4.0.0-11 * allow passthrough props on menu item, and always bubble highjacked events (segmentio#231) * 4.0.0-12 * increase the contrast of n1-level colors and fix typo (segmentio#232) * increase the contrast of n1-level colors and fix typo * wip update snap and B1 color * wip. update more snaps * 4.0.0-13 * size in lists + icons (segmentio#234) * 4.0.0-14 * Bug/select icon margin (segmentio#237) * add padding for icon on Select, add SelectField, add docs * wip. include in docs * wip * 4.0.0-15 * add export for SelectField (segmentio#238) * [v4] Fix button margin top (segmentio#240) * fix margin top button * fix tests * add focus handling to segmented control (segmentio#241) * [V4] tooltip inside popover (segmentio#239) * size in lists + icons * clean up * fix typo and add children check * fix * clean up * fix typo and add children check * fix * 4.0.0-16 * fix docs blank page (segmentio#244) * enable passing `defaultValue` for uncontrolled select inputs (segmentio#245) * 4.0.0-17 * fix icon placement (segmentio#248) * 4.0.0-18 * Remove caret right icon from sidebartab (segmentio#250) * 4.0.0-19 * fix jitter positioner (segmentio#257) * 4.0.0-20 * improve positioner calculations (segmentio#259) * 4.0.0-21 * fix css ssr (segmentio#264) * Fix hiding <Tooltip> by explicitly setting `isShown` to `false` (segmentio#265) * 4.0.0-22 * support onCancel callback prop (segmentio#266) * 4.0.0-23 * [v4] Add Table.VirtualBody (segmentio#267) * wip virtual body * add Table.VirtualBody * remove warning (segmentio#269) * fix fixed height virtual body (segmentio#270) * 4.0.0-24 * improve virtual body (segmentio#271) * 4.0.0-25 * Fix broken blueprint link (segmentio#273) Fixes a broken link in the docs for icons. ``` http://blueprintjs.com/docs/v2/#icons -> http://blueprintjs.com/docs/versions/2/#icons ``` * [v4] Add Editable/SelectMenu Cell (segmentio#274) * add Editable/SelectMenu Cell * minor tweaks * cleanup stories + improve table row interaction * cleanup imports * 4.0.0-26 * [V4] EditableCell improvements (segmentio#278) * wip disabled editable cell * editable cell improvements * remove controlled usage * 4.0.0-27 * [v4] Improve (SelectMenu/Editable)Cell and SegmentedControl (segmentio#281) * improve select menu/editable cell and segmented control * remove border right from cell * 4.0.0-28 * [v4] Table.(Editable/SelectMenu)Cell Fixes (segmentio#284) * fix size and isSelectable={true} * fixes to size and isSelectable={true} * 4.0.0-29 * fix editable cell position + tiny pixel shift radio (segmentio#286) * 4.0.0-30 * fix virtual body height calculation (segmentio#289) * 4.0.0-31 * improve editable/selectmenu cells (segmentio#293) * 4.0.0-32 * add left, right, top, bottom anchors to side-sheet (segmentio#252) * add left, right, top, bottom anchors to side-sheet * use Position enum in Side-sheet and cache calls to generating sheetCloseClassName * move Position to constants and update imports * fix another Position import * change SheetClose animation name and make position a required prop * 4.0.0-33 * fix search (segmentio#304) * 4.0.0-34 * Migrate to circleci 2.0 * circleci: fix the gh-pages ignore * circleci: fix the gh-pages ignore config * Run the babel builds concurrently * Make the Dialog mobile friendly (segmentio#301) * Make the dialog mobile friendly This change makes the dialog resize gracefuly to fit the available viewport. It should be a non-breaking change and the dialog should behave the same on desktop as it did before. * Add sideOffset * Remove unnecessary sideOffsetWithUnit variable * Use `rm -rf` in prepublishOnly * v4.0.0-35 * add docs to badge and pill (segmentio#307) * fix prop warnings and make list components more flexible (segmentio#315) * dialog: add horizontal scrolling support (segmentio#314) This allows the Dialog to gracefully handle block level content that's too wide by scrolling, preventing the Dialog from overflowing the sides of the viewport. This should be a non-breaking change. * add iconSize to IconButton component. closes segmentio#316 (segmentio#317) * 4.0.0-36 * Add "indeterminate" prop to <Checkbox> (segmentio#313) * Add "indeterminate" prop to <Checkbox> * Delete extraneous line * Remove permutation function, use plain JSX * Fix label * Add ref callback to set indeterminate prop * Add indeterminate styles * Remove console.log * Make prop order consistent * Clean up story * Uncomment commented-out styles * Remove duplicate styles * add position relative (segmentio#318) * 4.0.0-37 * Allow grammarly to be disabled for Textarea (segmentio#323) * Allow grammarly to be disabled for Textarea * Destructure grammarly from props * Improve cancelation behavior for SideSheet, Dialog, and Overlay (segmentio#324) * Extend cancelation handling in Dialog and Overlay This adds: - `shouldCloseOnEscapePress` and `shouldCloseOnClick` to `Overlay` and `Dialog` - Fixes a bug where `Dialog`'s did not trigger the `onCancel` handler when the close button was clicked. * Add Stories and SideSheet support * 4.0.0-38 * add Positioner support for Position.LEFT and Position.RIGHT (segmentio#299) * add Position.LEFT and Position.RIGHT positions to Positioner, Tooltip, and Popover * alter y axis to keep popover in viewport * 4.0.0-39 * remove empty divs from positioner (segmentio#330) * 4.0.0-40 * fix conflict between v3 and v4 toaster init order (segmentio#332) * 4.0.0-41 * Remove storybook-deployer * V4 Docs (segmentio#335) * overview images * wip * mdx integration wip * wip testing mdx * wip docs provider * overview images * wip * mdx integration wip * wip testing mdx * wip docs provider * layout primitives * fix css * typography * small cleanup * colors + icons * button docs * tab docs * badge and pill * avatar docs * TextInput docs * SearchInput docs * Textarea docs * Autocomplete docs * filepicker docs * Select docs * Select docs * Combobox docs * SelectMenu docs * more examples for SelectMenu * Popover docs * Menu docs * Checkbox docs * Radio docs * SegmentedControl docs * Switch docs * toaster docs * Alert docs * Spinner docs * Dialog docs * SideSheet docs * IconButton docs * remove example * CornerDialog docs * Table docs * Portal docs * FormField docs * broken wip * fix portal * get started back to normal * docs homepage * docs media items * add spectrum link * github button * docs update * ssr and improvements * fix aboslutePath * remove old docs * fix imports * clean docs * docs & readme improvements * update readme and remove unused code * remove old code * Upgrade dependencies v4 (segmentio#336) * upgrade deps * update snaphosts * add segment tracking (segmentio#337) * Tracking fix (segmentio#338) * add segment tracking * improve ssr * fix * Bug/radio indeterminate (segmentio#340) * v4.0.0-42 * Add babel-plugin-add-react-displayname This makes sure that all components have a `displayName`. * v4.0.0-43 * Add displayName to withTheme * v4.0.0-44 * Upgrade most of the dependencies (segmentio#344) * Upgrade most of the dependencies * Fix evergreen version in ssr example * Add @babel/runtime * Fix excluding the stories and tests from the build * Revert test order change * Upgrade ava and sinon * Upgrade husky hooks config * remove unused TableCell props (segmentio#342) * BREAKING: bubble event in radio onChange (segmentio#341) * BREAKING: bubble event in radio onChange * comply with linter * 4.0.0-45
1 parent 21feaa5 commit aca37cb

File tree

579 files changed

+33688
-17568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

579 files changed

+33688
-17568
lines changed

.babelrc

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
{
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": [
4+
"@babel/plugin-transform-runtime",
5+
"@babel/plugin-proposal-class-properties",
6+
"babel-plugin-add-react-displayname"
7+
],
28
"env": {
3-
// Workaround Babel 6's weird config inheritance by not having any root
4-
// config (`{"modules":false}` gets overridden). This can be improved with
5-
// Babel 7's `.babelrc.js` support.
6-
"development": {
7-
"presets": ["env", "react", "stage-0"]
8-
},
9-
"test": {
10-
"presets": ["env", "react", "stage-0"]
11-
},
12-
"production": {
13-
"presets": ["env", "react", "stage-0"]
14-
},
15-
"commonjs": {
16-
"presets": ["env", "react", "stage-0"]
17-
},
189
"esm": {
19-
"presets": [["env", { "modules": false }], "react", "stage-0"]
10+
"presets": [["@babel/preset-env", { "modules": false }]],
11+
"plugins": [["@babel/plugin-transform-runtime", { "useESModules": true }]]
2012
}
2113
}
2214
}

.github/CODE_OF_CONDUCT.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
16-
* Examples of unacceptable behavior by participants include:
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
16+
- Examples of unacceptable behavior by participants include:
1717

1818
The use of sexualized language or imagery and unwelcome sexual attention or advances
1919
Trolling, insulting/derogatory comments, and personal or political attacks

.github/CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ Include this in your issue if possible.
2525
We hope to formalize the 🌲 Evergreen design language more as we go.
2626
As a general rule of thumb try to follow these constraints:
2727

28-
* Use `color` and the `typography` components.
29-
* 8px soft grid, (4px under 40px is also good).
30-
* Don't force line heights on grid if it looks poorly.
28+
- Use `color` and the `typography` components.
29+
- 8px soft grid, (4px under 40px is also good).
30+
- Don't force line heights on grid if it looks poorly.
3131

3232
### Component API
3333

34-
* Write down how you would like to use this component.
35-
* Write down the component API and prop types.
36-
* Try to use `ui-box` for your components.
37-
* Try to make all heights possible.
38-
* Base the text style (font size) on the height.
34+
- Write down how you would like to use this component.
35+
- Write down the component API and prop types.
36+
- Try to use `ui-box` for your components.
37+
- Try to make all heights possible.
38+
- Base the text style (font size) on the height.
3939

4040
Include this in your issue if possible.
4141

.github/ISSUE_TEMPLATE.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@ _Bug fixes and documentation fixes are welcome._
1313

1414
Please consider the following items when filing a bug report:
1515

16-
* Issue and steps to reproduce.
17-
* Versions.
18-
* Screenshots.
19-
* Expected.
20-
* Actual.
21-
* Link to your project.
22-
* Browser name and version.
23-
* Operating system.
16+
- Issue and steps to reproduce.
17+
- Versions.
18+
- Screenshots.
19+
- Expected.
20+
- Actual.
21+
- Link to your project.
22+
- Browser name and version.
23+
- Operating system.
2424

2525
## In the case of a feature/component request ✍️
2626

2727
Please consider the following items when filing a feature request:
2828

29-
* **Usage**, component API if applicable.
30-
* **Design Example**, screenshot of what the design should look like.
31-
* Problem that feature/component addresses.
32-
* Examples in other projects of feature/component.
33-
* Screenshots if design changes.
29+
- **Usage**, component API if applicable.
30+
- **Design Example**, screenshot of what the design should look like.
31+
- Problem that feature/component addresses.
32+
- Examples in other projects of feature/component.
33+
- Screenshots if design changes.
3434

3535
See the contributing guide for more details.
3636

3737
## Respect earns Respect 👏
3838

3939
Please respect our Code of Conduct, in short:
4040

41-
* Using welcoming and inclusive language.
42-
* Being respectful of differing viewpoints and experiences.
43-
* Gracefully accepting constructive criticism.
44-
* Focusing on what is best for the community.
45-
* Showing empathy towards other community members.
41+
- Using welcoming and inclusive language.
42+
- Being respectful of differing viewpoints and experiences.
43+
- Gracefully accepting constructive criticism.
44+
- Focusing on what is best for the community.
45+
- Showing empathy towards other community members.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ thank you for your time, and close the issue.
1111

1212
Please respect our Code of Conduct, in short:
1313

14-
* Using welcoming and inclusive language.
15-
* Being respectful of differing viewpoints and experiences.
16-
* Gracefully accepting constructive criticism.
17-
* Focusing on what is best for the community.
18-
* Showing empathy towards other community members.
14+
- Using welcoming and inclusive language.
15+
- Being respectful of differing viewpoints and experiences.
16+
- Gracefully accepting constructive criticism.
17+
- Focusing on what is best for the community.
18+
- Showing empathy towards other community members.

.storybook/webpack.config.es6.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

.storybook/webpack.config.js

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
1-
// Storybook config does not work with ES6 just yet.
2-
// This is a workaround.
3-
// https://github.com/storybooks/storybook/issues/155
4-
require('babel-register')
5-
module.exports = require('./webpack.config.es6.js')
1+
const path = require('path')
2+
const webpack = require('webpack')
3+
4+
module.exports = storybookBaseConfig => {
5+
// Return the altered config
6+
return {
7+
...storybookBaseConfig,
8+
plugins: [
9+
...storybookBaseConfig.plugins,
10+
new webpack.LoaderOptionsPlugin({
11+
debug: true
12+
})
13+
],
14+
module: {
15+
...storybookBaseConfig.module,
16+
rules: [
17+
...storybookBaseConfig.module.rules,
18+
{
19+
test: /\.(png\?.*|jpg\?.*|jpg|png)$/,
20+
loader: 'url-loader'
21+
},
22+
{
23+
test: /\.(blob)/,
24+
loader: 'file-loader'
25+
},
26+
{
27+
test: /\.(json)/,
28+
loader: 'json-loader'
29+
}
30+
]
31+
}
32+
}
33+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"eslint.enable": false,
3+
"xo.enable": true
4+
}

0 commit comments

Comments
 (0)