@turquoisehealth/pit-viper 2.104.2-dev.0 → 2.105.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 (122) hide show
  1. package/_site/assets/css/pit-viper-v2-scoped.css +0 -19
  2. package/_site/assets/css/pit-viper-v2.css +0 -21
  3. package/_site/assets/css/pit-viper.css +0 -21
  4. package/_site/assets/js/pit-viper.js +147 -0
  5. package/package.json +11 -38
  6. package/pv-components/dist/stats/vue/base/stats.html +15 -15
  7. package/pv-components/dist/stats/vue/visualizations/stats.html +15 -15
  8. package/pv-components/dist/stats/web/pv-accordion-stats.html +15 -15
  9. package/pv-components/dist/stats/web/pv-action-bar-stats.html +15 -15
  10. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +15 -15
  11. package/pv-components/dist/stats/web/pv-avatar-stats.html +15 -15
  12. package/pv-components/dist/stats/web/pv-banner-stats.html +15 -15
  13. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +15 -15
  14. package/pv-components/dist/stats/web/pv-button-stats.html +15 -15
  15. package/pv-components/dist/stats/web/pv-card-stats.html +15 -15
  16. package/pv-components/dist/stats/web/pv-checkbox-stats.html +15 -15
  17. package/pv-components/dist/stats/web/pv-company-label-stats.html +15 -15
  18. package/pv-components/dist/stats/web/pv-company-logo-stats.html +15 -15
  19. package/pv-components/dist/stats/web/pv-company-tag-stats.html +15 -15
  20. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +15 -15
  21. package/pv-components/dist/stats/web/pv-date-picker-stats.html +15 -15
  22. package/pv-components/dist/stats/web/pv-date-time-stats.html +15 -15
  23. package/pv-components/dist/stats/web/pv-drawer-stats.html +15 -15
  24. package/pv-components/dist/stats/web/pv-dropdown-stats.html +15 -15
  25. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +15 -15
  26. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +15 -15
  27. package/pv-components/dist/stats/web/pv-icon-stats.html +15 -15
  28. package/pv-components/dist/stats/web/pv-input-stats.html +15 -15
  29. package/pv-components/dist/stats/web/pv-insight-card-stats.html +15 -15
  30. package/pv-components/dist/stats/web/pv-modal-stats.html +15 -15
  31. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +15 -15
  32. package/pv-components/dist/stats/web/pv-pagination-stats.html +15 -15
  33. package/pv-components/dist/stats/web/pv-pill-stats.html +15 -15
  34. package/pv-components/dist/stats/web/pv-popover-stats.html +15 -15
  35. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +15 -15
  36. package/pv-components/dist/stats/web/pv-rating-stats.html +15 -15
  37. package/pv-components/dist/stats/web/pv-release-badge-stats.html +15 -15
  38. package/pv-components/dist/stats/web/pv-search-input-stats.html +15 -15
  39. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +15 -15
  40. package/pv-components/dist/stats/web/pv-select-button-stats.html +15 -15
  41. package/pv-components/dist/stats/web/pv-selectable-card-stats.html +15 -15
  42. package/pv-components/dist/stats/web/pv-side-panel-stats.html +15 -15
  43. package/pv-components/dist/stats/web/pv-skeleton-stats.html +15 -15
  44. package/pv-components/dist/stats/web/pv-spinner-stats.html +15 -15
  45. package/pv-components/dist/stats/web/pv-sprite-stats.html +15 -15
  46. package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +15 -15
  47. package/pv-components/dist/stats/web/pv-switch-stats.html +15 -15
  48. package/pv-components/dist/stats/web/pv-tab-list-stats.html +15 -15
  49. package/pv-components/dist/stats/web/pv-tabs-stats.html +15 -15
  50. package/pv-components/dist/stats/web/pv-tag-stats.html +15 -15
  51. package/pv-components/dist/stats/web/pv-text-area-stats.html +15 -15
  52. package/pv-components/dist/stats/web/pv-toast-stats.html +15 -15
  53. package/pv-components/dist/stats/web/pv-toggle-button-stats.html +15 -15
  54. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +15 -15
  55. package/pv-components/dist/stats/web/pv-tooltip-stats.html +15 -15
  56. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +15 -15
  57. package/pv-components/dist/stats/web/pv-widget-stats.html +15 -15
  58. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -3
  59. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +1 -1
  60. package/pv-components/dist/vue/base/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +0 -1
  61. package/pv-components/dist/vue/base/components/base/PvTooltipV2/types.d.ts +1 -2
  62. package/pv-components/dist/vue/base/components/base/index.d.ts +1 -0
  63. package/pv-components/dist/vue/base/pv-components-base.js +1546 -0
  64. package/pv-components/dist/vue/base/pv-components-base.mjs +6653 -4387
  65. package/pv-components/dist/vue/base/pv-components-base.umd.js +1546 -0
  66. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +176 -0
  67. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +5920 -3407
  68. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +176 -0
  69. package/pv-components/dist/web/pv-components.iife.js +31 -31
  70. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +0 -4949
  71. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +0 -186
  72. package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +0 -66
  73. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +0 -96
  74. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +0 -102
  75. package/pv-components/dist/web/components/pv-banner/pv-banner.js +0 -155
  76. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +0 -92
  77. package/pv-components/dist/web/components/pv-button/pv-button.js +0 -173
  78. package/pv-components/dist/web/components/pv-card/pv-card.js +0 -80
  79. package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +0 -77
  80. package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +0 -153
  81. package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +0 -124
  82. package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +0 -204
  83. package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +0 -89
  84. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +0 -7481
  85. package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +0 -577
  86. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +0 -486
  87. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +0 -1724
  88. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +0 -235
  89. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +0 -251
  90. package/pv-components/dist/web/components/pv-icon/pv-icon.js +0 -81
  91. package/pv-components/dist/web/components/pv-input/pv-input.js +0 -123
  92. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +0 -293
  93. package/pv-components/dist/web/components/pv-modal/pv-modal.js +0 -118
  94. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +0 -2752
  95. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +0 -286
  96. package/pv-components/dist/web/components/pv-pill/pv-pill.js +0 -160
  97. package/pv-components/dist/web/components/pv-popover/pv-popover.js +0 -1417
  98. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +0 -1439
  99. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +0 -1421
  100. package/pv-components/dist/web/components/pv-rating/pv-rating.js +0 -78
  101. package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +0 -74
  102. package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +0 -170
  103. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +0 -145
  104. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +0 -2563
  105. package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +0 -85
  106. package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +0 -80
  107. package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +0 -1525
  108. package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +0 -83
  109. package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +0 -82
  110. package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +0 -126
  111. package/pv-components/dist/web/components/pv-switch/pv-switch.js +0 -94
  112. package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +0 -100
  113. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +0 -178
  114. package/pv-components/dist/web/components/pv-tag/pv-tag.js +0 -141
  115. package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +0 -120
  116. package/pv-components/dist/web/components/pv-toast/pv-toast.js +0 -223
  117. package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +0 -139
  118. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +0 -2887
  119. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +0 -90
  120. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +0 -1489
  121. package/pv-components/dist/web/components/pv-widget/pv-widget.js +0 -91
  122. package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +0 -7
