@turquoisehealth/pit-viper 2.96.0 → 2.96.1-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 (27) hide show
  1. package/_site/assets/css/pit-viper-v2-scoped.css +33 -0
  2. package/_site/assets/css/pit-viper-v2.css +37 -0
  3. package/_site/assets/css/pit-viper.css +37 -0
  4. package/package.json +2 -2
  5. package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +48 -0
  6. package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +15 -0
  7. package/pv-components/dist/vue/base/components/base/PvToggleGroup/PvToggleGroup.vue.d.ts +12 -0
  8. package/pv-components/dist/vue/base/components/base/PvToggleGroup/types.d.ts +12 -0
  9. package/pv-components/dist/vue/base/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +28 -0
  10. package/pv-components/dist/vue/base/components/base/PvTooltipV2/types.d.ts +10 -0
  11. package/pv-components/dist/vue/base/components/base/baseProps.d.ts +1 -0
  12. package/pv-components/dist/vue/base/components/base/index.d.ts +3 -0
  13. package/pv-components/dist/vue/base/pv-components-base.js +26 -26
  14. package/pv-components/dist/vue/base/pv-components-base.mjs +4059 -2871
  15. package/pv-components/dist/vue/base/pv-components-base.umd.js +26 -26
  16. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +2 -2
  17. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +268 -263
  18. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +2 -2
  19. package/pv-components/dist/web/pv-components.iife.js +35 -35
  20. package/pv-components/dist/vue/charts/pv-components-charts.d.ts +0 -491
  21. package/pv-components/dist/vue/charts/pv-components-charts.js +0 -259
  22. package/pv-components/dist/vue/charts/pv-components-charts.mjs +0 -121834
  23. package/pv-components/dist/vue/charts/pv-components-charts.umd.js +0 -259
  24. package/pv-components/dist/vue/tables/pv-components-tables.d.ts +0 -299
  25. package/pv-components/dist/vue/tables/pv-components-tables.js +0 -223
  26. package/pv-components/dist/vue/tables/pv-components-tables.mjs +0 -47028
  27. package/pv-components/dist/vue/tables/pv-components-tables.umd.js +0 -223
@@ -3073,6 +3073,39 @@
3073
3073
  color: #121313;
3074
3074
  padding: 1rem;
3075
3075
  }
3076
+ .pv-v2 .pv-tooltip-v2-content {
3077
+ --max-width: 320px;
3078
+ max-width: var(--max-width);
3079
+ width: max-content;
3080
+ padding: 0.5rem;
3081
+ border: 1px solid transparent;
3082
+ border-radius: 4px;
3083
+ font-size: 0.6875rem;
3084
+ line-height: 1.45454545;
3085
+ box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.12);
3086
+ background-color: #242626;
3087
+ color: #FFFFFF;
3088
+ }
3089
+ .pv-v2 .pv-tooltip-v2-content-small {
3090
+ padding: 0.25rem 0.5rem;
3091
+ font-size: 12px;
3092
+ }
3093
+ .pv-v2 .pv-tooltip[data-style=white] .pv-tooltip-v2-content {
3094
+ background-color: white;
3095
+ color: #121313;
3096
+ border-color: #E3E7EA;
3097
+ }
3098
+ .pv-v2 .pv-tooltip[data-style=white] .pv-tooltip-v2-content a {
3099
+ color: #16696D;
3100
+ }
3101
+ .pv-v2 .pv-tooltip[data-style=dark] .pv-tooltip-v2-content {
3102
+ background-color: #242626;
3103
+ color: #FFFFFF;
3104
+ border-color: transparent;
3105
+ }
3106
+ .pv-v2 .pv-tooltip[data-style=dark] .pv-tooltip-v2-content a {
3107
+ color: #E4F8F6;
3108
+ }
3076
3109
  .pv-v2 [class*=pv-accordion] summary,
3077
3110
  .pv-v2 .pv-details summary {
3078
3111
  list-style: none;
@@ -3333,6 +3333,43 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3333
3333
  padding: 1rem;
3334
3334
  }
3335
3335
 
3336
+ .pv-tooltip-v2-content {
3337
+ --max-width: 320px;
3338
+ max-width: var(--max-width);
3339
+ width: max-content;
3340
+ padding: 0.5rem;
3341
+ border: 1px solid transparent;
3342
+ border-radius: 4px;
3343
+ font-size: 0.6875rem;
3344
+ line-height: 1.45454545;
3345
+ box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.12);
3346
+ background-color: #242626;
3347
+ color: #FFFFFF;
3348
+ }
3349
+
3350
+ .pv-tooltip-v2-content-small {
3351
+ padding: 0.25rem 0.5rem;
3352
+ font-size: 12px;
3353
+ }
3354
+
3355
+ .pv-tooltip[data-style=white] .pv-tooltip-v2-content {
3356
+ background-color: white;
3357
+ color: #121313;
3358
+ border-color: #E3E7EA;
3359
+ }
3360
+ .pv-tooltip[data-style=white] .pv-tooltip-v2-content a {
3361
+ color: #16696D;
3362
+ }
3363
+
3364
+ .pv-tooltip[data-style=dark] .pv-tooltip-v2-content {
3365
+ background-color: #242626;
3366
+ color: #FFFFFF;
3367
+ border-color: transparent;
3368
+ }
3369
+ .pv-tooltip[data-style=dark] .pv-tooltip-v2-content a {
3370
+ color: #E4F8F6;
3371
+ }
3372
+
3336
3373
  [class*=pv-accordion] summary,
