@cypress-design/react-tooltip 0.4.1 → 0.5.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/.turbo/turbo-build.log +6 -0
- package/CHANGELOG.md +6 -0
- package/ReadMe.md +4 -4
- package/TooltipReact.cy.tsx +1 -1
- package/dist/index.es.mjs +19546 -16429
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +19562 -16450
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -1
- package/Tooltip.stories.mdx +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cypress-design/react-tooltip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"*"
|
|
6
6
|
],
|
|
@@ -22,5 +22,8 @@
|
|
|
22
22
|
"clsx": "*",
|
|
23
23
|
"@floating-ui/react-dom-interactions": "^0.6.1"
|
|
24
24
|
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@cypress-design/css": "*"
|
|
27
|
+
},
|
|
25
28
|
"license": "MIT"
|
|
26
29
|
}
|
package/Tooltip.stories.mdx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ArgsTable, Canvas, Meta, Story, Description } from '@storybook/addon-docs'
|
|
2
|
-
import { version } from "./package.json"
|
|
3
|
-
import changelog from "./CHANGELOG.md"
|
|
4
|
-
import TooltipStory from './Tooltip.rootstory';
|
|
5
|
-
|
|
6
|
-
import { Tooltip } from './Tooltip'
|
|
7
|
-
|
|
8
|
-
<h1>Tooltip<span className="text-lg font-normal"> - v{version}</span></h1>
|
|
9
|
-
|
|
10
|
-
<Meta
|
|
11
|
-
title="Tooltip"
|
|
12
|
-
component={ Tooltip }
|
|
13
|
-
argTypes={{
|
|
14
|
-
color: {
|
|
15
|
-
control: { type: 'select' },
|
|
16
|
-
},
|
|
17
|
-
placement: {
|
|
18
|
-
control: { type: 'select' },
|
|
19
|
-
},
|
|
20
|
-
}}
|
|
21
|
-
parameters={{
|
|
22
|
-
design: {
|
|
23
|
-
type: "figma",
|
|
24
|
-
url: 'https://www.figma.com/file/1WJ3GVQyMV5e7xVxPg3yID/Design-System?node-id=893%3A0',
|
|
25
|
-
}
|
|
26
|
-
}}
|
|
27
|
-
/>
|
|
28
|
-
|
|
29
|
-
A tooltip is used to provide more information to help a user complete a task.
|
|
30
|
-
|
|
31
|
-
<Canvas withSource="none">
|
|
32
|
-
<Story name="Tooltip">
|
|
33
|
-
{(args) => {
|
|
34
|
-
return <TooltipStory {...args} />
|
|
35
|
-
}}
|
|
36
|
-
</Story>
|
|
37
|
-
</Canvas>
|
|
38
|
-
|
|
39
|
-
<ArgsTable />
|
|
40
|
-
|
|
41
|
-
<Description>
|
|
42
|
-
{changelog.replace(/^# .+/, '## Changelog')}
|
|
43
|
-
</Description>
|