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

Add forwardRef to DrawerBody #1166

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Conversation

domschab23
Copy link
Contributor

@domschab23 domschab23 commented Mar 14, 2024

Need to pass a ref to this component to not show google places autocomplete when scrolling; rough idea in this PR https://github.com/user-interviews/rails-server/pull/24206

Copy link
Collaborator

@kyleshike kyleshike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like we're exposing the internals of the DS (which is generally best to avoid) in order to handle a pretty unique edge case in rails server. Can you elaborate a bit on the problem this is solving?

@domschab23
Copy link
Contributor Author

This feels like we're exposing the internals of the DS (which is generally best to avoid) in order to handle a pretty unique edge case in rails server. Can you elaborate a bit on the problem this is solving?

This aims to to fix this behavior when scrolling

before.mov

with this PR https://github.com/user-interviews/rails-server/pull/24206/files you now have this

Screen.Recording.2024-03-14.at.10.34.18.AM.mov

I need to listed to a DrawerBody scrolling event since that's where the scrolling happens for a drawer per our css https://github.com/user-interviews/ui-design-system/blob/develop/src/Drawer/DrawerBody.scss#L3

Happy to fix it in some other way if there are other better ideas!

Copy link
Collaborator

@jasonbasuil jasonbasuil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like we're exposing the internals of the DS

@kyleshike could you elaborate a bit more on this? Is it mainly just giving the ability to access another DOM element for a very specific use case? We use forwardRef on 8 other components but would kinda agree it's a specific edge case for this container component, but generally fine if it fixes the issue Dom noted.

@kyleshike
Copy link
Collaborator

I guess I just feel like forwardRef gives something to this library's consumers that points to a very mutable internal of this component (the dom node itself, on which any number of actions can be taken that we may or may not want to be possible). To me, it's similar to the question of providing a className property vs supporting variants. The second of these two yields a stricter interface.

In this case, would it be possible (and maybe preferred) to add an onScroll property to this component instead?

Copy link
Collaborator

@kyleshike kyleshike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some considerations that might be worthwhile here in terms of DS component design generally, primarily when we should forward a ref and when we shouldn't. But I don't think this needs to block you fixing this bug. If we decide on a heuristic here that changes this behavior, we'll just make a note to address this specific use of the drawer body

@jasonbasuil jasonbasuil self-requested a review March 14, 2024 18:01
@jasonbasuil jasonbasuil merged commit da63331 into develop Mar 14, 2024
2 checks passed
@jasonbasuil jasonbasuil deleted the chore/add-forward-ref-drawer-body branch March 14, 2024 18:08
@gabescarbrough
Copy link
Contributor

I'm generally of the opinion that we shouldn't be forwarding refs within DS components. Doing so is kind of creating a contract saying "you can expect this element to exist and do whatever you want with it" and that's really not a promise we want to make since individual elements within the component are implementation details that could change. In this case I think its unlikely to change since this component is pretty much a wrapper for styling but its still not a great pattern.

Given we're already doing that elsewhere its not the worst thing in the world to allow it here now but I'd prefer if we stopped forwarding refs when we hit 3.0 since its a breaking change to remove them.

In this case, would it be possible (and maybe preferred) to add an onScroll property to this component instead?

That's what I would prefer. Providing onScroll doesn't tie it directly to a specific DOM element. If the internals change later you can move the listener to the DOM element that is now relevant and not break the contract with the components using the DS component and the onScroll prop.

@domschab23
Copy link
Contributor Author

The only annoying thing with onScrollproposal here is that I really want to add handleScroll to the to app/javascript/common/deprecated/form/google_places_autocomplete_field/google_places_autocomplete_field.jsx here
https://github.com/user-interviews/rails-server/pull/24206/files

which is a nested child component of a DrawerBody. That sort of decouples the logic for scrolling that's very specific for google_places_autocomplete_field.jsx component and would move it to where I have DrawerBodydefined. If you want to reuse google_places_autocomplete_field.jsx somewhere else then you'd lose that handleScroll logic and would always have to implement and repeat yourself when you have other DrawerBody's or any other parent scrollable elements. That doesn't seem like a good solution

