MCPcopy Create free account

hub / github.com/pinterest/gestalt / functions

Functions3,132 in github.com/pinterest/gestalt

↓ 355 callersFunctioncreate
(context)
packages/eslint-plugin-gestalt/src/prefer-list.ts:23
↓ 174 callersFunctionexpectAccessiblePage
( // @ts-expect-error - TS7031 - Binding element 'page' implicitly has an 'any' type. | TS7031 - Binding ele
playwright/accessibility/expectAccessiblePage.ts:4
↓ 93 callersFunctionmyI18nTranslator
(val: string)
docs/examples/defaultlabelprovider/translations.tsx:4
↓ 81 callersMethodset
(key: K, value: V)
packages/gestalt/src/Masonry/Cache.ts:4
↓ 80 callersFunctiondocGen
(componentName: string)
docs/docs-components/docgen.ts:35
↓ 67 callersFunctionbuildInvalidTest
(name: string)
packages/eslint-plugin-gestalt/src/no-box-dangerous-style-duplicates.test.ts:18
↓ 67 callersMethodget
(key: K)
packages/gestalt/src/Masonry/Cache.ts:2
↓ 59 callersFunctionlayout
(itemsToLayout: Item[])
packages/gestalt/src/Masonry/multiColumnLayout.test.ts:153
↓ 57 callersFunctionwaitForRenderedItems
(page, args, timeout = 5000)
playwright/masonry/utils/waitForRenderedItems.ts:12
↓ 49 callersFunctiongetRandomColor
(getRandomNumber: () => number = Math.random)
docs/integration-test-helpers/masonry/items-utils/getRandomColor.ts:1
↓ 47 callersFunctiongetGridItems
(page: Page)
playwright/masonry/utils/getGridItems.ts:4
↓ 43 callersFunctionuseDefaultLabelContext
( componentName: C, )
packages/gestalt/src/contexts/DefaultLabelProvider.tsx:342
↓ 40 callersFunctiongenerateDefaultMessage
(prop)
packages/eslint-plugin-gestalt/src/helpers/noBoxDangerousStyleDuplicatesReducer.ts:27
↓ 39 callersFunctiongetServerURL
(options?: Options | null)
playwright/masonry/utils/getServerURL.ts:40
↓ 36 callersFunctionmultiColumnLayout
({ items, gutter = 14, columnWidth = 236, columnCount = 2, centerOffset = 0, logWhitespace, meas
packages/gestalt/src/Masonry/multiColumnLayout.ts:770
↓ 34 callersFunctiondangerouslyDisableOnNavigation
()
packages/gestalt/src/Link.tsx:273
↓ 34 callersFunctionhandleAlternative
({ alternative, }: | { alternative: string; } | { alternativ
packages/eslint-plugin-gestalt/src/helpers/noBoxDangerousStyleDuplicatesReducer.ts:39
↓ 30 callersFunctionmapping
(map: { [key: string]: string })
packages/gestalt/src/transforms.ts:23
↓ 28 callersMethodreset
()
packages/gestalt/src/Masonry/Cache.ts:5
↓ 28 callersFunctiontransformNumberOrPassthrough
(selector: string)
packages/gestalt/src/boxTransforms.ts:268
↓ 27 callersFunctionuseColorScheme
()
packages/gestalt/src/contexts/ColorSchemeProvider.tsx:66
↓ 26 callersFunctiongetTheme
(theme)
packages/gestalt-design-tokens/src/platforms/ios.js:14
↓ 26 callersFunctionuseFocusVisible
()
packages/gestalt/src/useFocusVisible.ts:116
↓ 23 callersFunctionbind
( fn: Functor<T>, scope: { readonly [key: string]: string; }, )
packages/gestalt/src/transforms.ts:44
↓ 23 callersFunctiontrackButtonClick
(buttonLabel: string, value?: string)
docs/docs-components/buttons/trackButtonClick.ts:3
↓ 22 callersFunctionbooleanize
(value: string)
docs/pages/integration-test/masonry.tsx:28
↓ 20 callersFunctionclassname
(namespace, className)
scripts/whitespace.js:81
↓ 20 callersFunctionruleset
(selector, declarations)
scripts/whitespace.js:68
↓ 19 callersMethodhas
(key: K)
packages/gestalt/src/Masonry/Cache.ts:3
↓ 19 callersFunctionrenderComboBox
({ // Cmp Props accessibilityClearButtonLabel = CLEAR, disabled = false, errorMessage, he
packages/gestalt/src/ComboBox.jsdom.test.tsx:47
↓ 18 callersMethodtoString
()
packages/gestalt-charts/src/ChartGraph/InlineStyle.tsx:21
↓ 17 callersFunctiondefaultLayout
({ align, columnWidth = DEFAULT_LAYOUT_DEFAULT_COLUMN_WIDTH, gutter, layout, minCols = 2,
packages/gestalt/src/Masonry/defaultLayout.ts:45
↓ 16 callersFunctionspace
(n)
scripts/whitespace.js:20
↓ 15 callersFunctiongetDataVisualizationColor
( theme: 'lightMode' | 'darkMode', vizColor: string, opts?: { lighten?: boolean; }, )
packages/gestalt/src/utils/datavizcolors/getDataVisualizationColor.ts:5
↓ 15 callersFunctiononKeyDown
({ event }: { event: React.KeyboardEvent<HTMLElement> })
packages/gestalt/src/Dropdown.tsx:245
↓ 15 callersFunctionrangeWithZero
(scale: string)
packages/gestalt/src/transforms.ts:37
↓ 15 callersFunctionuseInteractiveStates
()
packages/gestalt/src/utils/useInteractiveStates.ts:7
↓ 14 callersFunctionfromClassName
(...classNames: ReadonlyArray<string>)
packages/gestalt/src/style.ts:33
↓ 14 callersFunctionunion
(...fns: ReadonlyArray<Functor<T>>)
packages/gestalt/src/transforms.ts:57
↓ 13 callersFunctionbuildInvalidTest
(name: string)
packages/eslint-plugin-gestalt/src/prefer-heading.test.ts:17
↓ 13 callersFunctiongetTestTypePrepender
(testType: string)
packages/eslint-plugin-gestalt/src/helpers/testHelpers.ts:17
↓ 13 callersFunctionmultipleDocGen
( componentNames: ReadonlyArray<Name>, )
docs/docs-components/docgen.ts:42
↓ 13 callersFunctionreadTestByPath
(codePath: string)
packages/eslint-plugin-gestalt/src/helpers/testHelpers.ts:27
↓ 13 callersFunctionuseDeviceType
()
packages/gestalt/src/contexts/DeviceTypeProvider.tsx:24
↓ 12 callersFunctionatrule
(query, rulesets)
scripts/whitespace.js:74
↓ 12 callersFunctionbuildInvalidTestNoDisallowed
(name: string)
packages/eslint-plugin-gestalt/src/prefer-box-no-disallowed.test.ts:50
↓ 12 callersFunctionfromInlineStyle
(inlineStyle: InlineStyle)
packages/gestalt/src/style.ts:38
↓ 12 callersFunctiongenerateFile
({ componentName, outputPath, template, log })
scripts/generateComponent.js:28
↓ 12 callersFunctionrenderCmp
({ addCollaborators = false, collaborators, href, onClick, role, size = 'md', avat
packages/gestalt/src/AvatarGroup.jsdom.test.tsx:11
↓ 12 callersFunctionrenderCmp
({ collaborators, size, rtl, }: { collaborators: ComponentProps<typeof AvatarGroupCluster>['
packages/gestalt/src/AvatarGroupCluster.jsdom.test.tsx:6
↓ 11 callersFunctionrange
(scale: string)
packages/gestalt/src/transforms.ts:32
↓ 11 callersFunctionrecalcHeights
({ items, changedItem, newHeight, positionStore, measurementStore, }: { items: ReadonlyArray<T>;
packages/gestalt/src/Masonry/dynamicHeightsUtils.ts:11
↓ 10 callersFunctionbuildInvalidTestLonelyRef
(name: string)
packages/eslint-plugin-gestalt/src/prefer-box-no-disallowed.test.ts:19
↓ 10 callersFunctionidentity
()
packages/gestalt/src/style.ts:28
↓ 10 callersFunctionisNullOrUndefined
(value?: string | boolean | number)
packages/gestalt-codemods/generic-codemods/utils.ts:34
↓ 10 callersFunctionuseSideNavigation
()
packages/gestalt/src/contexts/SideNavigationProvider.tsx:101
↓ 9 callersFunctiondir
(folder)
packages/gestalt-design-tokens/tests/getFiles.js:17
↓ 9 callersFunctionfilterToken
(color: string)
docs/pages/foundations/color/palette.tsx:36
↓ 9 callersFunctiongetByPlatform
( componentList: ReadonlyArray<ComponentData>, options: { platform: Platform; }, )
docs/docs-components/data/utils/getByPlatform.ts:7
↓ 9 callersFunctiongetFiles
(dir)
packages/gestalt-design-tokens/tests/getFiles.js:6
↓ 9 callersFunctiongetTextNodeFromSourceCode
({ context, elementNode })
packages/eslint-plugin-gestalt/src/helpers/eslintASTHelpers.ts:81
↓ 9 callersMethodindex
()
packages/gestalt-datepicker/src/DatePicker.tsx:23
↓ 9 callersFunctionupdateGestaltImportFixer
({ fixer, gestaltImportNode, importsToRemove, newComponentName, programNode, })
packages/eslint-plugin-gestalt/src/helpers/eslintASTFixers.ts:27
↓ 9 callersFunctionuseReducedMotion
()
packages/gestalt/src/useReducedMotion.ts:7
↓ 9 callersFunctionuseTapFeedback
({ height, width, }: { height: number | null | undefined; width: number | null | undefined; })
packages/gestalt/src/useTapFeedback.ts:17
↓ 8 callersFunctionbuildInvalidTest
(name: string)
packages/eslint-plugin-gestalt/src/only-valid-tokens.test.ts:15
↓ 8 callersFunctioncheckEllipsisActive
()
docs/examples/text/refs.tsx:20
↓ 8 callersFunctionconvertNamesForURL
(name: string)
docs/docs-components/useGetSideNavItems.tsx:6
↓ 8 callersFunctionhandleMouseDown
()
packages/gestalt/src/utils/useTapScaleAnimation.ts:14
↓ 8 callersFunctionhandleMouseUp
()
packages/gestalt/src/utils/useTapScaleAnimation.ts:22
↓ 8 callersFunctionisTag
({ elementNode, tagName })
packages/eslint-plugin-gestalt/src/helpers/eslintASTHelpers.ts:316
↓ 8 callersFunctionparseHandlerValue
(handler?: Handler)
packages/gestalt/src/NumberField.tsx:12
↓ 8 callersFunctionrenameTagWithPropsFixer
({ context, elementNode, gestaltImportNode, fixer, modifiedPropsString, newComponentName, tagNam
packages/eslint-plugin-gestalt/src/helpers/eslintASTFixers.ts:125
↓ 8 callersFunctionspace
(n)
scripts/flex.js:19
↓ 7 callersFunctionautoRules
(prefix)
scripts/whitespace.js:140
↓ 7 callersFunctioncalculateActualColumnSpan
(props: { columnCount: number; firstItem: T; isFlexibleWidthItem: boolean; item: T; responsiveModule
packages/gestalt/src/Masonry/multiColumnLayout.ts:88
↓ 7 callersFunctiongenBointLookup
( propName: string, start: number, end: number = 12, )
packages/eslint-plugin-gestalt/src/helpers/styleValidators.ts:52
↓ 7 callersFunctiongetRandomNumberGenerator
(seed: number)
docs/integration-test-helpers/masonry/items-utils/getRandomNumberGenerator.ts:1
↓ 7 callersFunctiongetRoundingClassName
(rounding: Rounding)
packages/gestalt/src/getRoundingClassName.ts:23
↓ 7 callersFunctiongetTestByPath
(codePath)
packages/stylelint-plugin-gestalt/src/helpers/testHelpers.js:6
↓ 7 callersFunctionhasImport
({ importNode, path })
packages/eslint-plugin-gestalt/src/helpers/eslintASTHelpers.ts:278
↓ 7 callersFunctionlayoutNumberToCssDimension
(n?: number | null)
packages/gestalt/src/Masonry.tsx:29
↓ 7 callersFunctiononSortChange
(col: string)
docs/examples/table/sortableHeaderCellsWithStickyColumns.tsx:8
↓ 7 callersFunctiononSortChange
(col: string)
docs/examples/table/sortableTableCells.tsx:8
↓ 7 callersFunctionrules
(i, prefix)
scripts/whitespace.js:84
↓ 6 callersFunctionbuildCustomApplyTransform
({ transformName, moduleOptions, test, }: { transformName: string; moduleOptions: { quote: 'sing
packages/gestalt-codemods/generic-codemods/__tests__/utils.ts:25
↓ 6 callersFunctionbuildInvalidTestNoDisallowed
(name: string)
packages/eslint-plugin-gestalt/src/prefer-link.test.ts:17
↓ 6 callersFunctionbuildProps
({ context, elementNode, propsToAdd, propSorting = true, propsToRemove, })
packages/eslint-plugin-gestalt/src/helpers/eslintASTHelpers.ts:143
↓ 6 callersFunctioncheckComponentName
({ nodepath, componentName, subcomponentName, }: { nodepath: NodePath; componentName: string; subc
packages/gestalt-codemods/generic-codemods/utils.ts:107
↓ 6 callersFunctiondimensionFormatting
({ keyName, value })
packages/eslint-plugin-gestalt/src/helpers/styleValidators.ts:155
↓ 6 callersFunctiongetColumnCount
({ gutter, columnWidth, width, minCols, layout, }: { gutter: number; columnWidth: number | undef
packages/gestalt/src/Masonry/getColumnCount.ts:9
↓ 6 callersFunctiongetPathFormatterByRuleName
(ruleName: string)
packages/eslint-plugin-gestalt/src/helpers/testHelpers.ts:23
↓ 6 callersFunctiongetRuleTester
()
packages/eslint-plugin-gestalt/src/helpers/testHelpers.ts:13
↓ 6 callersFunctionhandleAlternative
({ alternative }: { alternative: string })
packages/eslint-plugin-gestalt/src/helpers/preferLinkReducer.ts:10
↓ 6 callersFunctionhandleKeyNavigation
( event: React.KeyboardEvent<HTMLElement>, direction: DirectionOptionType, index?: number | null,
packages/gestalt/src/Dropdown.tsx:208
↓ 6 callersFunctionhandleOnBlur
()
packages/gestalt/src/sharedSubcomponents/InternalDismissButton.tsx:67
↓ 6 callersFunctionlayoutNumberToCssDimension
(n?: number | null)
packages/gestalt/src/MasonryV2.tsx:40
↓ 6 callersFunctionruleset
(selector, declarations)
scripts/flex.js:44
↓ 6 callersFunctionsetOverlayPreview
(state: boolean)
packages/gestalt/src/contexts/SideNavigationProvider.tsx:75
↓ 6 callersFunctiontoggle
(...classNames: ReadonlyArray<string>)
packages/gestalt/src/transforms.ts:16
next →1–100 of 3,132, ranked by callers