MCPcopy Create free account

hub / github.com/ant-design/ant-design / functions

Functions4,327 in github.com/ant-design/ant-design

↓ 291 callersFunctionrender
(path: string)
scripts/check-site.ts:24
↓ 123 callersFunctionuseStyle
()
scripts/generate-cssinjs.ts:31
↓ 104 callersFunctionuseLocale
( componentName: C, defaultLocale?: Locale[C] | (() => Locale[C]), )
components/locale/useLocale.ts:11
↓ 86 callersFunctionuseComponentConfig
(propName: T)
components/config-provider/context.ts:627
↓ 81 callersFunctionwaitFakeTimer
(advanceTime = 1000, times = 20)
tests/utils.tsx:77
↓ 80 callersFunctionmountTest
(Component: React.ComponentType)
tests/shared/mountTest.tsx:6
↓ 76 callersFunctionuseMergeSemantic
( classNamesList: MaybeFn<ClassNamesType, Props>[], stylesList: MaybeFn<StylesType, Props>[], info: { pr
components/_util/hooks/useMergeSemantic/index.ts:95
↓ 73 callersFunctionrtlTest
(Component: React.ComponentType, mockDate = false)
tests/shared/rtlTest.tsx:8
↓ 72 callersFunctionisPlainObject
(val: any)
components/_util/is.ts:17
↓ 70 callersFunctionaccessibilityDemoTest
(component: string, options: Options = {})
tests/shared/accessibilityTest.tsx:179
↓ 70 callersFunctiondemoTest
(component: string, options: Options = {})
tests/shared/demoTest.tsx:120
↓ 70 callersFunctionextendTest
(component: string, options: Options = {})
tests/shared/demoTest.tsx:113
↓ 69 callersFunctionact
(callback)
components/message/index.tsx:23
↓ 66 callersFunctionimageDemoTest
(component: string, options: Options = {})
tests/shared/imageTest.tsx:345
↓ 63 callersFunctionisFunction
(val: any)
components/_util/is.ts:21
↓ 61 callersFunctiongenCssVar
( antCls: string, component: string, )
components/theme/util/genStyleUtils.ts:48
↓ 59 callersFunctionsemanticDemoTest
(component: string, options: Options = {})
tests/shared/demoTest.tsx:168
↓ 59 callersFunctionwarning
()
components/message/demo/other.tsx:21
↓ 57 callersFunctionresetComponent
(token: AliasToken, needInheritFontFamily = false)
components/style/index.tsx:12
↓ 53 callersFunctionresetWarned
()
components/_util/warning.ts:9
↓ 50 callersFunctionvarName
(name)
components/theme/util/genStyleUtils.ts:53
↓ 43 callersFunctionuseCSSVarCls
(prefixCls: string)
components/config-provider/hooks/useCSSVarCls.ts:6
↓ 42 callersFunctionisNumber
(val: any)
components/_util/is.ts:9
↓ 40 callersFunctionvarRef
(name, fallback)
components/theme/util/genStyleUtils.ts:56
↓ 34 callersFunctionuseSize
( customSize?: T | ((ctxSize: SizeType) => T), )
components/config-provider/hooks/useSize.ts:7
↓ 33 callersFunctionuseSemanticRootStyle
(style?: React.CSSProperties)
components/_util/hooks/useMergeSemantic/index.ts:76
↓ 30 callersFunctionexpectSemanticRootStylePriority
(element: Element | null)
tests/shared/semanticStylePriority.ts:33
↓ 29 callersFunctionrootPropsTest
( component: string | string[], customizeRender?: ( component: React.ComponentType<any> & Record<strin
tests/shared/rootPropsTest.tsx:23
↓ 29 callersFunctionuseToken
Get current context Design Token. Will be different if you are using nest theme config.
components/theme/index.tsx:16
↓ 27 callersFunctioncloneElement
(element: React.ReactNode, props?: RenderProps)
components/_util/reactNode.ts:23
↓ 26 callersFunctionisNonNullable
(val: T)
components/_util/is.ts:1
↓ 25 callersMethodtoHexString
()
components/color-picker/color.ts:65
↓ 23 callersFunctionisReactRenderable
(val: T)
components/_util/is.ts:5
↓ 22 callersFunctiontoArray
(candidate?: T | T[] | false)
components/form/util.ts:13
↓ 22 callersMethodtoRgbString
()
components/color-picker/color.ts:73
↓ 20 callersFunctionfocusTest
( Component: React.ComponentType<any>, { refFocus = false, blurDelay = 0 } = {}, )
tests/shared/focusTest.tsx:10
↓ 19 callersFunctionsetSize
(width: number, height: number)
components/upload/__tests__/uploadlist.test.tsx:45
↓ 17 callersFunctiongenFocusStyle
(token: AliasToken, offset?: number)
components/style/index.tsx:75
↓ 17 callersFunctiongenerateColor
( color: ColorGenInput<AggregationColor> | Exclude<ColorValueType, null>, )
components/color-picker/util.ts:7
↓ 17 callersFunctionuseZIndex
( componentType: ZIndexContainer | ZIndexConsumer, customZIndex?: number, )
components/_util/hooks/useZIndex.ts:59
↓ 15 callersFunctiononChange
(key: string | string[])
components/collapse/demo/mix.tsx:38
↓ 14 callersFunctiongenFocusOutline
(token: AliasToken, offset?: number)
components/style/index.tsx:69
↓ 13 callersFunctionuseCompactItemContext
(prefixCls: string, direction: DirectionType)
components/space/Compact.tsx:25
↓ 12 callersFunctionconfirm
(config: ModalFuncProps)
components/modal/confirm.tsx:72
↓ 12 callersFunctiongetStatusClassNames
( prefixCls: string, status?: ValidateStatus, hasFeedback?: boolean, )
components/_util/statusUtils.ts:9
↓ 12 callersFunctionisString
(val: any)
components/_util/is.ts:13
↓ 11 callersFunctiongetMergedStatus
(contextStatus?: ValidateStatus, customStatus?: InputStatus)
components/_util/statusUtils.ts:23
↓ 11 callersFunctiongetTransitionName
(rootPrefixCls: string, motion: string, transitionName?: string)
components/_util/motion.ts:47
↓ 11 callersFunctionuseVariant
( component: VariantComponents, variant?: Variant, legacyBordered?: boolean, )
components/form/hooks/useVariants.ts:25
↓ 9 callersFunctioncallback
()
components/anchor/Anchor.tsx:325
↓ 9 callersFunctionclearFix
()
components/style/index.tsx:54
↓ 9 callersFunctiongenPurePanel
( Component: React.ComponentType<Readonly<ComponentProps>>, alignPropName?: 'align' | 'dropdownAlign' | 'p
components/_util/PurePanel.tsx:21
↓ 9 callersFunctiononItemSelect
( direction: TransferDirection, selectedKey: TransferKey, checked: boolean, multiple?: boolean
components/transfer/index.tsx:433
↓ 9 callersFunctionrenderEmpty
(componentName)
components/table/demo/custom-empty.tsx:20
↓ 9 callersFunctiontriggerResize
(target: Element)
tests/utils.tsx:58
↓ 9 callersFunctionuseBreakpoint
()
components/grid/index.tsx:6
↓ 9 callersFunctionuseOrientation
( orientation?: Orientation, vertical?: boolean, legacyDirection?: Orientation, )
components/_util/hooks/useOrientation.ts:9
↓ 8 callersFunctionact
(callback: VoidFunction)
components/notification/index.tsx:15
↓ 8 callersFunctiongenCompactItemStyle
( token: FullToken<T>, options: CompactItemOptions = { focus: true }, )
components/style/compact-item.ts:104
↓ 8 callersFunctioninitInputToken
(token: AliasToken)
components/input/style/token.ts:100
↓ 8 callersFunctionremove
(targetKey: TargetKey)
components/tabs/demo/size.tsx:42
↓ 8 callersFunctionresetIcon
()
components/style/index.tsx:25
↓ 8 callersMethodtoHsb
()
components/color-picker/color.ts:53
↓ 8 callersMethodtoRgb
()
components/color-picker/color.ts:69
↓ 7 callersFunction$
(selector: string)
scripts/check-site.ts:59
↓ 7 callersFunctionawaitPromise
()
components/message/__tests__/util.ts:3
↓ 7 callersFunctionconfirm
()
components/modal/demo/locale.tsx:40
↓ 7 callersFunctiongenNoMotionStyle
()
components/style/motion/util.ts:3
↓ 7 callersFunctiongetColumnKey
( column: ColumnType<RecordType>, defaultKey: string, )
components/table/util.ts:13
↓ 7 callersFunctioninitCollapseMotion
(rootCls = defaultPrefixCls)
components/_util/motion.ts:29
↓ 7 callersFunctiononChange
(value)
components/cascader/demo/size.tsx:46
↓ 7 callersFunctiononItemSelectAll
( direction: TransferDirection, keys: TransferKey[], checkAll: boolean | 'replace', )
components/transfer/index.tsx:363
↓ 7 callersFunctiontriggerMotionEnd
(selector = '.ant-message-fade-leave')
components/message/__tests__/util.ts:9
↓ 6 callersFunctionadd
()
components/tabs/demo/size.tsx:29
↓ 6 callersFunctionawaitPromise
()
components/notification/__tests__/util.ts:3
↓ 6 callersFunctionclose
(...args: any[])
components/modal/confirm.tsx:125
↓ 6 callersFunctioncreatePostFn
(titles: string[])
tests/shared/demoTest.tsx:150
↓ 6 callersFunctiongenDisabledStyle
(token)
components/input/style/variants.ts:13
↓ 6 callersFunctiongenerate
(opt: Options)
scripts/visual-regression/reportAdapter.ts:188
↓ 6 callersFunctiongetColumnPos
(index: number, pos?: string)
components/table/util.ts:26
↓ 6 callersFunctionglobalConfig
()
components/config-provider/index.tsx:346
↓ 6 callersMethodisGradient
()
components/color-picker/color.ts:77
↓ 6 callersFunctiononClose
()
components/drawer/demo/size.tsx:9
↓ 6 callersFunctionrenderHook
(func: () => T)
tests/utils.tsx:35
↓ 6 callersFunctionscrollTo
(y: number, options: ScrollToOptions = {})
components/_util/scrollTo.ts:16
↓ 6 callersFunctionuseClosable
( propCloseCollection?: ClosableCollection, contextCloseCollection?: ClosableCollection | null, fallback
components/_util/hooks/useClosable.tsx:161
↓ 5 callersFunctionexitProcess
(code = 1)
scripts/check-repo.ts:13
↓ 5 callersFunctionfallbackProp
(...args: T[])
components/_util/fallbackProp.ts:10
↓ 5 callersFunctionfn
()
components/_util/__tests__/util.test.tsx:49
↓ 5 callersFunctionfunc
(items2: LevelKeysProps[], level = 1)
components/menu/demo/sider-current.tsx:67
↓ 5 callersFunctiongenBasicInputStyle
( token: InputToken, option: { largeStyle?: CSSObject; smallStyle?: CSSObject; } = {}, )
components/input/style/index.ts:59
↓ 5 callersFunctiongenCollapseMotion
(token)
components/style/motion/collapse.ts:5
↓ 5 callersFunctiongetArrowOffsetToken
(options: { contentRadius: number; limitVerticalRadius?: boolean; })
components/style/placementArrow.ts:18
↓ 5 callersFunctiongetArrowToken
(token: AliasToken)
components/style/roundedArrow.ts:16
↓ 5 callersFunctiongetScroll
(target: HTMLElement | Window | Document | null)
components/_util/getScroll.ts:7
↓ 5 callersFunctioninitSlideMotion
( token: TokenWithCommonCls<AliasToken>, motionName: SlideMotionTypes, )
components/style/motion/slide.ts:139
↓ 5 callersFunctioninitZoomMotion
( token: TokenWithCommonCls<AliasToken>, motionName: ZoomMotionTypes, )
components/style/motion/zoom.ts:197
↓ 5 callersFunctiononChangeComplete
(value: number | number[])
components/slider/demo/event.tsx:8
↓ 5 callersFunctiononInternalChange
( file: UploadFile, changedFileList: UploadFile[], event?: { percent: number }, )
components/upload/Upload.tsx:117
↓ 5 callersFunctionpickClosable
( context?: ContextClosable<T>, )
components/_util/hooks/useClosable.tsx:18
next →1–100 of 4,327, ranked by callers