@gabescarbrough
Copy link
Contributor

Yeah that does sound annoying. The root issue is with with GooglePlacesAutocompleteField not displaying correctly though. Using the ref (or even onScroll) to hide the autocomplete makes the issue less apparent but really the autocomplete should stay put on its own.

Given GooglePlacesAutocompleteField is a deprecated component the long-term solution is probably to create a Google Places autocomplete field that displays correctly and we actively maintain. I get why that would be out of scope of fixing this bug, but we should generally avoid refs wherever possible. They're more of an escape hatch than a tool you want to use often.

@gabescarbrough
Copy link
Contributor

After saying that I referred to the React docs for when they recommend using refs and was reminded that they are actually documented in a section called Escape Hatches.

@domschab23
Copy link
Contributor Author

Yeah that does sound annoying. The root issue is with with GooglePlacesAutocompleteField not displaying correctly though. Using the ref (or even onScroll) to hide the autocomplete makes the issue less apparent but really the autocomplete should stay put on its own.

Given GooglePlacesAutocompleteField is a deprecated component the long-term solution is probably to create a Google Places autocomplete field that displays correctly and we actively maintain. I get why that would be out of scope of fixing this bug, but we should generally avoid refs wherever possible. They're more of an escape hatch than a tool you want to use often.

100%. We could create our own DS component where we fully control the css with google Autocomplete API to get the data

https://developers.google.com/maps/documentation/places/web-service/autocomplete

