@turquoisehealth/pit-viper 2.93.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.93.0",
3
+ "version": "2.94.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -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,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
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
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;