Minor Changes
-
#1926
82b9931Thanks @bataevvlad! -Avatargainsnameandstatus. Without asource, or when the image fails to load,namerenders
as initials (the first letter of the first two words) in a frame of the same size and shape, coloured by
status, and is the avatar's accessible name. The Eva and MaterialAvatarmappings gaintextFontSize
per size,textFontFamily/textFontWeight, and astatusvariant group withbackgroundColor/
textColor(#1806). -
#1929
c1bbc79Thanks @bataevvlad! - NewPageIndicator: dots for aViewPager, one per page, the selected one wider and coloured bystatus.
Feed itselectedIndex, optionallyprogress(offset / pageWidthfromonOffsetChange) so the dots
follow the swipe, andonSelectto jump to a pressed dot. Dot size, spacing and colours come from the new
PageIndicatorblock of the Eva and Material mappings.ViewPagernow forwards a consumeronLayout(the
layout of its content strip, pages x page width) instead of dropping it (#1355). -
#1928
653516dThanks @bataevvlad! - Typed theme tokens.@ui-kitten/evaexportsEvaThemeKey(the union of every token in the light and dark
themes) andEvaTheme, and typeslight/darkwith it;@ui-kitten/materialdoes the same with
MaterialThemeKey/MaterialTheme.@ui-kitten/componentsexportsKnownThemeKey(the union of both)
andThemeKey(KnownThemeKey | string);ThemeType,useTheme()and theuseThemeValueselectors
suggest the known tokens while custom tokens still type-check through thestringindex signature.
The types are generated from the theme JSON files (yarn theme-types:generate, checked in CI) (#1682).