mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
They should be in the lines, but the problem is that this causes issues in the .mdx files. License header doesn't really make sense for .md files anyway
3.8 KiB
3.8 KiB
Technical Preview -> 1.0 migration guide
This document summarizes all changes made to the Material Components between the Technical Preview and the 1.0 release.
Major System-Wide Changes
Styling System Renaming
-
Animation→MaterialAnimation- All animation imports now use
MaterialAnimationinstead ofAnimation - Affects: bottom-sheet, check-box, chip, dialog, drawer, extended-touch-area, modal, navigation-drawer, radio-button, search-bar, segmented-button, snack-bar, state-layer, switch, tab-bar, text-field
- All animation imports now use
-
typography→MaterialTypography- Typography system renamed for consistency
- Affects: app-bar, badge, base-button, chip, date-picker, dialog, drawer, elevated-button, filled-button, filled-icon-button, floating-action-button, icon-button, list, material-text, menu, navigation-bar, navigation-drawer, outline-button, outline-icon-button, search-bar, snack-bar, tab-bar, text-button, text-field, time-picker, tonal-button, tonal-icon-button, tooltip
Component Changes
Navigation Components
Navigation Drawer
- New: ModalNavigationDrawer documentation added
- API Changes:
leading_clicked→leading_button_clickedtrailing_clicked→trailing_button_clickedleading_icon→leading_buttontrailing_icon→trailing_buttoncurrent_item→current_index
- New Features: Added
index_changedcallback
Navigation Bar
- API Changes: Same navigation-related changes as Navigation Drawer
Form Components
Check-Box
- Component Rename:
CheckBoxListTile→CheckBoxTile - Various fixes implemented
Radio-Button
- New Components: Added RadioButton and RadioButtonTile
Progress-Indicator
- API Change:
valueproperty →progressproperty
Slider
- New Feature: Added
releasedcallback - Improvements: Various slider enhancements
Segmented-Button
- API Changes:
model→itemsicon-selected→selected-icon
- New Feature: Added
index-changedcallback
Input Components
Text-Field
- API Changes:
placeholder→placeholder-text
Time-Picker
- Component Rename:
TimePicker→TimePickerPopup - API Changes:
twelf_hour_model→twelfth_hour_model(typo fix)current_item→current_indexhour_labl→hour_label(typo fix)
- New Properties: Added various time picker properties (radius, picker_diameter, center, outer_padding, inner_padding, etc.)
- New Properties: Added
use_24_hour_format,title,cancel_textproperties
Date-Picker
- New Component: Added DatePickerPopup
Button Components
All Button Types
- API Changes: Same typography and animation system updates as listed above
Layout Components
List
- API Changes:
action-icon→action-button-icon
Badge
- API Changes:
empty-badge→show-badge
Menu Components
Menu
- New Component: Added Menu component
- API Changes:
item_clicked→activatedcallback- Component rename:
Menu→PopupMenu
Drop-Down-Menu
- New Component: Added DropDownMenu
- API Changes:
- Added
selectedcallback
- Added
Dialog Components
Dialog & SnackBar
- Multi-rename changes
Action-Chip & Search-Bar
- API Changes:
avatar→avatar-icon
Visual Components
Check-Box (Icon Properties)
- API Changes:
icon-checked→checked-icon
Various Components
- API Changes:
container-background→show-background
New Components Added
- Radio-Button and RadioButtonTile
- Menu component
- Drop-Down-Menu component
- Date-Picker-Popup component
- Modal-Navigation-Drawer documentation