-
Notifications
You must be signed in to change notification settings - Fork 13
Changelog v1
Keith Tan edited this page Mar 28, 2024
·
2 revisions
- Update Accent dark colours for the Base color set
v1 is now in maintenance mode. We are gearing up for a v2 release which will include enhancements to existing components and breaking api changes.
- Set dynamic width on
ImageButton
and add out-of-the-box support for flex parents
- Add range selection for
DateInput
(Important note: This is an interim feature and the range selection will be broken out intoDateRangeInput
in v2) - Add ability to add custom call to action component for
Form.InputSelect
and it's standalone component - Add
TimeRangePicker
. (Important note: Some props are in review and subjected to revision in v2) - Add
RangeSelect
- Add
ImageButton
- Fix "crypto is not defined" error when using
Toggle
as earlier fix did not resolve issue completely - Fix checkbox indicator not appearing for selected items on
Form.MultiSelect
when using non-object arrays as the options
- Fix
Calendar
not starting at the correct month if thevalue
property is being specified - Fix "crypto is not defined" error when using
Toggle
It's official! We have released our first version! π
We have added new components and improved the existing ones!
- Introduction of sub directory imports. Refer to our docs for more information.
- Introduction of options to
Theme
to enable granular customisations to theme properties - Icons have been moved to @lifesg/react-icons to reduct the package size
Refer to this migration document to understand more of the changes that are required when using the new Design System.
-
Toast
component -
TimeSlotBar
component -
[BREAKING] Update assets for
ErrorDisplay
and add new error types- Default title and description have been replaced with placeholder content. Do remember to update existing usages.
- Implement
resourceScheme
toTheme
to enable customisation of assets and resources on a theme level
- Add fallback image for
Navbar
brand and secondary brand in the event image asset is unreachable
-
Toggle
component to replaceToggleButton
-
[WARNING]
ToggleButton
will be deprecated in the full release -
Filter
component -
Filter.Checkbox
widget to select multiple options from a list -
LoadingDotsSpinner
animation component along with ability to customise color -
Navbar
enhancements- Add sub menu
- Add secondary logo support
- Fixes to
Calendar
component
- Various
OTPInput
enhancements- Button props are now optional
- Better support for
value
prop -
[BREAKING] Return value as
string[]
- Missing root-level export for
OTPInput
- Checkbox in
Overlay
not reflecting its current checked state
-
Calendar
component -
OtpInput
component - Fixed country code feature for
PhoneNumberInput
- New loading animation
- General style fixes to input components
-
ErrorDisplay
style on mobile
- Keypress events (e.g. tab, copying, pasting) not permitted on the
PhoneNumberInput
-
onBlur
events not being triggered in thePhoneNumberInput
- Introduce design tokens to the theme
- Support box shadow theming for input elements through design tokens
- Update illustrations for unsupported browser and 500 error in
ErrorDisplay
- [BREAKING]
Icon
component removed
- Fix unnecessary attributes getting passed to input container
- Migrated icons to use LifeSG React Icons
As such
Icon
component will be deprecated in the next release
- Introduce the
PhoneNumberInput
- Improvements to component typings
- Add aria tags to
FormWrapper
andCheckbox
component for improved accessibility - Implement
readOnly
style toForm.Select
andInputSelect
(standalone component) - Add
id
value forFooter
download app buttons
- Add missing export for
FeedbackRating
on the index level (does not affect sub-directory import)
- Update
Layout.Container
max widths for various viewports as part of alignment with SGDS - Update
Form.Select
to support custom rendering of the selected option display and dropdown list items - Implement
FeedbackRating
component to get user ratings
-
UnitNumberInput
- Fix unintended padding of single digit values
- Standardise the return values for onChange and onChangeRaw to be unpadded for single digit values
- Fix regression where
SmartAppBanner
would callonDismiss
when tapping on the banner
- Return unpadded value from
onChange
andonBlur
for the current field that's being edited inUnitNumberInput
- Accommodate long text in
SmartAppBanner
- Add readonly style for
DateInput
-
SmartBanner
enhancements- [BREAKING] Rename props (Refer to documentation for more details)
- Amend animation speed
- Fix keydown issues on mobile devices for
DateInput
andUnitNumberInput
- Add
UnitNumberInput
for floor and unit input - Enhance
SmartAppBanner
- [BREAKING]
onBannerPress
no longer callsonBannerDismiss
- Animate banner when shown with
isAnimated
prop - Take in
ref
and additional props to customise the banner
- [BREAKING]
- Add star rating to
SmartAppBanner
- Add
Card
for content with rounded corners and box shadow
- Allow specifying different fade colors on the left and right for
Breadcrumb
- Add ids to
ProgressIndicator
steps - Add floating
SmartAppBanner
- Fix
Masthead
type issue that affectsNavbar
as well
- Amend
Input
subtitle styling
- Fix
Input
incorrect padding forreadonly
style - Fix
Modal
height calculation on iOS when the software keyboard is visible or dismissed
- Add
aria-label
forForm.Timepicker
andTimepicker
- Amend the bottom margin for
Form
components from1rem
to2rem
to improve readability
- Fix incorrect assignment of
testid
inForm.InputGroup
andInputGroup
- Fix incorrect styling in
Form.InputGroup
andInputGroup
if no addons are specified - Fix stacking issue on
Modal
- [WARNING] Update
Icon
collection. Some icons are no longer available. All icons are also now in svg format rather than font icons - Add
onChangeRaw
andonBlurRaw
toDateInput
andForm.DateInput
to return the raw value of the input in an object format to enable usage for advanced validations
- Add
ErrorDisplay
component. This component now comes with an action button that you can specify. Refer to the documentation for more info. - Add
ProgressIndicator
component
- Add
Layout
,Navbar
,Masthead
,Footer
andNotificationBanner
components. Refer to the Storybook docs for more information - Allow specifying a custom counter for
Form.Textarea
- Introduce subtitle for
Form.Label
- Introduce readonly display state for
Form.InputGroup
- Fix number wheel being visible for number input type for
Form.Input
- Add
MediaWidths
to allow consumption of media breakpoint widths. Refer to our Storybook docs on how to use it
- Add
Form.CustomField
to allow usage of custom form components but still come with the label and error message
- Fix subdirectory module import path to not contain the
dist
folder
- Release of the React design system in our Github repo
Note: Not all components have been transferred due to layout changes in SGDS. See our official Storybook for details of collection