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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aab7a2026fea0f718678e51045ec994772216ad74e0a9a41e5899de34a405009
4
- data.tar.gz: a9c6819da8a20bed50ed2024b4a598514d637b5cc497969b8c2a42552147f794
3
+ metadata.gz: d8771c78a1ecc2d78dcac4e22ab2ada7e04f99d1e4426d5c824cefb854532cb0
4
+ data.tar.gz: ae5e324a57a9340ea86ada259e94943a975c16d0c721100b3551a4e30af63e55
5
5
  SHA512:
6
- metadata.gz: c1d017c3592b3531ea82d819e6e34222f4ebad899cb3c9a3950506a3588f94827d90e18c82405d5eab5ed6a7f12fee4caaadd67fe09ca4622f638c29302ac895
7
- data.tar.gz: 8600414aea6c3ebf852b80b1c6566e601bf7dab8abdcc4e9d343a90872190658fc4f88f384925d1112bbe2233a1f8190b76ae22ba224bbe0e4550236efff4a50
6
+ metadata.gz: b031c275c0b45eac2065985bc48358cb2c9a05337d9cb198698c1af364486bcdbb42c3c8c4e65d5fb4aeef6998481b61d37ea8d17ec0caca1459cbc4c94eb571
7
+ data.tar.gz: e5e2848b9c33616179dac4582f8a3c5c0fecb04a1fa5c8dbddbaa2e2553fc75248bd1f6730c7ef76d2e66a6b27490753e3035f184464370e273a86173d4f8d0c
@@ -12,6 +12,7 @@
12
12
  overflow: hidden;
13
13
  transition: height 300ms, padding 300ms ease-in-out;
14
14
  }
15
+
15
16
  .toggle-content.is-visible {
16
17
  display: block;
17
18
  height: auto;
@@ -1,29 +1,25 @@
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
- elem.style.overflow = "hidden"
7
- // Once the transition is complete, remove the inline max-height so the content can scale responsively
8
- window.setTimeout(() => {
9
- elem.style.height = '';
10
- elem.style.overflow = "visible"
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
- elem.style.height = elem.scrollHeight + 'px';
12
+ export const hideElement = (elem:any) => {
13
+ elem.style.height = elem.scrollHeight + 'px';
16
14
 
17
- window.setTimeout(() => {
18
- elem.style.height = '0';
19
- elem.style.paddingTop = '0';
20
- elem.style.paddingBottom = '0';
21
- elem.style.overflow = "hidden"
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
- // When the transition is complete, hide it
25
- window.setTimeout(() => {
26
- elem.classList.remove('is-visible');
27
- elem.style.overflow = ""
28
- }, 300);
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
 
@@ -31,8 +31,10 @@ const EditorButton = ({
31
31
  >
32
32
  <button
33
33
  className={classname}
34
- onClick={onclick}
35
34
  disabled={disable}
35
+ onClick={onclick}
36
+ role="button"
37
+ type="button"
36
38
  >
37
39
  <Flex
38
40
  align="center"
@@ -22,6 +22,8 @@ const popoverReference = (
22
22
  <button
23
23
  className="toolbar_button"
24
24
  onClick={handleTogglePopover}
25
+ role="button"
26
+ type="button"
25
27
  >
26
28
  <Flex
27
29
  align="center"