@@ -1,204 +0,0 @@
1
- import { defineComponent as v, ref as d, computed as a, watch as y, createElementBlock as c, openBlock as i, normalizeStyle as g, normalizeClass as u, createElementVNode as f, onMounted as C, getCurrentInstance as _, createVNode as S, createBlock as P, createCommentVNode as w, toDisplayString as E, withModifiers as z, defineCustomElement as $ } from "vue";
2
- function k(e) {
3
- return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
4
- }
5
- const x = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
6
- function b(e) {
7
- return Array.from(e.match(x) ?? []);
8
- }
9
- function L(e) {
10
- const t = b(e);
11
- if (t.length === 0)
12
- return "";
13
- const [n, ...s] = t;
14
- return `${n.toLowerCase()}${s.map((o) => k(o)).join("")}`;
15
- }
16
- const N = {
17
- xs: "12px",
18
- sm: "16px",
19
- md: "20px",
20
- lg: "24px",
21
- xl: "32px",
22
- "2x": "40px"
23
- }, A = [void 0, 10, 12, 20, 24, 32, 64], T = {
24
- class: "pv-flex",
25
- "data-testid": "pv-company-logo"
26
- }, O = ["src"], R = /* @__PURE__ */ v({
27
- __name: "PvCompanyLogo",
28
- props: {
29
- basePath: { default: "https://static-assets.turquoise.health/shared-logos/prd/payers", type: String },
30
- name: { type: String },
31
- size: { default: "md", type: null },
32
- srcPathOverride: { type: String },
33
- toCamelCase: { type: Boolean, default: !0 }
34
- },
35
- setup(e) {
36
- const t = e, n = d(!0), s = a(() => N[t.size] || "32px"), o = a(() => ({
37
- "pv-icon": n.value,
38
- [`pv-company-${t.size}`]: t.size && !n.value
39
- })), l = a(() => ({
40
- width: s.value
41
- })), r = a(() => t.toCamelCase ? L(t.name) + ".svg" : t.name + ".svg"), p = a(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${r.value}`);
42
- return y(p, () => {
43
- n.value = !0;
44
- }), (U, h) => (i(), c("div", T, [
45
- n.value ? (i(), c(
46
- "div",
47
- {
48
- key: 0,
49
- class: u(o.value),
50
- style: g(l.value)
51
- },
52
- [
53
- f("img", {
54
- src: p.value,
55
- alt: "",
56
- onError: h[0] || (h[0] = (K) => n.value = !1)
57
- }, null, 40, O)
58
- ],
59
- 6
60
- /* CLASS, STYLE */
61
- )) : (i(), c(
62
- "div",
63
- {
64
- key: 1,
65
- class: u(o.value)
66
- },
67
- null,
68
- 2
69
- /* CLASS */
70
- ))
71
- ]));
72
- }
73
- }), B = ["xlink:href"], I = /* @__PURE__ */ v({
74
- __name: "PvIcon",
75
- props: {
76
- name: { type: String },
77
- size: { type: null }
78
- },
79
- setup(e) {
80
- const t = e, n = d(!1), s = d(null), o = a(() => ({
81
- "pv-icon": !0,
82
- [`pv-icon-${t.size}`]: A.includes(t.size)
83
- })), l = a(() => n.value && s.value ? `${s.value}#${t.name}` : `#${t.name}`);
84
- return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (s.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), C(() => {
85
- const r = _()?.root;
86
- n.value = r && "isCE" in r && r.isCE;
87
- }), (r, p) => (i(), c(
88
- "svg",
89
- {
90
- "data-testid": "pv-icon",
91
- "aria-hidden": "true",
92
- class: u(o.value)
93
- },
94
- [
95
- f("use", { "xlink:href": l.value }, null, 8, B)
96
- ],
97
- 2
98
- /* CLASS */
99
- ));
100
- }
101
- }), M = /* @__PURE__ */ v({
102
- __name: "PvCompanyTag",
103
- props: {
104
- companyName: { type: String },
105
- size: { default: "md", type: String },
106
- showClear: { type: Boolean, default: !1 }
107
- },
108
- emits: ["handle-close", "handle-click"],
109
- setup(e) {
110
- const t = e, n = a(() => {
111
- switch (t.size) {
112
- case "lg":
113
- return "pv-tag-lg";
114
- case "sm":
115
- return "pv-tag-sm";
116
- default:
117
- return "";
118
- }
119
- });
120
- return (s, o) => (i(), c(
121
- "button",
122
- {
123
- class: u(["pv-tag-tertiary", n.value]),
124
- onClick: o[1] || (o[1] = (l) => s.$emit("handle-click", e.companyName)),
125
- "data-testid": "pv-company-tag"
126
- },
127
- [
128
- S(R, {
129
- class: u(e.size === "lg" ? "pv-company-sm" : "pv-company-xs"),
130
- "data-testid": "pv-company-tag-icon",
131
- size: e.size === "lg" ? "sm" : "xs",
132
- name: e.companyName
133
- }, null, 8, ["class", "size", "name"]),
134
- f(
135
- "span",
136
- null,
137
- E(e.companyName),
138
- 1
139
- /* TEXT */
140
- ),
141
- e.showClear ? (i(), P(I, {
142
- key: 0,
143
- "data-testid": "pv-company-tag-close-icon",
144
- size: 12,
145
- name: "close",
146
- onClick: o[0] || (o[0] = z((l) => s.$emit("handle-close", e.companyName), ["stop"]))
147
- })) : w("v-if", !0)
148
- ],
149
- 2
150
- /* CLASS */
151
- ));
152
- }
153
- }), V = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
154
- function D(e) {
155
- return !V.has(e);
156
- }
157
- function m(e, t) {
158
- const n = document.querySelector('link[href*="' + t + '"]');
159
- if (!e.shadowRoot)
160
- return !1;
161
- if (n && e.shadowRoot) {
162
- const s = n.href;
163
- if (e.shadowRoot.querySelector(`link[href="${s}"]`))
164
- return;
165
- const o = document.createElement("link");
166
- return o.rel = "stylesheet", o.href = s, e.shadowRoot.prepend(o), !0;
167
- }
168
- return !1;
169
- }
170
- function j(e) {
171
- if (!m(e, "pit-viper-v2")) {
172
- if (m(e, "pit-viper")) {
173
- m(e, "pit-viper-v2-scoped");
174
- return;
175
- }
176
- console.warn(
177
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
178
- );
179
- }
180
- }
181
- const G = (e) => ({ shadowRoot: D(e) });
182
- function H(e) {
183
- const t = e.__name || e.name;
184
- if (!t)
185
- throw new Error("Component must have a __name or name property");
186
- const n = $(e, G(t));
187
- class s extends n {
188
- connectedCallback() {
189
- super.connectedCallback?.(), j(this);
190
- }
191
- }
192
- return s;
193
- }
194
- function W(e) {
195
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
196
- }
197
- function q(e) {
198
- const t = e.__name || e.name;
199
- if (!t)
200
- throw new Error("Component must have a __name or name property");
201
- const n = W(t), s = H(e);
202
- customElements.get(n) || customElements.define(n, s);
203
- }
204
- q(M);
@@ -1,89 +0,0 @@
1
- import { defineComponent as i, computed as o, createElementBlock as c, openBlock as u, normalizeClass as p, toDisplayString as l, defineCustomElement as m } from "vue";
2
- const v = /* @__PURE__ */ i({
3
- __name: "PvCounterBadge",
4
- props: {
5
- value: { type: Number },
6
- prefix: { default: "", type: String },
7
- variant: { default: "primary", type: null },
8
- size: { default: "sm", type: String },
9
- maxValue: { default: 99, type: Number }
10
- },
11
- setup(e) {
12
- const t = e, r = o(() => t.size == "md" ? "md" : (t.size == "sm", "sm")), n = o(() => t.maxValue && t.value && t.value > t.maxValue ? `${t.maxValue}+` : t.value != null ? `${t.prefix}${t.value}` : "-"), a = o(() => ({
13
- "pv-inline-block pv-inset-square pv-radius pv-text-center": !0,
14
- "pv-badge-md pv-text-body-md": r.value == "md",
15
- "pv-badge-sm pv-text-body-sm": r.value == "sm",
16
- "pv-surface-brand-inverse pv-text-inverse": t.variant == "primary",
17
- "pv-surface pv-bordered": t.variant == "secondary",
18
- "pv-surface-lighten-5": t.variant == "tertiary",
19
- "pv-text-secondary": t.variant == "ghost" || t.variant == "tertiary",
20
- "pv-surface": t.variant == "ghost"
21
- }));
22
- return (E, S) => (u(), c(
23
- "div",
24
- {
25
- class: p(a.value),
26
- "data-testid": "pv-counter-badge"
27
- },
28
- l(n.value),
29
- 3
30
- /* TEXT, CLASS */
31
- ));
32
- }
33
- }), d = ".pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}", f = (e, t) => {
34
- const r = e.__vccOpts || e;
35
- for (const [n, a] of t)
36
- r[n] = a;
37
- return r;
38
- }, h = /* @__PURE__ */ f(v, [["styles", [d]], ["__scopeId", "data-v-fc3c1104"]]), y = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
39
- function g(e) {
40
- return !y.has(e);
41
- }
42
- function s(e, t) {
43
- const r = document.querySelector('link[href*="' + t + '"]');
44
- if (!e.shadowRoot)
45
- return !1;
46
- if (r && e.shadowRoot) {
47
- const n = r.href;
48
- if (e.shadowRoot.querySelector(`link[href="${n}"]`))
49
- return;
50
- const a = document.createElement("link");
51
- return a.rel = "stylesheet", a.href = n, e.shadowRoot.prepend(a), !0;
52
- }
53
- return !1;
54
- }
55
- function x(e) {
56
- if (!s(e, "pit-viper-v2")) {
57
- if (s(e, "pit-viper")) {
58
- s(e, "pit-viper-v2-scoped");
59
- return;
60
- }
61
- console.warn(
62
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
63
- );
64
- }
65
- }
66
- const _ = (e) => ({ shadowRoot: g(e) });
67
- function b(e) {
68
- const t = e.__name || e.name;
69
- if (!t)
70
- throw new Error("Component must have a __name or name property");
71
- const r = m(e, _(t));
72
- class n extends r {
73
- connectedCallback() {
74
- super.connectedCallback?.(), x(this);
75
- }
76
- }
77
- return n;
78
- }
79
- function w(e) {
80
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
81
- }
82
- function C(e) {
83
- const t = e.__name || e.name;
84
- if (!t)
85
- throw new Error("Component must have a __name or name property");
86
- const r = w(t), n = b(e);
87
- customElements.get(r) || customElements.define(r, n);
88
- }
89
- C(h);