stenajs-webui/core
The core library for @stenajs-webui.
All other packages depend on core.
View components
Layout
Box is the main building stone which most other components are derived from.
Components derived from Box
-
Absolute (same as Box, position is absolute)
-
Relative (same as Box, position is relative)
-
Column (same as Box, content is placed in a column)
-
Row (same as Box, content is placed in a row)
-
Indent
-
Space
-
Spacing
Interaction
Decorators
Theme
There are components and hooks available for the themes.
See src/theme/Theme.md
for details.
Hooks
core
includes a collection of hooks.
See src/hooks/README.md
for details.
1.0.5
Improvements
Select
component now has the same focused box shadow that is used in input fields.Link
component now uses an 1px outline instead of border.StandardTableConfig
now infers column names from row object automatically.StandardTableConfig
now supports expand collapse button in header row (set showHeaderExpandCollapse
to true
)
New actions for StandardTable
StandardTable
is now using new higher order reducers, which require composing nested actions. This made it harder to
create actions in the apps, and these new actions help.
- selectByIds(ids)
- clearSelection()
- expandByIds(ids)
- collapseAll()
- sortBy(columnId, desc?)
- clearSortOrder()
New actions are exposed by useLocalStateTableContext
hook, and can be created manually
using createStandardTableActions
function.
Breaking changes
- New actions are breaking, if the app is using them via
useLocalStateTableContext
. useLocalStateTableContext
now accepts an initialState
parameter instead of initialSortOrder
and initialSortOrderDesc
.
- Use
createStandardTableInitialState
to maintain compatibility.