@stenajs-webui/calendar
Advanced tools
Changelog
5.3.0
Label
now wrapped in actual label
HTML element.Label
with row
prop now aligns text properly.Label
now has textWidth
prop.PasswordInput
with a show password button.Clickable
now has type=button
as default to prevent it from submitting forms when clicked.Changelog
5.2.0
NavBarSearchField
which is a custom style input field.NavBarHeading
which is a heading text for nav bar.Changelog
5.0.0
FlatButton
now has own CSS properties for settings colors. This makes it easier to override colors for FlatButton
.variant
with two options standard
and dark
.left
for placing content on the left side.showMenuButton
shows a button with a hamburger icon on the left edge of the menu.onClickMenuButton
callback when user clicks on the button.NavBar
properly.NavBar
.StandardTable
has new prop variant
which controls how compact the table is....
instead of just cutting off text.TableHeadItem
prop popoverButtonLoading
renamed to loading
and can be visible at the same time as popover
button.headerRowSticky
renamed to stickyHeader
.headerRowZIndex
renamed to zIndex
.shadowBorder
has been removed.NavBarMenuButton
is replaced by NavBarPopoverButton
.Changelog
4.1.0
ActionMenuLink
Same as ActionMenuItem
, but uses FlatButtonLink
instead of FlatButton
. This makes it possible to use href
and target
props.
Link
Add variants and sizes to Link
, same as for Text
except bold
which is default for links.
TextVariants
type has been renamed to TextVariant
.Link
now produces an a tag, instead of span.Set sideEffects true in theme
package.json, to prevent webpack from tree-shaking the theme CSS.
Changelog
4.0.0
Text
styling.Tag
and Chip
had wrong font.CheckboxWithLabel
props textColor
not working.Badge
prop type
renamed to variant
.Badge
variant notification
renamed to info
.Changelog
3.0.0
default-theme.css
instead of tippy.js default.Derived from Chip
, but with border and no interactions.
A new component Text
with different variants. The variation implements all the different typography in LHDS.
Main props are variant
and size
.
Variants have predefined styles including color, but color can be overridden with prop color
.
See stories for examples.
Same as Text
, but for headings.
Variants are h1
through h6
.
All components that use old text components have been updated to use new components.
All stories have been updated to use new components.
The following components are still available, but are deprecated and will be removed in a future release.
HeaderText
LargeText
StandardText
SmallText
SmallerText
HeaderText
now uses Heading
. The rest uses Text
. This means that many props are no longer available.
HeaderText
no longer supports hoverUnderline
, hoverColor
, textDecoration
and fontWeight
.
hoverColor
, textDecoration
, hoverUnderline
, fontWeight
.italic
, use <Text variant={"caption"}>
instead.TinyText
has been removed. Use Text
with variant smaller
instead.
Chip
now only has two variants, primary
and secondary
.
Changelog
2.3.1
SidebarMenu
SidebarMenuLink
now supports leftIcon
, rightIcon
, etc, same as buttons.SidebarMenuLink
now has indent
prop and can be used in SidebarMenuCollapsible
.StandardTable
configuration now has default z-index
set to undefined instead of 1000.SidebarMenuCollapsibleLink
, just use SidebarMenuLink
with indent
prop.StandardTable
option headerRowZ
to renamed to zIndex
.