@turquoisehealth/pit-viper 2.202.2-dev.2 → 2.203.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.
@@ -3930,6 +3930,13 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3930
3930
  :where(.pv-details) > :not(summary):first-of-type {
3931
3931
  margin: 0.5rem 0 0 1.25rem;
3932
3932
  }
3933
+ :where(.pv-details)[data-arrow=right] > summary {
3934
+ padding-inline: 0 1.25rem;
3935
+ background-position: right center;
3936
+ }
3937
+ :where(.pv-details)[data-arrow=right] > :not(summary):first-of-type {
3938
+ margin-inline-start: 0;
3939
+ }
3933
3940
  :where(.pv-details)[open] > summary {
3934
3941
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.455 7.83c.439-.44 1.151-.44 1.59 0L12 13.784l5.954-5.955a1.125 1.125 0 0 1 1.591 1.592l-6.75 6.75c-.439.439-1.151.439-1.59 0l-6.75-6.75a1.125 1.125 0 0 1 0-1.591Z' fill='%2302363D'/%3E%3C/svg%3E");
3935
3942
  }
@@ -5172,7 +5179,9 @@ pv-sidebar {
5172
5179
  }
5173
5180
  .sidebar-layout .pv-nav-list,
5174
5181
  .sidebar-layout .pv-nav-list a,
