@turquoisehealth/pit-viper 2.104.0 → 2.104.2-dev.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 (128) hide show
  1. package/_site/assets/css/pit-viper-v2-scoped.css +23 -2
  2. package/_site/assets/css/pit-viper-v2.css +25 -2
  3. package/_site/assets/css/pit-viper.css +25 -2
  4. package/package.json +38 -11
  5. package/pv-components/dist/stats/vue/base/stats.html +4949 -0
  6. package/pv-components/dist/stats/vue/visualizations/stats.html +4949 -0
  7. package/pv-components/dist/stats/web/pv-accordion-stats.html +4949 -0
  8. package/pv-components/dist/stats/web/pv-action-bar-stats.html +4949 -0
  9. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +4949 -0
  10. package/pv-components/dist/stats/web/pv-avatar-stats.html +4949 -0
  11. package/pv-components/dist/stats/web/pv-banner-stats.html +4949 -0
  12. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +4949 -0
  13. package/pv-components/dist/stats/web/pv-button-stats.html +4949 -0
  14. package/pv-components/dist/stats/web/pv-card-stats.html +4949 -0
  15. package/pv-components/dist/stats/web/pv-checkbox-stats.html +4949 -0
  16. package/pv-components/dist/stats/web/pv-company-label-stats.html +4949 -0
  17. package/pv-components/dist/stats/web/pv-company-logo-stats.html +4949 -0
  18. package/pv-components/dist/stats/web/pv-company-tag-stats.html +4949 -0
  19. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +4949 -0
  20. package/pv-components/dist/stats/web/pv-date-picker-stats.html +4949 -0
  21. package/pv-components/dist/stats/web/pv-date-time-stats.html +4949 -0
  22. package/pv-components/dist/stats/web/pv-drawer-stats.html +4949 -0
  23. package/pv-components/dist/stats/web/pv-dropdown-stats.html +4949 -0
  24. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +4949 -0
  25. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +4949 -0
  26. package/pv-components/dist/stats/web/pv-icon-stats.html +4949 -0
  27. package/pv-components/dist/stats/web/pv-input-stats.html +4949 -0
  28. package/pv-components/dist/stats/web/pv-insight-card-stats.html +4949 -0
  29. package/pv-components/dist/stats/web/pv-modal-stats.html +4949 -0
  30. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +4949 -0
  31. package/pv-components/dist/stats/web/pv-pagination-stats.html +4949 -0
  32. package/pv-components/dist/stats/web/pv-pill-stats.html +4949 -0
  33. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +4949 -0
  34. package/pv-components/dist/stats/web/pv-popover-stats.html +4949 -0
  35. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +4949 -0
  36. package/pv-components/dist/stats/web/pv-rating-stats.html +4949 -0
  37. package/pv-components/dist/stats/web/pv-release-badge-stats.html +4949 -0
  38. package/pv-components/dist/stats/web/pv-search-input-stats.html +4949 -0
  39. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +4949 -0
  40. package/pv-components/dist/stats/web/pv-select-button-stats.html +4949 -0
  41. package/pv-components/dist/stats/web/pv-selectable-card-stats.html +4949 -0
  42. package/pv-components/dist/stats/web/pv-side-panel-stats.html +4949 -0
  43. package/pv-components/dist/stats/web/pv-skeleton-stats.html +4949 -0
  44. package/pv-components/dist/stats/web/pv-spinner-stats.html +4949 -0
  45. package/pv-components/dist/stats/web/pv-sprite-stats.html +4949 -0
  46. package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +4949 -0
  47. package/pv-components/dist/stats/web/pv-switch-stats.html +4949 -0
  48. package/pv-components/dist/stats/web/pv-tab-list-stats.html +4949 -0
  49. package/pv-components/dist/stats/web/pv-tabs-stats.html +4949 -0
  50. package/pv-components/dist/stats/web/pv-tag-stats.html +4949 -0
  51. package/pv-components/dist/stats/web/pv-text-area-stats.html +4949 -0
  52. package/pv-components/dist/stats/web/pv-toast-stats.html +4949 -0
  53. package/pv-components/dist/stats/web/pv-toggle-button-stats.html +4949 -0
  54. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +4949 -0
  55. package/pv-components/dist/stats/web/pv-tooltip-stats.html +4949 -0
  56. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +4949 -0
  57. package/pv-components/dist/stats/web/pv-widget-stats.html +4949 -0
  58. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -4
  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 +1 -0
  61. package/pv-components/dist/vue/base/components/base/PvTooltipV2/types.d.ts +2 -1
  62. package/pv-components/dist/vue/base/pv-components-base.mjs +3429 -5665
  63. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3428 -5941
  64. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +186 -0
  65. package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +66 -0
  66. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +96 -0
  67. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +102 -0
  68. package/pv-components/dist/web/components/pv-banner/pv-banner.js +155 -0
  69. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +92 -0
  70. package/pv-components/dist/web/components/pv-button/pv-button.js +173 -0
  71. package/pv-components/dist/web/components/pv-card/pv-card.js +80 -0
  72. package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +77 -0
  73. package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +153 -0
  74. package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +124 -0
  75. package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +204 -0
  76. package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +89 -0
  77. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +7481 -0
  78. package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +577 -0
  79. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +486 -0
  80. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +1724 -0
  81. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +235 -0
  82. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +251 -0
  83. package/pv-components/dist/web/components/pv-icon/pv-icon.js +81 -0
  84. package/pv-components/dist/web/components/pv-input/pv-input.js +123 -0
  85. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +293 -0
  86. package/pv-components/dist/web/components/pv-modal/pv-modal.js +118 -0
  87. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2752 -0
  88. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +286 -0
  89. package/pv-components/dist/web/components/pv-pill/pv-pill.js +160 -0
  90. package/pv-components/dist/web/components/pv-popover/pv-popover.js +1417 -0
  91. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +1439 -0
  92. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +1421 -0
  93. package/pv-components/dist/web/components/pv-rating/pv-rating.js +78 -0
  94. package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +74 -0
  95. package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +170 -0
  96. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +145 -0
  97. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2563 -0
  98. package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +85 -0
  99. package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +80 -0
  100. package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +1525 -0
  101. package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +83 -0
  102. package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +82 -0
  103. package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +126 -0
  104. package/pv-components/dist/web/components/pv-switch/pv-switch.js +94 -0
  105. package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +100 -0
  106. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +178 -0
  107. package/pv-components/dist/web/components/pv-tag/pv-tag.js +141 -0
  108. package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +120 -0
  109. package/pv-components/dist/web/components/pv-toast/pv-toast.js +223 -0
  110. package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +139 -0
  111. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +2887 -0
  112. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +90 -0
  113. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1489 -0
  114. package/pv-components/dist/web/components/pv-widget/pv-widget.js +91 -0
  115. package/pv-components/dist/web/pv-components.iife.js +21 -21
  116. package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +7 -0
  117. package/pv-components/dist/vue/base/pv-components-base.js +0 -1546
  118. package/pv-components/dist/vue/base/pv-components-base.umd.js +0 -1546
  119. package/pv-components/dist/vue/charts/pv-components-charts.d.ts +0 -491
  120. package/pv-components/dist/vue/charts/pv-components-charts.js +0 -259
  121. package/pv-components/dist/vue/charts/pv-components-charts.mjs +0 -121834
  122. package/pv-components/dist/vue/charts/pv-components-charts.umd.js +0 -259
  123. package/pv-components/dist/vue/tables/pv-components-tables.d.ts +0 -299
  124. package/pv-components/dist/vue/tables/pv-components-tables.js +0 -223
  125. package/pv-components/dist/vue/tables/pv-components-tables.mjs +0 -47028
  126. package/pv-components/dist/vue/tables/pv-components-tables.umd.js +0 -223
  127. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +0 -176
  128. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +0 -176
