@fluid-topics/ft-popover 2.0.37 → 2.1.0
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 +2 -34
- package/build/definitions.d.ts +0 -4
- package/build/definitions.js +0 -4
- package/build/ft-popover.d.ts +37 -15
- package/build/ft-popover.js +172 -9
- package/build/ft-popover.light.js +428 -1658
- package/build/ft-popover.min.js +475 -1716
- package/build/ft-popover.properties.d.ts +9 -2
- package/build/ft-popover.styles.js +3 -2
- package/build/index.d.ts +0 -6
- package/build/index.js +0 -6
- package/package.json +7 -8
- package/build/ft-base-popover.d.ts +0 -51
- package/build/ft-base-popover.js +0 -196
- package/build/ftds-popover-section.d.ts +0 -13
- package/build/ftds-popover-section.js +0 -61
- package/build/ftds-popover-section.properties.d.ts +0 -3
- package/build/ftds-popover-section.properties.js +0 -1
- package/build/ftds-popover-section.styles.d.ts +0 -1
- package/build/ftds-popover-section.styles.js +0 -22
- package/build/ftds-popover.d.ts +0 -30
- package/build/ftds-popover.js +0 -127
- package/build/ftds-popover.properties.d.ts +0 -9
- package/build/ftds-popover.properties.js +0 -5
- package/build/ftds-popover.styles.d.ts +0 -1
- package/build/ftds-popover.styles.js +0 -101
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { css } from "lit";
|
|
2
|
-
import { popover } from "@fluid-topics/design-system-variables";
|
|
3
|
-
// language=css
|
|
4
|
-
export const styles = css `
|
|
5
|
-
:host {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: inline-block;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[part="root-container"] {
|
|
11
|
-
position: relative;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[part="popover-container"] {
|
|
15
|
-
position: absolute;
|
|
16
|
-
z-index: 100;
|
|
17
|
-
display: block;
|
|
18
|
-
margin: auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part="closing-button-container"] {
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 8px;
|
|
24
|
-
right: 8px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part="overlay"] {
|
|
28
|
-
position: fixed;
|
|
29
|
-
top: 0;
|
|
30
|
-
right: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
left: 0;
|
|
33
|
-
height: 100%;
|
|
34
|
-
width: 100%;
|
|
35
|
-
opacity: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
[part="wrapper"] {
|
|
39
|
-
visibility: hidden;
|
|
40
|
-
position: fixed;
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
|
|
44
|
-
max-width: ${popover.maxWidth};
|
|
45
|
-
min-width: ${popover.minWidth};
|
|
46
|
-
max-height: ${popover.maxHeight}
|
|
47
|
-
|
|
48
|
-
padding-left: ${popover.defaultHorizontalPadding};
|
|
49
|
-
padding-right: ${popover.defaultHorizontalPadding};
|
|
50
|
-
padding-top: ${popover.defaultVerticalPadding};
|
|
51
|
-
padding-bottom: ${popover.defaultVerticalPadding};
|
|
52
|
-
gap: ${popover.gap};
|
|
53
|
-
|
|
54
|
-
background-color: ${popover.backgroundColor};
|
|
55
|
-
border-radius: ${popover.borderRadius};
|
|
56
|
-
box-shadow: ${popover.shadow};
|
|
57
|
-
|
|
58
|
-
&.positioned {
|
|
59
|
-
visibility: visible;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.ftds-popover--dense {
|
|
63
|
-
padding-left: ${popover.denseHorizontalPadding};
|
|
64
|
-
padding-right: ${popover.denseHorizontalPadding};
|
|
65
|
-
padding-top: ${popover.denseVerticalPadding};
|
|
66
|
-
padding-bottom: ${popover.denseVerticalPadding};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
[part="heading"] {
|
|
71
|
-
flex-shrink: 0;
|
|
72
|
-
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
gap: ${popover.gap};
|
|
76
|
-
|
|
77
|
-
color: ${popover.titleColor};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
[part="heading"] ftds-typography {
|
|
81
|
-
flex-grow: 1;
|
|
82
|
-
flex-shrink: 1;
|
|
83
|
-
text-overflow: ellipsis;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
white-space: nowrap;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
[part="content"] {
|
|
89
|
-
color: ${popover.bodyColor};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
[part="popover-sections"] {
|
|
93
|
-
display: flex;
|
|
94
|
-
flex-direction: column;
|
|
95
|
-
gap: ${popover.multiSectionVerticalGap};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.hidden {
|
|
99
|
-
display: none;
|
|
100
|
-
}
|
|
101
|
-
`;
|