@purpurds/tooltip 5.1.1 → 5.2.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/tooltip",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/tooltip.cjs.js",
6
6
  "types": "./dist/tooltip.d.ts",
@@ -16,11 +16,11 @@
16
16
  "dependencies": {
17
17
  "@radix-ui/react-tooltip": "~1.0.7",
18
18
  "classnames": "~2.5.0",
19
- "@purpurds/button": "5.1.1",
20
- "@purpurds/icon": "5.1.1",
21
- "@purpurds/paragraph": "5.1.1",
22
- "@purpurds/tokens": "5.1.1",
23
- "@purpurds/action": "5.1.1"
19
+ "@purpurds/button": "5.2.0",
20
+ "@purpurds/paragraph": "5.2.0",
21
+ "@purpurds/action": "5.2.0",
22
+ "@purpurds/icon": "5.2.0",
23
+ "@purpurds/tokens": "5.2.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@rushstack/eslint-patch": "~1.10.0",
package/readme.mdx CHANGED
@@ -50,7 +50,8 @@ export const MyComponent = () => {
50
50
  return (
51
51
  <Tooltip
52
52
  triggerAriaLabel="extra information about something"
53
- variant="primary-negative"
53
+ variant="primary"
54
+ negative
54
55
  position="top"
55
56
  align="center"
56
57
  >
@@ -1,6 +0,0 @@
1
- src/tooltip.tsx:72:9 - error TS2322: Type '{ children: Element; ref: ForwardedRef<HTMLButtonElement>; "aria-label": string; variant: "tertiary-purple"; negative: boolean; iconOnly: true; "data-testid": string; size: Size; }' is not assignable to type 'IntrinsicAttributes & (ButtonProps & RefAttributes<HTMLButtonElement>)'.
2
- Property 'negative' does not exist on type 'IntrinsicAttributes & { children?: ReactNode; className?: string | undefined; "data-testid"?: string | undefined; fullWidth?: boolean | undefined; size?: Size | undefined; variant: "primary" | ... 7 more ... | "text"; } & ... 4 more ... & RefAttributes<...>'.
3
-
4
- 72 negative={negative}
5
- ~~~~~~~~
6
-