@turquoisehealth/pit-viper 2.53.1 → 2.55.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.53.1",
3
+ "version": "2.55.0-alpha.1",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -1,5 +1,6 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
+ import { Component } from 'vue';
3
4
  import { ComponentCustomProperties } from 'vue';
4
5
  import { ComponentCustomProps } from 'vue';
5
6
  import { ComponentInternalInstance } from 'vue';
@@ -17,9 +18,12 @@ import { nextTick } from 'vue';
17
18
  import { OnCleanup } from '@vue/reactivity';
18
19
  import { PublicProps } from 'vue';
19
20
  import { Ref } from 'vue';
21
+ import { ShallowRef } from 'vue';
20
22
  import { ShallowUnwrapRef } from 'vue';
21
23
  import { Slot } from 'vue';
24
+ import { VNode } from 'vue';
22
25
  import { VNodeProps } from 'vue';
26
+ import { VNodeRef } from 'vue';
23
27
  import { WatchOptions } from 'vue';
24
28
  import { WatchStopHandle } from 'vue';
25
29
 
@@ -39,7 +43,7 @@ variant: PvTooltipVariants;
39
43
  tooltipPosition: PvTooltipPositions;
40
44
  ariaLabelledBy: string;
41
45
  interactive: boolean;
42
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
46
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
43
47
 
44
48
  declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
45
49
  "update:modelValue": (value: string | boolean) => any;
@@ -144,11 +148,12 @@ declare function __VLS_template_2(): {
144
148
  declare function __VLS_template_3(): {
145
149
  attrs: Partial<{}>;
146
150
  slots: {
151
+ label?(_: {}): any;
147
152
  label?(_: {}): any;
148
153
  'tooltip-content'?(_: {}): any;
149
154
  };
150
155
  refs: {};
151
- rootEl: HTMLDivElement;
156
+ rootEl: any;
152
157
  };
153
158
 
154
159
  declare function __VLS_template_4(): {
@@ -223,6 +228,12 @@ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
223
228
  };
224
229
  };
225
230
 
