@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,186 +0,0 @@
1
- import { defineComponent as f, computed as i, createElementBlock as u, openBlock as s, normalizeClass as _, toDisplayString as b, ref as h, onMounted as S, getCurrentInstance as P, createElementVNode as c, mergeModels as k, useModel as C, createBlock as v, createCommentVNode as p, renderSlot as g, Fragment as w, defineCustomElement as E } from "vue";
2
- const V = /* @__PURE__ */ f({
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")), o = i(() => t.maxValue && t.value && t.value > t.maxValue ? `${t.maxValue}+` : t.value != null ? `${t.prefix}${t.value}` : "-"), a = 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 (l, r) => (s(), u(
23
- "div",
24
- {
25
- class: _(a.value),
26
- "data-testid": "pv-counter-badge"
27
- },
28
- b(o.value),
29
- 3
30
- /* TEXT, CLASS */
31
- ));
32
- }
33
- }), $ = ".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}", x = (e, t) => {
34
- const n = e.__vccOpts || e;
35
- for (const [o, a] of t)
36
- n[o] = a;
37
- return n;
38
- }, z = /* @__PURE__ */ x(V, [["styles", [$]], ["__scopeId", "data-v-fc3c1104"]]), B = [void 0, 10, 12, 20, 24, 32, 64], T = ["xlink:href"], y = /* @__PURE__ */ f({
39
- __name: "PvIcon",
40
- props: {
41
- name: { type: String },
42
- size: { type: null }
43
- },
44
- setup(e) {
45
- const t = e, n = h(!1), o = h(null), a = i(() => ({
46
- "pv-icon": !0,
47
- [`pv-icon-${t.size}`]: B.includes(t.size)
48
- })), l = i(() => n.value && o.value ? `${o.value}#${t.name}` : `#${t.name}`);
49
- return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (o.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), S(() => {
50
- const r = P()?.root;
51
- n.value = r && "isCE" in r && r.isCE;
52
- }), (r, d) => (s(), u(
53
- "svg",
54
- {
55
- "data-testid": "pv-icon",
56
- "aria-hidden": "true",
57
- class: _(a.value)
58
- },
59
- [
60
- c("use", { "xlink:href": l.value }, null, 8, T)
61
- ],
62
- 2
63
- /* CLASS */
64
- ));
65
- }
66
- }), O = ["open"], A = /* @__PURE__ */ f({
67
- __name: "PvAccordion",
68
- props: /* @__PURE__ */ k({
69
- chevronPosition: { default: "right", type: null },
70
- chevronVariant: { default: "vertical", type: String },
71
- defaultOpen: { type: Boolean },
72
- counter: { type: Number },
73
- enableTriggerSlot: { type: Boolean, default: !1 },
74
- enableTriggerFullWidth: { type: Boolean, default: !1 },
75
- header: { type: String }
76
- }, {
77
- modelValue: { type: Boolean },
78
- modelModifiers: {}
79
- }),
80
- emits: ["update:modelValue"],
81
- setup(e) {
82
- const t = e, n = C(e, "modelValue");
83
- t.defaultOpen !== void 0 && (n.value = t.defaultOpen);
84
- const o = (r) => {
85
- const d = r.target;
86
- n.value = d.open;
87
- }, a = {
88
- width: t.enableTriggerFullWidth ? "100%" : "fit-content"
89
- }, l = i(() => t.chevronVariant === "horizontal" ? n.value ? "chevron-down" : "chevron-right" : n.value ? "chevron-up" : "chevron-down");
90
- return (r, d) => (s(), u("details", {
91
- "data-testid": "pv-accordion",
92
- class: "pv-accordion",
93
- open: n.value,
94
- onToggle: o
95
- }, [
96
- c("summary", {
97
- class: "pv-flex",
98
- style: a
99
- }, [
100
- e.chevronPosition === "left" ? (s(), v(y, {
101
- key: 0,
102
- name: l.value
103
- }, null, 8, ["name"])) : p("v-if", !0),
104
- e.enableTriggerSlot ? g(r.$slots, "trigger", { key: 1 }, void 0, !0) : (s(), u(
105
- w,
106
- { key: 2 },
107
- [
108
- c(
109
- "span",
110
- null,
111
- b(e.header),
112
- 1
113
- /* TEXT */
114
- ),
115
- e.counter ? (s(), v(z, {
116
- key: 0,
117
- value: e.counter,
118
- variant: "secondary",
119
- size: "sm"
120
- }, null, 8, ["value"])) : p("v-if", !0)
121
- ],
122
- 64
123
- /* STABLE_FRAGMENT */
124
- )),
125
- e.chevronPosition === "right" ? (s(), v(y, {
126
- key: 3,
127
- name: l.value
128
- }, null, 8, ["name"])) : p("v-if", !0)
129
- ]),
130
- c("div", null, [
131
- g(r.$slots, "default", {}, void 0, !0)
132
- ])
133
- ], 40, O));
134
- }
135
- }), I = "summary[data-v-cebd5e1a]{background-image:none;padding-right:2px}", N = /* @__PURE__ */ x(A, [["styles", [I]], ["__scopeId", "data-v-cebd5e1a"]]), M = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
136
- function R(e) {
137
- return !M.has(e);
138
- }
139
- function m(e, t) {
140
- const n = document.querySelector('link[href*="' + t + '"]');
141
- if (!e.shadowRoot)
142
- return !1;
143
- if (n && e.shadowRoot) {
144
- const o = n.href;
145
- if (e.shadowRoot.querySelector(`link[href="${o}"]`))
146
- return;
147
- const a = document.createElement("link");
148
- return a.rel = "stylesheet", a.href = o, e.shadowRoot.prepend(a), !0;
149
- }
150
- return !1;
151
- }
152
- function D(e) {
153
- if (!m(e, "pit-viper-v2")) {
154
- if (m(e, "pit-viper")) {
155
- m(e, "pit-viper-v2-scoped");
156
- return;
157
- }
158
- console.warn(
159
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
160
- );
161
- }
162
- }
163
- const L = (e) => ({ shadowRoot: R(e) });
164
- function W(e) {
165
- const t = e.__name || e.name;
166
- if (!t)
167
- throw new Error("Component must have a __name or name property");
168
- const n = E(e, L(t));
169
- class o extends n {
170
- connectedCallback() {
171
- super.connectedCallback?.(), D(this);
172
- }
173
- }
174
- return o;
175
- }
176
- function G(e) {
177
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
178
- }
179
- function H(e) {
180
- const t = e.__name || e.name;
181
- if (!t)
182
- throw new Error("Component must have a __name or name property");
183
- const n = G(t), o = W(e);
184
- customElements.get(n) || customElements.define(n, o);
185
- }
186
- H(N);
@@ -1,66 +0,0 @@
1
- import { defineComponent as a, createElementBlock as c, openBlock as i, renderSlot as l, defineCustomElement as u } from "vue";
2
- const p = ["data-style"], m = /* @__PURE__ */ a({
3
- __name: "PvActionBar",
4
- props: {
5
- variant: { default: "white", type: String }
6
- },
7
- setup(e) {
8
- return (t, o) => (i(), c("div", {
9
- class: "pv-action-bar-container",
10
- "data-style": e.variant === "white" ? "white" : void 0
11
- }, [
12
- l(t.$slots, "default")
13
- ], 8, p));
14
- }
15
- }), f = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
16
- function d(e) {
17
- return !f.has(e);
18
- }
19
- function s(e, t) {
20
- const o = document.querySelector('link[href*="' + t + '"]');
21
- if (!e.shadowRoot)
22
- return !1;
23
- if (o && e.shadowRoot) {
24
- const n = o.href;
25
- if (e.shadowRoot.querySelector(`link[href="${n}"]`))
26
- return;
27
- const r = document.createElement("link");
28
- return r.rel = "stylesheet", r.href = n, e.shadowRoot.prepend(r), !0;
29
- }
30
- return !1;
31
- }
32
- function h(e) {
33
- if (!s(e, "pit-viper-v2")) {
34
- if (s(e, "pit-viper")) {
35
- s(e, "pit-viper-v2-scoped");
36
- return;
37
- }
38
- console.warn(
39
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
40
- );
41
- }
42
- }
43
- const v = (e) => ({ shadowRoot: d(e) });
44
- function _(e) {
45
- const t = e.__name || e.name;
46
- if (!t)
47
- throw new Error("Component must have a __name or name property");
48
- const o = u(e, v(t));
49
- class n extends o {
50
- connectedCallback() {
51
- super.connectedCallback?.(), h(this);
52
- }
53
- }
54
- return n;
55
- }
56
- function w(e) {
57
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
58
- }
59
- function y(e) {
60
- const t = e.__name || e.name;
61
- if (!t)
62
- throw new Error("Component must have a __name or name property");
63
- const o = w(t), n = _(e);
64
- customElements.get(o) || customElements.define(o, n);
65
- }
66
- y(m);
@@ -1,96 +0,0 @@
1
- import { defineComponent as c, createElementBlock as a, openBlock as s, normalizeClass as l, createCommentVNode as m, Fragment as u, createTextVNode as p, toDisplayString as v, defineCustomElement as f } from "vue";
2
- const d = ["src"], h = /* @__PURE__ */ c({
3
- __name: "PvAvatar",
4
- props: {
5
- size: { default: "lg", type: String },
6
- image: { type: String },
7
- initials: { type: String }
8
- },
9
- setup(e) {
10
- const t = {
11
- sm: "pv-avatar-16",
12
- md: "pv-avatar-20",
13
- lg: "pv-avatar-xs",
14
- xl: "pv-avatar-sm",
15
- "2x": "pv-avatar-md"
16
- };
17
- return (n, o) => (s(), a(
18
- "div",
19
- {
20
- class: l(t[e.size]),
21
- "data-testid": "pv-avatar"
22
- },
23
- [
24
- e.initials ? (s(), a(
25
- u,
26
- { key: 0 },
27
- [
28
- p(
29
- v(e.initials),
30
- 1
31
- /* TEXT */
32
- )
33
- ],
34
- 64
35
- /* STABLE_FRAGMENT */
36
- )) : e.image ? (s(), a("img", {
37
- key: 1,
38
- src: e.image
39
- }, null, 8, d)) : m("v-if", !0)
40
- ],
41
- 2
42
- /* CLASS */
43
- ));
44
- }
45
- }), g = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
46
- function y(e) {
47
- return !g.has(e);
48
- }
49
- function i(e, t) {
50
- const n = document.querySelector('link[href*="' + t + '"]');
51
- if (!e.shadowRoot)
52
- return !1;
53
- if (n && e.shadowRoot) {
54
- const o = n.href;
55
- if (e.shadowRoot.querySelector(`link[href="${o}"]`))
56
- return;
57
- const r = document.createElement("link");
58
- return r.rel = "stylesheet", r.href = o, e.shadowRoot.prepend(r), !0;
59
- }
60
- return !1;
61
- }
62
- function C(e) {
63
- if (!i(e, "pit-viper-v2")) {
64
- if (i(e, "pit-viper")) {
65
- i(e, "pit-viper-v2-scoped");
66
- return;
67
- }
68
- console.warn(
69
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
70
- );
71
- }
72
- }
73
- const S = (e) => ({ shadowRoot: y(e) });
74
- function w(e) {
75
- const t = e.__name || e.name;
76
- if (!t)
77
- throw new Error("Component must have a __name or name property");
78
- const n = f(e, S(t));
79
- class o extends n {
80
- connectedCallback() {
81
- super.connectedCallback?.(), C(this);
82
- }
83
- }
84
- return o;
85
- }
86
- function E(e) {
87
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
88
- }
89
- function k(e) {
90
- const t = e.__name || e.name;
91
- if (!t)
92
- throw new Error("Component must have a __name or name property");
93
- const n = E(t), o = w(e);
94
- customElements.get(n) || customElements.define(n, o);
95
- }
96
- k(h);
@@ -1,102 +0,0 @@
1
- import { defineComponent as m, computed as l, createElementBlock as s, openBlock as a, Fragment as u, renderList as d, createTextVNode as v, toDisplayString as f, defineCustomElement as h } from "vue";
2
- const y = ["data-more"], _ = ["src"], g = {
3
- key: 2,
4
- class: "pv-avatar-sm"
5
- }, k = /* @__PURE__ */ m({
6
- __name: "PvAvatarGroup",
7
- props: {
8
- items: { type: Array },
9
- maxDisplayed: { type: Number }
10
- },
11
- setup(e) {
12
- const t = e, o = l(() => t.maxDisplayed >= 7 ? 7 : t.maxDisplayed), r = l(() => {
13
- const n = t.items.length - o.value;
14
- return n > 0 ? n : 0;
15
- });
16
- return (n, N) => (a(), s("ul", {
17
- class: "pv-avatar-group",
18
- role: "list",
19
- "data-more": r.value <= 0 ? void 0 : r.value,
20
- "data-testid": "pv-avatar-group"
21
- }, [
22
- (a(!0), s(
23
- u,
24
- null,
25
- d(e.items.slice(0, o.value), (i, p) => (a(), s("li", {
26
- key: p,
27
- "data-testid": "pv-avatar-group-item"
28
- }, [
29
- i.initials ? (a(), s(
30
- u,
31
- { key: 0 },
32
- [
33
- v(
34
- f(i.initials),
35
- 1
36
- /* TEXT */
37
- )
38
- ],
39
- 64
40
- /* STABLE_FRAGMENT */
41
- )) : i.image ? (a(), s("img", {
42
- key: 1,
43
- src: i.image
44
- }, null, 8, _)) : (a(), s("div", g))
45
- ]))),
46
- 128
47
- /* KEYED_FRAGMENT */
48
- ))
49
- ], 8, y));
50
- }
51
- }), w = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
52
- function C(e) {
53
- return !w.has(e);
54
- }
55
- function c(e, t) {
56
- const o = document.querySelector('link[href*="' + t + '"]');
57
- if (!e.shadowRoot)
58
- return !1;
59
- if (o && e.shadowRoot) {
60
- const r = o.href;
61
- if (e.shadowRoot.querySelector(`link[href="${r}"]`))
62
- return;
63
- const n = document.createElement("link");
64
- return n.rel = "stylesheet", n.href = r, e.shadowRoot.prepend(n), !0;
65
- }
66
- return !1;
67
- }
68
- function E(e) {
69
- if (!c(e, "pit-viper-v2")) {
70
- if (c(e, "pit-viper")) {
71
- c(e, "pit-viper-v2-scoped");
72
- return;
73
- }
74
- console.warn(
75
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
76
- );
77
- }
78
- }
79
- const S = (e) => ({ shadowRoot: C(e) });
80
- function b(e) {
81
- const t = e.__name || e.name;
82
- if (!t)
83
- throw new Error("Component must have a __name or name property");
84
- const o = h(e, S(t));
85
- class r extends o {
86
- connectedCallback() {
87
- super.connectedCallback?.(), E(this);
88
- }
89
- }
90
- return r;
91
- }
92
- function D(e) {
93
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
94
- }
95
- function x(e) {
96
- const t = e.__name || e.name;
97
- if (!t)
98
- throw new Error("Component must have a __name or name property");
99
- const o = D(t), r = b(e);
100
- customElements.get(o) || customElements.define(o, r);
101
- }
102
- x(k);
@@ -1,155 +0,0 @@
1
- import { defineComponent as S, ref as m, computed as f, onMounted as C, getCurrentInstance as g, createElementBlock as p, openBlock as c, normalizeClass as u, createElementVNode as i, unref as a, renderSlot as y, createBlock as _, createCommentVNode as h, toDisplayString as b, defineCustomElement as k } from "vue";
2
- const w = [void 0, 10, 12, 20, 24, 32, 64], E = ["xlink:href"], $ = /* @__PURE__ */ S({
3
- __name: "PvIcon",
4
- props: {
5
- name: { type: String },
6
- size: { type: null }
7
- },
8
- setup(e) {
9
- const t = e, n = m(!1), o = m(null), r = f(() => ({
10
- "pv-icon": !0,
11
- [`pv-icon-${t.size}`]: w.includes(t.size)
12
- })), P = f(() => n.value && o.value ? `${o.value}#${t.name}` : `#${t.name}`);
13
- return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (o.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), C(() => {
14
- const l = g()?.root;
15
- n.value = l && "isCE" in l && l.isCE;
16
- }), (l, M) => (c(), p(
17
- "svg",
18
- {
19
- "data-testid": "pv-icon",
20
- "aria-hidden": "true",
21
- class: u(r.value)
22
- },
23
- [
24
- i("use", { "xlink:href": P.value }, null, 8, E)
25
- ],
26
- 2
27
- /* CLASS */
28
- ));
29
- }
30
- });
31
- var v = /* @__PURE__ */ ((e) => (e.Vertical = "Vertical", e.Horizontal = "Horizontal", e))(v || {}), s = /* @__PURE__ */ ((e) => (e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e))(s || {});
32
- const T = ["title"], z = ["title"], x = { class: "pv-flex" }, H = /* @__PURE__ */ S({
33
- __name: "PvBanner",
34
- props: {
35
- label: { type: String },
36
- description: { type: String },
37
- icon: { type: String },
38
- variant: { default: s.Primary, type: null },
39
- orientation: { default: v.Horizontal, type: null }
40
- },
41
- setup(e) {
42
- return (t, n) => (c(), p(
43
- "div",
44
- {
45
- "data-testid": "pv-banner",
46
- class: u([
47
- {
48
- "pv-banner-primary": e.variant === a(s).Primary,
49
- "pv-banner-secondary": e.variant === a(s).Secondary,
50
- "pv-banner-tertiary": e.variant === a(s).Tertiary,
51
- "pv-flex pv-space-between": e.orientation === a(v).Horizontal
52
- }
53
- ])
54
- },
55
- [
56
- i(
57
- "div",
58
- {
59
- class: u([
60
- "pv-flex",
61
- {
62
- "pv-stack-16": e.orientation === a(v).Vertical && t.$slots.action
63
- }
64
- ])
65
- },
66
- [
67
- y(t.$slots, "left"),
68
- e.icon ? (c(), _($, {
69
- key: 0,
70
- "data-testid": "pv-banner-icon",
71
- class: "pv-text-brand",
72
- name: e.icon
73
- }, null, 8, ["name"])) : h("v-if", !0),
74
- i("div", null, [
75
- i("p", {
76
- class: u([
77
- " pv-text-title-md pv-line-clamp",
78
- {
79
- "pv-stack-4": e.description
80
- }
81
- ]),
82
- style: { "--lines": "2", "font-weight": "500" },
83
- title: e.label
84
- }, b(e.label), 11, T),
85
- e.description ? (c(), p("p", {
86
- key: 0,
87
- class: "pv-text-body-sm pv-line-clamp",
88
- style: { "--lines": "2" },
89
- title: e.description
90
- }, b(e.description), 9, z)) : h("v-if", !0)
91
- ])
92
- ],
93
- 2
94
- /* CLASS */
95
- ),
96
- i("div", x, [
97
- y(t.$slots, "action")
98
- ])
99
- ],
100
- 2
101
- /* CLASS */
102
- ));
103
- }
104
- }), R = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
105
- function A(e) {
106
- return !R.has(e);
107
- }
108
- function d(e, t) {
109
- const n = document.querySelector('link[href*="' + t + '"]');
110
- if (!e.shadowRoot)
111
- return !1;
112
- if (n && e.shadowRoot) {
113
- const o = n.href;
114
- if (e.shadowRoot.querySelector(`link[href="${o}"]`))
115
- return;
116
- const r = document.createElement("link");
117
- return r.rel = "stylesheet", r.href = o, e.shadowRoot.prepend(r), !0;
118
- }
119
- return !1;
120
- }
121
- function I(e) {
122
- if (!d(e, "pit-viper-v2")) {
123
- if (d(e, "pit-viper")) {
124
- d(e, "pit-viper-v2-scoped");
125
- return;
126
- }
127
- console.warn(
128
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
129
- );
130
- }
131
- }
132
- const D = (e) => ({ shadowRoot: A(e) });
133
- function L(e) {
134
- const t = e.__name || e.name;
135
- if (!t)
136
- throw new Error("Component must have a __name or name property");
137
- const n = k(e, D(t));
138
- class o extends n {
139
- connectedCallback() {
140
- super.connectedCallback?.(), I(this);
141
- }
142
- }
143
- return o;
144
- }
145
- function N(e) {
146
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
147
- }
148
- function V(e) {
149
- const t = e.__name || e.name;
150
- if (!t)
151
- throw new Error("Component must have a __name or name property");
152
- const n = N(t), o = L(e);
153
- customElements.get(n) || customElements.define(n, o);
154
- }
155
- V(H);
@@ -1,92 +0,0 @@
1
- import { defineComponent as u, createElementBlock as n, openBlock as s, Fragment as l, renderList as m, toDisplayString as i, createTextVNode as p, defineCustomElement as f } from "vue";
2
- const h = {
3
- class: "pv-breadcrumbs",
4
- role: "list",
5
- "data-testid": "pv-breadcrumbs"
6
- }, d = ["href"], _ = /* @__PURE__ */ u({
7
- __name: "PvBreadcrumbs",
8
- props: {
9
- options: { type: Array }
10
- },
11
- setup(e) {
12
- return (r, o) => (s(), n("ul", h, [
13
- (s(!0), n(
14
- l,
15
- null,
16
- m(e.options, (t) => (s(), n("li", {
17
- key: t.label
18
- }, [
19
- t.href ? (s(), n("a", {
20
- key: 0,
21
- href: t.href
22
- }, i(t.label), 9, d)) : (s(), n(
23
- l,
24
- { key: 1 },
25
- [
26
- p(
27
- i(t.label),
28
- 1
29
- /* TEXT */
30
- )
31
- ],
32
- 64
33
- /* STABLE_FRAGMENT */
34
- ))
35
- ]))),
36
- 128
37
- /* KEYED_FRAGMENT */
38
- ))
39
- ]));
40
- }
41
- }), v = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
42
- function b(e) {
43
- return !v.has(e);
44
- }
45
- function c(e, r) {
46
- const o = document.querySelector('link[href*="' + r + '"]');
47
- if (!e.shadowRoot)
48
- return !1;
49
- if (o && e.shadowRoot) {
50
- const t = o.href;
51
- if (e.shadowRoot.querySelector(`link[href="${t}"]`))
52
- return;
53
- const a = document.createElement("link");
54
- return a.rel = "stylesheet", a.href = t, e.shadowRoot.prepend(a), !0;
55
- }
56
- return !1;
57
- }
58
- function y(e) {
59
- if (!c(e, "pit-viper-v2")) {
60
- if (c(e, "pit-viper")) {
61
- c(e, "pit-viper-v2-scoped");
62
- return;
63
- }
64
- console.warn(
65
- "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
66
- );
67
- }
68
- }
69
- const w = (e) => ({ shadowRoot: b(e) });
70
- function C(e) {
71
- const r = e.__name || e.name;
72
- if (!r)
73
- throw new Error("Component must have a __name or name property");
74
- const o = f(e, w(r));
75
- class t extends o {
76
- connectedCallback() {
77
- super.connectedCallback?.(), y(this);
78
- }
79
- }
80
- return t;
81
- }
82
- function E(e) {
83
- return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
84
- }
85
- function k(e) {
86
- const r = e.__name || e.name;
87
- if (!r)
88
- throw new Error("Component must have a __name or name property");
89
- const o = E(r), t = C(e);
90
- customElements.get(o) || customElements.define(o, t);
91
- }
92
- k(_);