@seed-design/react 0.0.33 → 0.0.34
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleProps } from '../../utils/styled';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes, PropsWithoutRef } from 'react';
|
|
3
3
|
export interface PrefixIconProps {
|
|
4
4
|
svg: React.ReactNode;
|
|
@@ -14,8 +14,8 @@ export declare const IconRequired: ({ children, enabled, }: {
|
|
|
14
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export interface IconProps {
|
|
16
16
|
svg: React.ReactNode;
|
|
17
|
-
size?:
|
|
18
|
-
color?:
|
|
17
|
+
size?: StyleProps["height"];
|
|
18
|
+
color?: StyleProps["color"];
|
|
19
19
|
}
|
|
20
20
|
export declare const Icon: ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
|
|
21
21
|
export declare function withIconRequired<P extends {}, R>(Component: React.ComponentType<P & React.RefAttributes<R>>, enabledPredicate: (props: React.PropsWithoutRef<P>) => boolean): ForwardRefExoticComponent< PropsWithoutRef<P> & RefAttributes<R>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAgC,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEnF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,2GAatB,CAAC;AAIF,eAAO,MAAM,YAAY,GAAI,wBAG1B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,4CAsDjD,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC;IAErB,IAAI,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAE5B,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,qGA+BhB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,EAC9C,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAC1D,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,OAAO,oHAe/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-design/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"clsx": "^2.1.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@seed-design/css": "0.0.
|
|
60
|
+
"@seed-design/css": "0.0.34",
|
|
61
61
|
"react": ">=18.0.0",
|
|
62
62
|
"react-dom": ">=18.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@seed-design/css": "0.0.
|
|
65
|
+
"@seed-design/css": "0.0.34",
|
|
66
66
|
"@vitejs/plugin-react": "^4.4.1",
|
|
67
67
|
"globby": "^14.1.0",
|
|
68
68
|
"react": "^19.1.0",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Slot } from "@radix-ui/react-slot";
|
|
2
2
|
import { useLayoutEffect } from "@radix-ui/react-use-layout-effect";
|
|
3
|
-
import type { Dimension, ScopedColorFg, ScopedColorPalette } from "@seed-design/css/vars";
|
|
4
3
|
import { createContext, forwardRef, useCallback, useContext, useMemo, useRef } from "react";
|
|
5
|
-
import { handleColor, handleDimension } from "../../utils/styled";
|
|
4
|
+
import { handleColor, handleDimension, type StyleProps } from "../../utils/styled";
|
|
6
5
|
|
|
7
6
|
export interface PrefixIconProps {
|
|
8
7
|
svg: React.ReactNode;
|
|
@@ -106,9 +105,9 @@ export const IconRequired = ({
|
|
|
106
105
|
export interface IconProps {
|
|
107
106
|
svg: React.ReactNode;
|
|
108
107
|
|
|
109
|
-
size?:
|
|
108
|
+
size?: StyleProps["height"];
|
|
110
109
|
|
|
111
|
-
color?:
|
|
110
|
+
color?: StyleProps["color"];
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
export const Icon = forwardRef<SVGSVGElement, IconProps>(
|