@turquoisehealth/pit-viper 2.194.5 → 2.194.6-dev.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.
Files changed (32) hide show
  1. package/_site/assets/css/pit-viper-a11y.css +8 -0
  2. package/_site/assets/css/pit-viper-consumer.css +8 -0
  3. package/_site/assets/css/pit-viper-v2-scoped.css +7 -0
  4. package/_site/assets/css/pit-viper-v2.css +8 -0
  5. package/_site/assets/css/pit-viper.css +8 -0
  6. package/package.json +1 -1
  7. package/pv-components/dist/stats/vue/base/stats.html +1 -1
  8. package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
  9. package/pv-components/dist/stats/web/pv-split-button-stats.html +4950 -0
  10. package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +1 -1
  11. package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +2 -2
  12. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +5 -5
  13. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +3 -3
  14. package/pv-components/dist/vue/base/components/base/PvRange/PvRange.vue.d.ts +2 -2
  15. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +2 -2
  16. package/pv-components/dist/vue/base/components/base/PvSplitButton/PvSplitButton.vue.d.ts +27 -0
  17. package/pv-components/dist/vue/base/components/base/PvSplitButton/types.d.ts +12 -0
  18. package/pv-components/dist/vue/base/components/base/index.d.ts +1 -0
  19. package/pv-components/dist/vue/base/pv-components-base.mjs +1586 -1508
  20. package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
  21. package/pv-components/dist/vue/visualizations/components/base/PvButton/types.d.ts +1 -1
  22. package/pv-components/dist/vue/visualizations/components/base/PvSplitButton/PvSplitButton.vue.d.ts +27 -0
  23. package/pv-components/dist/vue/visualizations/components/base/PvSplitButton/types.d.ts +12 -0
  24. package/pv-components/dist/vue/visualizations/components/base/index.d.ts +1 -0
  25. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +27 -144
  26. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +115 -14
  27. package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +2 -0
  28. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2480 -2206
  29. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
  30. package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +7713 -0
  31. package/pv-components/dist/web/pv-components.iife.js +35 -35
  32. package/pv-components/dist/web/pv-components.iife.js.map +1 -1
@@ -1,7 +1,7 @@
1
1
  import { PvSize, PvVariants } from '../baseProps';
2
2
  import { PvTooltipPositions, PvTooltipVariants } from '../PvTooltip/types';
3
3
  export type PvButtonSize = Extract<PvSize, "md" | "lg" | "xl">;
