type
stringclasses 7
values | content
stringlengths 4
9.55k
| repo
stringlengths 7
96
| path
stringlengths 4
178
| language
stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction
|
(s: AvatarState) =>
(s.active === 'active' || s.active === 'inactive') &&
(!s.activeDisplay ||
s.activeDisplay === 'ring' ||
s.activeDisplay === 'ring-glow' ||
s.activeDisplay === 'ring-shadow')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
(s: AvatarState) =>
(s.active === 'active' || s.active === 'inactive') &&
(s.activeDisplay === 'shadow' || s.activeDisplay === 'ring-shadow')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
(s: AvatarState) =>
(s.active === 'active' || s.active === 'inactive') && (s.activeDisplay === 'glow' || s.activeDisplay === 'ring-glow')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
(theme: Theme, name: keyof GlobalSharedColors) => ({
color: theme.alias.color[name].foreground2,
background: theme.alias.color[name].background2,
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({
display: 'inline-block',
flexShrink: 0,
position: 'relative',
verticalAlign: 'middle',
borderRadius: theme.global.borderRadius.circular,
width: '32px',
height: '32px',
fontFamily: theme.global.type.fontFamilies.base,
fontSize: theme.global.type.fontSizes.base[300],
fontWeight: theme.global.type.fontWeights.semibold,
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 20
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 24
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 28
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 32
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 36
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 40
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 48
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 56
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 64
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 72
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 96
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 120
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size === 128
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size < 28
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontSize: theme.global.type.fontSizes.base[100] })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 28
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontSize: theme.global.type.fontSizes.base[200] })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 32
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontSize: theme.global.type.fontSizes.base[300] })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 48
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontSize: theme.global.type.fontSizes.base[400] })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 64
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontSize: theme.global.type.fontSizes.base[500] })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 120
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontSize: theme.global.type.fontSizes.base[600] })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontWeight: theme.global.type.fontWeights.regular })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ fontWeight: theme.global.type.fontWeights.semibold })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.square && s.size < 28
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ borderRadius: theme.global.borderRadius.small })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.square && s.size >= 28
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ borderRadius: theme.global.borderRadius.medium })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.square && s.size >= 56
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ borderRadius: theme.global.borderRadius.large })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.square && s.size >= 96
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ borderRadius: theme.global.borderRadius.xLarge })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.icon !== undefined
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.icon !== undefined && s.size < 28
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.icon !== undefined && s.size >= 28
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.icon !== undefined && s.size >= 48
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.icon !== undefined && s.size >= 96
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.icon !== undefined && s.size >= 120
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.active === 'active' || s.active === 'inactive'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({
':before': {
borderColor: theme.alias.color.brand.brandBackgroundStatic,
borderStyle: 'solid',
},
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeRing(s) && s.size < 48
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({
':before': {
margin: `calc(-2 * ${theme.global.strokeWidth.thick})`,
borderWidth: theme.global.strokeWidth.thick,
},
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeRing(s) && s.size >= 48
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({
':before': {
margin: `calc(-2 * ${theme.global.strokeWidth.thicker})`,
borderWidth: theme.global.strokeWidth.thicker,
},
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeRing(s) && s.size >= 72
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({
':before': {
margin: `calc(-2 * ${theme.global.strokeWidth.thickest})`,
borderWidth: theme.global.strokeWidth.thickest,
},
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeShadow(s) && s.size < 32
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: theme.alias.shadow.shadow4 } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeShadow(s) && s.size >= 32
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: theme.alias.shadow.shadow8 } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeShadow(s) && s.size >= 48
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: theme.alias.shadow.shadow16 } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeShadow(s) && s.size >= 72
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: theme.alias.shadow.shadow28 } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeGlow(s) && s.size < 32
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: `${theme.alias.shadow.shadow4}, 0 0 4px 2px rgba(0,120,212,0.3)` } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeGlow(s) && s.size >= 32
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: `${theme.alias.shadow.shadow8}, 0 0 8px 2px rgba(0,120,212,0.3)` } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeGlow(s) && s.size >= 48
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: `${theme.alias.shadow.shadow16}, 0 0 8px 2px rgba(0,120,212,0.3)` } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => activeGlow(s) && s.size >= 72
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({ ':before': { boxShadow: `${theme.alias.shadow.shadow28}, 0 0 28px 4px rgba(0,120,212,0.3)` } })
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.active === 'inactive'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size < 24
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 24
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 36
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 40
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 56
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 72
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 96
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.size >= 128
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
verticalAlign: 'top',
textAlign: 'center',
borderRadius: 'inherit',
boxShadow: `0 0 0 ${theme.global.strokeWidth.thin} ${theme.alias.color.neutral.strokeAccessible} inset`,
color: theme.alias.color.neutral.neutralForeground3,
background: theme.alias.color.neutral.neutralBackground6,
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'brand'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => ({
color: theme.alias.color.neutral.neutralForegroundInverted,
background: theme.alias.color.brand.brandBackgroundStatic,
})
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'darkRed'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'darkRed')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'cranberry'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'cranberry')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'red'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'red')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'pumpkin'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'pumpkin')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'peach'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'peach')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'marigold'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'marigold')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'gold'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'gold')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'brass'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'brass')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
s => s.color === 'brown'
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
ArrowFunction
|
theme => avatarColor(theme, 'brown')
|
joschemd/fluentui
|
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
|
TypeScript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.