@turquoisehealth/pit-viper 2.105.5 → 2.106.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -192,6 +192,11 @@ class PVAutoClose extends HTMLElement {
192
192
  this.addEventListener('mouseenter', () => this.handleHoverIn());
193
193
  this.addEventListener('mouseleave', () => this.handleHoverOut());
194
194
  document.addEventListener('click', (e) => this.handleMenuClick(e));
195
+ // if data-collapsed is not set, add data-expanded by default
196
+ if (!this.layout.hasAttribute('data-collapsed') && !this.layout.hasAttribute('data-expanded')) {
197
+ this.setState({ 'data-collapsed': false, 'data-expanded': true });
198
+ this.updateIcons(this.minimizeButton, true);
199
+ }
195
200
  }
196
201
 
197
202
  setState(attributes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.105.5",
3
+ "version": "2.106.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {