diff --git a/.dumi/pages/index/components/PreviewBanner/ComponentsBlock.tsx b/.dumi/pages/index/components/PreviewBanner/ComponentsBlock.tsx index f9f937b3f2..e28b46c549 100644 --- a/.dumi/pages/index/components/PreviewBanner/ComponentsBlock.tsx +++ b/.dumi/pages/index/components/PreviewBanner/ComponentsBlock.tsx @@ -17,10 +17,9 @@ import { Tooltip, } from 'antd'; import { createStyles } from 'antd-style'; -import classNames from 'classnames'; -import Tilt from './Tilt'; import useLocale from '../../../../hooks/useLocale'; +import Tilt from './Tilt'; const { _InternalPanelDoNotUseOrYouWillBeFired: ModalPanel } = Modal; const { _InternalPanelDoNotUseOrYouWillBeFired: InternalTooltip } = Tooltip; @@ -73,7 +72,6 @@ const locales = { const useStyle = createStyles(({ token, css }) => { const gap = token.padding; - return { holder: css` width: 500px; @@ -82,7 +80,6 @@ const useStyle = createStyles(({ token, css }) => { row-gap: ${gap}px; opacity: 0.8; `, - flex: css` display: flex; flex-wrap: nowrap; @@ -106,29 +103,16 @@ const useStyle = createStyles(({ token, css }) => { }; }); -export interface ComponentsBlockProps { - className?: string; - style?: React.CSSProperties; -} - -const ComponentsBlock: React.FC = (props) => { - const { className, style } = props; - +const ComponentsBlock: React.FC = () => { const [locale] = useLocale(locales); const { styles } = useStyle(); return ( - + {locale.text} - - {/* Line */}
@@ -144,57 +128,34 @@ const ComponentsBlock: React.FC = (props) => { {locale.dropdown}
- - - - {/* Line */}
= (props) => { 26: '26°C', 37: '37°C', 100: { - style: { - color: '#f50', - }, + style: { color: '#f50' }, label: 100°C, }, }} defaultValue={[26, 37]} />
- {/* Line */}
- {/* Line */}
@@ -241,7 +198,6 @@ const ComponentsBlock: React.FC = (props) => { checkedChildren={} unCheckedChildren={} /> - = (props) => { />
-
- -
); diff --git a/.dumi/pages/index/components/PreviewBanner/Tilt.tsx b/.dumi/pages/index/components/PreviewBanner/Tilt.tsx index 51f758ab86..ec1213e03f 100644 --- a/.dumi/pages/index/components/PreviewBanner/Tilt.tsx +++ b/.dumi/pages/index/components/PreviewBanner/Tilt.tsx @@ -1,12 +1,13 @@ import React, { useEffect, useRef } from 'react'; -import VanillaTilt, { type TiltOptions } from 'vanilla-tilt'; +import VanillaTilt from 'vanilla-tilt'; +import type { TiltOptions } from 'vanilla-tilt'; interface TiltProps extends React.HTMLAttributes { options?: TiltOptions; } // https://micku7zu.github.io/vanilla-tilt.js/index.html -const defaultTiltOptions = { +const defaultTiltOptions: TiltOptions = { scale: 1.02, max: 8, speed: 1500, diff --git a/.dumi/pages/index/components/PreviewBanner/index.tsx b/.dumi/pages/index/components/PreviewBanner/index.tsx index e84689170b..578123430a 100644 --- a/.dumi/pages/index/components/PreviewBanner/index.tsx +++ b/.dumi/pages/index/components/PreviewBanner/index.tsx @@ -35,7 +35,7 @@ const useStyle = () => { inset: 0; backdrop-filter: blur(4px); opacity: 1; - background: rgba(255, 255, 255, 0.2); + background-color: rgba(255, 255, 255, 0.2); transition: all 1s ease; pointer-events: none; `); diff --git a/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap index b4b719676d..5d0b7072e6 100644 --- a/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -392,219 +392,211 @@ exports[`renders components/segmented/demo/controlled-two.tsx extend context cor exports[`renders components/segmented/demo/custom.tsx extend context correctly 1`] = `
-
-