@pantoken/react 0.1.6 → 0.1.7
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/dist/index.d.mts +2 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { register } from "@pantoken/web-components";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/index.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Read a resolved token value from the document. Returns `fallback` on the server.
|
|
@@ -43,11 +42,7 @@ interface IconProps {
|
|
|
43
42
|
* <Icon name="check-mark" size="1.25rem" color="var(--instui-color-text-success)" />;
|
|
44
43
|
* ```
|
|
45
44
|
*/
|
|
46
|
-
declare function Icon({
|
|
47
|
-
name,
|
|
48
|
-
size,
|
|
49
|
-
color
|
|
50
|
-
}: IconProps): ReactNode;
|
|
45
|
+
declare function Icon({ name, size, color }: IconProps): ReactNode;
|
|
51
46
|
/** Props for {@link TokenProvider}. */
|
|
52
47
|
interface TokenProviderProps {
|
|
53
48
|
children?: ReactNode;
|
|
@@ -69,8 +64,6 @@ interface TokenProviderProps {
|
|
|
69
64
|
* }
|
|
70
65
|
* ```
|
|
71
66
|
*/
|
|
72
|
-
declare function TokenProvider({
|
|
73
|
-
children
|
|
74
|
-
}: TokenProviderProps): ReactNode;
|
|
67
|
+
declare function TokenProvider({ children }: TokenProviderProps): ReactNode;
|
|
75
68
|
//#endregion
|
|
76
69
|
export { Icon, IconProps, TokenProvider, TokenProviderProps, readToken, register, useToken };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantoken/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "React helpers for pantoken: <Icon>, useToken, and TokenProvider over the web components + token CSS.",
|
|
5
5
|
"homepage": "https://pantoken.iywahl.com",
|
|
6
6
|
"bugs": "https://github.com/thedannywahl/pantoken/issues",
|