@cfpb/cfpb-design-system 3.6.1 → 3.6.3

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.
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@cfpb/cfpb-design-system",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "CFPB's UI framework",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
7
- "./tooltips": "./src/components/cfpb-tooltips/index.js"
7
+ "./tooltips": "./src/components/cfpb-tooltips/index.js",
8
+ "./icons/": "./src/components/cfpb-icons/icons/"
8
9
  },
9
10
  "author": {
10
11
  "name": "Consumer Financial Protection Bureau",
@@ -22,10 +22,10 @@ function Tooltip(element) {
22
22
 
23
23
  /**
24
24
  * Set up and create the tooltip.
25
- * @returns {Tooltip} An instance.
25
+ * @returns {object} An initialized tippy tooltip instance.
26
26
  */
27
27
  function init() {
28
- return tippy(element, {
28
+ return (this.tooltip = tippy(element, {
29
29
  theme: 'cfpb',
30
30
  maxWidth: 450,
31
31
  content: function (reference) {
@@ -63,11 +63,12 @@ function Tooltip(element) {
63
63
  },
64
64
  },
65
65
  ],
66
- });
66
+ }));
67
67
  }
68
68
 
69
69
  // Attach public events.
70
70
  this.init = init;
71
+ this.tooltip = null;
71
72
 
72
73
  return this;
73
74
  }