-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
650 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
docs/data/base/components/tooltip/UnstyledTooltipIntroduction/system/index.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
docs/translations/api-docs-base/tooltip-arrow/tooltip-arrow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
{ | ||
"componentDescription": "The tooltip arrow caret element.", | ||
"propDescriptions": { | ||
"className": { | ||
"description": "Class names applied to the element or a function that returns them based on the component's state." | ||
}, | ||
"render": { "description": "A function to customize rendering of the component." } | ||
}, | ||
"propDescriptions": {}, | ||
"classDescriptions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
docs/translations/api-docs-base/tooltip-group/tooltip-group.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{ | ||
"componentDescription": "Groups tooltips' delays together so that once one of the tooltips opens, subsequent tooltips will\nnot open with a delay.", | ||
"propDescriptions": {}, | ||
"propDescriptions": { | ||
"closeDelay": { | ||
"description": "The delay in milliseconds until the tooltip content is closed." | ||
}, | ||
"delay": { | ||
"description": "The delay in milliseconds until tooltips within the group are open." | ||
} | ||
}, | ||
"classDescriptions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
{ | ||
"componentDescription": "The foundation for building custom-styled tooltips.", | ||
"propDescriptions": {}, | ||
"propDescriptions": { | ||
"closeDelay": { | ||
"description": "The delay in milliseconds until the tooltip content is closed." | ||
}, | ||
"defaultOpen": { | ||
"description": "Specifies whether the tooltip is open initially when uncontrolled." | ||
}, | ||
"delay": { "description": "The delay in milliseconds until the tooltip content is opened." }, | ||
"delayType": { | ||
"description": "The delay type to use. <code>rest</code> means the <code>delay</code> represents how long the user's cursor must rest on the anchor before the tooltip content is opened. <code>hover</code> means the <code>delay</code> represents how long to wait once the user's cursor has entered the anchor." | ||
}, | ||
"onOpenChange": { | ||
"description": "Callback fired when the tooltip content is requested to be opened or closed. Use when controlled." | ||
}, | ||
"open": { | ||
"description": "If <code>true</code>, the tooltip content is open. Use when controlled." | ||
} | ||
}, | ||
"classDescriptions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { Tooltip } from '@base_ui/react/Tooltip'; | ||
import { createRenderer, screen } from '@mui/internal-test-utils'; | ||
import { expect } from 'chai'; | ||
|
||
describe('<Tooltip />', () => { | ||
const { render } = createRenderer(); | ||
|
||
it('should render the children', () => { | ||
render( | ||
<Tooltip> | ||
<Tooltip.AnchorFragment> | ||
<div>Content</div> | ||
</Tooltip.AnchorFragment> | ||
</Tooltip>, | ||
); | ||
|
||
expect(screen.getByText('Content')).not.to.equal(null); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.