All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Adds
searchEndpointAPI
prop toAutoComplete
to allow for external searching StratoDem#76
- Adds
QuestionTabs
component for tabs version ofQuestions
(internal)
Tabs
, which takes mainlychildren
andtabPropsArray
.children
andtabPropsArray
must beArray
s of the same length, which are rendered asTab
components. This structure is necessary since Dash currently only passes along React components through thechildren
prop, and usingTab
directly was not rendering correctly. Any of the standard props fromTab
can be passed along throughtabPropsArray
.
# Renders two tabs with the children lined up with the tabs props
import sd_material_ui
sd_material_ui.Tabs(
children=[
html.Div('Tab 1'),
html.Div('Tab 2'),
],
tabPropsArray=[
{'label': 'Tab 1 label'},
{'label': 'Tab 2 label'},
]
)
- Adds
Questions
component for special use case
##2.13.2 - 2018-05-18
- Updates prop names internally in
Card
frominitialyExpanded
toinitiallyExpanded
to fix syntax (spelling) error
- Updates prop names internally in
CardText
forstyle
andcolor
to allowtextColor
andtextStyle
props to actually changeCardText
subcomponent
- Adds
id
andheaderIconStyle
props toCardComponent
:id
as astring
to allow for callbacks assigned to the cardheaderIconStyle
to allow for styling the icon in theCardHeader
subcomponent
- Adds uncontrolled Card component
- Adds functionality to
AutoComplete
component to allow for sending backvalue
instead ofsearchText
Example
# SDAutoComplete with exactMatch
# This ships back 1 when the user types in 'magenta' exactly
# This ships back {'testKey': 'testVal'} when the user types in 'aqua' exactly
sd_material_ui.AutoComplete(
id='input-autocomplete-exactmatch',
anchorOrigin={'vertical': 'center', 'horizontal': 'middle'},
animated=True,
exactMatch=True,
dashCallbackDelay=3000,
dataSource=[
dict(label='pink', value=0),
dict(label='magenta', value=1),
dict(label='aqua', value={'testKey': 'testVal'}),
dict(label='aquamarine', value=3),
],
fullWidth=True,
floatingLabelText="Type here",
filter='caseSensitiveFilter')
- Updates
metadata.json
for new props inv2.11.0
- Adds
containerClosedClassName
prop toDrawer
which applies additional classes to the drawer when it is closed to allow for custom styling (like offsets or transitions)
- 📣 BREAKING Changes
containerclassName
prop tocontainerClassName
inDrawer
to matchmaterial-ui
prop naming format.
Example
# This has 'my-test-class my-closed-class' as the class name when closed
# and 'my-test-class' as the class name when open
sd_material_ui.Drawer(
open=False,
containerClassName='my-test-class',
containerClosedClassName='my-closed-class')
- Adds
id
prop toFontIcon
- Fixes
package.json
andversion.py
mismatch
- Add Subheader Component
- Add Paper Component
- Add RadioButtonGroup Component
- Fixes
package.json
andversion.py
mismatch
- Add AutoComplete Component
- Fixes versioning in package.json
- Add FontIcon Component
- change
IconButton.react.js
documentation to notify user that FontIcon cannot be passed as param
- Add IconButton Component
- Change
usage.py
test-buttons-together tests to include IconButton
- Add CircularProgress Component
- Change
usage.py
button test to avoid NoneType Error
- Fixes versioning issue with
version.py
- Add Divider component
- Add
n_clicks_previous
prop to Flat and Raised buttons - Add new tests in
usage.py
to demonstrate behavior of new prop
- Add
id
as a prop toDropDownMenu
- Updated README and added example
- Replaced all references to
PropTypes
in favor of Flow type hinting.
- Renamed components
- Moved all components into their own directories in preparation for adding individual READMEs
- Removed
null
default for SDDropDownMenu'siconButton
, allowing the arrow to appear by default
customData
prop now available to menu items in SDDropDownMenu
- Allow a menu item's value to be any type of data, not just
number
- SDDropDownMenu
- Versioning fix for 1.7.2 in deployment
Make label a default prop on both flat and raised buttons
- SDSnackbar
- Allow className on SDDialog component
- SDToggle
- SDCheckbox now sets state even without setProps or fireEvent defined
- SDCheckbox
- SDDrawer
- Dialog, now a pure component that can be controlled in Dash
- SDRaisedButton
- SDDialog
- SDFlatButton
- Webpack config, no longer creating issues with 2 instances of React
- BottomNavigation
- Initial release