@turquoisehealth/pit-viper 2.97.0 → 2.98.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.97.0",
3
+ "version": "2.98.0",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -13,6 +13,7 @@ export interface PvMenuCheckboxItem {
13
13
  renderer?: Component;
14
14
  rendererProps?: any;
15
15
  classList?: string[];
16
+ children?: PvMenuCheckboxItem[];
16
17
  }
17
18
  declare const _default: DefineComponent<PvMenuCheckboxItem, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
18
19
  "handle-selected": () => any;
@@ -20,6 +20,7 @@ export interface PvMenuItemProps {
20
20
  rendererProps?: any;
21
21
  classList?: string[];
22
22
  searchText?: string;
23
+ children?: PvMenuItemProps[];
23
24
  }
24
25
  declare const _default: DefineComponent<PvMenuItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
25
26
  "handle-selected": () => any;
@@ -8,6 +8,7 @@ export interface PvMenuRadioItem {
8
8
  /** Variant of the counter badge which appears on the menu item */
9
9
  counterBadgeVariant?: PvCounterBadgeVariant;
10
10
  value?: boolean;
11
+ children?: PvMenuRadioItem[];
11
12
  }
12
13
  declare const _default: DefineComponent<PvMenuRadioItem, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
14
  "handle-selected": () => any;
@@ -0,0 +1,19 @@
1
+ import { PvCounterBadgeVariant } from '../PvCounterBadge/types';
2
+ import { MenuOption, MenuOptionsVariant } from '../../../types';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface PvMenuSelectMenuItem {
5
+ optionsVariant?: Exclude<MenuOptionsVariant, "checkbox">;
6
+ option: MenuOption;
7
+ counterBadgeVariant?: PvCounterBadgeVariant;
8
+ selectedItem?: MenuOption;
9
+ level?: number;
10
+ }
11
+ declare const _default: DefineComponent<PvMenuSelectMenuItem, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
+ "handle-select-item": (payload: MenuOption) => any;
13
+ }, string, PublicProps, Readonly<PvMenuSelectMenuItem> & Readonly<{
14
+ "onHandle-select-item"?: ((payload: MenuOption) => any) | undefined;
15
+ }>, {
16
+ optionsVariant: Exclude<MenuOptionsVariant, "checkbox">;
17
+ level: number;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -1,3 +1,11 @@
1
+ export declare const simpleNestedOptions: {
2
+ id: string;
3
+ text: string;
4
+ children: {
5
+ id: string;
6
+ text: string;
7
+ }[];
8
+ }[];
1
9
  export declare const simpleOptions: {
2
10
  id: string;
3
11
  text: string;