@turquoisehealth/pit-viper 2.92.0 → 2.94.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 (23) hide show
  1. package/package.json +3 -4
  2. package/pv-components/dist/vue/base/components/base/PvActionBar/PvActionBar.vue.d.ts +12 -2
  3. package/pv-components/dist/vue/base/components/base/PvButton/types.d.ts +9 -1
  4. package/pv-components/dist/vue/base/components/base/PvCompanyLogo/types.d.ts +1 -1
  5. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuCheckboxItem.vue.d.ts +5 -1
  6. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuItem.vue.d.ts +5 -1
  7. package/pv-components/dist/vue/base/components/base/PvMenu/items/PvMenuRadioItem.vue.d.ts +5 -1
  8. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +1 -1
  9. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectMenuItem.vue.d.ts +1 -1
  10. package/pv-components/dist/vue/base/components/base/PvPill/types.d.ts +1 -1
  11. package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/useQueryBuilder.d.ts +1 -1
  12. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +5 -1
  13. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +3 -1
  14. package/pv-components/dist/vue/base/components/base/PvTag/types.d.ts +1 -1
  15. package/pv-components/dist/vue/base/pv-components-base.js +82 -38
  16. package/pv-components/dist/vue/base/pv-components-base.mjs +5132 -4894
  17. package/pv-components/dist/vue/base/pv-components-base.umd.js +82 -38
  18. package/pv-components/dist/vue/base/types.d.ts +2 -1
  19. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +18 -18
  20. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +4960 -5063
  21. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +14 -14
  22. package/pv-components/dist/vue/visualizations/types.d.ts +2 -1
  23. package/pv-components/dist/web/pv-components.iife.js +89 -45
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.92.0",
3
+ "version": "2.94.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -44,15 +44,14 @@
44
44
  "build:eleventy": "eleventy",
45
45
  "build:pagefind": "npx pagefind --site _site",
46
46
  "build:pv-components": "npm run build --workspace=pv-components",
47
- "watch:pv-components": "npm run watch_docs --workspace=pv-components",
48
47
  "prepublishOnly": "npm install && npm run test && npm run build",
49
48
  "start": "npm-run-all build:sass --parallel watch:*",
50
49
  "build": "npm-run-all build:*",
51
- "prebuild": "npm run build_docs --workspace=pv-components",
52
50
  "postbuild": "eleventy --quiet",
53
51
  "prepare": "husky",
54
52
  "test": "npm run test --workspace=pv-components",
55
- "create_pr": "tsx ./scripts/createPR.ts"
53
+ "create_pr": "tsx ./scripts/createPR.ts",
54
+ "storybook": "npm run storybook --workspace=storybook"
56
55
  },
57
56
  "keywords": [],
