@coopdigital/react 1.1.0 → 1.1.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { StandardSizes } from "
|
|
3
|
+
import { StandardSizes } from "../../types";
|
|
4
4
|
export interface PillProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
5
5
|
/** **(Optional)** Specify a custom element to override default `a` or `span`. */
|
|
6
6
|
as?: React.FC<any> | ForwardRefExoticComponent<any> | string;
|
package/dist/hooks/useSlots.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ReactNodeWithConfig } from "
|
|
2
|
+
import { ReactNodeWithConfig } from "../types";
|
|
3
3
|
type Slots<T> = Record<keyof T, React.ReactNode>;
|
|
4
4
|
export declare function isKey<T extends object>(x: T, k: PropertyKey): k is keyof T;
|
|
5
5
|
export declare function getSlotName(node: ReactNodeWithConfig): string | false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopdigital/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"description": "React components for the Experience Library design system",
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@axe-core/playwright": "^4.11.1",
|
|
62
|
-
"@playwright/test": "^1.
|
|
63
|
-
"@storybook/addon-a11y": "^10.3.
|
|
64
|
-
"@storybook/addon-docs": "^10.3.
|
|
65
|
-
"@storybook/addon-onboarding": "^10.3.
|
|
66
|
-
"@storybook/react-vite": "^10.3.
|
|
62
|
+
"@playwright/test": "^1.59.1",
|
|
63
|
+
"@storybook/addon-a11y": "^10.3.4",
|
|
64
|
+
"@storybook/addon-docs": "^10.3.4",
|
|
65
|
+
"@storybook/addon-onboarding": "^10.3.4",
|
|
66
|
+
"@storybook/react-vite": "^10.3.4",
|
|
67
67
|
"@testing-library/jest-dom": "^6.9.1",
|
|
68
68
|
"@testing-library/react": "^16.3.2",
|
|
69
69
|
"@types/react": "^19.2.14",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-dom": "^19.2.4",
|
|
73
73
|
"resize-observer-polyfill": "^1.5.1",
|
|
74
74
|
"serve": "^14.2.6",
|
|
75
|
-
"storybook": "^10.3.
|
|
75
|
+
"storybook": "^10.3.4",
|
|
76
76
|
"storybook-addon-tag-badges": "^3.1.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
"storybook": "$storybook"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@coopdigital/styles": "^1.1.
|
|
86
|
+
"@coopdigital/styles": "^1.1.1",
|
|
87
87
|
"@radix-ui/react-popover": "^1.1.15",
|
|
88
88
|
"clsx": "^2.1.1",
|
|
89
89
|
"react-day-picker": "^9.12.0"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "9a04874735f6af3ec583dd6960c7d3ef5446965f"
|
|
92
92
|
}
|
|
@@ -2,9 +2,9 @@ import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react"
|
|
|
2
2
|
|
|
3
3
|
import clsx from "clsx"
|
|
4
4
|
import React from "react"
|
|
5
|
-
import { StandardSizes } from "src/types"
|
|
6
5
|
|
|
7
6
|
import { useSlots } from "../../hooks/useSlots"
|
|
7
|
+
import { StandardSizes } from "../../types"
|
|
8
8
|
import { hasUserBg } from "../../utils"
|
|
9
9
|
|
|
10
10
|
export interface PillProps extends HTMLAttributes<HTMLAnchorElement> {
|