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).
Patch Changes
- #1921
e42b131Thanks @bataevvlad! -Input,Select,DatepickerandRangeDatepickerspace their caption from the field by the mappingcaptionMarginTop(4 in Eva and Material); the token was defined but never applied, so captions sat flush under the field. The Eva mapping gains the token forInput,SelectandDatepicker(Material already had it). TheDatepickerpopover no longer takescaptionMarginTopas its bottom margin. Screens with captions move them 4 dp down.