Skip to content

Commit

Permalink
chore: bump csstype to v3.1.3 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc authored Dec 25, 2023
1 parent c0056d1 commit fef918a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/examples/components/Spin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Spin = ({ className, ...restProps }: SpinProps) => {
// 全局注册,内部会做缓存优化
const wrapSSR = useStyleRegister(
{ theme, token, hashId, path: [prefixCls] },
() => [genSpinStyle(prefixCls, token, hashId)],
() => [genSpinStyle(prefixCls, token)],
);

return wrapSSR(
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ssr-hydrate-file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function App() {
// debugger;
hydrateRoot(
container,
<StyleProvider cache={createCache()} recycling>
<StyleProvider cache={createCache()}>
<Demo />
</StyleProvider>,
);
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ssr-hydrate-inline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function App() {
// debugger;
hydrateRoot(
container,
<StyleProvider cache={createCache()} recycling>
<StyleProvider cache={createCache()}>
<Demo />
</StyleProvider>,
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@emotion/hash": "^0.8.0",
"@emotion/unitless": "^0.7.5",
"classnames": "^2.3.1",
"csstype": "3.1.2",
"csstype": "^3.1.3",
"rc-util": "^5.35.0",
"stylis": "^4.0.13"
},
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useStyleRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type CSSProperties = Omit<
export type CSSPropertiesWithMultiValues = {
[K in keyof CSSProperties]:
| CSSProperties[K]
| Extract<CSSProperties[K], string>[]
| readonly Extract<CSSProperties[K], string>[]
| {
[SKIP_CHECK]?: boolean;
[MULTI_VALUE]?: boolean;
Expand All @@ -50,7 +50,7 @@ export type CSSPropertiesWithMultiValues = {

export type CSSPseudos = { [K in CSS.Pseudos]?: CSSObject };

type ArrayCSSInterpolation = CSSInterpolation[];
type ArrayCSSInterpolation = readonly CSSInterpolation[];

export type InterpolationPrimitive =
| null
Expand Down

0 comments on commit fef918a

Please sign in to comment.