Skip to content

Commit b4997ac

Browse files
committed
refactor: Tooltip types and add TooltipGroup docs
1 parent 288cc8e commit b4997ac

6 files changed

Lines changed: 2567 additions & 176 deletions

File tree

apps/showcase/assets/apidoc/index.json

Lines changed: 2418 additions & 48 deletions
Large diffs are not rendered by default.

apps/showcase/assets/menu/menu.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
},
6666
{
6767
"name": "ColorPicker",
68-
"to": "/docs/components/colorpicker"
68+
"to": "/docs/components/colorpicker",
69+
"badge": "New"
6970
},
7071
{
7172
"name": "InputText",
@@ -160,7 +161,8 @@
160161
},
161162
{
162163
"name": "OrgChart",
163-
"to": "/docs/components/orgchart"
164+
"to": "/docs/components/orgchart",
165+
"badge": "New"
164166
},
165167
{
166168
"name": "Paginator",
@@ -278,13 +280,11 @@
278280
},
279281
{
280282
"name": "Carousel",
281-
"to": "/docs/components/carousel",
282-
"badge": "New"
283+
"to": "/docs/components/carousel"
283284
},
284285
{
285286
"name": "Gallery",
286-
"to": "/docs/components/gallery",
287-
"badge": "New"
287+
"to": "/docs/components/gallery"
288288
}
289289
]
290290
},

packages/styles/src/base/Base.style.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,27 @@ const css = /*css*/ `
2020
overflow: hidden;
2121
padding-right: dt('scrollbar.width');
2222
}
23+
24+
/* For PrimeReact Motion */
25+
.p-toggleable-content-enter-from,
26+
.p-toggleable-content-leave-to {
27+
max-height: 0;
28+
}
29+
30+
.p-toggleable-content-enter-to,
31+
.p-toggleable-content-leave-from {
32+
max-height: var(--pui-motion-height, 1000px);
33+
}
34+
35+
.p-toggleable-content-leave-active {
36+
overflow: hidden;
37+
transition: max-height 200ms ease-out;
38+
}
39+
40+
.p-toggleable-content-enter-active {
41+
overflow: hidden;
42+
transition: max-height 200ms ease-out;
43+
}
2344
`;
2445

2546
export const styles = {

packages/types/src/shared/tooltip/TooltipGroup.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* [Live Demo](https://www.primereact.org/tooltip/)
66
*
7-
* @module tooltip
7+
* @module tooltipgroup
88
* @group components
99
*
1010
*/

0 commit comments

Comments
 (0)