231
+ declare type __VLS_WithTemplateSlots_12<T, S> = T & {
232
+ new (): {
233
+ $slots: S;
234
+ };
235
+ };
236
+
226
237
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
227
238
  new (): {
228
239
  $slots: S;
@@ -307,6 +318,7 @@ declare enum MenuItemType {
307
318
  declare interface MenuOption {
308
319
  id: string;
309
320
  text: string;
321
+ subText?: string;
310
322
  secondaryText?: string | number;
311
323
  icon?: string;
312
324
  companyName?: string;
@@ -315,6 +327,11 @@ declare interface MenuOption {
315
327
  image?: string;
316
328
  icon?: boolean;
317
329
  };
330
+ groupingLabel?: string;
331
+ disabled?: boolean;
332
+ renderer?: Component;
333
+ rendererProps?: any;
334
+ classList?: string[];
318
335
  }
319
336
 
320
337
  declare type MenuOptionsVariant = `${MenuItemType}`;
@@ -641,17 +658,17 @@ declare interface PvDateTimeProps {
641
658
  }
642
659
 
643
660
  export declare const PvDrawer: __VLS_WithTemplateSlots_6<DefineComponent< {
644
- "search-input"?: string;
661
+ searchInput?: string;
645
662
  modelValue: boolean;
646
663
  } & PvDrawer_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
647
664
  "update:modelValue": (value: boolean) => any;
648
- "update:search-input": (value: string) => any;
665
+ "update:searchInput": (value: string) => any;
649
666
  }, string, PublicProps, Readonly<{
650
- "search-input"?: string;
667
+ searchInput?: string;
651
668
  modelValue: boolean;
652
669
  } & PvDrawer_2> & Readonly<{
653
670
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
654
- "onUpdate:search-input"?: ((value: string) => any) | undefined;
671
+ "onUpdate:searchInput"?: ((value: string) => any) | undefined;
655
672
  }>, {
656
673
  closeOnClickOutside: boolean;
657
674
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -778,7 +795,7 @@ declare interface PvDropdownProps {
778
795
  teleportLocation?: string;
779
796
  }
780
797
 
781
- export declare const PvGhostInput: __VLS_WithTemplateSlots_10<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
798
+ export declare const PvGhostInput: __VLS_WithTemplateSlots_11<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
782
799
 
783
800
  declare interface PvGhostInputProps {
784
801
  variant?: PvGhostInputVariant;
@@ -801,7 +818,7 @@ declare type PvIconSize = (typeof PvIconSizes)[number];
801
818
 
802
819
  declare const PvIconSizes: readonly [undefined, 10, 12, 20, 24, 32, 64];
803
820
 
804
- export declare const PvInput: __VLS_WithTemplateSlots_11<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
821
+ export declare const PvInput: __VLS_WithTemplateSlots_12<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
805
822
 
806
823
  declare interface PvInputProps {
807
824
  error?: boolean;
@@ -838,10 +855,10 @@ dialog: HTMLDialogElement;
838
855
  footer?(_: {}): any;
839
856
  }>;
840
857
 
841
- export declare const PvMultiSelectButton: DefineComponent< {
858
+ export declare const PvMultiSelectButton: __VLS_WithTemplateSlots_8<DefineComponent< {
842
859
  modelValue?: MenuOption[];
843
860
  searchInput?: string;
844
- } & PvMultiSelectButton_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
861
+ } & PvMultiSelectButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
845
862
  "update:modelValue": (value: MenuOption[]) => any;
846
863
  "update:searchInput": (value: string) => any;
847
864
  } & {
@@ -850,7 +867,7 @@ searchInput?: string;
850
867
  }, string, PublicProps, Readonly<{
851
868
  modelValue?: MenuOption[];
852
869
  searchInput?: string;
853
- } & PvMultiSelectButton_2> & Readonly<{
870
+ } & PvMultiSelectButtonProps> & Readonly<{
854
871
  "onDropdown-open"?: (() => any) | undefined;
855
872
  "onDropdown-closed"?: (() => any) | undefined;
856
873
  "onUpdate:modelValue"?: ((value: MenuOption[]) => any) | undefined;
@@ -863,11 +880,11 @@ showClear: boolean;
863
880
  useTeleport: boolean;
864
881
  teleportLocation: string;
865
882
  options: MenuOption[];
866
- counterPosition: "left" | "right";
883
+ counterPosition: "left" | "right" | "none";
867
884
  showDropdown: boolean;
885
+ optionsVariant: Exclude<MenuOptionsVariant, "radio">;
868
886
  showMenuAction: boolean;
869
887
  showSearchInput: boolean;
870
- optionsVariant: Exclude<MenuOptionsVariant, "radio">;
871
888
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
872
889
  'select-button-trigger-ref': CreateComponentPublicInstanceWithMixins<Readonly<PvSelectButtonTrigger> & Readonly<{
873
890
  "onHandle-toggle-dropdown"?: (() => any) | undefined;
@@ -1042,9 +1059,125 @@ $slots: {
1042
1059
  default?(_: {}): any;
1043
1060
  };
1044
1061
  }) | null;
1045
- }, HTMLDivElement>;
1062
+ searchInputRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1063
+ modelValue: string;
1064
+ } & PvSearchInputProps> & Readonly<{
1065
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1066
+ }>, {
1067
+ input: Readonly<ShallowRef<HTMLInputElement | null>>;
1068
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1069
+ "update:modelValue": (value: string) => any;
1070
+ }, PublicProps, {
1071
+ disabled: boolean;
1072
+ placeholder: string;
1073
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
1074
+ 'search-input': HTMLInputElement;
1075
+ }, HTMLDivElement, ComponentProvideOptions, {
1076
+ P: {};
1077
+ B: {};
1078
+ D: {};
1079
+ C: {};
1080
+ M: {};
1081
+ Defaults: {};
1082
+ }, Readonly<{
1083
+ modelValue: string;
1084
+ } & PvSearchInputProps> & Readonly<{
1085
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1086
+ }>, {
1087
+ input: Readonly<ShallowRef<HTMLInputElement | null>>;
1088
+ }, {}, {}, {}, {
1089
+ disabled: boolean;
1090
+ placeholder: string;
1091
+ }> | null;
1092
+ }, HTMLDivElement>, Partial<Record<string, (_: {}) => any>> & {
1093
+ 'no-results'?(_: {
1094
+ modelValue?: MenuOption[];
1095
+ searchInput?: string;
1096
+ groupings?: string[];
1097
+ defaultOpen?: boolean;
1098
+ disabled?: boolean;
1099
+ teleportLocation?: string;
1100
+ isLoading?: boolean;
1101
+ variant?: PvSelectButtonVariant;
1102
+ size?: PvSelectButtonSize;
1103
+ alignment?: "top" | "right" | "top right" | undefined;
1104
+ popoverCssProperties?: CSSProperties;
1105
+ prefixLabel?: string;
1106
+ label?: string;
1107
+ icon?: string;
1108
+ counterPosition?: "left" | "right" | "none";
1109
+ companyLogo?: string;
1110
+ showClear?: boolean;
1111
+ showDropdown?: boolean;
1112
+ showMenuAction?: boolean;
1113
+ showSearchInput?: boolean;
1114
+ overlayTrigger?: boolean;
1115
+ optionsVariant?: Exclude<MenuOptionsVariant, "radio">;
1116
+ options: MenuOption[];
1117
+ useTeleport?: boolean;
1118
+ "onDropdown-open"?: (() => any) | undefined;
1119
+ "onDropdown-closed"?: (() => any) | undefined;
1120
+ "onUpdate:modelValue"?: ((value: MenuOption[]) => any) | undefined;
1121
+ "onUpdate:searchInput"?: ((value: string) => any) | undefined;
1122
+ key?: PropertyKey;
1123
+ ref?: VNodeRef;
1124
+ ref_for?: boolean;
1125
+ ref_key?: string;
1126
+ onVnodeBeforeMount?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1127
+ onVnodeMounted?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1128
+ onVnodeBeforeUpdate?: ((vnode: VNode, oldVNode: VNode) => void) | ((vnode: VNode, oldVNode: VNode) => void)[];
1129
+ onVnodeUpdated?: ((vnode: VNode, oldVNode: VNode) => void) | ((vnode: VNode, oldVNode: VNode) => void)[];
1130
+ onVnodeBeforeUnmount?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1131
+ onVnodeUnmounted?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1132
+ class?: unknown;
1133
+ style?: unknown;
1134
+ }): any;
1135
+ footer?(_: {
1136
+ modelValue?: MenuOption[];
1137
+ searchInput?: string;
1138
+ groupings?: string[];
1139
+ defaultOpen?: boolean;
1140
+ disabled?: boolean;
1141
+ teleportLocation?: string;
1142
+ isLoading?: boolean;
1143
+ variant?: PvSelectButtonVariant;
1144
+ size?: PvSelectButtonSize;
1145
+ alignment?: "top" | "right" | "top right" | undefined;
1146
+ popoverCssProperties?: CSSProperties;
1147
+ prefixLabel?: string;
1148
+ label?: string;
1149
+ icon?: string;
1150
+ counterPosition?: "left" | "right" | "none";
1151
+ companyLogo?: string;
1152
+ showClear?: boolean;
1153
+ showDropdown?: boolean;
1154
+ showMenuAction?: boolean;
1155
+ showSearchInput?: boolean;
1156
+ overlayTrigger?: boolean;
1157
+ optionsVariant?: Exclude<MenuOptionsVariant, "radio">;
1158
+ options: MenuOption[];
1159
+ useTeleport?: boolean;
1160
+ "onDropdown-open"?: (() => any) | undefined;
1161
+ "onDropdown-closed"?: (() => any) | undefined;
1162
+ "onUpdate:modelValue"?: ((value: MenuOption[]) => any) | undefined;
1163
+ "onUpdate:searchInput"?: ((value: string) => any) | undefined;
1164
+ key?: PropertyKey;
1165
+ ref?: VNodeRef;
1166
+ ref_for?: boolean;
1167
+ ref_key?: string;
1168
+ onVnodeBeforeMount?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1169
+ onVnodeMounted?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1170
+ onVnodeBeforeUpdate?: ((vnode: VNode, oldVNode: VNode) => void) | ((vnode: VNode, oldVNode: VNode) => void)[];
1171
+ onVnodeUpdated?: ((vnode: VNode, oldVNode: VNode) => void) | ((vnode: VNode, oldVNode: VNode) => void)[];
1172
+ onVnodeBeforeUnmount?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1173
+ onVnodeUnmounted?: ((vnode: VNode) => void) | ((vnode: VNode) => void)[];
1174
+ class?: unknown;
1175
+ style?: unknown;
1176
+ }): any;
1177
+ }>;
1046
1178
 
