@turquoisehealth/pit-viper 2.51.0 → 2.52.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.
@@ -1050,7 +1050,8 @@
1050
1050
  .pv-v2 .pv-radio:disabled {
1051
1051
  background-color: var(--checkbox-disabled-background-color, #ECECEC);
1052
1052
  }
1053
- .pv-v2 .pv-checkbox:disabled:checked,
1053
+ .pv-v2 .pv-checkbox:disabled:indeterminate, .pv-v2 .pv-checkbox:disabled:checked,
1054
+ .pv-v2 .pv-radio:disabled:indeterminate,
1054
1055
  .pv-v2 .pv-radio:disabled:checked {
1055
1056
  background-color: var(--checkbox-checked-disabled-background-color, #ECECEC);
1056
1057
  border-color: var(--checkbox-checked-disabled-border-color, #ECECEC);
@@ -1145,7 +1145,8 @@ label:has(input:not(:disabled)).pv-label-hover:hover {
1145
1145
  .pv-radio:disabled {
1146
1146
  background-color: var(--checkbox-disabled-background-color, #ECECEC);
1147
1147
  }
1148
- .pv-checkbox:disabled:checked,
1148
+ .pv-checkbox:disabled:indeterminate, .pv-checkbox:disabled:checked,
1149
+ .pv-radio:disabled:indeterminate,
1149
1150
  .pv-radio:disabled:checked {
1150
1151
  background-color: var(--checkbox-checked-disabled-background-color, #ECECEC);
1151
1152
  border-color: var(--checkbox-checked-disabled-border-color, #ECECEC);
@@ -1150,7 +1150,8 @@ label:has(input:not(:disabled)).pv-label-hover:hover {
1150
1150
  .pv-radio:disabled {
1151
1151
  background-color: var(--checkbox-disabled-background-color, #F3F4F6);
1152
1152
  }
1153
- .pv-checkbox:disabled:checked,
1153
+ .pv-checkbox:disabled:indeterminate, .pv-checkbox:disabled:checked,
1154
+ .pv-radio:disabled:indeterminate,
1154
1155
  .pv-radio:disabled:checked {
1155
1156
  background-color: var(--checkbox-checked-disabled-background-color, #6E7784);
1156
1157
  border-color: var(--checkbox-checked-disabled-border-color, #6E7784);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.51.0",
3
+ "version": "2.52.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -67,6 +67,10 @@ declare type __VLS_Props_5 = PvSelectableCardProps;
67
67
 
68
68
  declare type __VLS_Props_6 = PvGhostInputProps;
69
69
 
70
+ declare type __VLS_Props_7 = PvToggleButton_2;
71
+
72
+ declare type __VLS_Props_8 = PvCheckboxProps;
73
+
70
74
  declare type __VLS_PublicProps = {
71
75
  modelValue: string;
72
76
  } & __VLS_Props;
@@ -91,6 +95,14 @@ declare type __VLS_PublicProps_6 = {
91
95
  modelValue?: string;
92
96
  } & __VLS_Props_6;
93
97
 
98
+ declare type __VLS_PublicProps_7 = {
99
+ modelValue?: boolean | string;
100
+ } & __VLS_Props_7;
101
+
102
+ declare type __VLS_PublicProps_8 = {
103
+ modelValue?: boolean;
104
+ } & __VLS_Props_8;
105
+
94
106
  declare function __VLS_template(): {
95
107
  attrs: Partial<{}>;
96
108
  slots: {
@@ -172,12 +184,6 @@ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
172
184
  };
173
185
  };
174
186
 
175
- declare type __VLS_WithTemplateSlots_11<T, S> = T & {
176
- new (): {
177
- $slots: S;
178
- };
179
- };
180
-
181
187
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
182
188
  new (): {
183
189
  $slots: S;
@@ -297,7 +303,7 @@ declare type PillSize = Extract<PvSize, "md" | "lg">;
297
303
 
298
304
  declare type PillVariant = Extract<PvColorVariants, "default" | "success" | "warning" | "critical" | "highlight">;
299
305
 
300
- export declare const PvAccordion: __VLS_WithTemplateSlots_6<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
306
+ export declare const PvAccordion: __VLS_WithTemplateSlots_5<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
301
307
 
302
308
  declare interface PvAccordionProps {
303
309
  header: string;
@@ -335,7 +341,7 @@ declare interface PvBadgeProps {
335
341
  variant: "release-alpha" | "release-beta";
336
342
  }
337
343
 
338
- export declare const PvBanner: __VLS_WithTemplateSlots_5<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
344
+ export declare const PvBanner: __VLS_WithTemplateSlots_4<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
339
345
 
340
346
  declare interface PvBannerProps {
341
347
  label: string;
@@ -382,6 +388,19 @@ declare type PvButtonSize = Extract<PvSize, "md" | "lg" | "xl">;
382
388
 
383
389
  declare type PvButtonVariant = Extract<PvVariants, "primary" | "secondary" | "ghost" | "destructive">;
384
390
 
391
+ export declare const PvCheckbox: DefineComponent<__VLS_PublicProps_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
392
+ "update:modelValue": (value: boolean) => any;
393
+ }, string, PublicProps, Readonly<__VLS_PublicProps_8> & Readonly<{
394
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
395
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
396
+ 'checkbox-ref': HTMLInputElement;
397
+ }, HTMLInputElement>;
398
+
399
+ declare interface PvCheckboxProps {
400
+ disabled?: boolean;
401
+ indeterminate?: boolean;
402
+ }
403
+
385
404
  declare const PvColorVariants: readonly ["default", "success", "warning", "critical", "highlight"];
386
405
 
387
406
  declare type PvColorVariants = (typeof PvColorVariants)[number];
@@ -582,7 +601,7 @@ declare interface PvDateTimeProps {
582
601
  size?: DateTimeSize;
583
602
  }
584
603
 
585
- export declare const PvDrawer: __VLS_WithTemplateSlots_7<DefineComponent< {
604
+ export declare const PvDrawer: __VLS_WithTemplateSlots_6<DefineComponent< {
586
605
  "search-input"?: string;
587
606
  modelValue: boolean;
588
607
  } & PvDrawer_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -720,7 +739,7 @@ declare interface PvDropdownProps {
720
739
  teleportLocation?: string;
721
740
  }
722
741
 
723
- export declare const PvGhostInput: __VLS_WithTemplateSlots_11<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
742
+ export declare const PvGhostInput: __VLS_WithTemplateSlots_10<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
724
743
 
725
744
  declare interface PvGhostInputProps {
726
745
  variant?: PvGhostInputVariant;
@@ -747,7 +766,7 @@ declare const PvInputVariants: readonly ["h1", "h2", "h3", "h4", "text-md", "tex
747
766
 
748
767
  declare type PvInputVariants = (typeof PvInputVariants)[number];
749
768
 
750
- export declare const PvModal: __VLS_WithTemplateSlots_4<DefineComponent< {
769
+ export declare const PvModal: __VLS_WithTemplateSlots_3<DefineComponent< {
751
770
  modelValue: boolean;
752
771
  } & ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
753
772
  "update:modelValue": (value: boolean) => any;
@@ -1107,7 +1126,7 @@ declare interface PvSegmentedControlWithTextLabelProps extends PvSegmentedContro
1107
1126
  iconOnly?: false;
1108
1127
  }
1109
1128
 
1110
- export declare const PvSelectableCard: __VLS_WithTemplateSlots_9<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1129
+ export declare const PvSelectableCard: __VLS_WithTemplateSlots_8<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1111
1130
 
1112
1131
  declare interface PvSelectableCardProps {
1113
1132
  variant?: "default" | "highlight";
@@ -1369,7 +1388,7 @@ declare interface PvSelectMenu {
1369
1388
  useTeleport?: boolean;
1370
1389
  }
1371
1390
 
1372
- export declare const PvSidePanel: __VLS_WithTemplateSlots_10<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1391
+ export declare const PvSidePanel: __VLS_WithTemplateSlots_9<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1373
1392
 
1374
1393
  declare interface PvSidePanelProps {
1375
1394
  showLeftSidebar?: boolean;
@@ -1380,6 +1399,15 @@ declare type PvSize = (typeof PvSizes)[number];
1380
1399
 
1381
1400
  declare const PvSizes: readonly ["xs", "sm", "md", "lg", "xl", "2x"];
1382
1401
 
1402
+ export declare const PvSprite: DefineComponent<PvSpriteProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvSpriteProps> & Readonly<{}>, {
1403
+ variant: "v1" | "v2";
1404
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1405
+
1406
+ declare type PvSpriteProps = {
1407
+ src: string;
1408
+ variant?: "v1" | "v2";
1409
+ };
1410
+
1383
1411
  export declare const PvSuggestionTag: DefineComponent<PvSuggestionTag_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1384
1412
  "handle-click": (label: string) => any;
1385
1413
  }, string, PublicProps, Readonly<PvSuggestionTag_2> & Readonly<{
@@ -1472,41 +1500,35 @@ declare interface PvTagProps {
1472
1500
  rounded?: boolean;
1473
1501
  }
1474
1502
 
1475
- export declare const PvToggle: __VLS_WithTemplateSlots_3<DefineComponent< {
1476
- modelValue?: boolean;
1477
- } & {
1478
- id?: string;
1479
- name?: string;
1480
- value?: string;
1481
- inputType?: "checkbox" | "radio";
1482
- round?: boolean;
1483
- disabled?: boolean;
1484
- variant?: PvToggleVariant;
1485
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1486
- "update:modelValue": (value: boolean) => any;
1487
- }, string, PublicProps, Readonly<{
1488
- modelValue?: boolean;
1489
- } & {
1490
- id?: string;
1491
- name?: string;
1492
- value?: string;
1493
- inputType?: "checkbox" | "radio";
1494
- round?: boolean;
1495
- disabled?: boolean;
1496
- variant?: PvToggleVariant;
1497
- }> & Readonly<{
1498
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1499
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1500
- inputRef: HTMLInputElement;
1501
- }, HTMLLabelElement>, {
1502
- default?(_: {}): any;
1503
- }>;
1503
+ export declare const PvToggleButton: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1504
+ "update:modelValue": (value: string | boolean) => any;
1505
+ }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
1506
+ "onUpdate:modelValue"?: ((value: string | boolean) => any) | undefined;
1507
+ }>, {
1508
+ size: PvToggleButtonSize;
1509
+ variant: PvToggleButtonVariant;
1510
+ deselect: boolean;
1511
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
1512
+
1513
+ declare interface PvToggleButton_2 {
1514
+ size?: PvToggleButtonSize;
1515
+ variant?: PvToggleButtonVariant;
1516
+ rounded?: boolean;
1517
+ disabled?: boolean;
1518
+ value?: string;
1519
+ label?: string;
1520
+ leftIcon?: string;
1521
+ rightIcon?: string;
1522
+ id?: string;
1523
+ name?: string;
1524
+ deselect?: boolean;
1525
+ }
1504
1526
 
1505
- declare type PvToggleVariant = (typeof PvToggleVariants)[number];
1527
+ declare type PvToggleButtonSize = Extract<PvSize, "lg" | "xl">;
1506
1528
 
1507
- declare const PvToggleVariants: readonly ["secondary", "tertiary", "icon"];
1529
+ declare type PvToggleButtonVariant = Extract<PvVariants, "secondary" | "tertiary">;
1508
1530
 
1509
- export declare const PvTooltip: __VLS_WithTemplateSlots_8<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1531
+ export declare const PvTooltip: __VLS_WithTemplateSlots_7<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1510
1532
 
1511
1533
  declare type PvTooltipPositions = "bottom-center" | "bottom-right" | "top-left" | "top-center" | "top-right" | "center-right";
1512
1534