@turquoisehealth/pit-viper 2.104.1 → 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 +19 -0
  2. package/_site/assets/css/pit-viper-v2.css +21 -0
  3. package/_site/assets/css/pit-viper.css +21 -0
  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,83 @@
1
+ import { defineComponent as a, createElementBlock as i, openBlock as c, normalizeStyle as l, normalizeClass as m, defineCustomElement as p } from "vue";
2
+ const u = /* @__PURE__ */ a({
3
+ __name: "PvSpinner",
4
+ props: {
5
+ variant: { default: "primary", type: String },
6
+ size: { default: "lg", type: String }
7
+ },
8
+ setup(e) {
9
+ const t = {
10
+ xs: "0.75rem",
11
+ sm: "1rem",
12
+ md: "1.25rem",
13
+ lg: "1.5rem",
14
+ xl: "2rem"
15
+ }, n = {
16
+ primary: "pv-spinner",
17
+ dark: "pv-spinner-dark",
18
+ white: "pv-spinner-light"
19
+ };
20
+ return (r, o) => (c(), i(
21
+ "div",
22
+ {
23
+ "data-testid": "pv-spinner",
24
+ class: m(n[e.variant]),
25
+ style: l({ "--size": t[e.size] })
26
+ },
27
+ null,
28
+ 6
29
+ /* CLASS, STYLE */
30
+ ));
31
+ }
32
+ }), f = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
33
+ function d(e) {
34
+ return !f.has(e);
35
+ }
36
+ function s(e, t) {
37
+ const n = document.querySelector('link[href*="' + t + '"]');
38
+ if (!e.shadowRoot)
39
+ return !1;
40
+ if (n && e.shadowRoot) {
41
+ const r = n.href;
42
+ if (e.shadowRoot.querySelector(`link[href="${r}"]`))
43
+ return;
44
+ const o = document.createElement("link");
45
+ return o.rel = "stylesheet", o.href = r, e.shadowRoot.prepend(o), !0;
46
+ }
47
+ return !1;
48
+ }
49
+ function h(e) {
50
+ if (!s(e, "pit-viper-v2")) {
51
+ if (s(e, "pit-viper")) {
52
+ s(e, "pit-viper-v2-scoped");
53
+ return;
54
+ }
55
+ console.warn(
56
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
57
+ );
58
+ }
59
+ }
60
+ const v = (e) => ({ shadowRoot: d(e) });
61
+ function y(e) {
62
+ const t = e.__name || e.name;
63
+ if (!t)
64
+ throw new Error("Component must have a __name or name property");
65
+ const n = p(e, v(t));
66
+ class r extends n {
67
+ connectedCallback() {
68
+ super.connectedCallback?.(), h(this);
69
+ }
70
+ }
71
+ return r;
72
+ }
73
+ function C(e) {
74
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
75
+ }
76
+ function S(e) {
77
+ const t = e.__name || e.name;
78
+ if (!t)
79
+ throw new Error("Component must have a __name or name property");
80
+ const n = C(t), r = y(e);
81
+ customElements.get(n) || customElements.define(n, r);
82
+ }
83
+ S(u);
@@ -0,0 +1,82 @@
1
+ import { defineComponent as i, onMounted as l, createBlock as p, openBlock as u, Teleport as m, createElementVNode as f, defineCustomElement as d } from "vue";
2
+ const v = /* @__PURE__ */ i({
3
+ __name: "PvSprite",
4
+ props: {
5
+ src: { type: String },
6
+ variant: { default: "v2", type: String }
7
+ },
8
+ setup(e) {
9
+ const o = e;
10
+ return l(async () => {
11
+ const n = o.variant === "v1" ? "sprite-v1.svg" : "sprite-v2.svg", t = o.src + n;
12
+ try {
13
+ const a = await (await fetch(t)).text(), s = document.getElementById("pv-sprite-content");
14
+ s && (s.innerHTML = a, s.hidden = !1);
15
+ } catch (r) {
16
+ console.error("Failed to load SVG:", r);
17
+ }
18
+ }), (n, t) => (u(), p(m, { to: "body" }, [
19
+ t[0] || (t[0] = f(
20
+ "div",
21
+ {
22
+ hidden: "",
23
+ id: "pv-sprite-content"
24
+ },
25
+ null,
26
+ -1
27
+ /* CACHED */
28
+ ))
29
+ ]));
30
+ }
31
+ }), h = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
32
+ function y(e) {
33
+ return !h.has(e);
34
+ }
35
+ function c(e, o) {
36
+ const n = document.querySelector('link[href*="' + o + '"]');
37
+ if (!e.shadowRoot)
38
+ return !1;
39
+ if (n && e.shadowRoot) {
40
+ const t = n.href;
41
+ if (e.shadowRoot.querySelector(`link[href="${t}"]`))
42
+ return;
43
+ const r = document.createElement("link");
44
+ return r.rel = "stylesheet", r.href = t, e.shadowRoot.prepend(r), !0;
45
+ }
46
+ return !1;
47
+ }
48
+ function w(e) {
49
+ if (!c(e, "pit-viper-v2")) {
50
+ if (c(e, "pit-viper")) {
51
+ c(e, "pit-viper-v2-scoped");
52
+ return;
53
+ }
54
+ console.warn(
55
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
56
+ );
57
+ }
58
+ }
59
+ const E = (e) => ({ shadowRoot: y(e) });
60
+ function S(e) {
61
+ const o = e.__name || e.name;
62
+ if (!o)
63
+ throw new Error("Component must have a __name or name property");
64
+ const n = d(e, E(o));
65
+ class t extends n {
66
+ connectedCallback() {
67
+ super.connectedCallback?.(), w(this);
68
+ }
69
+ }
70
+ return t;
71
+ }
72
+ function _(e) {
73
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
74
+ }
75
+ function g(e) {
76
+ const o = e.__name || e.name;
77
+ if (!o)
78
+ throw new Error("Component must have a __name or name property");
79
+ const n = _(o), t = S(e);
80
+ customElements.get(n) || customElements.define(n, t);
81
+ }
82
+ g(v);
@@ -0,0 +1,126 @@
1
+ import { defineComponent as d, ref as u, computed as l, onMounted as v, getCurrentInstance as h, createElementBlock as m, openBlock as i, normalizeClass as p, createElementVNode as f, createBlock as g, createCommentVNode as _, toDisplayString as y, defineCustomElement as b } from "vue";
2
+ const C = [void 0, 10, 12, 20, 24, 32, 64], S = ["xlink:href"], E = /* @__PURE__ */ d({
3
+ __name: "PvIcon",
4
+ props: {
5
+ name: { type: String },
6
+ size: { type: null }
7
+ },
8
+ setup(e) {
9
+ const t = e, n = u(!1), o = u(null), s = l(() => ({
10
+ "pv-icon": !0,
11
+ [`pv-icon-${t.size}`]: C.includes(t.size)
12
+ })), c = l(() => n.value && o.value ? `${o.value}#${t.name}` : `#${t.name}`);
13
+ return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (o.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), v(() => {
14
+ const a = h()?.root;
15
+ n.value = a && "isCE" in a && a.isCE;
16
+ }), (a, x) => (i(), m(
17
+ "svg",
18
+ {
19
+ "data-testid": "pv-icon",
20
+ "aria-hidden": "true",
21
+ class: p(s.value)
22
+ },
23
+ [
24
+ f("use", { "xlink:href": c.value }, null, 8, S)
25
+ ],
26
+ 2
27
+ /* CLASS */
28
+ ));
29
+ }
30
+ }), w = ["data-style", "disabled", "title"], k = { class: "pv-truncate" }, P = /* @__PURE__ */ d({
31
+ __name: "PvSuggestionTag",
32
+ props: {
33
+ size: { default: "md", type: String },
34
+ label: { type: String },
35
+ showIcon: { type: Boolean },
36
+ rounded: { type: Boolean },
37
+ disabled: { type: Boolean, default: !1 }
38
+ },
39
+ emits: ["handle-click"],
40
+ setup(e) {
41
+ const t = e, n = l(() => {
42
+ switch (t.size) {
43
+ case "lg":
44
+ return "pv-tag-lg";
45
+ case "sm":
46
+ return "pv-tag-sm";
47
+ default:
48
+ return "";
49
+ }
50
+ });
51
+ return (o, s) => (i(), m("button", {
52
+ class: p(["pv-border-dashed pv-tag-secondary", n.value]),
53
+ onClick: s[0] || (s[0] = (c) => o.$emit("handle-click", e.label)),
54
+ "data-testid": "pv-suggestion-tag",
55
+ style: { "max-width": "100%" },
56
+ "data-style": e.rounded ? "rounded" : void 0,
57
+ disabled: e.disabled,
58
+ title: e.label
59
+ }, [
60
+ e.showIcon ? (i(), g(E, {
61
+ key: 0,
62
+ "data-testid": "pv-suggestion-tag-icon",
63
+ name: "expand",
64
+ size: 12
65
+ })) : _("v-if", !0),
66
+ f(
67
+ "span",
68
+ k,
69
+ y(e.label),
70
+ 1
71
+ /* TEXT */
72
+ )
73
+ ], 10, w));
74
+ }
75
+ }), $ = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
76
+ function z(e) {
77
+ return !$.has(e);
78
+ }
79
+ function r(e, t) {
80
+ const n = document.querySelector('link[href*="' + t + '"]');
81
+ if (!e.shadowRoot)
82
+ return !1;
83
+ if (n && e.shadowRoot) {
84
+ const o = n.href;
85
+ if (e.shadowRoot.querySelector(`link[href="${o}"]`))
86
+ return;
87
+ const s = document.createElement("link");
88
+ return s.rel = "stylesheet", s.href = o, e.shadowRoot.prepend(s), !0;
89
+ }
90
+ return !1;
91
+ }
92
+ function B(e) {
93
+ if (!r(e, "pit-viper-v2")) {
94
+ if (r(e, "pit-viper")) {
95
+ r(e, "pit-viper-v2-scoped");
96
+ return;
97
+ }
98
+ console.warn(
99
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
100
+ );
101
+ }
102
+ }
103
+ const I = (e) => ({ shadowRoot: z(e) });
104
+ function R(e) {
105
+ const t = e.__name || e.name;
106
+ if (!t)
107
+ throw new Error("Component must have a __name or name property");
108
+ const n = b(e, I(t));
109
+ class o extends n {
110
+ connectedCallback() {
111
+ super.connectedCallback?.(), B(this);
112
+ }
113
+ }
114
+ return o;
115
+ }
116
+ function T(e) {
117
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
118
+ }
119
+ function A(e) {
120
+ const t = e.__name || e.name;
121
+ if (!t)
122
+ throw new Error("Component must have a __name or name property");
123
+ const n = T(t), o = R(e);
124
+ customElements.get(n) || customElements.define(n, o);
125
+ }
126
+ A(P);
@@ -0,0 +1,94 @@
1
+ import { defineComponent as i, mergeModels as c, useModel as u, createElementBlock as s, openBlock as a, normalizeClass as d, createCommentVNode as m, withDirectives as p, toDisplayString as f, createElementVNode as h, vModelCheckbox as v, defineCustomElement as b } from "vue";
2
+ const y = ["for"], w = { key: 0 }, C = ["disabled", "id"], S = /* @__PURE__ */ i({
3
+ __name: "PvSwitch",
4
+ props: /* @__PURE__ */ c({
5
+ size: { default: "md", type: String },
6
+ label: { type: String },
7
+ disabled: { type: Boolean, default: !1 },
8
+ id: { default: Math.random().toString(), type: String }
9
+ }, {
10
+ modelValue: { type: Boolean, required: !0 },
11
+ modelModifiers: {}
12
+ }),
13
+ emits: ["update:modelValue"],
14
+ setup(e) {
15
+ const t = u(e, "modelValue");
16
+ return (n, o) => (a(), s("label", {
17
+ for: e.id,
18
+ class: d([
19
+ "pv-label pv-switch pv-label-hover",
20
+ {
21
+ "pv-input-small": e.size === "md"
22
+ }
23
+ ])
24
+ }, [
25
+ e.label ? (a(), s(
26
+ "span",
27
+ w,
28
+ f(e.label),
29
+ 1
30
+ /* TEXT */
31
+ )) : m("v-if", !0),
32
+ p(h("input", {
33
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r),
34
+ disabled: e.disabled,
35
+ type: "checkbox",
36
+ role: "switch",
37
+ id: e.id
38
+ }, null, 8, C), [
39
+ [v, t.value]
40
+ ])
41
+ ], 10, y));
42
+ }
43
+ }), E = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
44
+ function g(e) {
45
+ return !E.has(e);
46
+ }
47
+ function l(e, t) {
48
+ const n = document.querySelector('link[href*="' + t + '"]');
49
+ if (!e.shadowRoot)
50
+ return !1;
51
+ if (n && e.shadowRoot) {
52
+ const o = n.href;
53
+ if (e.shadowRoot.querySelector(`link[href="${o}"]`))
54
+ return;
55
+ const r = document.createElement("link");
56
+ return r.rel = "stylesheet", r.href = o, e.shadowRoot.prepend(r), !0;
57
+ }
58
+ return !1;
59
+ }
60
+ function k(e) {
61
+ if (!l(e, "pit-viper-v2")) {
62
+ if (l(e, "pit-viper")) {
63
+ l(e, "pit-viper-v2-scoped");
64
+ return;
65
+ }
66
+ console.warn(
67
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
68
+ );
69
+ }
70
+ }
71
+ const M = (e) => ({ shadowRoot: g(e) });
72
+ function _(e) {
73
+ const t = e.__name || e.name;
74
+ if (!t)
75
+ throw new Error("Component must have a __name or name property");
76
+ const n = b(e, M(t));
77
+ class o extends n {
78
+ connectedCallback() {
79
+ super.connectedCallback?.(), k(this);
80
+ }
81
+ }
82
+ return o;
83
+ }
84
+ function D(e) {
85
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
86
+ }
87
+ function P(e) {
88
+ const t = e.__name || e.name;
89
+ if (!t)
90
+ throw new Error("Component must have a __name or name property");
91
+ const n = D(t), o = _(e);
92
+ customElements.get(n) || customElements.define(n, o);
93
+ }
94
+ P(S);
@@ -0,0 +1,100 @@
1
+ import { defineComponent as u, createElementBlock as a, openBlock as l, createElementVNode as i, Fragment as p, renderList as m, toDisplayString as d, defineCustomElement as f } from "vue";
2
+ const v = {
3
+ role: "list",
4
+ class: "pv-tab-list"
5
+ }, h = ["onClick", "data-active"], _ = {
6
+ class: "pv-text-body-xs",
7
+ style: { "font-weight": "500" }
8
+ }, b = /* @__PURE__ */ u({
9
+ __name: "PvTabList",
10
+ props: {
11
+ modelValue: { type: String },
12
+ options: { type: Array }
13
+ },
14
+ emits: ["update:modelValue"],
15
+ setup(e, { emit: o }) {
16
+ const t = o, n = (r) => {
17
+ t("update:modelValue", r);
18
+ };
19
+ return (r, O) => (l(), a("div", null, [
20
+ i("ul", v, [
21
+ (l(!0), a(
22
+ p,
23
+ null,
24
+ m(e.options, (s) => (l(), a("li", {
25
+ key: s.value,
26
+ style: { cursor: "pointer" },
27
+ onClick: (V) => n(s.value),
28
+ "data-active": e.modelValue === s.value ? !0 : null
29
+ }, [
30
+ i(
31
+ "button",
32
+ _,
33
+ d(s.label),
34
+ 1
35
+ /* TEXT */
36
+ )
37
+ ], 8, h))),
38
+ 128
39
+ /* KEYED_FRAGMENT */
40
+ ))
41
+ ])
42
+ ]));
43
+ }
44
+ }), y = '.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";display:block;height:2px;width:100%;position:absolute;bottom:0;left:0;right:0;background-color:#176f6f}', w = (e, o) => {
45
+ const t = e.__vccOpts || e;
46
+ for (const [n, r] of o)
47
+ t[n] = r;
48
+ return t;
49
+ }, k = /* @__PURE__ */ w(b, [["styles", [y]], ["__scopeId", "data-v-498bf523"]]), C = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
50
+ function g(e) {
51
+ return !C.has(e);
52
+ }
53
+ function c(e, o) {
54
+ const t = document.querySelector('link[href*="' + o + '"]');
55
+ if (!e.shadowRoot)
56
+ return !1;
57
+ if (t && e.shadowRoot) {
58
+ const n = t.href;
59
+ if (e.shadowRoot.querySelector(`link[href="${n}"]`))
60
+ return;
61
+ const r = document.createElement("link");
62
+ return r.rel = "stylesheet", r.href = n, e.shadowRoot.prepend(r), !0;
63
+ }
64
+ return !1;
65
+ }
66
+ function E(e) {
67
+ if (!c(e, "pit-viper-v2")) {
68
+ if (c(e, "pit-viper")) {
69
+ c(e, "pit-viper-v2-scoped");
70
+ return;
71
+ }
72
+ console.warn(
73
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
74
+ );
75
+ }
76
+ }
77
+ const S = (e) => ({ shadowRoot: g(e) });
78
+ function P(e) {
79
+ const o = e.__name || e.name;
80
+ if (!o)
81
+ throw new Error("Component must have a __name or name property");
82
+ const t = f(e, S(o));
83
+ class n extends t {
84
+ connectedCallback() {
85
+ super.connectedCallback?.(), E(this);
86
+ }
87
+ }
88
+ return n;
89
+ }
90
+ function x(e) {
91
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
92
+ }
93
+ function D(e) {
94
+ const o = e.__name || e.name;
95
+ if (!o)
96
+ throw new Error("Component must have a __name or name property");
97
+ const t = x(o), n = P(e);
98
+ customElements.get(t) || customElements.define(t, n);
99
+ }
100
+ D(k);
@@ -0,0 +1,178 @@
1
+ import { defineComponent as p, computed as i, createElementBlock as l, openBlock as o, normalizeClass as v, toDisplayString as h, ref as d, onMounted as y, getCurrentInstance as g, createElementVNode as _, mergeModels as b, useModel as x, Fragment as C, renderList as S, createBlock as m, createCommentVNode as f, createTextVNode as k, defineCustomElement as E } from "vue";
2
+ const P = /* @__PURE__ */ p({
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, n = i(() => t.size == "md" ? "md" : (t.size == "sm", "sm")), a = i(() => t.maxValue && t.value && t.value > t.maxValue ? `${t.maxValue}+` : t.value != null ? `${t.prefix}${t.value}` : "-"), r = i(() => ({
13
+ "pv-inline-block pv-inset-square pv-radius pv-text-center": !0,
14
+ "pv-badge-md pv-text-body-md": n.value == "md",
15
+ "pv-badge-sm pv-text-body-sm": n.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 (c, s) => (o(), l(
23
+ "div",
24
+ {
25
+ class: v(r.value),
26
+ "data-testid": "pv-counter-badge"
27
+ },
28
+ h(a.value),
29
+ 3
30
+ /* TEXT, CLASS */
31
+ ));
32
+ }
33
+ }), w = ".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}", z = (e, t) => {
34
+ const n = e.__vccOpts || e;
35
+ for (const [a, r] of t)
36
+ n[a] = r;
37
+ return n;
38
+ }, V = /* @__PURE__ */ z(P, [["styles", [w]], ["__scopeId", "data-v-fc3c1104"]]), T = [void 0, 10, 12, 20, 24, 32, 64], $ = ["xlink:href"], N = /* @__PURE__ */ p({
39
+ __name: "PvIcon",
40
+ props: {
41
+ name: { type: String },
42
+ size: { type: null }
43
+ },
44
+ setup(e) {
45
+ const t = e, n = d(!1), a = d(null), r = i(() => ({
46
+ "pv-icon": !0,
47
+ [`pv-icon-${t.size}`]: T.includes(t.size)
48
+ })), c = i(() => n.value && a.value ? `${a.value}#${t.name}` : `#${t.name}`);
49
+ return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (a.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), y(() => {
50
+ const s = g()?.root;
51
+ n.value = s && "isCE" in s && s.isCE;
52
+ }), (s, H) => (o(), l(
53
+ "svg",
54
+ {
55
+ "data-testid": "pv-icon",
56
+ "aria-hidden": "true",
57
+ class: v(r.value)
58
+ },
59
+ [
60
+ _("use", { "xlink:href": c.value }, null, 8, $)
61
+ ],
62
+ 2
63
+ /* CLASS */
64
+ ));
65
+ }
66
+ }), A = ["data-active", "onClick"], B = { type: "button" }, I = /* @__PURE__ */ p({
67
+ __name: "PvTabs",
68
+ props: /* @__PURE__ */ b({
69
+ tabs: { type: Array },
70
+ size: { default: "lg", type: String }
71
+ }, {
72
+ modelValue: { required: !0 },
73
+ modelModifiers: {}
74
+ }),
75
+ emits: ["update:modelValue"],
76
+ setup(e) {
77
+ const t = x(e, "modelValue"), n = (r) => {
78
+ t.value = r;
79
+ }, a = (r) => r.label === t.value ? !0 : null;
80
+ return (r, c) => (o(), l(
81
+ "ul",
82
+ {
83
+ "data-testid": "pv-tabs",
84
+ role: "list",
85
+ class: v({
86
+ "pv-tab-list-small": e.size === "lg",
87
+ "pv-tab-list": e.size === "xl"
88
+ })
89
+ },
90
+ [
91
+ (o(!0), l(
92
+ C,
93
+ null,
94
+ S(e.tabs, (s) => (o(), l("li", {
95
+ key: s.label,
96
+ "data-active": a(s),
97
+ "data-testid": "pv-tab",
98
+ type: "button",
99
+ onClick: () => n(s.label)
100
+ }, [
101
+ _("button", B, [
102
+ s.icon ? (o(), m(N, {
103
+ key: 0,
104
+ name: s.icon
105
+ }, null, 8, ["name"])) : f("v-if", !0),
106
+ k(
107
+ " " + h(s.label) + " ",
108
+ 1
109
+ /* TEXT */
110
+ ),
111
+ s.counter ? (o(), m(V, {
112
+ key: 1,
113
+ value: s.counter,
114
+ variant: a(s) ? "primary" : "tertiary",
115
+ size: "sm"
116
+ }, null, 8, ["value", "variant"])) : f("v-if", !0)
117
+ ])
118
+ ], 8, A))),
119
+ 128
120
+ /* KEYED_FRAGMENT */
121
+ ))
122
+ ],
123
+ 2
124
+ /* CLASS */
125
+ ));
126
+ }
127
+ }), M = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
128
+ function R(e) {
129
+ return !M.has(e);
130
+ }
131
+ function u(e, t) {
132
+ const n = document.querySelector('link[href*="' + t + '"]');
133
+ if (!e.shadowRoot)
134
+ return !1;
135
+ if (n && e.shadowRoot) {
136
+ const a = n.href;
137
+ if (e.shadowRoot.querySelector(`link[href="${a}"]`))
138
+ return;
139
+ const r = document.createElement("link");
140
+ return r.rel = "stylesheet", r.href = a, e.shadowRoot.prepend(r), !0;
141
+ }
142
+ return !1;
143
+ }
144
+ function L(e) {
145
+ if (!u(e, "pit-viper-v2")) {
146
+ if (u(e, "pit-viper")) {
147
+ u(e, "pit-viper-v2-scoped");
148
+ return;
149
+ }
150
+ console.warn(
151
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
152
+ );
153
+ }
154
+ }
155
+ const O = (e) => ({ shadowRoot: R(e) });
156
+ function D(e) {
157
+ const t = e.__name || e.name;
158
+ if (!t)
159
+ throw new Error("Component must have a __name or name property");
160
+ const n = E(e, O(t));
161
+ class a extends n {
162
+ connectedCallback() {
163
+ super.connectedCallback?.(), L(this);
164
+ }
165
+ }
166
+ return a;
167
+ }
168
+ function q(e) {
169
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
170
+ }
171
+ function G(e) {
172
+ const t = e.__name || e.name;
173
+ if (!t)
174
+ throw new Error("Component must have a __name or name property");
175
+ const n = q(t), a = D(e);
176
+ customElements.get(n) || customElements.define(n, a);
177
+ }
178
+ G(I);