@meduza/ui-kit-2 0.1.12 → 0.1.13

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,5 +1,5 @@
1
1
  {
2
- "version": "0.1.12",
2
+ "version": "0.1.13",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -34,6 +34,14 @@
34
34
  will-change: opacity;
35
35
  }
36
36
 
37
+ .dot:hover {
38
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
39
+ }
40
+
41
+ .dot.isActive {
42
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 1);
43
+ }
44
+
37
45
  .dot svg {
38
46
  display: block;
39
47
 
@@ -58,7 +66,8 @@
58
66
  }
59
67
 
60
68
  .popover.isLeft.isBottom {
61
- transform: translateX(-100%) translateX(-22px) translateY(-100%) translateY(22px);
69
+ transform: translateX(-100%) translateX(-22px) translateY(-100%)
70
+ translateY(22px);
62
71
  }
63
72
 
64
73
  .popoverTitle {
@@ -44,7 +44,10 @@ export const DotsOnImage: React.FC<DotsOnImageProps> = ({
44
44
  <div className={styles.dots}>
45
45
  {dots.map((dot) => (
46
46
  <button
47
- className={styles.dot}
47
+ className={makeClassName([
48
+ [styles.dot, true],
49
+ [styles.isActive, dot.id === popover.id]
50
+ ])}
48
51
  type="button"
49
52
  key={dot.id}
50
53
  style={{
@@ -44,7 +44,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
44
44
  ]
45
45
 
46
46
  const mobileFullwidth =
47
- fullWidthProviders.indexOf(provider) || block.type === 'dots_on_image'
47
+ fullWidthProviders.indexOf(provider) > -1 || block.type === 'dots_on_image'
48
48
 
49
49
  const renderCC = (context?: string | string[]): JSX.Element => (
50
50
  <MediaCaption