playbook_ui_docs 14.22.0.pre.rc.5 → 14.22.0.pre.rc.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a97c273eb67dd22ce9351cc164bd0c6ba4f15f8ccaa0b3634aa5bea0972faaff
4
- data.tar.gz: 41fc920a61adbd19d9458e5a05106908ec6e64fef24c206cb65da3588c065212
3
+ metadata.gz: 0c6e4fe87a3326342ee5ffa6f7761a87c55e40e94b00e8cd42936a984a518b32
4
+ data.tar.gz: 392a961c7f0060353a37a8ddf2e6b18125e1a7d4925194a88fab288c053b93af
5
5
  SHA512:
6
- metadata.gz: 251107401872bb1fa0756bef356de4b23b1728e0ca1ae8e57714135533ef32a252ebcaead6c329a77073a50f5b8199fb0527ac6b83b0d9f631e0f253d9f2c094
7
- data.tar.gz: 404bb81493b772574ff81aafafbb8ccd708f6eff3de8c1fb79f445cab1d152c33bf80f8a42ae1c058fd1b5914f35944703c8bf15e504d1439d1f2e275afffadd
6
+ metadata.gz: 9c880cbfeabd770b33cddab7e90f4264636dbea3c15fbff806064e5c8fa59fa62d3e2e3b59c0b0b0b76d8dcd1d16dfe6ecd8ac1c8bbd84bf440170afc831259a
7
+ data.tar.gz: e2ef804911bba73763b3b7ef32816d09a3fbd05fd4fb967ee052fa00b37e1fe8607379aa701cc716d741517b8af41522c8d7eb09033d2f08865d8cfb206027d2
@@ -0,0 +1,25 @@
1
+ import React from 'react'
2
+ import Button from '../../pb_button/_button'
3
+ import Tooltip from '../_tooltip'
4
+ import Flex from '../../pb_flex/_flex'
5
+
6
+ const TooltipClickOpen = (props) => {
7
+ return (
8
+ <Flex flexDirection='row'
9
+ gap='md'
10
+ wrap
11
+ >
12
+ <Tooltip
13
+ placement='top'
14
+ text='Tooltip Opened'
15
+ useClickToOpen
16
+ zIndex={10}
17
+ {...props}
18
+ >
19
+ <Button text='Click to Open' />
20
+ </Tooltip>
21
+ </Flex>
22
+ )
23
+ }
24
+
25
+ export default TooltipClickOpen
@@ -0,0 +1 @@
1
+ Set the prop `useClickToOpen` so that the tooltip will only appear when an item is clicked rather than hovered over.
@@ -18,3 +18,4 @@ examples:
18
18
  - tooltip_icon: Tooltip with Icon
19
19
  - tooltip_delay: Delay
20
20
  - tooltip_show_tooltip_react: Show Tooltip
21
+ - tooltip_click_open: Click to Open
@@ -5,3 +5,4 @@ export { default as TooltipSizing } from './_tooltip_sizing'
5
5
  export { default as TooltipIcon } from './_tooltip_icon'
6
6
  export { default as TooltipDelay } from './_tooltip_delay'
7
7
  export { default as TooltipShowTooltipReact } from './_tooltip_show_tooltip_react'
8
+ export { default as TooltipClickOpen } from './_tooltip_click_open'