Upgrading
To 0.3.0
Section titled “To 0.3.0”0.3.0 adds six components, Calendar, Card, Form, Modal, SideBar and Table (types CalendarProps, CalendarType, CalendarDateRange, CalendarOccupancyEntry, CardProps, CardType, FormProps, FormType, ModalProps, ModalType, ModalTone, ModalRow, SideBarProps, SideBarItem, SideBarItemState, and the Table types listed in the changelog), plus Textfield (TextfieldProps, TextfieldState), the input Form is built from, now exported from the package root. It removes nothing: no export, prop, class or token from 0.2.1 was removed or renamed, so there is nothing to change in your code to upgrade. See the changelog.
One thing is not automatic. On 0.x a caret range never crosses a minor version, so ^0.2.1 stays on 0.2.x and will not install 0.3.0 even though 0.3.0 breaks nothing. To upgrade, change the range to ^0.3.0 (or install @layerbasesystemic/horizon-design-system@0.3.0). See Versioning.
To 0.2.1
Section titled “To 0.2.1”0.2.1 adds one component, Stepper (types StepperProps, StepperType, StepperState, StepperStep and StepperStepState), and removes nothing: no export, prop, class or token from 0.2.0 was removed or renamed. There is nothing to change in your code to upgrade. See the changelog.
To 0.2.0
Section titled “To 0.2.0”0.2.0 adds fifteen components (Avatar, Breadcrumbs, ButtonGroup, Checkbox, Chip, Dropdown, File, Header, Image, Link, Logo, ProgressBar, RadioCard, SearchBar, Toggle) and removes nothing: no export, prop, class or token from 0.1.0 was removed or renamed. See the changelog.
One change affects Button when tokens.css isn’t loaded:
- In 0.1.0,
Button.cssgives mostvar(--…)references a fallback value, for examplevar(--color-primary-default, #3b71f2). - In 0.2.0,
Button.csshas no fallbacks, and borders and the focus outline width use--border-width-*tokens. Button’s colours, radius, type and borders come fromtokens.cssonly. Its props,statevalues andhz-buttonclasses are unchanged.
If your app loads styles.css without tokens.css, load both, as Developing shows. If it already loads both, nothing changes for you except that Button now renders with the token values rather than the older fallback colours (see the Design tab of Button).
To 0.1.0
Section titled “To 0.1.0”0.1.0 is the first published version, so there’s nothing to upgrade from.