@turquoisehealth/pit-viper 2.47.0 → 2.48.1

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.
@@ -488,9 +488,11 @@
488
488
  color: var(--button-tertiary-color, #121313);
489
489
  }
490
490
  .pv-v2 .pv-button-tertiary:not(:disabled):hover, .pv-v2 .pv-button-tertiary:not(:disabled):focus-visible {
491
+ color: var(--button-tertiary-hover-color, #121313);
491
492
  background-color: var(--button-tertiary-hover-background-color, #E8F2F4);
492
493
  }
493
494
  .pv-v2 .pv-button-tertiary:not(:disabled):active {
495
+ background-color: var(--button-tertiary-pressed-color, #121313);
494
496
  background-color: var(--button-tertiary-pressed-background-color, #C7D8DB);
495
497
  }
496
498
  .pv-v2 .pv-button-destructive {
@@ -1253,6 +1255,9 @@
1253
1255
  border-radius: var(--selectable-label-small-radius, 4px);
1254
1256
  padding: var(--selectable-label-small-padding, 0.5rem);
1255
1257
  }
1258
+ .pv-v2 .pv-label-selectable-highlight:has(:checked) {
1259
+ background-color: var(--selectable-label-background-color-highlight, #E4F8F6);
1260
+ }
1256
1261
  .pv-v2 .pv-input-small {
1257
1262
  padding: var(--text-input-small-padding, calc(0.25rem - 1px) 0.5rem);
1258
1263
  }
@@ -551,9 +551,11 @@
551
551
  color: var(--button-tertiary-color, #121313);
552
552
  }
553
553
  .pv-button-tertiary:not(:disabled):hover, .pv-button-tertiary:not(:disabled):focus-visible {
554
+ color: var(--button-tertiary-hover-color, #121313);
554
555
  background-color: var(--button-tertiary-hover-background-color, #E8F2F4);
555
556
  }
556
557
  .pv-button-tertiary:not(:disabled):active {
558
+ background-color: var(--button-tertiary-pressed-color, #121313);
557
559
  background-color: var(--button-tertiary-pressed-background-color, #C7D8DB);
558
560
  }
559
561
 
@@ -1358,6 +1360,10 @@ label:has(input:not(:disabled)).pv-label-hover:hover {
1358
1360
  padding: var(--selectable-label-small-padding, 0.5rem);
1359
1361
  }
1360
1362
 
1363
+ .pv-label-selectable-highlight:has(:checked) {
1364
+ background-color: var(--selectable-label-background-color-highlight, #E4F8F6);
1365
+ }
1366
+
1361
1367
  .pv-input-small {
1362
1368
  padding: var(--text-input-small-padding, calc(0.25rem - 1px) 0.5rem);
1363
1369
  }
@@ -556,9 +556,11 @@
556
556
  color: var(--button-tertiary-color, #02363D);
557
557
  }
558
558
  .pv-button-tertiary:not(:disabled):hover, .pv-button-tertiary:not(:disabled):focus-visible {
559
+ color: var(--button-tertiary-hover-color, #02363D);
559
560
  background-color: var(--button-tertiary-hover-background-color, #6FD6CE);
560
561
  }
561
562
  .pv-button-tertiary:not(:disabled):active {
563
+ background-color: var(--button-tertiary-pressed-color, #02363D);
562
564
  background-color: var(--button-tertiary-pressed-background-color, #6FD6CE);
563
565
  }
564
566
 
@@ -1363,6 +1365,10 @@ label:has(input:not(:disabled)).pv-label-hover:hover {
1363
1365
  padding: var(--selectable-label-small-padding, 0.75rem 1.5rem);
1364
1366
  }
1365
1367
 
1368
+ .pv-label-selectable-highlight:has(:checked) {
1369
+ background-color: var(--selectable-label-background-color-highlight, #E4F8F6);
1370
+ }
1371
+
1366
1372
  .pv-input-small {
1367
1373
  padding: var(--text-input-small-padding, 0.25rem 0.5rem);
1368
1374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.47.0",
3
+ "version": "2.48.1",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -38,6 +38,22 @@ tooltipPosition: PvTooltipPositions;
38
38
  ariaLabelledBy: string;
39
39
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
40
40
 
41
+ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
42
+ "update:modelValue": (value: string | boolean) => any;
43
+ }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
44
+ "onUpdate:modelValue"?: ((value: string | boolean) => any) | undefined;
45
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
46
+
47
+ declare const __VLS_component_5: DefineComponent<PvSidePanelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvSidePanelProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
48
+
49
+ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
50
+ "update:modelValue": (value: string) => any;
51
+ }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
52
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
53
+ }>, {
54
+ variant: PvGhostInputVariant;
55
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
56
+
41
57
  declare type __VLS_Props = PvSelectProps;
42
58
 
43
59
  declare type __VLS_Props_2 = PvSearchInputProps;
@@ -48,6 +64,10 @@ declare type __VLS_Props_4 = PvTabsProps;
48
64
 
49
65
  declare type __VLS_Props_5 = PvPaginationProps;
50
66
 
67
+ declare type __VLS_Props_6 = PvSelectableCardProps;
68
+
69
+ declare type __VLS_Props_7 = PvGhostInputProps;
70
+
51
71
  declare type __VLS_PublicProps = {
52
72
  modelValue?: string;
53
73
  } & __VLS_Props;
@@ -68,6 +88,14 @@ declare type __VLS_PublicProps_5 = {
68
88
  modelValue: number;
69
89
  } & __VLS_Props_5;
70
90
 
91
+ declare type __VLS_PublicProps_6 = {
92
+ modelValue?: boolean | string;
93
+ } & __VLS_Props_6;
94
+
95
+ declare type __VLS_PublicProps_7 = {
96
+ modelValue?: string;
97
+ } & __VLS_Props_7;
98
+
71
99
  declare function __VLS_template(): {
72
100
  attrs: Partial<{}>;
73
101
  slots: {
@@ -96,18 +124,65 @@ declare function __VLS_template_3(): {
96
124
  rootEl: HTMLDivElement;
97
125
  };
98
126
 
127
+ declare function __VLS_template_4(): {
128
+ attrs: Partial<{}>;
129
+ slots: {
130
+ default?(_: {}): any;
131
+ };
132
+ refs: {};
133
+ rootEl: HTMLLabelElement;
134
+ };
135
+
136
+ declare function __VLS_template_5(): {
137
+ attrs: Partial<{}>;
138
+ slots: {
139
+ 'left-sidebar'?(_: {}): any;
140
+ main?(_: {}): any;
141
+ 'right-sidebar'?(_: {}): any;
142
+ };
143
+ refs: {};
144
+ rootEl: HTMLDivElement;
145
+ };
146
+
147
+ declare function __VLS_template_6(): {
148
+ attrs: Partial<{}>;
149
+ slots: {
150
+ action?(_: {}): any;
151
+ };
152
+ refs: {};
153
+ rootEl: HTMLDivElement;
154
+ };
155
+
99
156
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
100
157
 
101
158
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
102
159
 
103
160
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
104
161
 
162
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
163
+
164
+ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
165
+
166
+ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
167
+
105
168
  declare type __VLS_WithTemplateSlots<T, S> = T & {
106
169
  new (): {
107
170
  $slots: S;
108
171
  };
109
172
  };
110
173
 
174
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
175
+ new (): {
176
+ $slots: S;
177
+ };
178
+ };
179
+
180
+ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
181
+ new (): {
182
+ $slots: S;
183
+ };
184
+ };
185
+
111
186
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
112
187
  new (): {
113
188
  $slots: S;
@@ -150,6 +225,12 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
150
225
  };
151
226
  };
152
227
 
228
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
229
+ new (): {
230
+ $slots: S;
231
+ };
232
+ };
233
+
153
234
  declare type BannerOrientations = `${BannerOrientationsEnum}`;
154
235
 
155
236
  declare enum BannerOrientationsEnum {
@@ -617,6 +698,17 @@ declare interface PvDropdownProps {
617
698
  teleportLocation?: string;
618
699
  }
619
700
 
701
+ export declare const PvGhostInput: __VLS_WithTemplateSlots_11<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
702
+
703
+ declare interface PvGhostInputProps {
704
+ variant?: PvGhostInputVariant;
705
+ placeholder?: string;
706
+ disabled?: boolean;
707
+ showEditIcon?: boolean;
708
+ }
709
+
710
+ declare type PvGhostInputVariant = PvInputVariants;
711
+
620
712
  export declare const PvIcon: DefineComponent< {
621
713
  name: string;
622
714
  size?: PvIconSize;
@@ -629,6 +721,10 @@ declare type PvIconSize = (typeof PvIconSizes)[number];
629
721
 
630
722
  declare const PvIconSizes: readonly [undefined, 10, 12, 20, 24, 32, 64];
631
723
 
724
+ declare const PvInputVariants: readonly ["h1", "h2", "h3", "h4", "text-md", "text-sm", "text-lg", "caption"];
725
+
726
+ declare type PvInputVariants = (typeof PvInputVariants)[number];
727
+
632
728
  export declare const PvModal: __VLS_WithTemplateSlots_4<DefineComponent< {
633
729
  modelValue: boolean;
634
730
  } & ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -1164,6 +1260,15 @@ default?(_: {}): any;
1164
1260
  }) | null;
1165
1261
  }, HTMLDivElement>;
1166
1262
 
1263
+ export declare const PvSelectableCard: __VLS_WithTemplateSlots_9<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1264
+
1265
+ declare interface PvSelectableCardProps {
1266
+ variant?: "default" | "highlight";
1267
+ value?: string;
1268
+ id?: string;
1269
+ deselect?: boolean;
1270
+ }
1271
+
1167
1272
  export declare const PvSelectButton: DefineComponent< {
1168
1273
  modelValue?: MenuOption_2;
1169
1274
  searchInput?: string;
@@ -1189,6 +1294,7 @@ useTeleport: boolean;
1189
1294
  teleportLocation: string;
1190
1295
  showSearchInput: boolean;
1191
1296
  optionsVariant: MenuOptionsVariant_2;
1297
+ allowDeselect: boolean;
1192
1298
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1193
1299
  'select-button-trigger-ref': CreateComponentPublicInstanceWithMixins<Readonly<PvSelectButtonTrigger> & Readonly<{
1194
1300
  "onHandle-toggle-dropdown"?: (() => any) | undefined;
@@ -1374,14 +1480,14 @@ declare interface PvSelectButton_2 {
1374
1480
  size?: PvSelectButtonSize_2;
1375
1481
  alignment?: "top" | "right" | "top right" | undefined;
1376
1482
  popoverCssProperties?: CSSProperties;
1483
+ prefixLabel?: string;
1377
1484
  label?: string;
1378
- icon?: string;
1379
- companyLogo?: string;
1380
1485
  showMenuAction?: boolean;
1381
1486
  showSearchInput?: boolean;
1382
1487
  optionsVariant?: MenuOptionsVariant_2;
1383
1488
  options: MenuOption_2[];
1384
1489
  useTeleport?: boolean;
1490
+ allowDeselect?: boolean;
1385
1491
  }
1386
1492
 
1387
1493
  declare type PvSelectButtonSize = Extract<PvSize, "lg" | "xl">;
@@ -1394,12 +1500,14 @@ declare interface PvSelectButtonTrigger {
1394
1500
  disabled?: boolean;
1395
1501
  counterPosition?: "left" | "right";
1396
1502
  counterValue?: number;
1503
+ prefixLabel?: string;
1397
1504
  label?: string;
1398
1505
  icon?: string;
1399
1506
  companyLogo?: string;
1400
1507
  showClear?: boolean;
1401
1508
  showDropdown?: boolean;
1402
1509
  open: boolean;
1510
+ isLoading?: boolean;
1403
1511
  }
1404
1512
 
1405
1513
  declare type PvSelectButtonVariant = Extract<PvVariants, "secondary" | "ghost">;
@@ -1421,6 +1529,13 @@ declare interface PvSelectProps {
1421
1529
  triggerCssProperties?: CSSProperties;
1422
1530
  }
1423
1531
 
1532
+ export declare const PvSidePanel: __VLS_WithTemplateSlots_10<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1533
+
1534
+ declare interface PvSidePanelProps {
1535
+ showLeftSidebar?: boolean;
1536
+ showRightSidebar?: boolean;
1537
+ }
1538
+
1424
1539
  declare type PvSize = (typeof PvSizes)[number];
1425
1540
 
1426
1541
  declare const PvSizes: readonly ["xs", "sm", "md", "lg", "xl", "2x"];