@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,286 @@
1
+ import { defineComponent as m, ref as C, computed as h, onMounted as x, getCurrentInstance as V, createElementBlock as u, openBlock as r, normalizeClass as S, createElementVNode as b, normalizeStyle as N, createBlock as v, Fragment as z, createCommentVNode as f, toDisplayString as y, mergeModels as A, useModel as B, createVNode as w, renderList as M, unref as D, defineCustomElement as O } from "vue";
2
+ const R = [void 0, 10, 12, 20, 24, 32, 64], L = ["xlink:href"], $ = /* @__PURE__ */ m({
3
+ __name: "PvIcon",
4
+ props: {
5
+ name: { type: String },
6
+ size: { type: null }
7
+ },
8
+ setup(e) {
9
+ const a = e, o = C(!1), n = C(null), t = h(() => ({
10
+ "pv-icon": !0,
11
+ [`pv-icon-${a.size}`]: R.includes(a.size)
12
+ })), l = h(() => o.value && n.value ? `${n.value}#${a.name}` : `#${a.name}`);
13
+ return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (n.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), x(() => {
14
+ const s = V()?.root;
15
+ o.value = s && "isCE" in s && s.isCE;
16
+ }), (s, p) => (r(), u(
17
+ "svg",
18
+ {
19
+ "data-testid": "pv-icon",
20
+ "aria-hidden": "true",
21
+ class: S(t.value)
22
+ },
23
+ [
24
+ b("use", { "xlink:href": l.value }, null, 8, L)
25
+ ],
26
+ 2
27
+ /* CLASS */
28
+ ));
29
+ }
30
+ }), F = /* @__PURE__ */ m({
31
+ __name: "PvSpinner",
32
+ props: {
33
+ variant: { default: "primary", type: String },
34
+ size: { default: "lg", type: String }
35
+ },
36
+ setup(e) {
37
+ const a = {
38
+ xs: "0.75rem",
39
+ sm: "1rem",
40
+ md: "1.25rem",
41
+ lg: "1.5rem",
42
+ xl: "2rem"
43
+ }, o = {
44
+ primary: "pv-spinner",
45
+ dark: "pv-spinner-dark",
46
+ white: "pv-spinner-light"
47
+ };
48
+ return (n, t) => (r(), u(
49
+ "div",
50
+ {
51
+ "data-testid": "pv-spinner",
52
+ class: S(o[e.variant]),
53
+ style: N({ "--size": a[e.size] })
54
+ },
55
+ null,
56
+ 6
57
+ /* CLASS, STYLE */
58
+ ));
59
+ }
60
+ }), T = {
61
+ md: "pv-button-small",
62
+ lg: void 0,
63
+ xl: "pv-button-large"
64
+ }, G = (e) => e == null || !T.hasOwnProperty(e) ? null : T[e] || null, H = ["disabled"], W = {
65
+ key: 1,
66
+ "data-testid": "pv-button-label"
67
+ }, E = /* @__PURE__ */ m({
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 a = ["ghost"], o = e, n = h(() => {
81
+ const t = [];
82
+ o.inverse && a.includes(o.variant) ? t.push(`pv-button-${o.variant}-inverse`) : t.push(`pv-button-${o.variant}`);
83
+ const l = G(o.size);
84
+ return l && t.push(l), t;
85
+ });
86
+ return (t, l) => (r(), u("button", {
87
+ type: "button",
88
+ class: S(n.value),
89
+ disabled: e.disabled,
90
+ "data-testid": "pv-button"
91
+ }, [
92
+ e.loading ? (r(), v(F, {
93
+ key: 0,
94
+ size: "sm"
95
+ })) : (r(), u(
96
+ z,
97
+ { key: 1 },
98
+ [
99
+ e.leftIcon ? (r(), v($, {
100
+ key: 0,
101
+ name: e.leftIcon,
102
+ "data-testid": "pv-button-left-icon"
103
+ }, null, 8, ["name"])) : f("v-if", !0),
104
+ e.label ? (r(), u(
105
+ "span",
106
+ W,
107
+ y(e.label),
108
+ 1
109
+ /* TEXT */
110
+ )) : f("v-if", !0),
111
+ e.rightIcon ? (r(), v($, {
112
+ key: 2,
113
+ name: e.rightIcon,
114
+ "data-testid": "pv-button-right-icon"
115
+ }, null, 8, ["name"])) : f("v-if", !0)
116
+ ],
117
+ 64
118
+ /* STABLE_FRAGMENT */
119
+ ))
120
+ ], 10, H));
121
+ }
122
+ }), I = {
123
+ short: 5,
124
+ long: 7
125
+ }, j = ({
126
+ variant: e = "long"
127
+ } = {}) => ({
128
+ getPaginations: ({
129
+ currentPage: n,
130
+ pages: t
131
+ }) => {
132
+ if (t <= I[e])
133
+ return Array.from({ length: t }, (i, k) => ({
134
+ page: k + 1,
135
+ label: (k + 1).toString()
136
+ }));
137
+ const l = [
138
+ {
139
+ page: 1,
140
+ label: "1"
141
+ }
142
+ ], s = I[e] - 3, p = Math.floor(s / 2);
143
+ let c = n - p, d = n + p;
144
+ const _ = c > 2, P = d < t - 1;
145
+ if (c <= 2 && (c = 2, d = c + s - 1), d >= t - 1 && (d = t - 1, c = d - s + 1), _ && l.push({
146
+ page: 0,
147
+ label: "..."
148
+ }), _ && P)
149
+ for (let i = c + 1; i <= d - 1; i++)
150
+ l.push({ page: i, label: i.toString() });
151
+ else
152
+ for (let i = c; i <= d; i++)
153
+ l.push({ page: i, label: i.toString() });
154
+ return P && l.push({
155
+ page: 0,
156
+ label: "..."
157
+ }), t > 1 && l.push({ page: t, label: t.toString() }), l;
158
+ }
159
+ }), q = ["data-style"], K = ["data-testid", "aria-current"], U = {
160
+ key: 0,
161
+ class: "dots-button",
162
+ disabled: ""
163
+ }, Z = ["onClick"], J = /* @__PURE__ */ m({
164
+ __name: "PvPagination",
165
+ props: /* @__PURE__ */ A({
166
+ size: { default: "lg", type: String },
167
+ maxPages: { type: Number },
168
+ maxNumberToShow: { type: Number },
169
+ variant: { default: "long", type: String }
170
+ }, {
171
+ modelValue: { required: !0 },
172
+ modelModifiers: {}
173
+ }),
174
+ emits: ["update:modelValue"],
175
+ setup(e) {
176
+ const a = e, { getPaginations: o } = j({
177
+ variant: a.variant
178
+ }), n = B(e, "modelValue");
179
+ return (t, l) => (r(), u("ol", {
180
+ role: "list",
181
+ class: "pv-pagination",
182
+ "data-testid": "pv-pagination",
183
+ "data-style": e.size === "lg" ? "small" : void 0
184
+ }, [
185
+ b("li", null, [
186
+ w(E, {
187
+ "data-testid": "pagination-left-arrow-icon",
188
+ disabled: n.value === 1,
189
+ "left-icon": "chevron-left",
190
+ variant: "ghost",
191
+ onClick: l[0] || (l[0] = (s) => t.$emit("update:modelValue", n.value - 1))
192
+ }, null, 8, ["disabled"])
193
+ ]),
194
+ (r(!0), u(
195
+ z,
196
+ null,
197
+ M(D(o)({
198
+ currentPage: n.value,
199
+ pages: e.maxPages
200
+ }), (s) => (r(), u("li", {
201
+ key: s.page,
202
+ "data-testid": `pagination-button-${s.page}`,
203
+ "aria-current": s.page === n.value ? "page" : void 0
204
+ }, [
205
+ s.label === "..." ? (r(), u(
206
+ "button",
207
+ U,
208
+ y(s.label),
209
+ 1
210
+ /* TEXT */
211
+ )) : (r(), u("button", {
212
+ key: 1,
213
+ onClick: (p) => t.$emit("update:modelValue", s.page)
214
+ }, y(s.label), 9, Z))
215
+ ], 8, K))),
216
+ 128
217
+ /* KEYED_FRAGMENT */
218
+ )),
219
+ b("li", null, [
220
+ w(E, {
221
+ "data-testid": "pagination-right-arrow-icon",
222
+ disabled: n.value === e.maxPages,
223
+ "left-icon": "chevron-right",
224
+ variant: "ghost",
225
+ onClick: l[1] || (l[1] = (s) => t.$emit("update:modelValue", n.value + 1))
226
+ }, null, 8, ["disabled"])
227
+ ])
228
+ ], 8, q));
229
+ }
230
+ }), Q = ".dots-button[data-v-e63422b9]{background-color:transparent;color:#4b595c}", X = (e, a) => {
231
+ const o = e.__vccOpts || e;
232
+ for (const [n, t] of a)
233
+ o[n] = t;
234
+ return o;
235
+ }, Y = /* @__PURE__ */ X(J, [["styles", [Q]], ["__scopeId", "data-v-e63422b9"]]), ee = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
236
+ function te(e) {
237
+ return !ee.has(e);
238
+ }
239
+ function g(e, a) {
240
+ const o = document.querySelector('link[href*="' + a + '"]');
241
+ if (!e.shadowRoot)
242
+ return !1;
243
+ if (o && e.shadowRoot) {
244
+ const n = o.href;
245
+ if (e.shadowRoot.querySelector(`link[href="${n}"]`))
246
+ return;
247
+ const t = document.createElement("link");
248
+ return t.rel = "stylesheet", t.href = n, e.shadowRoot.prepend(t), !0;
249
+ }
250
+ return !1;
251
+ }
252
+ function ne(e) {
253
+ if (!g(e, "pit-viper-v2")) {
254
+ if (g(e, "pit-viper")) {
255
+ g(e, "pit-viper-v2-scoped");
256
+ return;
257
+ }
258
+ console.warn(
259
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
260
+ );
261
+ }
262
+ }
263
+ const oe = (e) => ({ shadowRoot: te(e) });
264
+ function ae(e) {
265
+ const a = e.__name || e.name;
266
+ if (!a)
267
+ throw new Error("Component must have a __name or name property");
268
+ const o = O(e, oe(a));
269
+ class n extends o {
270
+ connectedCallback() {
271
+ super.connectedCallback?.(), ne(this);
272
+ }
273
+ }
274
+ return n;
275
+ }
276
+ function se(e) {
277
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
278
+ }
279
+ function le(e) {
280
+ const a = e.__name || e.name;
281
+ if (!a)
282
+ throw new Error("Component must have a __name or name property");
283
+ const o = se(a), n = ae(e);
284
+ customElements.get(o) || customElements.define(o, n);
285
+ }
286
+ le(Y);
@@ -0,0 +1,160 @@
1
+ import { defineComponent as d, ref as v, computed as l, onMounted as g, getCurrentInstance as h, createElementBlock as u, openBlock as i, normalizeClass as p, createElementVNode as m, createCommentVNode as f, createBlock as _, toDisplayString as y, defineCustomElement as C } from "vue";
2
+ const S = [void 0, 10, 12, 20, 24, 32, 64], P = ["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 = v(!1), r = v(null), a = l(() => ({
10
+ "pv-icon": !0,
11
+ [`pv-icon-${t.size}`]: S.includes(t.size)
12
+ })), s = l(() => n.value && r.value ? `${r.value}#${t.name}` : `#${t.name}`);
13
+ return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (r.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), g(() => {
14
+ const o = h()?.root;
15
+ n.value = o && "isCE" in o && o.isCE;
16
+ }), (o, T) => (i(), u(
17
+ "svg",
18
+ {
19
+ "data-testid": "pv-icon",
20
+ "aria-hidden": "true",
21
+ class: p(a.value)
22
+ },
23
+ [
24
+ m("use", { "xlink:href": s.value }, null, 8, P)
25
+ ],
26
+ 2
27
+ /* CLASS */
28
+ ));
29
+ }
30
+ }), k = /* @__PURE__ */ d({
31
+ __name: "PvPill",
32
+ props: {
33
+ size: { default: "md", type: String },
34
+ variant: { default: "default", type: String },
35
+ icon: { type: String },
36
+ dotVariant: { type: String },
37
+ label: { type: String }
38
+ },
39
+ setup(e) {
40
+ const t = e, n = l(() => {
41
+ switch (t.size) {
42
+ case "lg":
43
+ return "pv-tag-lg";
44
+ case "sm":
45
+ return "pv-tag-sm";
46
+ default:
47
+ return "";
48
+ }
49
+ }), r = l(() => {
50
+ if (t.dotVariant)
51
+ return "pv-tag-tertiary";
52
+ switch (t.variant) {
53
+ case "default":
54
+ return "pv-tag-tertiary";
55
+ case "success":
56
+ return "pv-tag-green";
57
+ case "warning":
58
+ return "pv-tag-orange";
59
+ case "critical":
60
+ return "pv-tag-red";
61
+ case "highlight":
62
+ return "pv-tag-turquoise";
63
+ default:
64
+ return "pv-tag-tertiary";
65
+ }
66
+ });
67
+ return (a, s) => (i(), u(
68
+ "div",
69
+ {
70
+ class: p([r.value, n.value, "pv-flex"]),
71
+ onClick: s[0] || (s[0] = (o) => a.$emit("handle-click", e.label)),
72
+ "data-style": "rounded",
73
+ style: { width: "fit-content", "--flex-gap": "4px" }
74
+ },
75
+ [
76
+ e.dotVariant ? (i(), u(
77
+ "span",
78
+ {
79
+ key: 0,
80
+ style: { "margin-inline-end": "0px" },
81
+ class: p(`pv-status-${e.dotVariant}`)
82
+ },
83
+ null,
84
+ 2
85
+ /* CLASS */
86
+ )) : f("v-if", !0),
87
+ e.icon ? (i(), _(E, {
88
+ key: 1,
89
+ name: e.icon,
90
+ size: 12
91
+ }, null, 8, ["name"])) : f("v-if", !0),
92
+ m(
93
+ "span",
94
+ null,
95
+ y(e.label),
96
+ 1
97
+ /* TEXT */
98
+ )
99
+ ],
100
+ 2
101
+ /* CLASS */
102
+ ));
103
+ }
104
+ }), w = "[class*=pv-status]{&[data-v-4ee8f936]:before,&[data-v-4ee8f936]:after{margin-inline-end:0px}}", b = (e, t) => {
105
+ const n = e.__vccOpts || e;
106
+ for (const [r, a] of t)
107
+ n[r] = a;
108
+ return n;
109
+ }, x = /* @__PURE__ */ b(k, [["styles", [w]], ["__scopeId", "data-v-4ee8f936"]]), V = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
110
+ function $(e) {
111
+ return !V.has(e);
112
+ }
113
+ function c(e, t) {
114
+ const n = document.querySelector('link[href*="' + t + '"]');
115
+ if (!e.shadowRoot)
116
+ return !1;
117
+ if (n && e.shadowRoot) {
118
+ const r = n.href;
119
+ if (e.shadowRoot.querySelector(`link[href="${r}"]`))
120
+ return;
121
+ const a = document.createElement("link");
122
+ return a.rel = "stylesheet", a.href = r, e.shadowRoot.prepend(a), !0;
123
+ }
124
+ return !1;
125
+ }
126
+ function z(e) {
127
+ if (!c(e, "pit-viper-v2")) {
128
+ if (c(e, "pit-viper")) {
129
+ c(e, "pit-viper-v2-scoped");
130
+ return;
131
+ }
132
+ console.warn(
133
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
134
+ );
135
+ }
136
+ }
137
+ const I = (e) => ({ shadowRoot: $(e) });
138
+ function R(e) {
139
+ const t = e.__name || e.name;
140
+ if (!t)
141
+ throw new Error("Component must have a __name or name property");
142
+ const n = C(e, I(t));
143
+ class r extends n {
144
+ connectedCallback() {
145
+ super.connectedCallback?.(), z(this);
146
+ }
147
+ }
148
+ return r;
149
+ }
150
+ function A(e) {
151
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
152
+ }
153
+ function O(e) {
154
+ const t = e.__name || e.name;
155
+ if (!t)
156
+ throw new Error("Component must have a __name or name property");
157
+ const n = A(t), r = R(e);
158
+ customElements.get(n) || customElements.define(n, r);
159
+ }
160
+ O(x);