Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error caused when bringFocusInside is called outside an event han… #1022

Merged
merged 1 commit into from Sep 14, 2020

Conversation

colinlohner
Copy link
Contributor

@colinlohner colinlohner commented Sep 14, 2020

Overview
Resolves an error caused by calling bringFocusInside outside an event handler

Screenshots (if applicable)
n/a

Documentation

  • Updated Typescript types and/or component PropTypes
  • Added / modified component docs
  • Added / modified Storybook stories

@colinlohner colinlohner merged commit 90ca5a2 into master Sep 14, 2020
@colinlohner colinlohner deleted the popover-bring-focus-inside-fix branch September 14, 2020 20:49
colinlohner added a commit that referenced this pull request Sep 16, 2020
* Add box wrapper to maintain positioning for custom icons (#934)

* Add box wrapper to maintain positioning for custom icons

* Add prop type validation

* Update to pull out icon props instead of positioning

* rm ,

* Resolve issue, where incorrect props where being passed around (#933)

* Fix(switch): set default value (checked) (#932)

* fix(switch): set checked default value to false

* docs(switch): replace PropsTable source

* Fix itemToString for Autocomplete & Combobox (#930) (#931)

* Call `onStateChange` if passed to `<Combobox>` (#926)

* bump version to current npm version

* v5.0.4

* Update layout-primitives.mdx (#936)

* fix onChange() and onBlur() types for FilePicker (#941)

* Fix broken Icon docs with non-existent condition (#950)

* fix undefined props merging and list styles (#959)

* fix input height regression on text field (#960)

* v5.0.5

* add StackingOrder and Code appearance typedefs (#961)

* add StackingOrder and Code appearance typedefs

* Update index.d.ts

* fix menu disable items functionality and appearence (#954)

* fix menu disable items functionality and appearence

* added disabled prop to type definition of MenuItem

* fix classnames overwrites in Tab, TagInput, FilePicker, TextDropdown (#953)

* fix unnecessary re-renders for popover component (#945)

* Add missing disabled property to SegmentedControlOwnProps interface (#935)

* v5.0.6

* fix Popover focus issues (#962)

* Forward TextareaField ref (#987)

* update PR template (#1007)

* Clear up tooltip timeouts on mouse leave (#1011)

* Fixup incorrect icon usage on Menu docs (#1013)

* Update Dialog "title" prop type in declaration file (#1012)

* Update Dialog title prop in declaration file

* Update index.d.ts

Co-authored-by: Allen Kleiner <akleiner24@gmail.com>

* v5.1.0

* Fix error caused when bringFocusInside is called outside an event handler (#1022)

* v5.1.1

* Fix `github` link on the select docs page (#1031)

* Update PULL_REQUEST_TEMPLATE.md

* Quick fix of bad merge

* Quick fixes

* add back ref

* Couple of tweaks/fixes

Co-authored-by: Dave <wangcch.cc@gmail.com>
Co-authored-by: Stijn Seghers <stijnseghers@gmail.com>
Co-authored-by: Vadim Demedes <vdemedes@gmail.com>
Co-authored-by: Muhammad Athar <muhammad.athar@outlook.co.th>
Co-authored-by: Tushar Sharma <ts17995@gmail.com>
Co-authored-by: Allen Kleiner <akleiner24@gmail.com>
Co-authored-by: Matt Shwery <matthew.shwery@segment.com>
Co-authored-by: Matt Shwery <mshwery@gmail.com>
Co-authored-by: David Kiss <david.kiss@bitrise.io>
Co-authored-by: Sepehr Sobhani <sepehr411@gmail.com>
Co-authored-by: William Grosset <16131737+williamgrosset@users.noreply.github.com>
akleiner2 added a commit that referenced this pull request May 12, 2021
* V6 theme (#968)

* WIP - theming refresh

* updates

* updates

* segmented control updates

* segmented control updates

* heading is theme-aware

* Update Icon colors

* Update Alert, and InlineAlert styles

* more updates to text styling etc

* pargraphs + links are theme-aware

* Update snapshots

* v6.0.0-0

* button fixes, inputs with better focus rings

* update taginputs

* updates to pass linting

* update snapshots

* v6.0.0-1

* tooltips are theme-aware via useTooltipStyle

* Updated Tabs

- Removed SidebarTab component
- Updated Tab to have apperance and direction
- Updated Tab styles minus disabled

* updates to a bunch of stuff - optionlist, selectmenu, autocomplete

* Update snapshots

* Update tabs to pass linting

* v6.0.0-2

* badges + avatars are theme-aware

* updates to theme-style hook

* v6.0.0-3

* Update types

* update tertiary button background color

* v6.0.0-4

* Update Tab types

* v6.0.0-5

* updates to some badge and taginput defaults

* Update default button apperance, remove duplicate tertiary button type

* Slight button tweak

* rm comma

* Update segmented control

* Updated dialog

* Minor tweaks to radio/checkbox

* Update snapshots

* Fix the cancel button

* Remove unused import

* v6.0.0-6

* add minimal appearacne

* focus ring animation

* Update snapshots

* v6.0.0-7

* Re-introduce Chromatic

* seperate chromatic out into own job

* add checkout

* add job to workflow

* add install

* Don’t fail build when visual changes introduced

* Fix hashing for avatar colors

* set faker seed to prevent false positive change results

* Update other random number to use faker and seed

* Fix Segmented Control UI

* V6 status indicator (#942)

* Create Status Indicator component

* Update types and add export

* Add docs

* Put it in the right category

* Update StatusIndicator to use color prop instead of intent

* Add docs illustration, add storysource to storybook

* Update with PR comments

* V6 theme ui fixes (#943)

* Tab Fixes

* Badge and pill fixes

* Avatar fixes

* Text input fixes

* Input field/form field fixes

* search input stories

* Textarea story clean up

* Checkbox update

* Segmented Control fixes

* Switch fixes

* Fix alerts/toasts

* rm unused story vars

* rm unused imports

* update snapshots

* Update status indicator to use new default color

* InlineAlert fixes

* Avatar/Fill update

* remove secondary button stories

* Update pill stories to just be numbers

* Update search input to use correct icon color

- useIconColor now accepts color names (gray600)

* Update switch colors

* Update paragraph typography styles

* Update tag input spacing

* Fix lineheight

* Update textarea padding

* Break apart theme pieces to support v5 and v6 theming (#947)

* Retrofit v5 button styles into the v6 theme

* wip - retrofitting v5 themes and splitting out styles

* WIP

* add minimal variant

* generalize inputs

* more theming updates

* more updates

* lint

* updated snapshots

* bump size limit

* added inputs

* update tag input appearance

* goodbye default theme

* Clean up theming interfaces for v5 and v6 themes (#948)

* Cleanup unused theme properties from the exported theme interface

* more cleanup

* v5 cleaned up

* and even more cleanup

* Slim up theme interfaces even more (#949)

* Slim up theme interfaces even more

* bump snapshots

* Move spinnerColor and overlayBackgroundColor into theme tokens (#951)

* Convert <OptionsList /> + <Options /> to hooks and add semantic token for option colors (#952)

* updates

* Option as well

* V6 rename themes (#956)

* Rename themes

* update file refs

* change legacy back to v5

* V6 theme re org (#957)

* Rename themes

* update file refs

* change legacy back to v5

* Start theme reorg

- Renamed themes (v5 -> Legacy, v6 -> Default)
- Updated button to be token aware

* Create default-styles dir

Move button getDefaultStyles method to buttons.js file

* Add Shared Styles

- add new shared.js file
- fix button border issue

* Fix disabled states

- Update disabled states for default and legacy themes
- Update theme story to show disabled state

* Update button story to show disabled state

* Fix button story

* Fix hover and focus states for destructive button

* Update snapshots

* add size prop to buttons (#964)

* add size prop to buttons

* remove unused selectors

* tweak styles

* update snaps

* V6 style config (#967)

Co-authored-by: Allen Kleiner <akleiner24@gmail.com>
Co-authored-by: colinlohner <colin@colinlohner.com>

* fix icon button size (#969)

* Clean up `badgeColors` and `avatarColors` from the v5 and default themes (#972)

* Clean up `badgeColors` and `avatarColors` from the v5 and default themes

* revert prettier changes

* more updates

* updates

* Update `<Code />` to the new theming style and do some more theme cleanup (#974)

* Get rid of `css` prop on `<Pane />` by just composing classnames directly (#975)

* Get rid of `css` prop on `<Pane />` by just composing classnames directly

* add a v6 migration guide too

* remove text css too

* fixup migration guide

* V6 pane appearance (#973)

* pane appearance

* wip

* wip

* update snaps

* fix linter

* Update inputs to use new theming style (#971)

* Update inputs to use new theming style

* Fix import and snapshots

* quick fixes for linter

* Update tag input to use text input

* Fix height passthrough for textinput

* make file name singular

* minor tweaks to default styles of input

* Update snapshots

* A couple of fixes

* Update snapshots

* Convert <TextDropdownButton /> to new styling mechanism + do some cleanup / bugfixes (#976)

* remove unused getElevation from theme helpers (#978)

* Move table cell appearance over to `useStyleConfig` and avoid exposing on the main API (#979)

* Table cell classname -> style config + appearances

* remove stray log

* Fix TextArea issue from migrating to Box from Text (#980)

* remove getTextDropdownButtonClassName (#981)

* remove getTextDropdownButtonClassName

* rm more unused files

* rm unused dirs

* update snaps

* remove most of Themer, and move themes to own TLD (#982)

* remove most of Themer, and move themes to own TLD

* fix import path

* wip. fix import paths

* move v5 -> classic

* upgrade to storybook v6 and provide theme toolbar for all stories (#983)

* add v5 compat theme for badge/pill/avatar (#984)

* Migrate off of xo and onto eslint  (#988)

* update package json

* more updates

* Properly point the eslint config to the entire evergreen directory + autofix errors (#989)

* Properly point the eslint config to the entire evergreen directory + autofix errors

* turn off indent rule

* Extend prettier and prettier react, remove other rules (#990)

* move onto a new theming paradigm (#991)

* get Code from theme (#993)

* get Code from theme

* fix tests

* temporarily bump size-limit

* Migrate from ava -> jest  (#992)

* Migrate from ava -> jest

* remove ava too

* move theme tools to jest as well

* more updates

* some more yarn lock changes

* move jest env to overrides

* run tests before build

* revert step order because of icons

* v6 buttons in new style paradigm (#995)

* update

* button updates

* goodbye usebuttonappearnce

* get select done too

* update snaps

* temporarily bump size-limit :(

* move Pane to useStyleConfig (#994)

* v6 tooltips in the new paradigm (#998)

* v6 tooltips in the new paradigm

* quick pr feedback

* v5/v6 Alert themes (#997)

* v5 and v6 themes for Alert

* reframe pane themes

* update snaps

* only pass style modifier props

* v6 status indicator + icons theming (#999)

* move InlineAlert to new theming (#1001)

* v6 TextInput, TagInput, and Textarea all in new theme paradigm. (#1000)

* TextInput, TagInput, and TextArea all in new theme paradigm

* fix tag input spacing

* updates

* v6 Badge, Pill, Avatar theming (#1003)

* move Badge and Pill to new theme

* move Avatar to theme

* update migration doc

* [ESLint] Add sort-destructure-keys plugin + rules (#1002)

* [ESLint] Add sort-destructure-keys plugin + rules

* enable eslint in dev

* enable eslint autofixing on save

* fix IconButton in v5/v6 (#1004)

* fix IconButton in v5/v6

* update selectmenu

* revert couple iconbutton instances to use height

* Fix input border and button/badge font sizes (#1005)

* fix input borders on v5

* fix badge and button font sizes

* update snaps

* [ESLint] Turn on import sorting with particular preferences (#1006)

* Turn on no-console for the codebase (#1010)

* V6 text dropdown button (#1008)

* v6 checkbox, radios, and switch all consuming from style config (#1009)

* Checkboxes + radios into the new theming paradigm

* wip switch

* switch too

* remove console log

* rm switch check styles

* some more cleanup

* pull Card radius from theme (#1015)

* Spinner + Overlay in v6 via new theme  (#1016)

* v6 spinner and overlay retrofitted;
;

* updates

* simplify prop logic;

* Fix size reference in <Spinner /> (#1017)

* Remove <BackButton /> usage in Evergreen (#1018)

* Remove <BackButton /> usage in Evergreen

* undo index.d.ts changes

* tweak input styles (#1019)

* rm old typography stuff and style Heading via theme (#1021)

* rm old typography stuff and style Heading via theme

* update snaps

* Support `<Text />` and `<Paragraph />` via the new theme (#1020)

* Text and Paragraph into new theme config

* update to dynamically support fontfamily lookups

* rm unused hooks

* add migration guide for paragraph and heading marginTop

* v6 theme for ol/ul/li (#1024)

* v6 theme for ol/ul/li

* update snaps

* Update Text, Paragraph to be aware of `fontFamily` and `color` (#1023)

* Update Text, Paragraph to be aware of `fontFamily` and `color`

* undo typography docs changes

* updating textinput and textarea

* update snaps

* V6 dialog (#1026)

* fix heading margin in dialogs

* update corner dialog width

* Move tabs over to new style (#1025)

* Move tabs over to new style

* rm useTabApperance

* Tweaks

* more PR tweaks

* v6 link in new styling (#1027)

* Fixup `<Select />` styles in v6 (#1030)

* Fixup `<Select />` styles in v6

* fix v5 select color

* v6 Table cell and table header in style config (#1029)

* Table cells and table header into useStyleConfig

* /s/baseStyles/baseStyle

* push more stuff into internal styles

* Remove docs from being watched by ESLint, and remove unused docs ESLint config (#1032)

* Remove docs from being watched by ESLint, and remove unused ESLint files

* move ignorepatterns to .eslintignore

* add <Group /> (#1028)

* move SegmentedControl to Group/Button and add deprecation warning (#1033)

* move SegmentedControl to Group/Button and add deprecation warning

* wip

* update migration docs

* tweak Select styles (#1034)

* fix styles for combobox height (#1035)

* fix styles for combobox height

* update types

* update more types

* update snaps and badge/pill alignment

* Row and MenuItem (#1036)

* Row and MenuItem

* Clean up

* Add a codemod to replace `marginTop="default"` with the actual value (#1037)

* Add a codemod + tests for converting `marginTop="default"`

* more updates to the codemod

* clean up codemod comments

* named export useStyleConfig (#1039)

* Fix `marginTop="default"` codemod to be better-aware of default sizing (#1040)

* Fix up the margin top default codemod

* remove references in codebase

* Adds a `defaultDeprecatedTheme` to ease the majority migration case (#1042)

* Add a `defaultDeprecatedTheme` export that just composes fills, colors, palette, etc

* Add a `deprecatedDefaultTheme` export and clean up a bunch of unused theme stuff

* more fixes

* some more cleanup

* add back typography from the original theme

* V6 update with master (#1041)

* Add box wrapper to maintain positioning for custom icons (#934)

* Add box wrapper to maintain positioning for custom icons

* Add prop type validation

* Update to pull out icon props instead of positioning

* rm ,

* Resolve issue, where incorrect props where being passed around (#933)

* Fix(switch): set default value (checked) (#932)

* fix(switch): set checked default value to false

* docs(switch): replace PropsTable source

* Fix itemToString for Autocomplete & Combobox (#930) (#931)

* Call `onStateChange` if passed to `<Combobox>` (#926)

* bump version to current npm version

* v5.0.4

* Update layout-primitives.mdx (#936)

* fix onChange() and onBlur() types for FilePicker (#941)

* Fix broken Icon docs with non-existent condition (#950)

* fix undefined props merging and list styles (#959)

* fix input height regression on text field (#960)

* v5.0.5

* add StackingOrder and Code appearance typedefs (#961)

* add StackingOrder and Code appearance typedefs

* Update index.d.ts

* fix menu disable items functionality and appearence (#954)

* fix menu disable items functionality and appearence

* added disabled prop to type definition of MenuItem

* fix classnames overwrites in Tab, TagInput, FilePicker, TextDropdown (#953)

* fix unnecessary re-renders for popover component (#945)

* Add missing disabled property to SegmentedControlOwnProps interface (#935)

* v5.0.6

* fix Popover focus issues (#962)

* Forward TextareaField ref (#987)

* update PR template (#1007)

* Clear up tooltip timeouts on mouse leave (#1011)

* Fixup incorrect icon usage on Menu docs (#1013)

* Update Dialog "title" prop type in declaration file (#1012)

* Update Dialog title prop in declaration file

* Update index.d.ts

Co-authored-by: Allen Kleiner <akleiner24@gmail.com>

* v5.1.0

* Fix error caused when bringFocusInside is called outside an event handler (#1022)

* v5.1.1

* Fix `github` link on the select docs page (#1031)

* Update PULL_REQUEST_TEMPLATE.md

* Quick fix of bad merge

* Quick fixes

* add back ref

* Couple of tweaks/fixes

Co-authored-by: Dave <wangcch.cc@gmail.com>
Co-authored-by: Stijn Seghers <stijnseghers@gmail.com>
Co-authored-by: Vadim Demedes <vdemedes@gmail.com>
Co-authored-by: Muhammad Athar <muhammad.athar@outlook.co.th>
Co-authored-by: Tushar Sharma <ts17995@gmail.com>
Co-authored-by: Allen Kleiner <akleiner24@gmail.com>
Co-authored-by: Matt Shwery <matthew.shwery@segment.com>
Co-authored-by: Matt Shwery <mshwery@gmail.com>
Co-authored-by: David Kiss <david.kiss@bitrise.io>
Co-authored-by: Sepehr Sobhani <sepehr411@gmail.com>
Co-authored-by: William Grosset <16131737+williamgrosset@users.noreply.github.com>

* Remove references to deprecated `tokens` in the default theme (#1044)

* Add types for `deprecatedDefaultTheme` that was introduced in #1042 (#1045)

* Add types for `deprecatedDefaultTheme` that was introduced in #1042

* add back headings

* V6 use clickable (#1038)

* Start adding strongly typed props for building theme objects (#1043)

* v6.0.0-8

* Add back <SidebarTab /> with a deprecation warning in favor for <Tab />` (#1047)

* [ts-migrate][.] Init tsconfig.json file

Co-authored-by: ts-migrate <>

* [ts-migrate][.] Init tsconfig.json file

Co-authored-by: ts-migrate <>

* Add back <SidebarTab /> with a deprecation warning in favor for <Tab />`

* Add back <SidebarTab /> with a deprecation warning in favor for <Tab />`

* remove stale tsconfig lol

* updates to types

* Fix exported v6 types (#1049)

* [ts-migrate][.] Init tsconfig.json file

Co-authored-by: ts-migrate <>

* [ts-migrate][.] Init tsconfig.json file

Co-authored-by: ts-migrate <>

* v6.0.0-9

v6.0.0-10

Fix up exported types for v6

updates

* v6.0.0-11

* Fixup classic button / text input styles + make button default theme backwards-compat (#1052)

* Fix up classic theme button / text input styles, make default button theme backwards-compat

* rm stray comment

* add some tiny tests for buttons

* simplify snapshots

* Backport dynamic text sizing for non-size usage in Button and TextInput (#1056)

* v6.0.0-12

* Fix default height for the filepicker (#1059)

* Fix default height for the filepicker

* fix snapshots

* Fix button prop type errors for classic theme  (#1060)

* Fix numeric border box prop in the button classic theme

* update snaps

* Fix TextInput / Textarea line height + invalid focus state (#1061)

* Pull input line heights from the theme

* Fix visual bugs related to <TextInput /> and <Textarea />

* add again

* update snaps

* Initial pass bringing the `classicTheme` implementation closer to what it should be (#1064)

* First round of design polish for the classic theme

* rm input hover

* fix snapshot

* updates

* add back has checked icon

* v6.0.0-13

* [Default theme] Fix input focus rings to just be for default appearance 3ef0c83 (#1067)

* [Default theme] Fix input focus rings to just be for default appearance

* update snap

* Update option to use style config (#1070)

* Update option to use style config

* Fix color story

* a little more clean up

* Fix typo

* little layout fix

* Enable pseudo selectors as children within styleconfig

* Revert "Enable pseudo selectors as children within styleconfig"

This reverts commit 6d9f06a.

* Remove classname from Option

* Break apart theme styles for Dialog - DialogHeader, DialogBody, DialogFooter (#1071)

* v6.0.0-14

* Tighten up classic theme tooltip padding (#1073)

* Smattering of bug fixes across Menus, SelectMenu, and FormField (#1075)

* Smattering of bug fixes across Menus, SelectMenu, and FormField

* fix select behavior

* fix default theme button states too

* Make classic theme the fallback theme coming from the theme context (#1074)

* Make classic theme the fallback theme coming from the theme context

* update snaps

* bump size limit for now

* Update Table Head to appear as expected in themes (#1077)

* Move `<Tab />` spacing into theme (#1076)

* Move `<Tab />` spacing into theme

* Add missing disabled styles to `<Tab />`

* v6.0.0-15

* Remove explicit `type` set on `<Button />` (#1082)

* Remove explicit `type` set on `<Button />`

* update snaps

* v6.0.0-16

* Fixup paragraph line height and table row selected color in classic theme (#1085)

* Bring default theme headings + font weights closer to spec  (#1083)

* Make all headings 600 font-weight in the default theme

* updates

* v6.0.0-17

* Some more slight tweaks to line height

* v6.0.0-18

* Some fixes to alert (#1086)

* Some fixes to alert

* Update snapshots

* v6.0.0-19

* Fix tabs to correctly justify content (#1087)

* Fix default buttons intents (#1088)

* Fix default buttons intents

* Update snapshots

* v6.0.0-20

* Quick fix for vertical tabs (#1089)

* v6.0.0-21

* Fix color of headings in default theme (#1090)

* Fix color of headings in default theme

* remove link underline in default theme

* v6.0.0-22

* Migrate `<Label />` away from using `<Text />` (#1091)

* Migrate `<Label />` away from using `<Text />`

* Decouple styling of Label from Heading

* v6.0.0-23

* Bring default links fully in-line with specs (#1098)

* v6.0.0-24

* Fixup options list searchable header cell height (#1103)

* v6.0.0-25

* Add `Table` style config key, and add v6 table styles (#1104)

* v6.0.0-26

* Fix table blur on undefined (#1111)

* v6.0.0-27

* Add HTML title attributes to table text cells (#1112)

* Resolve circular dependencies in the theme objects (#1113)

* v6.0.0-28

* Add some baseline testing to our typography components (#1118)

* Add some baseline testing to our typography components

* guarantee css rule order and update snaps

* more updates

* updates

* v6.0.0-29

* Move @testing-library/react to dev deps and deduplicate deps (#1119)

* v6.0.0-30

* Make the default theme the primary theme in theme context (#1124)

* Make the default theme the primary theme in theme context

* update snaps..

* ok lets try this again

* v6.0.0-31

* [v6] allow free entry autocomplete (#1145)

* v6.0.0-32

* Allow button to accept color prop (#1147)

* Allow button to accept color prop

* Add storybook example

* v6.0.0-33

* forward ref to input on SearchInput (#1149)

* A few polish fixes for components in the v6 theme (#1150)

* v6.0.0-34

* Custom item renderer for select menu (#1151)

* Custom item renderer for select menu

* Add prop comments

* Update typescript types

* Tweaks to props to avoid breaking change

* Export Option, update select menu

* types, and bump size limit

* v6.0.0-35

* Fix types

* v6.0.0-36

* Update Select Menu types

* v6.0.0-37

* Fix Option Type

* v6.0.0-38

* Fix export of Option

* v6.0.0-39

* Add auto complete renderer to resolve bug (#1154)

* Add auto complete renderer to resolve bug

* Slight tweak

* rm unused render method, fix image import

* v6.0.0-40

* Add Pagination and usePaginationBehavior to Evergreen (#1157)

* v6.0.0-41

* Add Pulsar and Nudge

* Revert "Add Pulsar and Nudge"

This reverts commit e72a73b.

* Add Pulsar and Nudge (#1161)

* Add Pulsar and Nudge

* Bump size limit to support new components

* Update index.d.ts

Co-authored-by: Allen Kleiner <akleiner24@gmail.com>

* v6.0.0-42

* Call `onBeforeCose` before closing overlay (#1162)

* Call `onBeforeClose` before closing overlay

* Add test case to storybook

* v6.0.0-43

* Set value when children are updated (#1176)

* Set value when children are updated

* use value instead of children

* v6.0.0-44

* v6.0.0-45

* New docs site in preparation for launching v6  (#1188)

* WIP - new docs site and nextjs!

* Updates to SSR document, add top nav with active links

* more progress -- scaffolding for individual component pages

* Set up live previews and properly parse markdown

* Update code example styling - stub out Open in CodeSandbox

* Update / modernize all code examples to use hooks

* Re-work layout to support persistent side nav and top header

* Properly handle open-in-codesandbox functionality

* Clean up stray find + replace examples throughout the docs

* Make introduction headings top-level heading

* Update more examples to not reference old state value

* Add github link to the component docs

* Fixup component sidenav cutting off + menu / tabs docs

* Cleaning up old references of `setState` across docs examples

* Actually scaffold out the props page

* Add description to all components and show in page header

* Move components folder structure. Add sidenav to Component homepage

* Flatten Components IA

* Modify sorting method for Component list so the result is consistent
'

* Add new component thumbnail images. Pull Thumbnail into a separate component

* Add description for Component homepage. Tweak spacing in sidebar

* Move SideNav into a component

* Add Patterns homepage and a placeholder for Empty States pattern

* Refine footer

* Add back consent manager

* Add thumbnails for Portal, Positioner, Form Fields

* Add a Resources page

* Update individual docs to get a clean green build

* Add Foundations page with old thumbnails

* Add Introductions barebone pages.

* Add props table and fix routing for component -> props views

* Fix foundations static path name

* rm themeing file to get clean build

* Moving around a bunch of documentation examples, get props table up + running

* Turn off fallback rendering to enable static deployments

* Update commands in the package json

* Add ability to search over foundation and components pages

* Add missing import

* fix up small type errors in patterns / components pages

* Monkey-patch a bunch of loose-hanging TS errors

* V6 docs homepage (#1174)

* Add Core values section

* Add Get Started section.

* Add Design Language section. Update Foundation thumbnails

* Add Resources section

* Add Hero section, still need to add animation

* Address PR feedback. Move svg into components

* Add searching to foundations

* Add hero animation

* Scale up Lottie animation 20%

* Update a few images

* Move introductions/ to introduction/ and update all routes

* Add scoped eslint to the docs site + relevant rules

* Add scoped eslint to the docs site + relevant rules

* Add prettier, as well

* Add vscode in the subdir, as well

* Move layers, icons, and typography back into foundations

* Rename buttons.mdx -> button.mdx

* Fix file picker path in IA

* Fix sidebar jumping when switching between detail on props tab on Component page

* Description above props tab should stay consistent

* Increase space between top nav items. Add pointer cursor to Evergreen logo

* Fixing up some VSCode DX, adding getting started page, static syntax highlighting support

* Reorder intro elements

* Add a new theme for the code editor, start on color swatch

* Add small examples to the color palette

* Change code editor color theme

* Some fixes to typography, and properly account for foundations props

* Consolidate the layout component

* Change inline code style and clean up Alert docs

* Revert to better spacing practice

* Clean up content up until Radio

* Add entity overview template, and clean up much of the [id] route rendering logic

* Fixup Props Table spacing and update some styling

* Template-ize props pages

* Add some basic theming documentation

* Clean up some back-half of the documentation

* Add Coming Soon page

* Add support for side nav scrolling into view if needed

* Move around logic for coming soon UI

* Set default thumbnail to colored. Update images

* Get Started on homepage goes to get started page

* Fixup remaining odds-and-ends for building the site statically

* Add fixtures

* Move docs-v2 over to docs/

* Update to include public assets for new docs site

* Thumbnails and copy changes

* Fixup padding in playground

* Style changes to prop inline code

* Adjust padding so there's breathing room when the screen is smaller

* Fine tune code font style

* Add back what is new page

* Fixup some button docs

Co-authored-by: Kate Hsiao <kamebkj@gmail.com>

* Update

* Swap github workflwos for circle

* Add back circle config until we can unhook builds from eg

* Prettier updates

* Run prettier again across the codebase

* Fix missing export

* bump up size limit

* Bump npmrc

* Update sidenav logic to generate links as-is

* V6 minor documentation fixes (#1192)

* Bump npmrc

* Add metadata and favicon

* Add content to whats new

* Add Pagination component

* Add thumbnail for Pulsar

* Update metadata images with the new green

* Update sidenav logic to generate links as-is

* Tweak padding for homehero

* Update evergreen-logo svg

* Minor fixup

* Temporarily clean up props from the foundations page

Co-authored-by: Allen Kleiner <akleiner24@gmail.com>

* Add CNAME to the public dir, replace og-image

* Remove tabs from foundations pages altogether

* Fix component props for undefined props table

* Add no-jekyll to docs

* Add CDN hosting for static assets

Co-authored-by: Matt Shwery <matthew.shwery@segment.com>
Co-authored-by: colinlohner <colin@colinlohner.com>
Co-authored-by: Matt Shwery <mshwery@gmail.com>
Co-authored-by: Dave <wangcch.cc@gmail.com>
Co-authored-by: Stijn Seghers <stijnseghers@gmail.com>
Co-authored-by: Vadim Demedes <vdemedes@gmail.com>
Co-authored-by: Muhammad Athar <muhammad.athar@outlook.co.th>
Co-authored-by: Tushar Sharma <ts17995@gmail.com>
Co-authored-by: David Kiss <david.kiss@bitrise.io>
Co-authored-by: Sepehr Sobhani <sepehr411@gmail.com>
Co-authored-by: William Grosset <16131737+williamgrosset@users.noreply.github.com>
Co-authored-by: Vadim Demedes <vadimdemedes@hey.com>
Co-authored-by: Catherine Ligad <catherine.ligad@segment.com>
Co-authored-by: Kate Hsiao <kamebkj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants