@thecb/components 7.0.2-beta.7 → 7.0.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.0.2-beta.7",
3
+ "version": "7.0.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -126,7 +126,7 @@ const CollapsibleSection = ({
126
126
  initial={initiallyOpen ? "open" : "closed"}
127
127
  exit="closed"
128
128
  variants={wrapper}
129
- extraStyles={`transform-origin: 100% 0; overflow-y: hidden`}
129
+ extraStyles={`transform-origin: 100% 0; overflow-y: hidden;`}
130
130
  id={`${id}-content`}
131
131
  role={"region"}
132
132
  aria-labelledby={`${id}-button`}
@@ -57,7 +57,6 @@ const Copyable = ({
57
57
 
58
58
  const cleanup = () => {
59
59
  if (timeoutId) {
60
- // console.log(`Clearing timeout ${timeoutId}`);
61
60
  clearTimeout(timeoutId);
62
61
  }
63
62
  };
@@ -70,10 +69,8 @@ const Copyable = ({
70
69
  }
71
70
  // Start a timeout to restore popover content to the initial value.
72
71
  // Record the ID of the timeout so it can be cleaned up later.
73
- // console.log("Starting timeout");
74
72
  setTimeoutId(
75
73
  setTimeout(() => {
76
- // console.log(`Timeout ${timeoutId} finished`);
77
74
  setPopoverContent(initialPopoverContent);
78
75
  }, copiedPopoverContentDuration)
79
76
  );
@@ -83,7 +80,7 @@ const Copyable = ({
83
80
  setStartTimer(false);
84
81
  }
85
82
 
86
- // Return cleanup function so timeout will be cleared when component unmoumnts.
83
+ // Return cleanup function so timeout will be cleared when component unmounts.
87
84
  return cleanup;
88
85
  }, [startTimer]);
89
86
 
@@ -129,7 +126,7 @@ const Copyable = ({
129
126
  transform="translate(-100%, -75%)"
130
127
  arrowDirection="right"
131
128
  popoverID={popoverID}
132
- buttonExtraStyles="margin: 0"
129
+ buttonExtraStyles="margin: 0;min-width:auto"
133
130
  extraStyles={popoverExtraStyles}
134
131
  triggerText={CopyableContent({ content, onClick })}
135
132
  content={popoverContent}