@meduza/ui-kit-2 0.8.704 → 0.8.801

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.
@@ -2743,31 +2743,12 @@
2743
2743
 
2744
2744
  .EmbedBlock-module_wrapper__ynT7R {
2745
2745
  position: relative;
2746
-
2747
- width: 100%;
2748
- max-height: 70vh;
2749
- }
2750
-
2751
- @media only screen and (min-width: 40.625em) {
2752
-
2753
- .EmbedBlock-module_wrapper__ynT7R {
2754
- max-height: 90vh;
2755
2746
  }
2756
- }
2757
2747
 
2758
2748
  .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2759
2749
  position: static;
2760
2750
  }
2761
2751
 
2762
- /* .isYoutube {
2763
- width: 100%;
2764
- max-height: 70vh;
2765
-
2766
- @media $landscapeTablet {
2767
- max-height: 90vh;
2768
- }
2769
- } */
2770
-
2771
2752
  /* DEVICES */
2772
2753
 
2773
2754
  @media only screen and (min-width: 32em) {
package/dist/ui-kit.css CHANGED
@@ -2743,31 +2743,12 @@
2743
2743
 
2744
2744
  .EmbedBlock-module_wrapper__ynT7R {
2745
2745
  position: relative;
2746
-
2747
- width: 100%;
2748
- max-height: 70vh;
2749
- }
2750
-
2751
- @media only screen and (min-width: 64em) {
2752
-
2753
- .EmbedBlock-module_wrapper__ynT7R {
2754
- max-height: 90vh;
2755
2746
  }
2756
- }
2757
2747
 
2758
2748
  .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2759
2749
  position: static;
2760
2750
  }
2761
2751
 
2762
- /* .isYoutube {
2763
- width: 100%;
2764
- max-height: 70vh;
2765
-
2766
- @media $landscapeTablet {
2767
- max-height: 90vh;
2768
- }
2769
- } */
2770
-
2771
2752
  /* DEVICES */
2772
2753
 
2773
2754
  @media only screen and (min-width: 32em) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.704",
2
+ "version": "0.8.801",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
package/src/.DS_Store ADDED
Binary file
@@ -248,27 +248,20 @@
248
248
 
249
249
  .wrapper {
250
250
  position: relative;
251
-
252
- width: 100%;
253
- max-height: 70vh;
254
-
255
- @media $landscapeTablet {
256
- max-height: 90vh;
257
- }
258
251
  }
259
252
 
260
253
  .wrapper .objectWrap {
261
254
  position: static;
262
255
  }
263
256
 
264
- /* .isYoutube {
257
+ .isYoutube {
265
258
  width: 100%;
266
259
  max-height: 70vh;
267
260
 
268
261
  @media $landscapeTablet {
269
262
  max-height: 90vh;
270
263
  }
271
- } */
264
+ }
272
265
 
273
266
  /* DEVICES */
274
267
  .mobile {
@@ -100,8 +100,8 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
100
100
  <div className={styles.object}>
101
101
  <div
102
102
  className={makeClassName([
103
- [styles.wrapper, true]
104
- // [styles.isYoutube, provider === 'youtube' && isProportional]
103
+ [styles.wrapper, true],
104
+ [styles.isYoutube, provider === 'youtube' && isProportional]
105
105
  ])}
106
106
  style={style}
107
107
  >
@@ -113,14 +113,10 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
113
113
  }
114
114
  }
115
115
 
116
- // if (isProportional && provider !== 'youtube') {
117
- // style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
118
- // style.height = 0
119
- // } else if (isProportional && provider === 'youtube') {
120
- // style.aspectRatio = `${block.data.width} / ${block.data.height}`
121
- // }
122
-
123
- if (isProportional) {
116
+ if (isProportional && provider !== 'youtube') {
117
+ style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
118
+ style.height = 0
119
+ } else if (isProportional && provider === 'youtube') {
124
120
  style.aspectRatio = `${block.data.width} / ${block.data.height}`
125
121
  }
126
122
 
@@ -156,8 +152,8 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
156
152
  <div className={styles.object}>
157
153
  <div
158
154
  className={makeClassName([
159
- [styles.wrapper, true]
160
- // [styles.isYoutube, provider === 'youtube' && isProportional]
155
+ [styles.wrapper, true],
156
+ [styles.isYoutube, provider === 'youtube' && isProportional]
161
157
  ])}
162
158
  style={style}
163
159
  >
@@ -20,8 +20,6 @@ export type Icons =
20
20
  | 'menu'
21
21
  | 'fb'
22
22
  | 'tw'
23
- | 'vk'
24
- | 'ok'
25
23
  | 'tg'
26
24
  | 'chat'
27
25
  | 'magic'
@@ -14,7 +14,6 @@ export default {
14
14
 
15
15
  const Example: React.FC = () => {
16
16
  const [enabledOne, setEnabledOne] = useState(false)
17
- const [enabledTwo, setEnabledTwo] = useState(false)
18
17
  const [enabledThree, setEnabledThree] = useState(false)
19
18
 
20
19
  return (
@@ -1,9 +1,7 @@
1
1
  export type ToolbarButtonTypes =
2
- | 'vk'
3
2
  | 'fb'
4
3
  | 'tw'
5
4
  | 'tg'
6
- | 'ok'
7
5
  | 'reaction'
8
6
  | 'pdf'
9
7
  | 'bookmark'
package/src/types.ts CHANGED
@@ -8,10 +8,7 @@ export interface OptimizedImageItem {
8
8
  export type CallToActions =
9
9
  | 'fb'
10
10
  | 'tw'
11
- | 'vk'
12
- | 'ok'
13
11
  | 'tg'
14
- | 'wp'
15
12
  | 'reaction'
16
13
  | 'pdf'
17
14
  | 'bookmark'