diff --git a/.storybook/preview.js b/.storybook/preview.js
index f35dd8665..9f0c252d6 100644
--- a/.storybook/preview.js
+++ b/.storybook/preview.js
@@ -5,10 +5,16 @@ import PrimeVue from 'primevue/config';
import '@/assets/styles/main.scss';
import 'primeicons/primeicons.css';
+import Tooltip from 'primevue/tooltip';
+import { TooltipPassThrough } from '@/components/Tooltip';
setup((app) => {
app.use(configs.constants);
- app.use(PrimeVue, { unstyled: true });
+ app.use(PrimeVue, {
+ unstyled: true,
+ pt: { directives: { tooltip: TooltipPassThrough } }
+ });
+ app.directive('tooltip', Tooltip);
for (const mixinName in mixins) {
const mixin = mixins[mixinName];
app.mixin(mixin);
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8d610e631..2bbacc5e3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# CHANGELOG
+## v2.0.80
+
+- Add PrimeVue `tooltip` directive to plugin installation
+
+### Breaking Changes
+
+- Removes `Tooltip` component
+- Adds a dependency on PrimeVue plugin installation prior to `ui-component` plugin installation
+
## v2.0.79
- Make `Modal`s scrollable when overflow
diff --git a/package-lock.json b/package-lock.json
index e923cfbcf..62f08f65f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@lob/ui-components",
- "version": "2.0.79",
+ "version": "2.0.80",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@lob/ui-components",
- "version": "2.0.79",
+ "version": "2.0.80",
"dependencies": {
"date-fns": "^2.29.3",
"date-fns-holiday-us": "^0.3.1",
diff --git a/package.json b/package.json
index 605a34415..2508404db 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@lob/ui-components",
- "version": "2.0.79",
+ "version": "2.0.80",
"engines": {
"node": ">=20.2.0",
"npm": ">=10.2.0"
diff --git a/src/assets/styles/main.scss b/src/assets/styles/main.scss
index ee5ab48af..7f3a04c83 100644
--- a/src/assets/styles/main.scss
+++ b/src/assets/styles/main.scss
@@ -79,7 +79,6 @@
}
}
-// This is a hack for the modal styles flashing.
@keyframes fadeIn {
from {
opacity: 0;
diff --git a/src/components/Label/Label.stories.js b/src/components/Label/Label.stories.js
index 7efa90565..791670116 100644
--- a/src/components/Label/Label.stories.js
+++ b/src/components/Label/Label.stories.js
@@ -2,7 +2,6 @@ import LobLabel from './Label.vue';
import mdx from './Label.mdx';
import { Info } from '@/components/Icons';
-import Tooltip from '@/components/Tooltip/Tooltip.vue';
export default {
title: 'Components/Label',
@@ -80,19 +79,11 @@ RequiredField.args = {
const WithTooltipTemplate = (args, { argTypes }) => ({
props: Object.keys(argTypes),
- components: { LobLabel, Info, Tooltip },
+ components: { LobLabel, Info },
setup: () => ({ args }),
template: `
-
-
-
-
-
- {{ args.tooltipContent }}
-
-
diff --git a/src/components/Label/Label.vue b/src/components/Label/Label.vue
index 1c3870a03..55230cfbf 100644
--- a/src/components/Label/Label.vue
+++ b/src/components/Label/Label.vue
@@ -10,23 +10,19 @@
]"
data-testid="labelWrapper"
>
-
-
-
-
-
-
- {{ tooltipContent }}
-
-
-
+
+