Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/shoutem/theme
/ functions
Functions
69 in github.com/shoutem/theme
⨍
Functions
69
◇
Types & classes
16
↓ 3 callers
Method
resolveStyle
(context, props, styleNames)
src/connectStyle.js:234
↓ 3 callers
Method
resolveStyleNames
(props)
src/connectStyle.js:203
↓ 2 callers
Function
connectStyle
( componentStyleName, componentStyle = {}, mapPropsToStyleNames, options = {}, )
src/connectStyle.js:51
↓ 2 callers
Method
createNormalizer
(prop, shorthand, suffix)
src/StyleNormalizer/ShorthandsNormalizerFactory.js:73
↓ 2 callers
Method
createNormalizers
(prop, shorthands, suffix = '')
src/StyleNormalizer/StyleNormalizer.js:18
↓ 2 callers
Method
isRefDefined
()
src/connectStyle.js:215
↓ 2 callers
Function
normalizeStyle
(style)
src/StyleNormalizer/normalizeStyle.js:35
↓ 2 callers
Method
normalizerExists
(normalizerName)
src/StyleNormalizer/StyleNormalizer.js:34
↓ 2 callers
Function
resolveIncludes
(target, base = {})
src/resolveIncludes.js:56
↓ 2 callers
Function
resolveStyle
(style, baseStyle)
src/Theme.js:12
↓ 1 callers
Method
canNormalize
(prop)
src/StyleNormalizer/StyleNormalizer.js:38
↓ 1 callers
Function
capitalizeFirstLetter
(value)
src/addons.js:4
↓ 1 callers
Function
copyProps
(src, target)
test-utils/setup.js:13
↓ 1 callers
Method
createComponentStyle
* Creates a component style by merging the theme style on top of the * provided default component style. Any rules in the theme style will * ove
src/Theme.js:75
↓ 1 callers
Function
createShorthand
(name, type)
src/StyleNormalizer/ShorthandsNormalizerFactory.js:3
↓ 1 callers
Function
getBaseComponent
(WrappedComponent)
src/connectStyle.js:61
↓ 1 callers
Method
getChildContext
()
src/StyleProvider.js:39
↓ 1 callers
Function
getComponentDisplayName
(WrappedComponent)
src/connectStyle.js:57
↓ 1 callers
Method
getDefaultTheme
* Returns the default theme that will be used as fallback * if the StyleProvider is not configured in the app.
src/Theme.js:56
↓ 1 callers
Method
getNormalizerCreator
(shorthand)
src/StyleNormalizer/ShorthandsNormalizerFactory.js:69
↓ 1 callers
Function
getStyle
* Merges style from target and base. * Target style overrides base. * @param styleName - style name to include
src/resolveIncludes.js:71
↓ 1 callers
Function
getTheme
* Returns the theme object from the provided context, * or an empty theme if the context doesn't contain a theme. * * @param context The React comp
src/connectStyle.js:31
↓ 1 callers
Method
getThemeStyle
()
_tests_/mocks/StyleProviderTestComponent.js:16
↓ 1 callers
Method
hasStyleNameChanged
(prevProps, styleNames)
src/connectStyle.js:183
↓ 1 callers
Function
includeNodeStyles
(styleNode, processingStyleNames)
src/resolveIncludes.js:106
↓ 1 callers
Function
isChildStyle
* Matches any style properties that represent style rules that target the * component children. Those styles can have two formats, they can either *
src/resolveComponentStyle.js:31
↓ 1 callers
Function
isStyleVariant
* Matches any style properties that represent component style variants. * Those styles can be applied to the component by using the styleName * prop
src/resolveComponentStyle.js:15
↓ 1 callers
Function
mergeComponentAndThemeStyles
( componentStyle, themeComponentStyle, themeStyle, )
src/mergeComponentAndThemeStyles.js:3
↓ 1 callers
Function
normalize
* Normalize style properties shorthands. * * @param style * @returns {*}
src/StyleNormalizer/normalizeStyle.js:12
↓ 1 callers
Method
normalize
(prop, val)
src/StyleNormalizer/StyleNormalizer.js:42
↓ 1 callers
Method
resolveAddedProps
()
src/connectStyle.js:222
↓ 1 callers
Function
resolveComponentStyle
( componentName, styleNames = [], themeStyle = {}, parentStyle = {}, elementStyle = {}, )
src/resolveComponentStyle.js:88
↓ 1 callers
Method
shouldRebuildStyle
(prevProps, styleNames)
src/connectStyle.js:195
↓ 1 callers
Function
splitStyle
* Splits the style into its parts: * component style - concrete style that needs to be applied to a component * style variants - variants that can b
src/resolveComponentStyle.js:44
↓ 1 callers
Function
throwConnectStyleError
* Formats and throws an error when connecting component style with the theme. * * @param errorMessage The error message. * @param componentDisplayN
src/connectStyle.js:18
Function
ConnectStyleTestStatelessComponent
()
_tests_/mocks/ConnectStyleTestComponents.js:25
Function
StyleProviderTestAppComponent
({ children })
_tests_/mocks/StyleProviderTestAppComponent.js:8
Function
changeColorAlpha
(color, newAlpha)
src/addons.js:114
Method
componentDidUpdate
(prevProps)
src/connectStyle.js:150
Method
constructor
(props, context)
_tests_/mocks/StyleProviderTestComponent.js:10
Method
constructor
(props, context)
_tests_/mocks/ConnectStyleTestComponents.js:12
Method
constructor
(themeStyle)
src/Theme.js:40
Method
constructor
(props, context)
src/StyleProvider.js:31
Method
constructor
(props, context)
src/connectStyle.js:120
Method
constructor
()
src/StyleNormalizer/ShorthandsNormalizerFactory.js:60
Method
constructor
()
src/StyleNormalizer/StyleNormalizer.js:12
Method
constructor
(props, context)
examples/Shapes.js:65
Function
createAllCornersNormalizer
(prop, shorthand, suffix = '')
src/StyleNormalizer/ShorthandsNormalizerFactory.js:36
Function
createAllSidesNormalizer
(prop, shorthand, suffix = '')
src/StyleNormalizer/ShorthandsNormalizerFactory.js:27
Function
createHorizontalSidesNormalizer
(prop)
src/StyleNormalizer/ShorthandsNormalizerFactory.js:45
Function
createSharedStyle
( componentNames, sharedStyle = {}, customStyles = {}, )
src/addons.js:88
Function
createVariations
(baseName, nameSuffixes, key, value)
src/addons.js:39
Function
createVerticalSidesNormalizer
(prop)
src/StyleNormalizer/ShorthandsNormalizerFactory.js:52
Method
getChildContext
()
src/connectStyle.js:139
Method
getDerivedStateFromProps
(props, state)
src/StyleProvider.js:22
Function
getSizeRelativeToReference
( dimension, originalRefVal, actualRefVal, )
src/addons.js:143
Function
includeSymbolMergeHandler
(objVal, srcVal)
src/resolveIncludes.js:11
Function
inverseColorBrightnessForAmount
(colorValue, amount)
src/addons.js:126
Method
render
()
_tests_/mocks/StyleProviderTestComponent.js:20
Method
render
()
_tests_/mocks/ConnectStyleTestComponents.js:18
Method
render
()
src/StyleProvider.js:45
Method
render
()
src/connectStyle.js:274
Method
render
()
examples/Shapes.js:90
Function
resolveTheme
(variables = {})
examples/Shapes.js:9
Method
setDefaultThemeStyle
* Sets the given style as a default theme style.
src/Theme.js:48
Method
setNativeProps
(nativeProps)
src/connectStyle.js:168
Method
setWrappedInstance
(component)
src/connectStyle.js:179
Method
transformProps
* A helper function provided to child components that enables * them to get the prop transformations that this component performs. *
src/connectStyle.js:260
Method
updateThemeVariable
(key, val)
examples/Shapes.js:83