@fluid-topics/ft-popover 1.2.65 → 1.2.66
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/README.md +20 -22
- package/build/ft-popover.light.js +353 -301
- package/build/ft-popover.min.js +198 -146
- package/build/ftds-popover-section.d.ts +13 -0
- package/build/ftds-popover-section.js +62 -0
- package/build/ftds-popover-section.properties.d.ts +3 -0
- package/build/ftds-popover-section.properties.js +1 -0
- package/build/ftds-popover-section.styles.d.ts +1 -0
- package/build/ftds-popover-section.styles.js +22 -0
- package/build/ftds-popover.d.ts +9 -4
- package/build/ftds-popover.js +24 -4
- package/build/ftds-popover.styles.js +10 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +5 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -11,32 +11,30 @@ yarn add @fluid-topics/ftds-popover
|
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
13
|
import { html } from "lit"
|
|
14
|
-
import { customElement, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
15
14
|
import "@fluid-topics/ft-link"
|
|
16
15
|
import "@fluid-topics/ft-popover"
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
function render() {
|
|
18
|
+
return html`
|
|
19
|
+
<ftds-popover heading="Popover heading">
|
|
20
|
+
Exemple popover content
|
|
21
|
+
<ftds-link slot="link" href="" variant="body-2-medium" family="brand" underlined>Example popover link</ftds-link>
|
|
22
|
+
</ftds-popover>
|
|
23
|
+
`
|
|
24
|
+
}
|
|
20
25
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}>) => console.log("opened changed ", e.detail) }
|
|
34
|
-
>
|
|
35
|
-
Exemple popover content
|
|
36
|
-
<ftds-link slot="link" href="" variant="body-2-medium" family="brand" underlined>Example popover link</ftds-link>
|
|
37
|
-
</ftds-popover>
|
|
38
|
-
`
|
|
39
|
-
}
|
|
26
|
+
function render() {
|
|
27
|
+
return html`
|
|
28
|
+
<ftds-popover>
|
|
29
|
+
<ftds-popover-section slot="sections" heading="Popover section heading">
|
|
30
|
+
Example popover section content
|
|
31
|
+
<ftds-link slot="link">Example popover section link</ftds-link>
|
|
32
|
+
</ftds-popover-section>
|
|
33
|
+
<ftds-popover-section slot="sections">
|
|
34
|
+
Other example popover section content
|
|
35
|
+
</ftds-popover-section>
|
|
36
|
+
</ftds-popover>
|
|
37
|
+
`
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
```
|