4
- export type PvButtonVariant = Extract<PvVariants, "primary" | "secondary" | "ghost" | "destructive" | "tertiary">;
4
+ export type PvButtonVariant = Extract<PvVariants, "primary" | "secondary" | "ghost" | "destructive" | "tertiary"> | "link" | "link-secondary";
5
5
  export interface PvButtonProps {
6
6
  /** Visual style of the button */
7
7
  variant?: PvButtonVariant;
@@ -25,12 +25,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PvDropdownProps
25
25
  "onDropdown-closed"?: (() => any) | undefined;
26
26
  }>, {
27
27
  disabled: boolean;
28
+ useTeleport: boolean;
29
+ teleportLocation: string;
28
30
  alignment: "top" | "right" | "top right";
29
31
  isList: boolean;
30
32
  defaultOpen: boolean;
31
33
  isLoading: boolean;
32
- useTeleport: boolean;
33
- teleportLocation: string;
34
34
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
35
35
  triggerRef: HTMLButtonElement;
36
36
  popoverRef: ({
@@ -5,13 +5,13 @@ import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
5
5
  import { PvPopoverV2Props } from '../PvPopoverV2/types';
6
6
  declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
+ readonly "onUpdate:modelValue"?: ((value: MenuOption<T>[]) => any) | undefined;
8
9
  readonly "onDropdown-open"?: (() => any) | undefined;
9
10
  readonly "onDropdown-closed"?: (() => any) | undefined;
10
- readonly "onUpdate:modelValue"?: ((value: MenuOption<T>[]) => any) | undefined;
11
11
  readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
12
12
  readonly "onSee-more"?: ((payload: SeeMoreEvent) => any) | undefined;
13
13
  readonly "onUpdate:selectionState"?: ((value: MultiSelectState) => any) | undefined;
14
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDropdown-open" | "onDropdown-closed" | "onUpdate:modelValue" | "onUpdate:searchInput" | "onSee-more" | "onUpdate:selectionState"> & ({
14
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onDropdown-open" | "onDropdown-closed" | "onUpdate:searchInput" | "onSee-more" | "onUpdate:selectionState"> & ({
15
15
  modelValue?: MenuOption<T>[];
16
16
  selectionState?: MultiSelectState;
17
17
  searchInput?: string;
@@ -47,7 +47,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
47
47
  teleportLocation: string;
48
48
  totalOptionCount: number;
49
49
  additionalCounter: number;
50
- counterPosition: "none" | "right" | "left";
50
+ counterPosition: "right" | "left" | "none";
51
51
  variant: PvSelectButtonVariant;
52
52
  size: PvSelectButtonSize;
53
53
  label: string;
@@ -90,7 +90,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
90
90
  teleportLocation: string;
91
91
  totalOptionCount: number;
92
92
  additionalCounter: number;
93
- counterPosition: "none" | "right" | "left";
93
+ counterPosition: "right" | "left" | "none";
94
94
  variant: PvSelectButtonVariant;
95
95
  size: PvSelectButtonSize;
96
96
  label: string;
@@ -133,7 +133,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
133
133
  teleportLocation: string;
134
134
  totalOptionCount: number;
135
135
  additionalCounter: number;
136
- counterPosition: "none" | "right" | "left";
136
+ counterPosition: "right" | "left" | "none";
137
137
  variant: PvSelectButtonVariant;
138
138
  size: PvSelectButtonSize;
139
139
  label: string;
@@ -26,14 +26,14 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
26
26
  }>, {
27
27
  delay: number;
28
28
  disableInteractive: boolean;
29
- useTeleport: boolean;
30
- teleportLocation: string;
31
- position: PvAlignmentPositions;
32
29
  disableAutoPlacement: boolean;
30
+ position: PvAlignmentPositions;
33
31
  positioningStrategy: Strategy;
34
32
  showOnHover: boolean;
33
+ useTeleport: boolean;
35
34
  disableClickOutsideToClose: boolean;
36
35
  zIndex: number;
36
+ teleportLocation: string;
37
37
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
38
38
  triggerWrapper: HTMLDivElement;
39
39
  floating: HTMLDivElement;
@@ -1,4 +1,4 @@
1
- import { PvRangeProps, PvRangeValue, PvRangeSize, PvRangeColor, PvRangeMode } from './types';
1
+ import { PvRangeProps, PvRangeValue, PvRangeSize, PvRangeMode, PvRangeColor } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = PvRangeProps;
4
4
  type __VLS_PublicProps = {
@@ -15,9 +15,9 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
15
15
  size: PvRangeSize;
16
16
  label: string;
17
17
  disabled: boolean;
18
+ mode: PvRangeMode;
18
19
  showClear: boolean;
19
20
  color: PvRangeColor;
20
- mode: PvRangeMode;
21
21
  step: number | null;
22
22
  min: number | null;
23
23
  max: number | null;
@@ -47,11 +47,11 @@ export interface PvSelectButtonProps<T = unknown> {
47
47
  }
48
48
  declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
49
49
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
50
+ readonly "onUpdate:modelValue"?: ((value: MenuOption<unknown>) => any) | undefined;
50
51
  readonly "onDropdown-open"?: (() => any) | undefined;
51
52
  readonly "onDropdown-closed"?: (() => any) | undefined;
52
- readonly "onUpdate:modelValue"?: ((value: MenuOption<unknown>) => any) | undefined;
53
53
  readonly "onUpdate:searchInput"?: ((value: string) => any) | undefined;
54
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDropdown-open" | "onDropdown-closed" | "onUpdate:modelValue" | "onUpdate:searchInput"> & ({
54
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onDropdown-open" | "onDropdown-closed" | "onUpdate:searchInput"> & ({
55
55
  modelValue?: MenuOption;
56
56
  searchInput?: string;
57
57
  } & PvSelectButtonProps<T>) & Partial<{}>> & PublicProps;
@@ -0,0 +1,27 @@
1
+ import { PvSplitButtonProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { PvAlignmentPositions } from '../baseProps';
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ 'menu-content'?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<PvSplitButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
+ click: () => any;
15
+ }, string, PublicProps, Readonly<PvSplitButtonProps> & Readonly<{
16
+ onClick?: (() => any) | undefined;
17
+ }>, {
18
+ position: PvAlignmentPositions;
19
+ offset: number;
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,12 @@
1
+ import { PvButtonProps, PvButtonVariant } from '../PvButton/types';
2
+ import { PvAlignmentPositions } from '../baseProps';
3
+ export interface PvSplitButtonProps extends Omit<PvButtonProps, "variant" | "label" | "ariaLabel"> {
4
+ /** Text within the action button */
5
+ label: string;
6
+ /** Visual style — restricted to primary and secondary */
7
+ variant?: Extract<PvButtonVariant, "primary" | "secondary">;
8
+ /** Offset in pixels between the trigger and the popover */
9
+ offset?: number;
10
+ /** Where the popover opens relative to the trigger */
11
+ position?: PvAlignmentPositions;
12
+ }
@@ -1,6 +1,7 @@
1
1
  export { default as PvButton } from './PvButton/PvButton.vue';
2
2
  export { default as PvAiButton } from './PvAiButton/PvAiButton.vue';
3
3
  export { default as PvButtonWithTooltip } from './PvButton/PvButtonWithTooltip.vue';
4
+ export { default as PvSplitButton } from './PvSplitButton/PvSplitButton.vue';
4
5
  export { default as PvCounterBadge } from './PvCounterBadge/PvCounterBadge.vue';
5
6
  export { default as PvReleaseBadge } from './PvReleaseBadge/PvReleaseBadge.vue';
6
7
  export { default as PvTag } from './PvTag/PvTag.vue';