@turquoisehealth/pit-viper 2.3.0 → 2.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -6,6 +6,7 @@ import { ComponentOptionsBase } from 'vue';
6
6
  import { ComponentOptionsMixin } from 'vue';
7
7
  import { ComponentProvideOptions } from 'vue';
8
8
  import { ComponentPublicInstance } from 'vue';
9
+ import { CSSProperties } from 'vue';
9
10
  import { DebuggerEvent } from 'vue';
10
11
  import { DefineComponent } from 'vue';
11
12
  import { GlobalComponents } from 'vue';
@@ -62,14 +63,6 @@ declare interface OptionWithIcon extends Option_2 {
62
63
  iconPosition: "left" | "right";
63
64
  }
64
65
 
65
- declare type PopoverCssCustomProperties = Partial<_PopoverCssCustomProperties>;
66
-
67
- declare interface _PopoverCssCustomProperties {
68
- width: string;
69
- height: string;
70
- position: string;
71
- }
72
-
73
66
  declare interface PvBadgeProps {
74
67
  value?: number;
75
68
  prefix?: string;
@@ -144,20 +137,33 @@ closeDropdown: () => void;
144
137
  "onList-order-updated"?: ((value: string[]) => any) | undefined;
145
138
  "onDropdown-open"?: (() => any) | undefined;
146
139
  "onDropdown-closed"?: (() => any) | undefined;
147
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
140
+ }>, {
141
+ disabled: boolean;
142
+ alignment: "top" | "right" | "top right";
143
+ isList: boolean;
144
+ defaultOpen: boolean;
145
+ isLoading: boolean;
146
+ useTeleport: boolean;
147
+ teleportLocation: string;
148
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
149
+ triggerRef: HTMLButtonElement;
150
+ popoverRef: HTMLDivElement;
151
+ }, HTMLDivElement>, {
148
152
  trigger?(_: {}): any;
149
153
  default?(_: {}): any;
150
154
  }>;
151
155
 
152
156
  declare interface PvDropdownProps {
153
157
  defaultOpen?: boolean;
154
- popoverCssProperties?: PopoverCssCustomProperties;
155
- alignment?: "top" | "right";
158
+ popoverCssProperties?: CSSProperties;
159
+ alignment?: "top" | "right" | "top right" | undefined;
156
160
  isList?: boolean;
157
161
  isSortable?: boolean;
158
162
  icon?: boolean;
159
163
  disabled?: boolean;
160
164
  isLoading?: boolean;
165
+ useTeleport?: boolean;
166
+ teleportLocation?: string;
161
167
  }
162
168
 
163
169
  export declare const PvIcon: DefineComponent< {
@@ -177,8 +183,8 @@ export declare const PvPopover: __VLS_WithTemplateSlots_3<DefineComponent<PvPopo
177
183
  }, string, PublicProps, Readonly<PvPopoverProps> & Readonly<{
178
184
  "onList-order-updated"?: ((value: string[]) => any) | undefined;
179
185
  }>, {
180
- alignment: "top" | "right";
181
- cssCustomProperties: Partial<PopoverCssCustomProperties>;
186
+ alignment: "top" | "right" | "top right";
187
+ cssCustomProperties: CSSProperties;
182
188
  isList: boolean;
183
189
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
184
190
  popoverList: HTMLUListElement;
@@ -188,8 +194,8 @@ popoverList: HTMLUListElement;
188
194
  }>;
189
195
 
190
196
  declare interface PvPopoverProps {
191
- alignment?: "top" | "right";
192
- cssCustomProperties?: Partial<PopoverCssCustomProperties>;
197
+ alignment?: "top" | "right" | "top right" | undefined;
198
+ cssCustomProperties?: CSSProperties;
193
199
  isList?: boolean;
194
200
  isSortable?: boolean;
195
201
  }
@@ -231,13 +237,15 @@ $: ComponentInternalInstance;
231
237
  $data: {};
232
238
  $props: {
233
239
  readonly defaultOpen?: boolean | undefined;
234
- readonly popoverCssProperties?: PopoverCssCustomProperties | undefined;
235
- readonly alignment?: "top" | "right" | undefined;
240
+ readonly popoverCssProperties?: CSSProperties | undefined;
241
+ readonly alignment?: "top" | "right" | "top right" | undefined | undefined;
236
242
  readonly isList?: boolean | undefined;
237
243
  readonly isSortable?: boolean | undefined;
238
244
  readonly icon?: boolean | undefined;
239
245
  readonly disabled?: boolean | undefined;
240
246
  readonly isLoading?: boolean | undefined;
247
+ readonly useTeleport?: boolean | undefined;
248
+ readonly teleportLocation?: string | undefined;
241
249
  readonly "onList-order-updated"?: ((value: string[]) => any) | undefined;
242
250
  readonly "onDropdown-open"?: (() => any) | undefined;
243
251
  readonly "onDropdown-closed"?: (() => any) | undefined;
@@ -247,6 +255,9 @@ $attrs: {
247
255
  };
248
256
  $refs: {
249
257
  [x: string]: unknown;
258
+ } & {
259
+ triggerRef: HTMLButtonElement;
260
+ popoverRef: HTMLDivElement;
250
261
  };
251
262
  $slots: Readonly<{
252
263
  [name: string]: Slot<any> | undefined;
@@ -266,7 +277,15 @@ closeDropdown: () => void;
266
277
  "list-order-updated": (value: string[]) => any;
267
278
  "dropdown-open": () => any;
268
279
  "dropdown-closed": () => any;
269
- }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
280
+ }, string, {
281
+ disabled: boolean;
282
+ alignment: "top" | "right" | "top right";
283
+ isList: boolean;
284
+ defaultOpen: boolean;
285
+ isLoading: boolean;
286
+ useTeleport: boolean;
287
+ teleportLocation: string;
288
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
270
289
  beforeCreate?: (() => void) | (() => void)[];
271
290
  created?: (() => void) | (() => void)[];
272
291
  beforeMount?: (() => void) | (() => void)[];
@@ -286,11 +305,19 @@ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info:
286
305
  $forceUpdate: () => void;
287
306
  $nextTick: nextTick;
288
307
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
289
- } & Readonly<{}> & Omit<Readonly<PvDropdownProps> & Readonly<{
308
+ } & Readonly<{
309
+ disabled: boolean;
310
+ alignment: "top" | "right" | "top right";
311
+ isList: boolean;
312
+ defaultOpen: boolean;
313
+ isLoading: boolean;
314
+ useTeleport: boolean;
315
+ teleportLocation: string;
316
+ }> & Omit<Readonly<PvDropdownProps> & Readonly<{
290
317
  "onList-order-updated"?: ((value: string[]) => any) | undefined;
291
318
  "onDropdown-open"?: (() => any) | undefined;
292
319
  "onDropdown-closed"?: (() => any) | undefined;
293
- }>, "closeDropdown"> & ShallowUnwrapRef< {
320
+ }>, "closeDropdown" | ("disabled" | "alignment" | "isList" | "defaultOpen" | "isLoading" | "useTeleport" | "teleportLocation")> & ShallowUnwrapRef< {
294
321
  closeDropdown: () => void;
295
322
  }> & {} & ComponentCustomProperties & {} & {
296
323
  $slots: {