jasonbasuil pushed a commit that referenced this pull request Mar 25, 2024
* add forwardRef to DrawerBody (#1166)

* Bump sanitize-html from 2.11.0 to 2.12.1 (#1163)

* Bump webpack-dev-middleware from 6.1.1 to 6.1.2 (#1167)

* Provides CSS properties for typography, layout and color (#1168)
kyleshike added a commit that referenced this pull request Jul 1, 2024
* add unstyled variant to DropdownToggle (#704)

* Merge release/1.33.0 into develop branch (#710)

* add disabled ToggleInput story (#713)

* Accordion updates for better content flexibility and alignment with Card (#708)

* Merge release/1.34.0 into develop branch (#720)

* Add label for Pill close button (#722)

* remove prop spread on Accordion and ToggleInput, expose additional props as needed (#724)

* update custom select Option to allow for indeterminate state on CheckboxButton (#727)

* Merge release/1.34.1 into develop branch (#729)

* CheckboxButtonGroup and RadioButtonGroup state and width updates  (#731)

* Merge release/1.34.2 into develop branch (#735)

* Added ability to pass a `trailingIcon` to `ProfileCell` (#733)

* Merge release/1.34.3 into develop branch (#741)

* make modal prop work with all Selects (#743)

* Fix color system JS variable order (#739)

closes #738

Fixes the 500 level color values for green and navy. This is because the variables for 500 were used as the
non-numbered values but those don't always correspond to the 500 value.
I set them all to the 500 variables for consistency.

* Merge release/1.35.0 into develop branch (#745)

* Add aria-label for trailingIconOnClickSubmit Input (#751)

* add Grid components (Container, Row, Col) (#750)

* add Popover (proof of concept) (#717)

* Merge release/1.36.0 into develop branch (#754)

* change width to max-width on Card (#756)

* Merge release/1.36.1 into develop branch (#758)

* Use default color for input label tooltips (#761)

* update cursor to pointer on select control (#765)

* add CardStack (#763)

* Merge release/1.36.2 into develop branch (#770)

* Bump loader-utils from 1.4.0 to 1.4.1 (#775)

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* remove CardContainer and CardList (#772)

* add OptionWithDescription for selects (#774)

* Merge release/1.36.3 into develop branch (#779)

* add Main layout component (#777)

* add labelDescription to OptionWithDescription (#786)

* add Flex component (#781)

* Merge release/1.37.0 into develop branch (#788)

* update TableCell compact variant to 0.75rem top padding (#793)

* Bump loader-utils from 1.4.1 to 1.4.2 (#782)

* add red Pill color (#790)

* Add Text and Heading components (#785)

* Merge release/1.38.0 into develop branch (#797)

* add LoadingSkeleton (#800)

* Adding contentCenterOverflow prop to LoadingOverlay (#802)

* Merge release/1.38.1 into develop branch (#804)

* import skeleton.css directly to LoadingSkeleton (#806)

* Merge release/1.38.2 into develop branch (#808)

* Adding optional props to Tabs component (#811)

* Merge release/1.38.3 into develop branch (#813)

* add Grouped Options story for SingleSelect (#816)

* Bump express from 4.17.1 to 4.18.2 (#795)

Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](expressjs/express@4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump decode-uri-component from 0.2.0 to 0.2.2 (#794)

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump qs from 6.5.2 to 6.5.3 (#791)

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* some README cleanup (#817)

* add pre-built loading skeleton to Card (#821)

* Merge release/1.38.4 into develop branch (#823)

* make inputId required on Select components (#827)

* Bump http-cache-semantics from 4.1.0 to 4.1.1 (#828)

Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* export Main from DS (#831)

* add loading state to Button (#833)

* Merge release/1.39.0 into develop branch (#835)

* set Button focus outline to only keyboard (#839)

* Update setMessage to accept object in useToast.js and add Toast.mdx doc file (#838)

Update setMessage in useToast.jsx to expect an object with message, title, action, and type keys and become order agnostic.  Add Toast.mdx file with Props table and useToast documentation.

* Merge release/1.40.0 into develop branch (#841)

* Add bugsnag config to DS and handle toast arg error (#845)

Add bugsnag configuration to DS in order to handle toast arg error.

If users make a function call to useToast with the incorrect arg signature, it will trigger a bugsnag report. Eventually we hope to remove this error handling once we are confident we have correctly updated all use cases within rails-server.

* use focus-visible for AccordionToggle focus state (#847)

* update transparent button active bg color (#843)

* add ProfileCellSkeleton (#825)

* Merge release/1.41.0 into develop branch (#852)

* Move react-scripts to devDependencies (#854)

* enforce storybook v6.2.1 (#864)

* Button height and typography updates (#849)

* add conditional removeBorderLeft, update Alert padding (#858)

* add conditional removeBorderLeft, update Alert padding (#858)

* Revert "Button height and typography updates (#849)" (#873)

This reverts commit 5fc8bfe.

* upgrade to bugsnag 7 (#871)

upgrade bugsnag JS to v7 and moved bugsnag to peerDependencies instead of top level dependencies

* Merge release/1.41.1 into develop branch (#875)

* button size updates (previously reverted) (#876)

* Revert "button size updates (previously reverted) (#876)" (#880)

* remove Bugsnag (#878)

* Merge release/1.42.0 into develop branch (#882)

* add TableLoadingSkeleton (#869)

* update Input placeholder color to gray-700 (#866)

* use UI logo for favicon (#884)

* add DropdownDivider and destructive DropdownItem variant (#860)

* Merge release/1.42.1 into develop branch (#886)

* add fa-fw to DropdownItem (#890)

* Improve outline transparent button disabled state (#894)

closes #893

- Make `outline-transparent` disabled more obvious based on Veronica's design
- Add `disabled` Button examples in Storybook

* Merge release/1.42.2 into develop branch (#896)

* Bug/746 fix asyncselect modal stories (#892)

Fix Select > In Modal stories to add realistic modal behavior and fix annoying display issue

* Add drawer component (#900)

closes #897

Adds a `Drawer` component and corresponding `DrawerHeader`, `DrawerBody` and `DrawerFooter` child components.

* upgrade Bootstrap 5.1 (#902)

* Merge release/1.43.0 into develop branch (#904)

* Drawer/Fix DrawerFooter onPrimaryAction click handler (#908)

* Merge release/1.43.1 into develop branch (#910)

* add Spacing stories to foundations (#914)

* Improve Drawer breakpoints on tablets (#921)

Closes #920

* The breakpoints weren't working as intended on tablet sized screens. Improved the media queries so when the screen size hits the width of the drawer the drawer becomes 100% width, for all size variants.
* Switched to standard media queries instead of Bootstrap's mixin since we don't use it elsewhere

* Storybook 7 upgrade (#911)

* move btn-focus-outline--dark-bg to buttons styles (#917)

* add TableFoot, update TableCell hover, and allow stickyRowBottom (#916)

* bump node version max to 19 (#926)

* remove unused react-scripts (#928)

* Merge release/2.0.0-rc into develop branch (#932)

* fix bad merge that included old SB6 duplicate docs (#934)

* Merge release/2.0.0-rc1 into develop branch (#936)

* Merge release/2.0.0 into develop branch (#938)

* Add loading props to DrawerFooter actions (#942)

1. Add isLoading and loadingText props for primary and secondary actions
2. Make order of props and propTypes consistent

* change Chromatic build deploy on main branch (#944)

* add EmptyState component (#939)

* Update module resolver to resolve dependabot (#945)

* Merge release/2.0.1 into develop branch (#947)

* Move deploy to GitHub actions (#950)

* add MoneyInput component (#951)

* add IconButton (#953)

* Merge release/2.0.2 into develop branch (#955)

* export IconButton (#957)

* Merge release/2.0.3 into develop branch (#959)

* add feature variant to Alert / Callout, unpublish announcement variant (#963)

* Merge release/2.0.4 into develop branch (#965)

* add target to Alert action (#974)

* Bump word-wrap from 1.2.3 to 1.2.4 (#976)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump semver from 5.7.1 to 5.7.2 (#967)

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tough-cookie from 4.1.2 to 4.1.3 (#966)

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](salesforce/tough-cookie@v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add RichTextEditor component (#972)

Adds a RichTextEditor component to input and edit text with formatting. Currently supports bold, italic, link, unordered list, and ordered list.

* Merge release/2.1.0 into develop branch (#978)

* upgrade FontAwesome v6.4.0 (#980)

* ensure EmptyState title and subtitle have same margin-bottom (#984)

* Adding lateral style icon and collapsed text (#986)

* Merge release/2.1.1 into develop branch (#988)

* Update issue templates (#995)

* Create -ui-design-system--pr.md (#996)

* uses yalc for linking the DS to RS (#1000)

* Bump @adobe/css-tools from 4.2.0 to 4.3.1 (#989)

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* upgrade storybook to 7.4.1 (#1005)

* add TypeScript (#992)

* add TypeScript packages

* add tsconfig.json

* update storybook/main.js

* add preset-typescript to babelrc

* add build-ts script

* update tsconfig.json

* add dummy TestPill component

* Fixes up TS config (#993)

* convert EmptyState to TS and remove demo TestPill

* update EmptyStateProps

* use relative import for Heading and Text in EmptyState

* add react/jsx-filename-extension to .eslintrc

* remove test copy

* trailing comma

* bring types/react-dom version down to ^16

---------

Co-authored-by: Kyle Shike <[email protected]>

* upgrade dependencies for semver (#1010)

* upgrade nodemon

* upgrade eslint

* remove eslint-import-resolver-webpack

* try make-dir resolve to 3.1.0

* change make-dir to version 4

* update css-loader 4.3.0

* try semver resolutions

* add normalize-package-data resolution to ^3.0.0

* add istanbul-lib-instrument resolution to ^6.0.0

* yarn.lock update post merge

* add @babel/helper-create-regexp-features-plugin to resolutions

* adds necessary final step for unlinking rs (#1011)

* Merge release/2.2.0 into develop branch (#1015)

* convert Heading component to TypeScript (#1017)

* convert Flex component to TypeScript (#1018)

* Migrates Tabs component to TS  and CSS modules (#1038)

* remove jest mock functions from stories (#1040)

* Fixes storybook webpack config (#1042)

* re-write components without styled-components (#1043)

* Merge release/2.2.2 into develop branch (#1045)

* upgrade css-loader (#1050)

* Bump postcss from 8.4.29 to 8.4.31 (#1051)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.29 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.29...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fixes Bootstrap classname collision in Tabs component for Rails Server (#1049)

* Fixes prop name in Tabs (#1052)

Prevents tab class name prop from getting overridden.

* add trailingText to Input component (#1056)

* Allow drawer to be expanded by default (#1057)

* Merge release/2.2.3 into develop branch (#1059)

* Bump postcss from 8.4.29 to 8.4.31 (#1060)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.29 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.29...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Use modal backdrop z index on drawer backdrop (#1063)

* use Inter font (#1062)

* FormGroup - update helper text, focus states (#1066)

* remove window from Avatar classname (#1068)

* add border to Card under Synthesized class (#1071)

* Add Synthesis colors from Figma (#1069)

* add pointer to CheckboxButton and RadioButton (#1074)

* update Button to use Synthesis colors (#1076)

* Implements Synthesis styles for tabs component (#1077)

* Implements Synthesis styles for Select component (#1079)

* Synthesize Alert / Toast colors (#1080)

* Merge release/2.3.0 into develop branch (#1082)

* FormGroup helperText prop type as node (#1087)

* Merge release/2.3.1 into develop branch (#1089)

* Bump @adobe/css-tools from 4.3.1 to 4.3.2 (#1085)

* remove box shadow from MoneyInput, add step and prefix props (#1094)

* update DropdownItem hover state, remove danger variant (#1091)

* give default sizes to levels, make weight optional, add notes to props (#1096)

* Merge release/2.4.0 into develop branch (#1099)

* remove font-weight: 100 (#1102)

* swap rem values for px values (#1104)

* Adds template variables to RichTextEditor (#1105)

* adds max height to template variable popup in RTE (#1106)

* Fixes persistence of template vars (#1109)

* Merge release/2.4.1 into develop branch (#1111)

* update Toast dismiss timing (#1115)

* Merge release/2.4.2 into develop branch (#1117)

* add Synthesis spacing variables (#1123)

* add warning and error tooltips (#1126)

* Merge release/2.4.3 into develop branch (#1129)

* add image support for EmptyState (#1132)

* Merge release/2.4.4 into develop branch (#1134)

* Converts RichTextEditor to TS, replaces templateVariables prop with customExtensions prop (#1121)

* Convert Button to TS (#1138)

* Merge release/2.5.0 into develop branch (#1142)

* remove duplicate JS files RTE (#1143)

* Prepare release 2.5.1 (#1145)

* Prepare release 2.5.2 (#1147)

* Merge release/2.5.2a into develop branch (#1149)

* Allow prop type node for Card title (#1150)

* Fix DropdownToggle focus color (#1154)

Changes the styles to what we expected, which is that if you click the button to open the dropdown and then click it to close it the button goes back to the original color as opposed to staying the focused color

* IconButton: expose loading props (#1152)

* Bump ip from 2.0.0 to 2.0.1 (#1155)

* Bump ip from 2.0.0 to 2.0.1

Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](indutny/node-ip@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Attempt to fix running specs

* Update other actions to match new format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bob Saris <[email protected]>

* remove warning and danger Button variants from docs (#1158)

* Disable drawer background scrolling if drawer has background overlay (#1156)

* Merge release/2.6.0 into develop branch (#1162)

* add forwardRef to DrawerBody (#1166)

* Bump sanitize-html from 2.11.0 to 2.12.1 (#1163)

* Bump webpack-dev-middleware from 6.1.1 to 6.1.2 (#1167)

* Provides CSS properties for typography, layout and color (#1168)

* Merge release/2.6.1 into develop branch (#1170)

* Update RichTextEditor to be a forwardRef and expose setContent through useImperativeHandle (#1173)

* Bump express from 4.18.2 to 4.19.2 (#1171)

* Converts Card to typescript (#1160)

* Merge release/2.7.0 into develop branch (#1175)

* Fixes Card import resolution (#1176)

* Merge release/2.7.1 into develop branch (#1178)

* Removes knobs from Storybook stories (#1172)

* Upgrade Storybook to v8.0.5 (#1179)

* add tertiary Button variant (#1186)

* Improves hover state of tabs to avoid content shifting (#1184)

* Prepare release 2.7.2 (#1188)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Bump tar from 6.2.0 to 6.2.1 (#1183)

Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v6.2.0...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Updates FontAwesome peer deps (#1189)

* remove non-synth colors, add borderedMultiValue styles SingleSelect (#1196)

* Add default containerClassName to loading skeleton (#1195)

* Merge release/2.8.0 into develop branch (#1201)

* Merge release/3.0.0 into develop branch (#1216)

Updates Node 20, React 18, Yarn 4

Removes the following which have been marked as deprecated:
1. Alert announcement type
2. Button danger and warning variants
3. DropdownToggle overrides of the above Button variants
4. Remove Sass vars represented as CSS Properties

Also upgrades: 
- babel & storybook
- font awesome
- yarn
- eslint and minor upgrades
- react-dom
- react-toggle

---------

Co-authored-by: Kyle Shike <[email protected]>
Co-authored-by: Jeff Baxendale <[email protected]>
Co-authored-by: Gabe Scarbrough <[email protected]>

* Show helper text in FormGroup regardless of error state (#1209)

* Converts most of the components to TS (#1197)

* fix checkbox button group Sass imports (#1217)

* Update Tiptap to 2.3.1 (#1218)

Updates Tiptap and its associated packages to the latest

This is a minor version bump so there aren't breaking changes in the package's API

Mostly getting bug fixes. Looking at their changelog there are some new features but I didn't see any changes to what we use.

* Enable Dependabot Version Upgrades (#1219)

Allows Dependabot to open up PRs with version upgrades, using a "widen" strategy by default which should be most compatible

* Add DateTimePicker (#1220)

Ports the DateTimePicker over from rails-server

Converted to TypeScript and simplified the props a little bit in the process

* Change Drawer expanded width to 90% (#1221)

* Adds borderedMultiValue prop to Creatable select (#1222)

* Adds responsive FlexContainer component (#1223)

* Fix GH action to work with Yarn 4(#1229)

* Prepare release v3.1.0 (#1231)

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

* Add async searchable multiSelect and searchable multiSelect types (#1228)

* Fixes broken GH workflows (#1232)

* Remove Drawer--open when drawer unmounts (#1227)

* Remove Drawer--open when drawer unmounts

* remove prop types

* Prepare release v3.1.1 (#1234)

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

* Fix default props (#1235)

* Prepare release v3.1.2 (#1237)

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

* Don't include css properties in theme (#1238)

Mainly to keep the downstream misuse of this theme from breaking

* Prepare release v3.1.3 (#1240)

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

* fixes class name redundancies (#1241)

* Allow RichTextEditor to be read-only (#1243)

* Merge release/v3.2.0 into develop branch (#1245)

* Fix aria label on CreateableSelect (#1246)

* Set RichTextEditor value to empty string if editor is empty (#1247)

* Fix Heading default props & stories, fix disabled prop of CreateableSelect (#1248)

* Merge release/v3.2.1 into develop branch (#1250)

* Render disabled select option as disabled (#1252)

* Merge release/v3.2.2 into develop branch (#1254)

* fix button styles for active states (#1256)

* upgrades some deps to address dependabot (#1257)

* Prepare release v3.2.3

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Jason Basuil <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: brianCollinsUI <[email protected]>
Co-authored-by: TJ Barber <[email protected]>
Co-authored-by: Gabe Scarbrough <[email protected]>
Co-authored-by: Kyle Shike <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dominik Schab <[email protected]>
Co-authored-by: Greta Hayes <[email protected]>
Co-authored-by: Gabe Scarbrough <[email protected]>
Co-authored-by: Alex Dzwonchyk <[email protected]>
Co-authored-by: Devin Starks <[email protected]>
Co-authored-by: Bob Saris <[email protected]>
Co-authored-by: Jane Sebastian <[email protected]>
Co-authored-by: Eric Xian <[email protected]>
Co-authored-by: Kyle Shike <[email protected]>
Co-authored-by: Jeff Baxendale <[email protected]>
Co-authored-by: Jeff Baxendale <[email protected]>
Co-authored-by: Oceane <[email protected]>
Co-authored-by: Jack Lieblich <[email protected]>
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.

4 participants