5175
- .sidebar-layout .pv-nav-list summary {
5182
+ .sidebar-layout .pv-nav-list summary,
5183
+ .sidebar-layout .pv-nav-list .pv-text-inverse,
5184
+ .sidebar-layout .pv-org-switch .pv-text-inverse {
5176
5185
  color: var(--layout-primary-sidebar-text-color) !important;
5177
5186
  }
5178
5187
  .sidebar-layout .pv-nav-list-item {
@@ -5198,7 +5207,7 @@ pv-sidebar {
5198
5207
  top: 0;
5199
5208
  height: 100%;
5200
5209
  z-index: 10;
5201
- overflow: hidden;
5210
+ overflow-x: clip;
5202
5211
  transition: width 0.3s ease-in-out;
5203
5212
  width: 64px;
5204
5213
  }
@@ -5219,6 +5228,7 @@ pv-sidebar {
5219
5228
  padding: 0.75rem 1rem;
5220
5229
  margin-block-end: 0.75rem;
5221
5230
  min-width: 0;
5231
+ gap: 0.5rem;
5222
5232
  }
5223
5233
 
5224
5234
  .sidebar-header-content {
@@ -3936,6 +3936,13 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3936
3936
  :where(.pv-details) > :not(summary):first-of-type {
3937
3937
  margin: 0.5rem 0 0 1.25rem;
3938
3938
  }
3939
+ :where(.pv-details)[data-arrow=right] > summary {
3940
+ padding-inline: 0 1.25rem;
3941
+ background-position: right center;
3942
+ }
3943
+ :where(.pv-details)[data-arrow=right] > :not(summary):first-of-type {
3944
+ margin-inline-start: 0;
3945
+ }
3939
3946
  :where(.pv-details)[open] > summary {
3940
3947
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.455 7.83c.439-.44 1.151-.44 1.59 0L12 13.784l5.954-5.955a1.125 1.125 0 0 1 1.591 1.592l-6.75 6.75c-.439.439-1.151.439-1.59 0l-6.75-6.75a1.125 1.125 0 0 1 0-1.591Z' fill='%2302363D'/%3E%3C/svg%3E");
3941
3948
  }
@@ -3609,6 +3609,13 @@
3609
3609
  .pv-v2 :where(.pv-details) > :not(summary):first-of-type {
3610
3610
  margin: 0.5rem 0 0 1.25rem;
3611
3611
  }
3612
+ .pv-v2 :where(.pv-details)[data-arrow=right] > summary {
3613
+ padding-inline: 0 1.25rem;
3614
+ background-position: right center;
3615
+ }
3616
+ .pv-v2 :where(.pv-details)[data-arrow=right] > :not(summary):first-of-type {
3617
+ margin-inline-start: 0;
3618
+ }
3612
3619
  .pv-v2 :where(.pv-details)[open] > summary {
3613
3620
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.455 7.83c.439-.44 1.151-.44 1.59 0L12 13.784l5.954-5.955a1.125 1.125 0 0 1 1.591 1.592l-6.75 6.75c-.439.439-1.151.439-1.59 0l-6.75-6.75a1.125 1.125 0 0 1 0-1.591Z' fill='%2302363D'/%3E%3C/svg%3E");
3614
3621
  }
@@ -3930,6 +3930,13 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3930
3930
  :where(.pv-details) > :not(summary):first-of-type {
3931
3931
  margin: 0.5rem 0 0 1.25rem;
3932
3932
  }
3933
+ :where(.pv-details)[data-arrow=right] > summary {
3934
+ padding-inline: 0 1.25rem;
3935
+ background-position: right center;
3936
+ }
3937
+ :where(.pv-details)[data-arrow=right] > :not(summary):first-of-type {
3938
+ margin-inline-start: 0;
3939
+ }
3933
3940
  :where(.pv-details)[open] > summary {
3934
3941
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.455 7.83c.439-.44 1.151-.44 1.59 0L12 13.784l5.954-5.955a1.125 1.125 0 0 1 1.591 1.592l-6.75 6.75c-.439.439-1.151.439-1.59 0l-6.75-6.75a1.125 1.125 0 0 1 0-1.591Z' fill='%2302363D'/%3E%3C/svg%3E");
3935
3942
  }
@@ -5172,7 +5179,9 @@ pv-sidebar {
5172
5179
  }
5173
5180
  .sidebar-layout .pv-nav-list,
5174
5181
  .sidebar-layout .pv-nav-list a,
5175
- .sidebar-layout .pv-nav-list summary {
5182
+ .sidebar-layout .pv-nav-list summary,
5183
+ .sidebar-layout .pv-nav-list .pv-text-inverse,
5184
+ .sidebar-layout .pv-org-switch .pv-text-inverse {
5176
5185
  color: var(--layout-primary-sidebar-text-color) !important;
5177
5186
  }
5178
5187
  .sidebar-layout .pv-nav-list-item {
@@ -5198,7 +5207,7 @@ pv-sidebar {
5198
5207
  top: 0;
5199
5208
  height: 100%;
5200
5209
  z-index: 10;
5201
- overflow: hidden;
5210
+ overflow-x: clip;
5202
5211
  transition: width 0.3s ease-in-out;
5203
5212
  width: 64px;
5204
5213
  }
@@ -5219,6 +5228,7 @@ pv-sidebar {
5219
5228
  padding: 0.75rem 1rem;
5220
5229
  margin-block-end: 0.75rem;
5221
5230
  min-width: 0;
5231
+ gap: 0.5rem;
5222
5232
  }
5223
5233
 
5224
5234
  .sidebar-header-content {
@@ -5264,6 +5274,153 @@ pv-sidebar {
5264
5274
  --stroke-accordion-border-left: #D2D8DC;
5265
5275
  }
5266
5276
 
5277
+ .sidebar-layout.is-collapsed:not(.is-floating) .pv-sidebar-nav a,
5278
+ .sidebar-layout.is-collapsed:not(.is-floating) .pv-sidebar-nav summary {
5279
+ width: 2.5rem;
5280
+ padding-inline: 0;
5281
+ justify-content: center;
5282
+ }
5283
+ .sidebar-layout.is-collapsed:not(.is-floating) .pv-sidebar-nav-nested {
5284
+ display: none;
5285
+ }
5286
+
5287
+ .sidebar-layout-primary .pv-sidebar-nav-header,
5288
+ .sidebar-layout-primary .pv-sidebar-nav {
5289
+ --sidebar-nav-text-color: #FFFFFF;
5290
+ --sidebar-nav-hover-bg: #0D5256;
5291
+ --sidebar-nav-hover-text: #FFFFFF;
5292
+ --sidebar-nav-active-bg: #02363D;
5293
+ --sidebar-nav-active-text: #FFFFFF;
5294
+ --sidebar-nav-pressed-bg: #02363D;
5295
+ --sidebar-nav-nested-border: rgba(227, 231, 234, 0.20);
5296
+ --popover-list-item-hover-background-color: #E8F2F4;
5297
+ }
5298
+
5299
+ .sidebar-layout-secondary .pv-sidebar-nav-header,
5300
+ .sidebar-layout-secondary .pv-sidebar-nav {
5301
+ --sidebar-nav-text-color: #121313;
5302
+ --sidebar-nav-hover-bg: #E8F2F4;
5303
+ --sidebar-nav-hover-text: #121313;
5304
+ --sidebar-nav-active-bg: #E8EBEB;
5305
+ --sidebar-nav-active-text: #16696D;
5306
+ --sidebar-nav-pressed-bg: #C7D8DB;
5307
+ --sidebar-nav-nested-border: #D2D8DC;
5308
+ --popover-list-item-hover-background-color: #F3F1EB;
5309
+ }
5310
+
5311
+ .pv-sidebar-nav-header {
5312
+ --sidebar-nav-text-color: #121313;
5313
+ --sidebar-nav-hover-bg: #E8F2F4;
5314
+ display: flex;
5315
+ align-items: center;
5316
+ min-width: 0;
5317
+ width: 100%;
5318
+ color: var(--sidebar-nav-text-color);
5319
+ }
5320
+ .pv-sidebar-nav-header details {
5321
+ position: relative;
5322
+ width: 100%;
5323
+ }
5324
+ .pv-sidebar-nav-header summary {
5325
+ display: flex;
5326
+ align-items: center;
5327
+ gap: 0.5rem;
5328
+ padding: var(--sidebar-nav-header-inset, 2px 4px 2px 0);
5329
+ border-radius: 8px;
5330
+ color: inherit;
5331
+ list-style: none;
5332
+ cursor: pointer;
5333
+ min-width: 0;
5334
+ white-space: nowrap;
5335
+ transition-duration: 0.125s;
5336
+ transition-property: background-color;
5337
+ }
5338
+ .pv-sidebar-nav-header summary:hover {
5339
+ background-color: var(--sidebar-nav-hover-bg);
5340
+ }
5341
+
5342
+ .pv-sidebar-nav {
5343
+ --sidebar-nav-text-color: #121313;
5344
+ --sidebar-nav-hover-bg: #E8F2F4;
5345
+ --sidebar-nav-hover-text: #121313;
5346
+ --sidebar-nav-active-bg: #C7D8DB;
5347
+ --sidebar-nav-active-text: #121313;
5348
+ --sidebar-nav-pressed-bg: #C7D8DB;
5349
+ --sidebar-nav-nested-border: #D2D8DC;
5350
+ display: flex;
5351
+ flex-direction: column;
5352
+ height: 100%;
5353
+ padding-block-end: 1rem;
5354
+ padding-inline: 0.75rem;
5355
+ gap: var(--nav-list-gap, 0.25rem);
5356
+ color: var(--sidebar-nav-text-color);
5357
+ }
5358
+ .pv-sidebar-nav a,
5359
+ .pv-sidebar-nav summary {
5360
+ display: flex;
5361
+ align-items: center;
5362
+ gap: 0.5rem;
5363
+ padding: var(--nav-list-padding, 0.5rem 0.75rem);
5364
+ border-radius: 8px;
5365
+ color: inherit;
5366
+ text-decoration: none;
5367
+ font-size: var(--nav-list-font-size, 0.875rem);
5368
+ font-weight: var(--nav-list-font-weight, 500);
5369
+ line-height: var(--nav-list-line-height, 1.71428571);
5370
+ white-space: nowrap;
5371
+ list-style: none;
5372
+ cursor: pointer;
5373
+ user-select: none;
5374
+ transition-duration: 0.125s;
5375
+ transition-property: background-color;
5376
+ }
5377
+ .pv-sidebar-nav a:hover:not([aria-current=page]), .pv-sidebar-nav a:focus-visible:not([aria-current=page]),
5378
+ .pv-sidebar-nav summary:hover:not([aria-current=page]),
5379
+ .pv-sidebar-nav summary:focus-visible:not([aria-current=page]) {
5380
+ background-color: var(--sidebar-nav-hover-bg);
5381
+ color: var(--sidebar-nav-hover-text);
5382
+ }
5383
+ .pv-sidebar-nav a:active,
5384
+ .pv-sidebar-nav summary:active {
5385
+ background-color: var(--sidebar-nav-pressed-bg);
5386
+ }
5387
+ .pv-sidebar-nav a[aria-current=page],
5388
+ .pv-sidebar-nav summary[aria-current=page] {
5389
+ background-color: var(--sidebar-nav-active-bg);
5390
+ color: var(--sidebar-nav-active-text);
5391
+ }
5392
+ .pv-sidebar-nav details {
5393
+ position: relative;
5394
+ }
5395
+ .pv-sidebar-nav .pv-sidebar-nav-nested {
5396
+ margin-inline-start: 1.25rem;
5397
+ border-inline-start: 1px solid var(--sidebar-nav-nested-border);
5398
+ padding-inline-start: 0.5rem;
5399
+ }
5400
+ .pv-sidebar-nav .pv-sidebar-nav-nested a {
5401
+ border-radius: 8px;
5402
+ }
5403
+ .pv-sidebar-nav .pv-sidebar-nav-footer {
5404
+ margin-block-start: auto;
5405
+ padding-block-start: 0.5rem;
5406
+ display: flex;
5407
+ flex-direction: column;
5408
+ gap: var(--nav-list-gap, 0.25rem);
5409
+ }
5410
+ .pv-sidebar-nav .pv-sidebar-nav-footer details {
5411
+ position: relative;
5412
+ }
5413
+ .pv-sidebar-nav .pv-popover .pv-popover-list a,
5414
+ .pv-sidebar-nav .pv-popover .pv-popover-list label {
5415
+ font-weight: 400;
5416
+ }
5417
+ .pv-sidebar-nav .pv-popover .pv-popover-list a:hover, .pv-sidebar-nav .pv-popover .pv-popover-list a:focus-visible,
5418
+ .pv-sidebar-nav .pv-popover .pv-popover-list label:hover,
5419
+ .pv-sidebar-nav .pv-popover .pv-popover-list label:focus-visible {
5420
+ background-color: var(--popover-list-item-hover-background-color, #E8F2F4);
5421
+ color: #121313;
5422
+ }
5423
+
5267
5424
  .pv-layout-sidebar {
5268
5425
  --sidebar-width: 300px;
5269
5426
  min-height: 100%;
@@ -3935,6 +3935,13 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3935
3935
  :where(.pv-details) > :not(summary):first-of-type {
3936
3936
  margin: 0.5rem 0 0 1.25rem;
3937
3937
  }
3938
+ :where(.pv-details)[data-arrow=right] > summary {
3939
+ padding-inline: 0 1.25rem;
3940
+ background-position: right center;
3941
+ }
3942
+ :where(.pv-details)[data-arrow=right] > :not(summary):first-of-type {
3943
+ margin-inline-start: 0;
3944
+ }
3938
3945
  :where(.pv-details)[open] > summary {
3939
3946
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.455 7.83c.439-.44 1.151-.44 1.59 0L12 13.784l5.954-5.955a1.125 1.125 0 0 1 1.591 1.592l-6.75 6.75c-.439.439-1.151.439-1.59 0l-6.75-6.75a1.125 1.125 0 0 1 0-1.591Z' fill='%2302363D'/%3E%3C/svg%3E");
3940
3947
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.202.2-dev.2",
3
+ "version": "2.203.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {