@turquoisehealth/pit-viper 2.52.0 → 2.53.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.
Files changed (83) hide show
  1. package/_site/assets/css/pit-viper-v2-scoped.css +9 -0
  2. package/_site/assets/css/pit-viper-v2.css +10 -0
  3. package/_site/assets/css/pit-viper.css +8 -0
  4. package/package.json +1 -1
  5. package/pv-components/dist/vue/base/pv-components-base.d.ts +97 -4
  6. package/pv-components/dist/vue/base/pv-components-base.js +68 -18
  7. package/pv-components/dist/vue/base/pv-components-base.mjs +2454 -2160
  8. package/pv-components/dist/vue/base/pv-components-base.umd.js +68 -18
  9. package/pv-components/dist/vue/charts/pv-components-charts.js +32 -32
  10. package/pv-components/dist/vue/charts/pv-components-charts.mjs +8583 -8582
  11. package/pv-components/dist/vue/charts/pv-components-charts.umd.js +33 -33
  12. package/pv-components/dist/vue/tables/pv-components-tables.js +2 -2
  13. package/pv-components/dist/vue/tables/pv-components-tables.mjs +3224 -3222
  14. package/pv-components/dist/vue/tables/pv-components-tables.umd.js +18 -18
  15. package/pv-components/dist/web/pv-components.iife.js +96 -27
  16. package/pv-components/dist/stats-vue_base.html +0 -4949
  17. package/pv-components/dist/stats-vue_charts.html +0 -4949
  18. package/pv-components/dist/stats-vue_tables.html +0 -4949
  19. package/pv-components/dist/stats-web.html +0 -4949
  20. package/pv-components/dist/types/base/PvAccordion/PvAccordion.vue.d.ts +0 -22
  21. package/pv-components/dist/types/base/PvAccordion/types.d.ts +0 -5
  22. package/pv-components/dist/types/base/PvBanner/PvBanner.vue.d.ts +0 -22
  23. package/pv-components/dist/types/base/PvBanner/types.d.ts +0 -11
  24. package/pv-components/dist/types/base/PvBreadcrumbs/PvBreadcrumbs.vue.d.ts +0 -6
  25. package/pv-components/dist/types/base/PvBreadcrumbs/types.d.ts +0 -4
  26. package/pv-components/dist/types/base/PvButton/PvButton.vue.d.ts +0 -24
  27. package/pv-components/dist/types/base/PvButton/types.d.ts +0 -3
  28. package/pv-components/dist/types/base/PvCard/PvCard.example.vue.d.ts +0 -2
  29. package/pv-components/dist/types/base/PvCard/PvCard.vue.d.ts +0 -15
  30. package/pv-components/dist/types/base/PvCompanyLogo/PvCompanyLogo.example.vue.d.ts +0 -2
  31. package/pv-components/dist/types/base/PvCompanyLogo/PvCompanyLogo.vue.d.ts +0 -15
  32. package/pv-components/dist/types/base/PvCompanyTag/PvCompanyTag.example.vue.d.ts +0 -2
  33. package/pv-components/dist/types/base/PvCompanyTag/PvCompanyTag.vue.d.ts +0 -26
  34. package/pv-components/dist/types/base/PvCounterBadge/PvCounterBadge.vue.d.ts +0 -15
  35. package/pv-components/dist/types/base/PvCounterBadge/types.d.ts +0 -3
  36. package/pv-components/dist/types/base/PvDatePicker/PvDatePicker.example.vue.d.ts +0 -2
  37. package/pv-components/dist/types/base/PvDatePicker/PvDatePicker.vue.d.ts +0 -114
  38. package/pv-components/dist/types/base/PvDateTime/PvDateTime.example.vue.d.ts +0 -2
  39. package/pv-components/dist/types/base/PvDateTime/PvDateTime.vue.d.ts +0 -13
  40. package/pv-components/dist/types/base/PvDateTime/useDateTime.d.ts +0 -9
  41. package/pv-components/dist/types/base/PvDrawer/PvDrawer.example.vue.d.ts +0 -2
  42. package/pv-components/dist/types/base/PvDrawer/PvDrawer.vue.d.ts +0 -31
  43. package/pv-components/dist/types/base/PvDropdown/PvDropdown.example.vue.d.ts +0 -2
  44. package/pv-components/dist/types/base/PvDropdown/PvDropdown.vue.d.ts +0 -42
  45. package/pv-components/dist/types/base/PvDropdown/useDropdownMenuPosition.d.ts +0 -59
  46. package/pv-components/dist/types/base/PvIcon/PvIcon.example.vue.d.ts +0 -2
  47. package/pv-components/dist/types/base/PvIcon/PvIcon.vue.d.ts +0 -10
  48. package/pv-components/dist/types/base/PvModal/PvModal.vue.d.ts +0 -26
  49. package/pv-components/dist/types/base/PvMultiSelect/PvMultiSelect.example.vue.d.ts +0 -2
  50. package/pv-components/dist/types/base/PvMultiSelect/PvMultiSelect.vue.d.ts +0 -12
  51. package/pv-components/dist/types/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -54
  52. package/pv-components/dist/types/base/PvMultiSelectButton/PvMultiSelectButtonTrigger.vue.d.ts +0 -28
  53. package/pv-components/dist/types/base/PvMultiSelectButton/PvSelectMenu.vue.d.ts +0 -30
  54. package/pv-components/dist/types/base/PvMultiSelectButton/PvSelectMenuControlPanel.vue.d.ts +0 -8
  55. package/pv-components/dist/types/base/PvMultiSelectButton/items/PvMenuCheckboxItem.vue.d.ts +0 -11
  56. package/pv-components/dist/types/base/PvMultiSelectButton/items/PvMenuItem.vue.d.ts +0 -12
  57. package/pv-components/dist/types/base/PvMultiSelectButton/items/PvMenuRadioItem.vue.d.ts +0 -11
  58. package/pv-components/dist/types/base/PvMultiSelectButton/mocks.d.ts +0 -13
  59. package/pv-components/dist/types/base/PvMultiSelectButton/types.d.ts +0 -17
  60. package/pv-components/dist/types/base/PvPill/PvPill.vue.d.ts +0 -30
  61. package/pv-components/dist/types/base/PvPill/types.d.ts +0 -3
  62. package/pv-components/dist/types/base/PvPopover/PvPopover.vue.d.ts +0 -29
  63. package/pv-components/dist/types/base/PvReleaseBadge/PvReleaseBadge.example.vue.d.ts +0 -2
  64. package/pv-components/dist/types/base/PvReleaseBadge/PvReleaseBadge.vue.d.ts +0 -5
  65. package/pv-components/dist/types/base/PvSearchInput/PvSearchInput.vue.d.ts +0 -18
  66. package/pv-components/dist/types/base/PvSegmentedControl/PvSegmentedControl.example.vue.d.ts +0 -2
  67. package/pv-components/dist/types/base/PvSegmentedControl/PvSegmentedControl.vue.d.ts +0 -19
  68. package/pv-components/dist/types/base/PvSelect/PvSelect.example.vue.d.ts +0 -2
  69. package/pv-components/dist/types/base/PvSelect/PvSelect.vue.d.ts +0 -22
  70. package/pv-components/dist/types/base/PvSuggestionTag/PvSuggestionTag.example.vue.d.ts +0 -2
  71. package/pv-components/dist/types/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +0 -28
  72. package/pv-components/dist/types/base/PvTabList/PvTabList.vue.d.ts +0 -11
  73. package/pv-components/dist/types/base/PvTabs/PvTabs.example.vue.d.ts +0 -2
  74. package/pv-components/dist/types/base/PvTabs/PvTabs.vue.d.ts +0 -17
  75. package/pv-components/dist/types/base/PvTabs/types.d.ts +0 -7
  76. package/pv-components/dist/types/base/PvTag/PvTag.example.vue.d.ts +0 -2
  77. package/pv-components/dist/types/base/PvTag/PvTag.vue.d.ts +0 -40
  78. package/pv-components/dist/types/base/PvTag/types.d.ts +0 -3
  79. package/pv-components/dist/types/base/PvToggle/PvToggle.vue.d.ts +0 -35
  80. package/pv-components/dist/types/base/PvTooltip/PvTooltip.vue.d.ts +0 -24
  81. package/pv-components/dist/types/base/PvTooltip/types.d.ts +0 -2
  82. package/pv-components/dist/types/base/baseProps.d.ts +0 -7
  83. package/pv-components/dist/types/base/index.d.ts +0 -29
@@ -2982,6 +2982,13 @@
2982
2982
  .pv-v2 .pv-hover-card[data-style=white] > [role=tooltip] a {
2983
2983
  color: #16696D;
2984
2984
  }
2985
+ .pv-v2 .pv-tooltip[data-static]:after,
2986
+ .pv-v2 .pv-hover-card[data-static]:after {
2987
+ display: none;
2988
+ }
2989
+ .pv-v2 .pv-tooltip-small:hover > [role=tooltip], .pv-v2 .pv-tooltip-small:focus > [role=tooltip] {
2990
+ padding: 0.25rem 0.5rem;
2991
+ }
2985
2992
  .pv-v2 .pv-hover-card:hover > [role=tooltip] {
2986
2993
  background-color: #FFFFFF;
2987
2994
  border: 1px solid #E3E7EA;
@@ -4970,6 +4977,8 @@
4970
4977
  --p-inputtext-focus-ring-color: #36C5BA;
4971
4978
  --p-inputtext-focus-ring-width: 2px;
4972
4979
  --p-inputtext-focus-ring-style: solid;
4980
+ --p-skeleton-background: #F0F2F2;
4981
+ --p-skeleton-border-radius: 4px;
4973
4982
  }
4974
4983
  .pv-v2 .p-datepicker-input {
4975
4984
  font-size: var(--datepicker-text-size, 0.6875rem);
@@ -3232,6 +3232,14 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3232
3232
  .pv-hover-card[data-style=white] > [role=tooltip] a {
3233
3233
  color: #16696D;
3234
3234
  }
3235
+ .pv-tooltip[data-static]:after,
3236
+ .pv-hover-card[data-static]:after {
3237
+ display: none;
3238
+ }
3239
+
3240
+ .pv-tooltip-small:hover > [role=tooltip], .pv-tooltip-small:focus > [role=tooltip] {
3241
+ padding: 0.25rem 0.5rem;
3242
+ }
3235
3243
 
3236
3244
  .pv-hover-card:hover > [role=tooltip] {
3237
3245
  background-color: #FFFFFF;
@@ -5487,6 +5495,8 @@ svg.pv-text-inherit {
5487
5495
  --p-inputtext-focus-ring-color: #36C5BA;
5488
5496
  --p-inputtext-focus-ring-width: 2px;
5489
5497
  --p-inputtext-focus-ring-style: solid;
5498
+ --p-skeleton-background: #F0F2F2;
5499
+ --p-skeleton-border-radius: 4px;
5490
5500
  }
5491
5501
 
5492
5502
  .p-datepicker-input {
@@ -3237,6 +3237,14 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3237
3237
  .pv-hover-card[data-style=white] > [role=tooltip] a {
3238
3238
  color: #176F6F;
3239
3239
  }
3240
+ .pv-tooltip[data-static]:after,
3241
+ .pv-hover-card[data-static]:after {
3242
+ display: none;
3243
+ }
3244
+
3245
+ .pv-tooltip-small:hover > [role=tooltip], .pv-tooltip-small:focus > [role=tooltip] {
3246
+ padding: 0.5rem 0.25rem;
3247
+ }
3240
3248
 
3241
3249
  .pv-hover-card:hover > [role=tooltip] {
3242
3250
  background-color: #FFFFFF;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.52.0",
3
+ "version": "2.53.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -34,9 +34,11 @@ chevronPosition: ChevronPosition;
34
34
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDetailsElement>;
35
35
 
36
36
  declare const __VLS_component_3: DefineComponent<PvTooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvTooltipProps> & Readonly<{}>, {
37
+ size: PvTooltipSize;
37
38
  variant: PvTooltipVariants;
38
39
  tooltipPosition: PvTooltipPositions;
39
40
  ariaLabelledBy: string;
41
+ interactive: boolean;
40
42
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
41
43
 
42
44
  declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -53,7 +55,19 @@ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_6, {}, {}, {}
53
55
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
54
56
  }>, {
55
57
  variant: PvGhostInputVariant;
56
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
58
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
59
+ inputRef: HTMLInputElement;
60
+ }, HTMLDivElement>;
61
+
62
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
63
+ "update:modelValue": (value: string) => any;
64
+ }, string, PublicProps, Readonly<__VLS_PublicProps_9> & Readonly<{
65
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
66
+ }>, {
67
+ variant: PvInputVariant;
68
+ type: PvInputType;
69
+ id: string;
70
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
57
71
 
58
72
  declare type __VLS_Props = PvSearchInputProps;
59
73
 
@@ -71,6 +85,8 @@ declare type __VLS_Props_7 = PvToggleButton_2;
71
85
 
72
86
  declare type __VLS_Props_8 = PvCheckboxProps;
73
87
 
88
+ declare type __VLS_Props_9 = PvInputProps;
89
+
74
90
  declare type __VLS_PublicProps = {
75
91
  modelValue: string;
76
92
  } & __VLS_Props;
@@ -103,6 +119,10 @@ declare type __VLS_PublicProps_8 = {
103
119
  modelValue?: boolean;
104
120
  } & __VLS_Props_8;
105
121
 
122
+ declare type __VLS_PublicProps_9 = {
123
+ modelValue?: string;
124
+ } & __VLS_Props_9;
125
+
106
126
  declare function __VLS_template(): {
107
127
  attrs: Partial<{}>;
108
128
  slots: {
@@ -156,10 +176,21 @@ declare function __VLS_template_6(): {
156
176
  slots: {
157
177
  action?(_: {}): any;
158
178
  };
159
- refs: {};
179
+ refs: {
180
+ inputRef: HTMLInputElement;
181
+ };
160
182
  rootEl: HTMLDivElement;
161
183
  };
162
184
 
185
+ declare function __VLS_template_7(): {
186
+ attrs: Partial<{}>;
187
+ slots: {
188
+ label?(_: {}): any;
189
+ };
190
+ refs: {};
191
+ rootEl: any;
192
+ };
193
+
163
194
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
164
195
 
165
196
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
@@ -172,6 +203,8 @@ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
172
203
 
173
204
  declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
174
205
 
206
+ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
207
+
175
208
  declare type __VLS_WithTemplateSlots<T, S> = T & {
176
209
  new (): {
177
210
  $slots: S;
@@ -184,6 +217,12 @@ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
184
217
  };
185
218
  };
186
219
 
220
+ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
221
+ new (): {
222
+ $slots: S;
223
+ };
224
+ };
225
+
187
226
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
188
227
  new (): {
189
228
  $slots: S;
@@ -762,6 +801,22 @@ declare type PvIconSize = (typeof PvIconSizes)[number];
762
801
 
763
802
  declare const PvIconSizes: readonly [undefined, 10, 12, 20, 24, 32, 64];
764
803
 
804
+ export declare const PvInput: __VLS_WithTemplateSlots_11<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
805
+
806
+ declare interface PvInputProps {
807
+ error?: boolean;
808
+ disabled?: boolean;
809
+ placeholder?: string;
810
+ type?: PvInputType;
811
+ id?: string;
812
+ lowerLabel?: string;
813
+ variant?: PvInputVariant;
814
+ }
815
+
816
+ declare type PvInputType = "text" | "password" | "number";
817
+
818
+ declare type PvInputVariant = "white" | "gray";
819
+
765
820
  declare const PvInputVariants: readonly ["h1", "h2", "h3", "h4", "text-md", "text-sm", "text-lg", "caption"];
766
821
 
767
822
  declare type PvInputVariants = (typeof PvInputVariants)[number];
@@ -784,7 +839,7 @@ dialog: HTMLDialogElement;
784
839
  }>;
785
840
 
786
841
  export declare const PvMultiSelectButton: DefineComponent< {
787
- modelValue: MenuOption[];
842
+ modelValue?: MenuOption[];
788
843
  searchInput?: string;
789
844
  } & PvMultiSelectButton_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
790
845
  "update:modelValue": (value: MenuOption[]) => any;
@@ -793,7 +848,7 @@ searchInput?: string;
793
848
  "dropdown-open": () => any;
794
849
  "dropdown-closed": () => any;
795
850
  }, string, PublicProps, Readonly<{
796
- modelValue: MenuOption[];
851
+ modelValue?: MenuOption[];
797
852
  searchInput?: string;
798
853
  } & PvMultiSelectButton_2> & Readonly<{
799
854
  "onDropdown-open"?: (() => any) | undefined;
@@ -807,6 +862,7 @@ variant: PvSelectButtonVariant;
807
862
  showClear: boolean;
808
863
  useTeleport: boolean;
809
864
  teleportLocation: string;
865
+ options: MenuOption[];
810
866
  counterPosition: "left" | "right";
811
867
  showDropdown: boolean;
812
868
  showMenuAction: boolean;
@@ -997,6 +1053,7 @@ declare interface PvMultiSelectButton_2 {
997
1053
  size?: PvSelectButtonSize;
998
1054
  alignment?: "top" | "right" | "top right" | undefined;
999
1055
  popoverCssProperties?: CSSProperties;
1056
+ prefixLabel?: string;
1000
1057
  label?: string;
1001
1058
  icon?: string;
1002
1059
  counterPosition?: "left" | "right";
@@ -1126,6 +1183,8 @@ declare interface PvSegmentedControlWithTextLabelProps extends PvSegmentedContro
1126
1183
  iconOnly?: false;
1127
1184
  }
1128
1185
 
1186
+ declare type PvSekeltonSize = Extract<PvSize, "xs" | "sm" | "md" | "lg" | "xl">;
1187
+
1129
1188
  export declare const PvSelectableCard: __VLS_WithTemplateSlots_8<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1130
1189
 
1131
1190
  declare interface PvSelectableCardProps {
@@ -1399,6 +1458,32 @@ declare type PvSize = (typeof PvSizes)[number];
1399
1458
 
1400
1459
  declare const PvSizes: readonly ["xs", "sm", "md", "lg", "xl", "2x"];
1401
1460
 
1461
+ export declare const PvSkeleton: DefineComponent<PvSkeletonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvSkeletonProps> & Readonly<{}>, {
1462
+ size: PvSekeltonSize;
1463
+ variant: PvSkeletonVariant;
1464
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1465
+
1466
+ declare interface PvSkeletonProps {
1467
+ size?: PvSekeltonSize;
1468
+ variant?: PvSkeletonVariant;
1469
+ }
1470
+
1471
+ declare type PvSkeletonVariant = "square" | "rectangle";
1472
+
1473
+ export declare const PvSpinner: DefineComponent<PvSpinnerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvSpinnerProps> & Readonly<{}>, {
1474
+ size: PvSpinnerSize;
1475
+ variant: PvSpinnerVariant;
1476
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1477
+
1478
+ declare interface PvSpinnerProps {
1479
+ variant?: PvSpinnerVariant;
1480
+ size?: PvSpinnerSize;
1481
+ }
1482
+
1483
+ declare type PvSpinnerSize = Extract<PvSize, "xs" | "sm" | "md" | "lg" | "xl">;
1484
+
1485
+ declare type PvSpinnerVariant = Extract<PvVariants, "primary"> | Extract<PvThemes, "white" | "dark">;
1486
+
1402
1487
  export declare const PvSprite: DefineComponent<PvSpriteProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvSpriteProps> & Readonly<{}>, {
1403
1488
  variant: "v1" | "v2";
1404
1489
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -1500,6 +1585,10 @@ declare interface PvTagProps {
1500
1585
  rounded?: boolean;
1501
1586
  }
1502
1587
 
1588
+ declare const PvTheme: readonly ["white", "dark"];
1589
+
1590
+ declare type PvThemes = (typeof PvTheme)[number];
1591
+
1503
1592
  export declare const PvToggleButton: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1504
1593
  "update:modelValue": (value: string | boolean) => any;
1505
1594
  }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
@@ -1536,8 +1625,12 @@ declare interface PvTooltipProps {
1536
1625
  variant?: PvTooltipVariants;
1537
1626
  tooltipPosition?: PvTooltipPositions;
1538
1627
  ariaLabelledBy?: string;
1628
+ size?: PvTooltipSize;
1629
+ interactive?: boolean;
1539
1630
  }
1540
1631
 
1632
+ declare type PvTooltipSize = Extract<PvSize, "sm" | "md">;
1633
+
1541
1634
  declare type PvTooltipVariants = "white" | "dark";
1542
1635
 
1543
1636
  declare const PvVariants: readonly ["primary", "secondary", "tertiary", "ghost", "destructive"];