Repository navigation
@chassis-ui/react v0.4.1
Patch Changes
-
6cf7c60:
size="sm"ofSpinnermakes the spinner smaller. It renderedspinner-border-smorspinner-grow-sm, which are not classes of@chassis-ui/css, so the prop had no effect in either build. It now rendersspinner-sm, the class that sizes a spinner of both variants. -
34837b5: A Tailwind build of
@chassis-ui/cssno longer loses the color and alignment classes of seven components. They built the class name from the prop at runtime (`bg-${color}`), which Tailwind's scanner cannot read, so the class rendered with no rule and nothing warned. Each prop now maps to whole class names:colorofProgressBarandSkeleton(bg-*), ofSpinner(fg-*), ofAlertIcon(icon-*) and ofLink(link-*);alignofPlaceholder(float-start,float-end), ofPagination(justify-content-*), and ofTable,StaticTableandDataGrid(align-top,align-middle,align-bottom).
The markup of every value the props accept is the same as before. A value outside a prop's type, which rendered a class named after it, now renders none.
Tailwind does not scan
node_modules, so a Tailwind build has to register this package for the whole class names to be found:@source "../node_modules/@chassis-ui/react/dist";in the project's stylesheet, with the path from that file. The regular build of@chassis-ui/cssneeds nothing: it ships every class.