@cypress-design/react-tooltip 0.4.0 → 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/package.json CHANGED
@@ -1,26 +1,29 @@
1
1
  {
2
- "name": "@cypress-design/react-tooltip",
3
- "version": "0.4.0",
4
- "files": [
5
- "*"
6
- ],
7
- "typings": "./dist/index.d.ts",
8
- "main": "./dist/index.umd.js",
9
- "module": "./dist/index.es.mjs",
10
- "exports": {
11
- ".": {
12
- "import": "./dist/index.es.mjs",
13
- "require": "./dist/index.umd.js"
14
- }
15
- },
16
- "scripts": {
17
- "build": "yarn build:module && yarn build:types",
18
- "build:module": "rollup -c ./rollup.config.js",
19
- "build:types": "tsc --project ./tsconfig.build.json"
20
- },
21
- "dependencies": {
22
- "clsx": "*",
23
- "@floating-ui/react-dom-interactions": "^0.6.1"
24
- },
25
- "license": "MIT"
2
+ "name": "@cypress-design/react-tooltip",
3
+ "version": "0.5.0",
4
+ "files": [
5
+ "*"
6
+ ],
7
+ "typings": "./dist/index.d.ts",
8
+ "main": "./dist/index.umd.js",
9
+ "module": "./dist/index.es.mjs",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.es.mjs",
13
+ "require": "./dist/index.umd.js"
14
+ }
15
+ },
16
+ "scripts": {
17
+ "build": "yarn build:module && yarn build:types",
18
+ "build:module": "rollup -c ./rollup.config.mjs",
19
+ "build:types": "tsc --project ./tsconfig.build.json"
20
+ },
21
+ "dependencies": {
22
+ "clsx": "*",
23
+ "@floating-ui/react-dom-interactions": "^0.6.1"
24
+ },
25
+ "devDependencies": {
26
+ "@cypress-design/css": "*"
27
+ },
28
+ "license": "MIT"
26
29
  }
@@ -0,0 +1,3 @@
1
+ import rootRollupConfig from '../../root.rollup.config.mjs'
2
+
3
+ export default rootRollupConfig({ input: './index.ts' })
@@ -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>
package/rollup.config.js DELETED
@@ -1,3 +0,0 @@
1
- import rootRollupConfig from '../../root.rollup.config'
2
-
3
- export default rootRollupConfig({ input: './index.ts' })