3337
3374
  .pv-details summary {
3338
3375
  list-style: none;
@@ -3338,6 +3338,43 @@ pv-dropdown-auto-close.pv-dropdown > [class*=pv-button][data-dropdown] {
3338
3338
  padding: 1rem;
3339
3339
  }
3340
3340
 
3341
+ .pv-tooltip-v2-content {
3342
+ --max-width: 320px;
3343
+ max-width: var(--max-width);
3344
+ width: max-content;
3345
+ padding: 0.5rem 0.75rem;
3346
+ border: 1px solid transparent;
3347
+ border-radius: 0.25rem;
3348
+ font-size: 0.875rem;
3349
+ line-height: 1.42857143;
3350
+ box-shadow: 0px 12px 16px 0px rgba(0, 0, 0, 0.1), 0px 8px 12px -4px rgba(0, 0, 0, 0.08), 0px 0px 1px 0px rgba(0, 0, 0, 0.3);
3351
+ background-color: #011214;
3352
+ color: #FFFFFF;
3353
+ }
3354
+
3355
+ .pv-tooltip-v2-content-small {
3356
+ padding: 0.5rem 0.25rem;
3357
+ font-size: 12px;
3358
+ }
3359
+
3360
+ .pv-tooltip[data-style=white] .pv-tooltip-v2-content {
3361
+ background-color: white;
3362
+ color: #02363D;
3363
+ border-color: #DCDFE4;
3364
+ }
3365
+ .pv-tooltip[data-style=white] .pv-tooltip-v2-content a {
3366
+ color: #176F6F;
3367
+ }
3368
+
3369
+ .pv-tooltip[data-style=dark] .pv-tooltip-v2-content {
3370
+ background-color: #011214;
3371
+ color: #FFFFFF;
3372
+ border-color: transparent;
3373
+ }
3374
+ .pv-tooltip[data-style=dark] .pv-tooltip-v2-content a {
3375
+ color: #A8E6E1;
3376
+ }
3377
+
3341
3378
  [class*=pv-accordion] summary,
3342
3379
  .pv-details summary {
3343
3380
  list-style: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.96.0",
3
+ "version": "2.96.1-dev.1",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -22,7 +22,7 @@
22
22
  "pv-components/dist"
23
23
  ],
24
24
  "engines": {
25
- "node": ">=20"
25
+ "node": ">=20.0.0"
26
26
  },
27
27
  "exports": {
28
28
  "./components": {
@@ -0,0 +1,48 @@
1
+ import { PvPopoverV2Props } from './types.ts';
2
+ import { PvAlignmentPositions } from '../baseProps.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ import { Strategy } from '@floating-ui/utils';
5
+ type __VLS_Props = PvPopoverV2Props;
6
+ type __VLS_PublicProps = {
7
+ modelValue?: boolean;
8
+ } & __VLS_Props;
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ trigger?(_: {}): any;
13
+ content?(_: {}): any;
14
+ };
15
+ refs: {
16
+ triggerWrapper: HTMLDivElement;
17
+ floating: HTMLDivElement;
18
+ };
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
+ "update:modelValue": (value: boolean) => any;
24
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
+ }>, {
27
+ delay: number;
28
+ useTeleport: boolean;
29
+ teleportLocation: string;
30
+ position: PvAlignmentPositions;
31
+ disableAutoPlacement: boolean;
32
+ allowedAutoPlacements: PvAlignmentPositions[];
33
+ positioningStrategy: Strategy;
34
+ showOnHover: boolean;
35
+ disableInteractive: boolean;
36
+ disableClickOutsideToClose: boolean;
37
+ zIndex: number;
38
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
39
+ triggerWrapper: HTMLDivElement;
40
+ floating: HTMLDivElement;
41
+ }, HTMLDivElement>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
+ export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,15 @@
1
+ import { Strategy } from '@floating-ui/vue';
2
+ import { PvAlignmentPositions } from '../baseProps.ts';
3
+ export interface PvPopoverV2Props {
4
+ disableAutoPlacement?: boolean;
5
+ allowedAutoPlacements?: PvAlignmentPositions[];
6
+ position?: PvAlignmentPositions;
7
+ positioningStrategy?: Strategy;
8
+ showOnHover?: boolean;
9
+ disableInteractive?: boolean;
10
+ useTeleport?: boolean;
11
+ disableClickOutsideToClose?: boolean;
12
+ delay?: number;
13
+ zIndex?: number;
14
+ teleportLocation?: string;
15
+ }
@@ -0,0 +1,12 @@
1
+ import { PvToggleGroupOption, PvToggleGroupProps } from './types.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = PvToggleGroupProps;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: PvToggleGroupOption | null;
6
+ } & __VLS_Props;
7
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ "update:modelValue": (value: PvToggleGroupOption | null) => any;
9
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: PvToggleGroupOption | null) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ export interface PvToggleGroupOption {
2
+ label: string;
3
+ value: string;
4
+ icon?: string;
5
+ disabled?: boolean;
6
+ }
7
+ export interface PvToggleGroupProps {
8
+ disabled?: boolean;
9
+ allowDeselect?: boolean;
10
+ hideLabels?: boolean;
11
+ options?: PvToggleGroupOption[];
12
+ }
@@ -0,0 +1,28 @@
1
+ import { PvTooltipV2Props, PvTooltipSize, PvTooltipVariants } 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
+ trigger?(_: {}): any;
8
+ content?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: DefineComponent<PvTooltipV2Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvTooltipV2Props> & Readonly<{}>, {
15
+ delay: number;
16
+ size: PvTooltipSize;
17
+ variant: PvTooltipVariants;
18
+ position: PvAlignmentPositions;
19
+ showOnHover: boolean;
20
+ disableInteractive: boolean;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,10 @@
1
+ import { PvSize } from '../baseProps';
2
+ import { PvPopoverV2Props } from '../PvPopoverV2/types.ts';
3
+ export type PvTooltipVariants = "white" | "dark";
4
+ export type PvTooltipSize = Extract<PvSize, "sm" | "md">;
5
+ export interface PvTooltipV2Props extends PvPopoverV2Props {
6
+ variant?: PvTooltipVariants;
7
+ label?: string;
8
+ description?: string;
9
+ size?: PvTooltipSize;
10
+ }
@@ -13,3 +13,4 @@ export type PvTextInputColors = (typeof PvTextInputColors)[number];
13
13
  export declare const sizeMap: Record<PvSize, string>;
14
14
  export declare const PvIconSizes: readonly [undefined, 10, 12, 20, 24, 32, 64];
15
15
  export type PvIconSize = (typeof PvIconSizes)[number];
16
+ export type PvAlignmentPositions = "bottom-left" | "bottom-center" | "bottom-right" | "top-left" | "top-center" | "top-right" | "center-left" | "center-right";
@@ -7,6 +7,7 @@ export { default as PvPill } from './PvPill/PvPill.vue';
7
7
  export { default as PvDropdown } from './PvDropdown/PvDropdown.vue';
8
8
  export { default as PvIcon } from './PvIcon/PvIcon.vue';
9
9
  export { default as PvPopover } from './PvPopover/PvPopover.vue';
10
+ export { default as PvPopoverV2 } from './PvPopoverV2/PvPopoverV2.vue';
10
11
  export { default as PvSegmentedControl } from './PvSegmentedControl/PvSegmentedControl.vue';
11
12
  export { default as PvTabList } from './PvTabList/PvTabList.vue';
12
13
  export { default as PvCompanyLogo } from './PvCompanyLogo/PvCompanyLogo.vue';
@@ -20,6 +21,7 @@ export { default as PvDatePicker } from './PvDatePicker/PvDatePicker.vue';
20
21
  export { default as PvDateTime } from './PvDateTime/PvDateTime.vue';
21
22
  export { default as PvDrawer } from './PvDrawer/PvDrawer.vue';
22
23
  export { default as PvTooltip } from './PvTooltip/PvTooltip.vue';
24
+ export { default as PvTooltipV2 } from './PvTooltipV2/PvTooltipV2.vue';
23
25
  export { default as PvTabs } from './PvTabs/PvTabs.vue';
24
26
  export { default as PvBreadcrumbs } from './PvBreadcrumbs/PvBreadcrumbs.vue';
25
27
  export { default as PvMultiSelectButton } from './PvMultiSelectButton/PvMultiSelectButton.vue';
@@ -32,6 +34,7 @@ export { default as PvCompanyLabel } from './PvCompanyLabel/PvCompanyLabel.vue';
32
34
  export { default as PvAvatar } from './PvAvatar/PvAvatar.vue';
33
35
  export { default as PvAvatarGroup } from './PvAvatarGroup/PvAvatarGroup.vue';
34
36
  export { default as PvToggleButton } from './PvToggleButton/PvToggleButton.vue';
37
+ export { default as PvToggleGroup } from './PvToggleGroup/PvToggleGroup.vue';
35
38
  export { default as PvCheckbox } from './PvCheckbox/PvCheckbox.vue';
36
39
  export { default as PvSprite } from './PvSprite/PvSprite.vue';
37
40
  export { default as PvSkeleton } from './PvSkeleton/PvSkeleton.vue';