@@ -0,0 +1,173 @@
1
+ import { defineComponent as d, ref as f, computed as m, onMounted as y, getCurrentInstance as b, createElementBlock as i, openBlock as a, normalizeClass as v, createElementVNode as _, normalizeStyle as S, createBlock as c, Fragment as C, createCommentVNode as u, toDisplayString as P, defineCustomElement as k } from "vue";
2
+ const E = [void 0, 10, 12, 20, 24, 32, 64], w = ["xlink:href"], h = /* @__PURE__ */ d({
3
+ __name: "PvIcon",
4
+ props: {
5
+ name: { type: String },
6
+ size: { type: null }
7
+ },
8
+ setup(e) {
9
+ const n = e, t = f(!1), o = f(null), s = m(() => ({
10
+ "pv-icon": !0,
11
+ [`pv-icon-${n.size}`]: E.includes(n.size)
12
+ })), r = m(() => t.value && o.value ? `${o.value}#${n.name}` : `#${n.name}`);
13
+ return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (o.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), y(() => {
14
+ const l = b()?.root;
15
+ t.value = l && "isCE" in l && l.isCE;
16
+ }), (l, M) => (a(), i(
17
+ "svg",
18
+ {
19
+ "data-testid": "pv-icon",
20
+ "aria-hidden": "true",
21
+ class: v(s.value)
22
+ },
23
+ [
24
+ _("use", { "xlink:href": r.value }, null, 8, w)
25
+ ],
26
+ 2
27
+ /* CLASS */
28
+ ));
29
+ }
30
+ }), z = /* @__PURE__ */ d({
31
+ __name: "PvSpinner",
32
+ props: {
33
+ variant: { default: "primary", type: String },
34
+ size: { default: "lg", type: String }
35
+ },
36
+ setup(e) {
37
+ const n = {
38
+ xs: "0.75rem",
39
+ sm: "1rem",
40
+ md: "1.25rem",
41
+ lg: "1.5rem",
42
+ xl: "2rem"
43
+ }, t = {
44
+ primary: "pv-spinner",
45
+ dark: "pv-spinner-dark",
46
+ white: "pv-spinner-light"
47
+ };
48
+ return (o, s) => (a(), i(
49
+ "div",
50
+ {
51
+ "data-testid": "pv-spinner",
52
+ class: v(t[e.variant]),
53
+ style: S({ "--size": n[e.size] })
54
+ },
55
+ null,
56
+ 6
57
+ /* CLASS, STYLE */
58
+ ));
59
+ }
60
+ }), g = {
61
+ md: "pv-button-small",
62
+ lg: void 0,
63
+ xl: "pv-button-large"
64
+ }, I = (e) => e == null || !g.hasOwnProperty(e) ? null : g[e] || null, B = ["disabled"], T = {
65
+ key: 1,
66
+ "data-testid": "pv-button-label"
67
+ }, $ = /* @__PURE__ */ d({
68
+ __name: "PvButton",
69
+ props: {
70
+ variant: { default: "primary", type: String },
71
+ disabled: { type: Boolean, default: !1 },
72
+ size: { default: "lg", type: String },
73
+ loading: { type: Boolean, default: !1 },
74
+ label: { type: String },
75
+ leftIcon: { type: String },
76
+ rightIcon: { type: String },
77
+ inverse: { type: Boolean, default: !1 }
78
+ },
79
+ setup(e) {
80
+ const n = ["ghost"], t = e, o = m(() => {
81
+ const s = [];
82
+ t.inverse && n.includes(t.variant) ? s.push(`pv-button-${t.variant}-inverse`) : s.push(`pv-button-${t.variant}`);
83
+ const r = I(t.size);
84
+ return r && s.push(r), s;
85
+ });
86
+ return (s, r) => (a(), i("button", {
87
+ type: "button",
88
+ class: v(o.value),
89
+ disabled: e.disabled,
90
+ "data-testid": "pv-button"
91
+ }, [
92
+ e.loading ? (a(), c(z, {
93
+ key: 0,
94
+ size: "sm"
95
+ })) : (a(), i(
96
+ C,
97
+ { key: 1 },
98
+ [
99
+ e.leftIcon ? (a(), c(h, {
100
+ key: 0,
101
+ name: e.leftIcon,
102
+ "data-testid": "pv-button-left-icon"
103
+ }, null, 8, ["name"])) : u("v-if", !0),
104
+ e.label ? (a(), i(
105
+ "span",
106
+ T,
107
+ P(e.label),
108
+ 1
109
+ /* TEXT */
110
+ )) : u("v-if", !0),
111
+ e.rightIcon ? (a(), c(h, {
112
+ key: 2,
113
+ name: e.rightIcon,
114
+ "data-testid": "pv-button-right-icon"
115
+ }, null, 8, ["name"])) : u("v-if", !0)
116
+ ],
117
+ 64
118
+ /* STABLE_FRAGMENT */
119
+ ))
120
+ ], 10, B));
121
+ }
122
+ }), x = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
123
+ function R(e) {
124
+ return !x.has(e);
125
+ }
126
+ function p(e, n) {
127
+ const t = document.querySelector('link[href*="' + n + '"]');
128
+ if (!e.shadowRoot)
129
+ return !1;
130
+ if (t && e.shadowRoot) {
131
+ const o = t.href;
132
+ if (e.shadowRoot.querySelector(`link[href="${o}"]`))
133
+ return;
134
+ const s = document.createElement("link");
135
+ return s.rel = "stylesheet", s.href = o, e.shadowRoot.prepend(s), !0;
136
+ }
137
+ return !1;
138
+ }
139
+ function A(e) {
140
+ if (!p(e, "pit-viper-v2")) {
141
+ if (p(e, "pit-viper")) {
142
+ p(e, "pit-viper-v2-scoped");
143
+ return;
144
+ }
145
+ console.warn(
146
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
147
+ );
148
+ }
149
+ }
150
+ const O = (e) => ({ shadowRoot: R(e) });
151
+ function V(e) {
152
+ const n = e.__name || e.name;
153
+ if (!n)
154
+ throw new Error("Component must have a __name or name property");
155
+ const t = k(e, O(n));
156
+ class o extends t {
157
+ connectedCallback() {
158
+ super.connectedCallback?.(), A(this);
159
+ }
160
+ }
161
+ return o;
162
+ }
163
+ function D(e) {
164
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
165
+ }
166
+ function L(e) {
167
+ const n = e.__name || e.name;
168
+ if (!n)
169
+ throw new Error("Component must have a __name or name property");
170
+ const t = D(n), o = V(e);
171
+ customElements.get(t) || customElements.define(t, o);
172
+ }
173
+ L($);
@@ -0,0 +1,80 @@
1
+ import { defineComponent as c, computed as s, createBlock as i, openBlock as l, resolveDynamicComponent as u, normalizeClass as p, withCtx as f, renderSlot as m, defineCustomElement as d } from "vue";
2
+ const v = /* @__PURE__ */ c({
3
+ __name: "PvCard",
4
+ props: {
5
+ href: { type: String },
6
+ variant: { default: "primary", type: String },
7
+ interactive: { type: Boolean, default: !1 }
8
+ },
9
+ setup(e) {
10
+ const t = e, n = s(() => t.href ? "a" : t.interactive ? "button" : "div"), o = s(() => t.href || t.interactive ? "button" : "div");
11
+ return (r, b) => (l(), i(u(n.value), {
12
+ href: e.href,
13
+ type: o.value,
14
+ class: p([
15
+ "pv-card pv-inset-square-8 pv-inline-block",
16
+ {
17
+ "pv-card-secondary": e.variant === "secondary"
18
+ }
19
+ ]),
20
+ "data-testid": "pv-card"
21
+ }, {
22
+ default: f(() => [
23
+ m(r.$slots, "default")
24
+ ]),
25
+ _: 3
26
+ /* FORWARDED */
27
+ }, 8, ["href", "type", "class"]));
28
+ }
29
+ }), h = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
30
+ function y(e) {
31
+ return !h.has(e);
32
+ }
33
+ function a(e, t) {
34
+ const n = document.querySelector('link[href*="' + t + '"]');
35
+ if (!e.shadowRoot)
36
+ return !1;
37
+ if (n && e.shadowRoot) {
38
+ const o = n.href;
39
+ if (e.shadowRoot.querySelector(`link[href="${o}"]`))
40
+ return;
41
+ const r = document.createElement("link");
42
+ return r.rel = "stylesheet", r.href = o, e.shadowRoot.prepend(r), !0;
43
+ }
44
+ return !1;
45
+ }
46
+ function C(e) {
47
+ if (!a(e, "pit-viper-v2")) {
48
+ if (a(e, "pit-viper")) {
49
+ a(e, "pit-viper-v2-scoped");
50
+ return;
51
+ }
52
+ console.warn(
53
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
54
+ );
55
+ }
56
+ }
57
+ const w = (e) => ({ shadowRoot: y(e) });
58
+ function S(e) {
59
+ const t = e.__name || e.name;
60
+ if (!t)
61
+ throw new Error("Component must have a __name or name property");
62
+ const n = d(e, w(t));
63
+ class o extends n {
64
+ connectedCallback() {
65
+ super.connectedCallback?.(), C(this);
66
+ }
67
+ }
68
+ return o;
69
+ }
70
+ function E(e) {
71
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
72
+ }
73
+ function _(e) {
74
+ const t = e.__name || e.name;
75
+ if (!t)
76
+ throw new Error("Component must have a __name or name property");
77
+ const n = E(t), o = S(e);
78
+ customElements.get(n) || customElements.define(n, o);
79
+ }
80
+ _(v);
@@ -0,0 +1,77 @@
1
+ import { defineComponent as a, mergeModels as i, useModel as l, withDirectives as c, createElementBlock as u, openBlock as m, vModelCheckbox as d, defineCustomElement as p } from "vue";
2
+ const f = ["disabled", "indeterminate"], h = /* @__PURE__ */ a({
3
+ __name: "PvCheckbox",
4
+ props: /* @__PURE__ */ i({
5
+ disabled: { type: Boolean },
6
+ indeterminate: { type: Boolean }
7
+ }, {
8
+ modelValue: { type: Boolean },
9
+ modelModifiers: {}
10
+ }),
11
+ emits: ["update:modelValue"],
12
+ setup(e) {
13
+ const t = l(e, "modelValue");
14
+ return (n, o) => c((m(), u("input", {
15
+ ref: "checkbox-ref",
16
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r),
17
+ class: "pv-checkbox",
18
+ type: "checkbox",
19
+ name: "checkbox",
20
+ disabled: e.disabled,
21
+ indeterminate: e.indeterminate
22
+ }, null, 8, f)), [
23
+ [d, t.value]
24
+ ]);
25
+ }
26
+ }), v = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
27
+ function b(e) {
28
+ return !v.has(e);
29
+ }
30
+ function s(e, t) {
31
+ const n = document.querySelector('link[href*="' + t + '"]');
32
+ if (!e.shadowRoot)
33
+ return !1;
34
+ if (n && e.shadowRoot) {
35
+ const o = n.href;
36
+ if (e.shadowRoot.querySelector(`link[href="${o}"]`))
37
+ return;
38
+ const r = document.createElement("link");
39
+ return r.rel = "stylesheet", r.href = o, e.shadowRoot.prepend(r), !0;
40
+ }
41
+ return !1;
42
+ }
43
+ function k(e) {
44
+ if (!s(e, "pit-viper-v2")) {
45
+ if (s(e, "pit-viper")) {
46
+ s(e, "pit-viper-v2-scoped");
47
+ return;
48
+ }
49
+ console.warn(
50
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
51
+ );
52
+ }
53
+ }
54
+ const C = (e) => ({ shadowRoot: b(e) });
55
+ function w(e) {
56
+ const t = e.__name || e.name;
57
+ if (!t)
58
+ throw new Error("Component must have a __name or name property");
59
+ const n = p(e, C(t));
60
+ class o extends n {
61
+ connectedCallback() {
62
+ super.connectedCallback?.(), k(this);
63
+ }
64
+ }
65
+ return o;
66
+ }
67
+ function y(e) {
68
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
69
+ }
70
+ function E(e) {
71
+ const t = e.__name || e.name;
72
+ if (!t)
73
+ throw new Error("Component must have a __name or name property");
74
+ const n = y(t), o = w(e);
75
+ customElements.get(n) || customElements.define(n, o);
76
+ }
77
+ E(h);
@@ -0,0 +1,153 @@
1
+ import { defineComponent as m, ref as h, computed as r, watch as y, createElementBlock as a, openBlock as l, normalizeStyle as g, normalizeClass as c, createElementVNode as d, createVNode as C, toDisplayString as S, defineCustomElement as x } from "vue";
2
+ function _(e) {
3
+ return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
4
+ }
5
+ const w = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
6
+ function E(e) {
7
+ return Array.from(e.match(w) ?? []);
8
+ }
9
+ function b(e) {
10
+ const t = E(e);
11
+ if (t.length === 0)
12
+ return "";
13
+ const [o, ...n] = t;
14
+ return `${o.toLowerCase()}${n.map((s) => _(s)).join("")}`;
15
+ }
16
+ const P = {
17
+ xs: "12px",
18
+ sm: "16px",
19
+ md: "20px",
20
+ lg: "24px",
21
+ xl: "32px",
22
+ "2x": "40px"
23
+ }, z = {
24
+ class: "pv-flex",
25
+ "data-testid": "pv-company-logo"
26
+ }, L = ["src"], k = /* @__PURE__ */ m({
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, o = h(!0), n = r(() => P[t.size] || "32px"), s = r(() => ({
37
+ "pv-icon": o.value,
38
+ [`pv-company-${t.size}`]: t.size && !o.value
39
+ })), f = r(() => ({
40
+ width: n.value
41
+ })), v = r(() => t.toCamelCase ? b(t.name) + ".svg" : t.name + ".svg"), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${v.value}`);
42
+ return y(u, () => {
43
+ o.value = !0;
44
+ }), (B, p) => (l(), a("div", z, [
45
+ o.value ? (l(), a(
46
+ "div",
47
+ {
48
+ key: 0,
49
+ class: c(s.value),
50
+ style: g(f.value)
51
+ },
52
+ [
53
+ d("img", {
54
+ src: u.value,
55
+ alt: "",
56
+ onError: p[0] || (p[0] = (V) => o.value = !1)
57
+ }, null, 40, L)
58
+ ],
59
+ 6
60
+ /* CLASS, STYLE */
61
+ )) : (l(), a(
62
+ "div",
63
+ {
64
+ key: 1,
65
+ class: c(s.value)
66
+ },
67
+ null,
68
+ 2
69
+ /* CLASS */
70
+ ))
71
+ ]));
72
+ }
73
+ }), $ = { class: "pv-flex" }, N = /* @__PURE__ */ m({
74
+ __name: "PvCompanyLabel",
75
+ props: {
76
+ size: { default: "md", type: String },
77
+ logo: { type: String },
78
+ label: { type: String }
79
+ },
80
+ setup(e) {
81
+ const t = {
82
+ xs: "pv-text-body-xs",
83
+ sm: "pv-text-body-md",
84
+ md: "pv-text-body-md"
85
+ };
86
+ return (o, n) => (l(), a("div", $, [
87
+ C(k, {
88
+ name: e.logo ? e.logo : e.label,
89
+ size: e.size
90
+ }, null, 8, ["name", "size"]),
91
+ d(
92
+ "span",
93
+ {
94
+ class: c(t[e.size])
95
+ },
96
+ S(e.label),
97
+ 3
98
+ /* TEXT, CLASS */
99
+ )
100
+ ]));
101
+ }
102
+ }), A = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
103
+ function O(e) {
104
+ return !A.has(e);
105
+ }
106
+ function i(e, t) {
107
+ const o = document.querySelector('link[href*="' + t + '"]');
108
+ if (!e.shadowRoot)
109
+ return !1;
110
+ if (o && e.shadowRoot) {
111
+ const n = o.href;
112
+ if (e.shadowRoot.querySelector(`link[href="${n}"]`))
113
+ return;
114
+ const s = document.createElement("link");
115
+ return s.rel = "stylesheet", s.href = n, e.shadowRoot.prepend(s), !0;
116
+ }
117
+ return !1;
118
+ }
119
+ function D(e) {
120
+ if (!i(e, "pit-viper-v2")) {
121
+ if (i(e, "pit-viper")) {
122
+ i(e, "pit-viper-v2-scoped");
123
+ return;
124
+ }
125
+ console.warn(
126
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
127
+ );
128
+ }
129
+ }
130
+ const R = (e) => ({ shadowRoot: O(e) });
131
+ function j(e) {
132
+ const t = e.__name || e.name;
133
+ if (!t)
134
+ throw new Error("Component must have a __name or name property");
135
+ const o = x(e, R(t));
136
+ class n extends o {
137
+ connectedCallback() {
138
+ super.connectedCallback?.(), D(this);
139
+ }
140
+ }
141
+ return n;
142
+ }
143
+ function M(e) {
144
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
145
+ }
146
+ function T(e) {
147
+ const t = e.__name || e.name;
148
+ if (!t)
149
+ throw new Error("Component must have a __name or name property");
150
+ const o = M(t), n = j(e);
151
+ customElements.get(o) || customElements.define(o, n);
152
+ }
153
+ T(N);
@@ -0,0 +1,124 @@
1
+ import { defineComponent as f, ref as v, computed as s, watch as h, createElementBlock as a, openBlock as c, normalizeStyle as y, normalizeClass as p, createElementVNode as C, defineCustomElement as _ } from "vue";
2
+ function g(e) {
3
+ return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
4
+ }
5
+ const w = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
6
+ function E(e) {
7
+ return Array.from(e.match(w) ?? []);
8
+ }
9
+ function S(e) {
10
+ const t = E(e);
11
+ if (t.length === 0)
12
+ return "";
13
+ const [o, ...n] = t;
14
+ return `${o.toLowerCase()}${n.map((r) => g(r)).join("")}`;
15
+ }
16
+ const P = {
17
+ xs: "12px",
18
+ sm: "16px",
19
+ md: "20px",
20
+ lg: "24px",
21
+ xl: "32px",
22
+ "2x": "40px"
23
+ }, x = {
24
+ class: "pv-flex",
25
+ "data-testid": "pv-company-logo"
26
+ }, k = ["src"], L = /* @__PURE__ */ f({
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, o = v(!0), n = s(() => P[t.size] || "32px"), r = s(() => ({
37
+ "pv-icon": o.value,
38
+ [`pv-company-${t.size}`]: t.size && !o.value
39
+ })), m = s(() => ({
40
+ width: n.value
41
+ })), d = s(() => t.toCamelCase ? S(t.name) + ".svg" : t.name + ".svg"), l = s(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${d.value}`);
42
+ return h(l, () => {
43
+ o.value = !0;
44
+ }), (j, u) => (c(), a("div", x, [
45
+ o.value ? (c(), a(
46
+ "div",
47
+ {
48
+ key: 0,
49
+ class: p(r.value),
50
+ style: y(m.value)
51
+ },
52
+ [
53
+ C("img", {
54
+ src: l.value,
55
+ alt: "",
56
+ onError: u[0] || (u[0] = (D) => o.value = !1)
57
+ }, null, 40, k)
58
+ ],
59
+ 6
60
+ /* CLASS, STYLE */
61
+ )) : (c(), a(
62
+ "div",
63
+ {
64
+ key: 1,
65
+ class: p(r.value)
66
+ },
67
+ null,
68
+ 2
69
+ /* CLASS */
70
+ ))
71
+ ]));
72
+ }
73
+ }), b = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
74
+ function z(e) {
75
+ return !b.has(e);
76
+ }
77
+ function i(e, t) {
78
+ const o = document.querySelector('link[href*="' + t + '"]');
79
+ if (!e.shadowRoot)
80
+ return !1;
81
+ if (o && e.shadowRoot) {
82
+ const n = o.href;
83
+ if (e.shadowRoot.querySelector(`link[href="${n}"]`))
84
+ return;
85
+ const r = document.createElement("link");
86
+ return r.rel = "stylesheet", r.href = n, e.shadowRoot.prepend(r), !0;
87
+ }
88
+ return !1;
89
+ }
90
+ function $(e) {
91
+ if (!i(e, "pit-viper-v2")) {
92
+ if (i(e, "pit-viper")) {
93
+ i(e, "pit-viper-v2-scoped");
94
+ return;
95
+ }
96
+ console.warn(
97
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
98
+ );
99
+ }
100
+ }
101
+ const A = (e) => ({ shadowRoot: z(e) });
102
+ function N(e) {
103
+ const t = e.__name || e.name;
104
+ if (!t)
105
+ throw new Error("Component must have a __name or name property");
106
+ const o = _(e, A(t));
107
+ class n extends o {
108
+ connectedCallback() {
109
+ super.connectedCallback?.(), $(this);
110
+ }
111
+ }
112
+ return n;
113
+ }
114
+ function O(e) {
115
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
116
+ }
117
+ function R(e) {
118
+ const t = e.__name || e.name;
119
+ if (!t)
120
+ throw new Error("Component must have a __name or name property");
121
+ const o = O(t), n = N(e);
122
+ customElements.get(o) || customElements.define(o, n);
123
+ }
124
+ R(L);