1047
- declare interface PvMultiSelectButton_2 {
1179
+ declare interface PvMultiSelectButtonProps {
1180
+ groupings?: string[];
1048
1181
  defaultOpen?: boolean;
1049
1182
  disabled?: boolean;
1050
1183
  teleportLocation?: string;
@@ -1056,17 +1189,22 @@ declare interface PvMultiSelectButton_2 {
1056
1189
  prefixLabel?: string;
1057
1190
  label?: string;
1058
1191
  icon?: string;
1059
- counterPosition?: "left" | "right";
1192
+ counterPosition?: "left" | "right" | "none";
1060
1193
  companyLogo?: string;
1061
1194
  showClear?: boolean;
1062
1195
  showDropdown?: boolean;
1063
1196
  showMenuAction?: boolean;
1064
1197
  showSearchInput?: boolean;
1198
+ overlayTrigger?: boolean;
1065
1199
  optionsVariant?: Exclude<MenuOptionsVariant, "radio">;
1066
1200
  options: MenuOption[];
1067
1201
  useTeleport?: boolean;
1068
1202
  }
1069
1203
 
1204
+ export declare interface PvMultiSelectButtonSlotProps {
1205
+ searchInput: string;
1206
+ }
1207
+
1070
1208
  export declare const PvPagination: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1071
1209
  "update:modelValue": (value: number) => any;
1072
1210
  }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
@@ -1145,7 +1283,9 @@ declare interface PvPopoverProps {
1145
1283
 
1146
1284
  export declare const PvReleaseBadge: DefineComponent<PvBadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvBadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1147
1285
 
1148
- export declare const PvSearchInput: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1286
+ export declare const PvSearchInput: DefineComponent<__VLS_PublicProps, {
1287
+ input: Readonly<ShallowRef<HTMLInputElement | null>>;
1288
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1149
1289
  "update:modelValue": (value: string) => any;
1150
1290
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
1151
1291
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -1185,7 +1325,7 @@ declare interface PvSegmentedControlWithTextLabelProps extends PvSegmentedContro
1185
1325
 
1186
1326
  declare type PvSekeltonSize = Extract<PvSize, "xs" | "sm" | "md" | "lg" | "xl">;
1187
1327
 
1188
- export declare const PvSelectableCard: __VLS_WithTemplateSlots_8<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1328
+ export declare const PvSelectableCard: __VLS_WithTemplateSlots_9<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1189
1329
 
1190
1330
  declare interface PvSelectableCardProps {
1191
1331
  variant?: "default" | "highlight";
@@ -1217,8 +1357,8 @@ label: string;
1217
1357
  variant: PvSelectButtonVariant_2;
1218
1358
  useTeleport: boolean;
1219
1359
  teleportLocation: string;
1220
- showSearchInput: boolean;
1221
1360
  optionsVariant: Exclude<MenuOptionsVariant, "checkbox">;
1361
+ showSearchInput: boolean;
1222
1362
  allowDeselect: boolean;
1223
1363
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1224
1364
  'select-button-trigger-ref': CreateComponentPublicInstanceWithMixins<Readonly<PvSelectButtonTrigger> & Readonly<{
@@ -1423,7 +1563,7 @@ declare interface PvSelectButtonTrigger {
1423
1563
  variant?: PvSelectButtonVariant;
1424
1564
  size?: PvSelectButtonSize;
1425
1565
  disabled?: boolean;
1426
- counterPosition?: "left" | "right";
1566
+ counterPosition?: "left" | "right" | "none";
1427
1567
  counterValue?: number;
1428
1568
  prefixLabel?: string;
1429
1569
  label?: string;
@@ -1447,7 +1587,7 @@ declare interface PvSelectMenu {
1447
1587
  useTeleport?: boolean;
1448
1588
  }
1449
1589
 
1450
- export declare const PvSidePanel: __VLS_WithTemplateSlots_9<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1590
+ export declare const PvSidePanel: __VLS_WithTemplateSlots_10<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1451
1591
 
1452
1592
  declare interface PvSidePanelProps {
1453
1593
  showLeftSidebar?: boolean;