playbook_ui 13.5.0.pre.alpha.play984collapsiblekithidestooltips1203 → 13.6.0.pre.alpha.tiptapreacthookformbug1210
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +1 -0
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +22 -26
- data/app/pb_kits/playbook/pb_collapsible/index.js +0 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx +3 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.tsx +2 -0
- data/dist/playbook-rails.js +3 -3
- data/lib/playbook/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8771c78a1ecc2d78dcac4e22ab2ada7e04f99d1e4426d5c824cefb854532cb0
|
4
|
+
data.tar.gz: ae5e324a57a9340ea86ada259e94943a975c16d0c721100b3551a4e30af63e55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b031c275c0b45eac2065985bc48358cb2c9a05337d9cb198698c1af364486bcdbb42c3c8c4e65d5fb4aeef6998481b61d37ea8d17ec0caca1459cbc4c94eb571
|
7
|
+
data.tar.gz: e5e2848b9c33616179dac4582f8a3c5c0fecb04a1fa5c8dbddbaa2e2553fc75248bd1f6730c7ef76d2e66a6b27490753e3035f184464370e273a86173d4f8d0c
|
@@ -1,29 +1,25 @@
|
|
1
|
-
export const showElement = (elem:any) => {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}, 300);
|
12
|
-
};
|
1
|
+
export const showElement = (elem: any) => {
|
2
|
+
elem.style.display = 'block';
|
3
|
+
const height = elem.scrollHeight + 'px'; // Get its height
|
4
|
+
elem.style.height = height; // Update the max-height
|
5
|
+
elem.classList.add('is-visible')
|
6
|
+
// Once the transition is complete, remove the inline max-height so the content can scale responsively
|
7
|
+
window.setTimeout(() => {
|
8
|
+
elem.style.height = '';
|
9
|
+
}, 300);
|
10
|
+
};
|
13
11
|
|
14
|
-
export const hideElement = (elem:any) => {
|
15
|
-
|
12
|
+
export const hideElement = (elem:any) => {
|
13
|
+
elem.style.height = elem.scrollHeight + 'px';
|
16
14
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
}, 1);
|
15
|
+
window.setTimeout(() => {
|
16
|
+
elem.style.height = '0';
|
17
|
+
elem.style.paddingTop = '0';
|
18
|
+
elem.style.paddingBottom = '0';
|
19
|
+
}, 1);
|
23
20
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
}
|
29
|
-
};
|
21
|
+
// When the transition is complete, hide it
|
22
|
+
window.setTimeout(() => {
|
23
|
+
elem.classList.remove('is-visible');
|
24
|
+
}, 300);
|
25
|
+
};
|
@@ -33,12 +33,10 @@ export default class PbCollapsible extends PbEnhancedElement {
|
|
33
33
|
const height = getHeight()
|
34
34
|
elem.classList.add('is-visible')
|
35
35
|
elem.style.height = height // Update the max-height
|
36
|
-
elem.style.overflow = "hidden"
|
37
36
|
|
38
37
|
// Once the transition is complete, remove the inline max-height so the content can scale responsively
|
39
38
|
window.setTimeout(() => {
|
40
39
|
elem.style.height = ''
|
41
|
-
elem.style.overflow = ""
|
42
40
|
}, 300)
|
43
41
|
}
|
44
42
|
|
@@ -50,13 +48,11 @@ export default class PbCollapsible extends PbEnhancedElement {
|
|
50
48
|
elem.style.height = '0'
|
51
49
|
elem.style.paddingTop = '0'
|
52
50
|
elem.style.paddingBottom = '0'
|
53
|
-
elem.style.overflow = "hidden"
|
54
51
|
}, 1)
|
55
52
|
|
56
53
|
// When the transition is complete, hide it
|
57
54
|
window.setTimeout(() => {
|
58
55
|
elem.classList.remove('is-visible')
|
59
|
-
elem.style.overflow = ""
|
60
56
|
}, 300)
|
61
57
|
}
|
62
58
|
|