58
57
  "repository": {
@@ -5,8 +5,18 @@ interface PvActionBarProps {
5
5
  }
6
6
  declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
- slots: {
9
- default?(_: {}): any;
8
+ slots: Readonly<{
9
+ /**
10
+ * Default slot for action bar content.
11
+ * sections are divided by the root elements inside the slot.
12
+ */
13
+ default(): never;
14
+ }> & {
15
+ /**
16
+ * Default slot for action bar content.
17
+ * sections are divided by the root elements inside the slot.
18
+ */
19
+ default(): never;
10
20
  };
11
21
  refs: {};
12
22
  rootEl: HTMLDivElement;
@@ -1,20 +1,28 @@
1
1
  import { PvSize, PvVariants } from '../baseProps';
2
- import { PvTooltipPositions, PvTooltipVariants } from '../PvTooltip/types.ts';
2
+ import { PvTooltipPositions, PvTooltipVariants } from '../PvTooltip/types';
3
3
  export type PvButtonSize = Extract<PvSize, "md" | "lg" | "xl">;
4
4
  export type PvButtonVariant = Extract<PvVariants, "primary" | "secondary" | "ghost" | "destructive" | "tertiary">;
5
5
  export interface PvButtonProps {
6
6
  variant?: PvButtonVariant;
7
+ /** Button cannot be pressed */
7
8
  disabled?: boolean;
8
9
  size?: PvButtonSize;
10
+ /** Show loading spinner */
9
11
  loading?: boolean;
12
+ /** Text within the button */
10
13
  label?: string;
14
+ /** Optional icon on the left side of the button */
11
15
  leftIcon?: string;
16
+ /** Optional icon on the right side of the button */
12
17
  rightIcon?: string;
18
+ /** Inverse button colors for dark backgrounds */
13
19
  inverse?: boolean;
14
20
  }
15
21
  export interface PvButtonWithTooltipProps extends PvButtonProps {
22
+ /** Text to show within the tooltip */
16
23
  tooltipText: string;
17
24
  tooltipVariant?: PvTooltipVariants;
18
25
  tooltipPosition?: PvTooltipPositions;
26
+ /** Delay in milliseconds before showing the tooltip */
19
27
  delay?: number;
20
28
  }
@@ -1,2 +1,2 @@
1
- import { PvSize } from '../baseProps.ts';
1
+ import { PvSize } from '../baseProps';
2
2
  export type PvCompanyLogoSize = PvSize;
@@ -1,9 +1,13 @@
1
1
  import { Component, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
2
3
  export interface PvMenuCheckboxItem {
3
4
  id: string;
4
5
  text: string;
5
6
  subText?: string;
6
- secondaryText?: string | number;
7
+ /** Value of the secondary text which appears on the menu item. Number shows up as a counter badge, string shows up as plain text */
8
+ secondaryText?: number | string;
9
+ /** Variant of the counter badge which appears on the menu item */
10
+ counterBadgeVariant?: PvCounterBadgeVariant;
7
11
  value?: boolean;
8
12
  disabled?: boolean;
9
13
  renderer?: Component;
@@ -1,9 +1,13 @@
1
1
  import { Component, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
2
3
  export interface PvMenuItemProps {
3
4
  id: string;
4
5
  text: string;
5
6
  subText?: string;
6
- secondaryText?: string | number;
7
+ /** Value of the secondary text which appears on the menu item. Number shows up as a counter badge, string shows up as plain text */
8
+ secondaryText?: number | string;
9
+ /** Variant of the counter badge which appears on the menu item */
10
+ counterBadgeVariant?: PvCounterBadgeVariant;
7
11
  icon?: string;
8
12
  companyName?: string;
9
13
  avatar?: {
@@ -1,8 +1,12 @@
1
+ import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
1
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
3
  export interface PvMenuRadioItem {
3
4
  text: string;
4
5
  subText?: string;
5
- secondaryText?: string | number;
6
+ /** Value of the secondary text which appears on the menu item. Number shows up as a counter badge, string shows up as plain text */
7
+ secondaryText?: number | string;
8
+ /** Variant of the counter badge which appears on the menu item */
9
+ counterBadgeVariant?: PvCounterBadgeVariant;
6
10
  value?: boolean;
7
11
  }
8
12
  declare const _default: DefineComponent<PvMenuRadioItem, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties, nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ShallowRef, VNodeRef, VNode } from 'vue';
2
2
  import { PvSelectButtonSize, PvSelectButtonVariant } from './types';
3
- import { MenuOption, MenuOptionsVariant } from '../../../types.ts';
3
+ import { MenuOption, MenuOptionsVariant } from '../../../types';
4
4
  import { PvSelectButtonTrigger } from '../PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue';
5
5
  import { PvPopoverProps } from '../PvPopover/PvPopover.vue';
6
6
  import { OnCleanup } from '@vue/reactivity';
@@ -1,4 +1,4 @@
1
- import { MenuOption, MenuOptionsVariant } from '../../../types.ts';
1
+ import { MenuOption, MenuOptionsVariant } from '../../../types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface PvMenuSelectMenuItem {
4
4
  optionsVariant?: Exclude<MenuOptionsVariant, "radio">;
@@ -1,4 +1,4 @@
1
- import { PvColorVariants, PvSize } from '../baseProps.ts';
1
+ import { PvColorVariants, PvSize } from '../baseProps';
2
2
  export type PillSize = Extract<PvSize, "md" | "lg" | "sm">;
3
3
  export type PillVariant = Extract<PvColorVariants, "default" | "success" | "warning" | "critical" | "highlight">;
4
4
  export type PillDotVariant = "green" | "orange" | "yellow" | "red";
@@ -1,4 +1,4 @@
1
- import { MenuOption } from '../../../types.ts';
1
+ import { MenuOption } from '../../../types';
2
2
  export type QueryBuilderProcessor = "full" | "field-only";
3
3
  export interface QueryBuilderOutput {
4
4
  queryTerms: QueryTerm[];
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties, nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
2
  import { PvSelectButtonSize, PvSelectButtonVariant } from './types';
3
- import { MenuOption, MenuOptionsVariant } from '../../../types.ts';
3
+ import { MenuOption, MenuOptionsVariant } from '../../../types';
4
+ import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
4
5
  import { PvSelectButtonTrigger } from './PvSelectButtonTrigger/PvSelectButtonTrigger.vue';
5
6
  import { PvSelectButtonSize, PvSelectButtonVariant } from '../PvMultiSelectButton/types';
6
7
  import { PvPopoverProps } from '../PvPopover/PvPopover.vue';
@@ -24,6 +25,9 @@ export interface PvSelectButton {
24
25
  options: MenuOption[];
25
26
  useTeleport?: boolean;
26
27
  allowDeselect?: boolean;
28
+ counterPosition?: "left" | "right";
29
+ /** Variant of the counter badge which appears on the button and menu items */
30
+ counterBadgeVariant?: PvCounterBadgeVariant;
27
31
  }
28
32
  declare const _default: DefineComponent<{
29
33
  modelValue?: MenuOption;
@@ -1,4 +1,5 @@
1
- import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types.ts';
1
+ import { PvSelectButtonSize, PvSelectButtonVariant } from '../../PvMultiSelectButton/types';
2
+ import { PvCounterBadgeVariant } from '../../PvCounterBadge/types';
2
3
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
4
  export interface PvSelectButtonTrigger {
4
5
  variant?: PvSelectButtonVariant;
@@ -6,6 +7,7 @@ export interface PvSelectButtonTrigger {
6
7
  disabled?: boolean;
7
8
  counterPosition?: "left" | "right" | "none";
8
9
  counterValue?: number;
10
+ counterBadgeVariant?: PvCounterBadgeVariant;
9
11
  prefixLabel?: string;
10
12
  label?: string;
11
13
  icon?: string;
@@ -1,3 +1,3 @@
1
- import { PvSize, PvVariants } from '../baseProps.ts';
1
+ import { PvSize, PvVariants } from '../baseProps';
2
2
  export type TagSize = Extract<PvSize, "sm" | "md" | "lg">;
3
3
  export type TagVariant = Extract<PvVariants, "primary" | "tertiary">;