4.21.1 (2020-05-19)
- prevent icon from shrinking when label text overflows (ccd86bc)
4.21.0 (2020-05-19)
- add support for virtual elements in popper and popover (3a06526)
4.20.0 (2020-05-18)
- let popper and popover accept react-refs or dom nodes directly (df11f3c)
4.19.1 (2020-04-30)
- tooltip: allow either function or node as children (cecfc16)
4.19.0 (2020-04-24)
- transfer: add component (aaeaaa3)
4.18.0 (2020-04-22)
- tooltip: introduce tooltip as a public component (158a322)
4.17.1 (2020-04-15)
- MultiSelect: use dense chips for selections in input (a3b9e20)
4.17.0 (2020-04-14)
- chip: adjust remove icon (942265f)
- chip: dense style (9d7cb52)
4.16.0 (2020-03-25)
- tooltip: remove
tag
prop so anchor is always a span (0c4a72a)
- tooltip with renderprops (3b5aeca)
4.15.0 (2020-03-19)
- introduce tooltip and e2e tests (bec3f07)
4.14.0 (2020-03-09)
- introduce popover, expose popper, refactor split/dropdown-button (609b1f2)
4.13.0 (2020-03-02)
- add tag component (4e068dc)
4.12.0 (2020-02-21)
- divider: add dense prop (3012097)
- menu: add maxWidth prop and multiline menu items (bc88be4)
- menu-item: add destructive prop (2457b0d)
4.11.1 (2020-02-20)
- remove isrequired, unless omitting the prop will cause an error (9223a26)
4.11.0 (2020-02-19)
- menu item: add optional target prop (c9afe3f)
4.10.0 (2020-02-19)
- checkbox: add indeterminate prop on dom input element (745a14a)
4.9.1 (2020-02-17)
- menu: adjust selector for opening submenu (e03896a)
4.9.0 (2020-02-11)
- introduce file-input-field-with-list and onfocus onblur to button (1552eae)
4.8.0 (2020-02-06)
- modal: add alignment functionality and props (5dcacf8)
- screen cover: add alignment functionality and props (6754d56)
4.7.2 (2020-02-04)
- node: use previously replace arrow icon (1eb0ac1)
4.7.1 (2020-01-30)
- button: adjust arrow icon used in buttons (02cb546)
- button: adjust styles and padding (7b9fb0e)
- button: reduce padding for icon only buttons (459c610)
- dropdown-button: add dp12 whitespace left of the arrow icon (78192e4)
- splitbutton: increase padding on right side of split buttons (87b4e7b)
4.7.0 (2020-01-23)
- circular loader: make svg shrink if container size changes (04fb621)
- node: add content, label & leaves data-test props (b4807ca)
- node: add custom icon prop (7a897da)
4.6.1 (2020-01-08)
- tabbar tabs: use correct children prop type (ce61249)
4.6.0 (2020-01-07)
- select: don't ignore invalid selection silently (02740c8)
- select: fix incorrect data-test attribute (a849de6)
- select: add data attributes for options (196bac1)
- select: append loading spinner to children instead of replacing (f7651b8)
4.5.0 (2019-12-20)
- add StackedTable component (4f358f2)
4.4.1 (2019-12-19)
- align select with input styling (0465e0e)
4.4.0 (2019-12-18)
- add data-test attributes (fe77867)
4.3.1 (2019-12-17)
- relax prop-validation on children to prevent false positives (410a1ee)
4.3.0 (2019-12-16)
- input: enable additional types on input (1db8763)
4.2.0 (2019-12-16)
- modal: allow modal without actions (d65a076)
4.1.3 (2019-12-12)
- deps: set dependencies provided by app-platform to peerDeps (b637df1)
4.1.2 (2019-12-12)
- splitbutton: allow initialfocus on primary button (511c146)
4.1.1 (2019-12-04)
- "feat: transfer feature files and fixes" (765a51b)
4.1.0 (2019-12-03)
- transfer feature files and fixes (bf26891)
4.0.3 (2019-11-27)
- select: update cb signature for disabled options (e8dd73a)
4.0.2 (2019-11-26)
- select: fix clear button callback to use new callback signature (982e6cb)
4.0.1 (2019-11-25)
- avoid unconditionally calling optional event handlers (1c49662)
4.0.0 (2019-11-25)
- alert-stack: revert changes so it just uses a fixed z-index (63b6cff)
- checkbox: align focus/blur with change and remove disabled check (7527002)
- checkbox,radio: value should be optional (#419) (05306a2)
- chip remove icon: fix position cross browser (40d86a0)
- css-variables: improve robustness and developer warnings (#449) (352a4d1)
- file-field: consistently use FileField instead of File + fix typo (d51b119)
- file-input: adjust component names - FormControl to Field (d31e861)
- file-input: correct line height and add className prop (c6b79d5)
- file-input: fix Edge text overflow behavior (2f4a1cf)
- file-input: implement PlaceHolder as child of FileList (4d70143)
- file-input: implement spacing between text and link via ::after el (f4ae821)
- file-input: improve children prop-type to allow multiple files (e7785fd)
- file-input: introduce FileList to solve spacing issues (5faae50)
- file-input: tweak CSS to fix incorrect total height (79d8df0)
- input: align handleFocus/handleBlur with handleChange (848d5fe)
- input: allow types specified in design-system (29127f3)
- input: correct prop-type for type (066e468)
- input: remove duplicate story and improve "No label" (#480) (0a40894)
- input-field: add required
onChange
prop to all stories (d0060bc) - input-field: adjust focus props and label story (#447) (43df32e)
- layer: children must be a function and required (ec75085)
- layer context: simplify and correct calculations (4a14e3f)
- layer-context: add support for layers upon layers (677e585)
- prop-types: adjust statusPropType and use custom one for AlertBar (85d40ba)
- radio: align handleFocus/handleBlur with handleChange (d9b6305)
- select: add missing prop types (fc4e499)
- select: add missing tab index default (85904e3)
- select: align onfocus and onblur with other cbs (a607f31)
- select: align select with callback style changes (456d116)
- select: fix overlap on specifying input width for flex children (54a15aa)
- select: fix positioning issues (6bd8a2b)
- select: fix select closing on chip removal (b51d101)
- text-area: only set height when value changes (9ec7437)
- toggle-group: remove
.isRequired
fromvalue
prop (abb790c) - adjust menu position after option selection (a5b9385)
- correct handler usage for filterable menu (7f53a63)
- export Label in index.js (85187b9)
- introduce layer-context to deal with overlapping elements + story (6632093)
- use layer-context in alert-stack and drop-menu (2caece4)
- select: make filtering case insensitive (6d997a8)
- split-button: remove unused styles (134fd16)
- switch: align handleFocus/handleBlur with handleChange (92550c8)
- tab-bar: enforce that children are instances of the Tab component (d583188)
- text-area: align handleFocus/handleBlur with handleChange (2f3ad48)
- make name prop optional instead of required (ab8f6a5)
- switch: change input type to checkbox because switch is not valid (245f8bf)
- toggles: remove position relative from toggles (a3f5e2e)
- upgrade react to support hooks (35672e0)
- help: remove
indent
props and examples from stories (#471) (12efecb)
- checkbox: align 'on' function handlers (53c700d)
- fileinput: align 'on' function handlers (8829eec)
- formcontrol: rename to field (#402) (b9205e1)
- input: align 'on' function handlers (2ab28b7)
- input,textarea: remove option to pass in number for width (77105f2)
- modal: align modal with component structure (b276a31)
- modal: remove open prop (9da92f1)
- modal: remove unnecessary aside element wrapper (5e39456)
- radio: align 'on' function handlers (611a394)
- select: update component to new design (e810a78)
- splitbutton: separate component from buttonstrip (#396) (f24cd11)
- switch: align 'on' function handlers (5011d6d)
- tabbar: align component structure (e3313f3)
- textarea: align 'on' function handlers (44ef1bf)
- implement the Radio component consistently with other inputs (8fed62f)
- kill the filled option for selectfield and inputfield (#427) (e0eabdb)
- toggle input components (b51b71c)
- select,input: drop -field suffix on components (#389) (eb104f5)
- toggle-group: split into composable components (#388) (e4beb91)
- field: add className prop (7565d59)
- file-field: introduce FileField component (0423f62)
- file-input: add disabled prop and button sizes (066538f)
- input atom: add ellipsis to overflowing text (56ce804)
- label: add className prop (8526560)
- modal: add className prop (6c231d6)
- node: add className prop to node (1468e35)
- screencover: add transparent prop (90a5881)
- select: add input max height prop (75555b3)
- select: add inputWidth property to control width (9eefe22)
- status-icon: add
info
anddefaultTo
props (8144311) - tab components: add className props (480f538)
- textarea: introduce TextArea and TextAreaField with docs and stories (#456) (0e73d7a)
- theme: expose spacers, elevations and layers constants (76f34ba)
- modal: Removed the aside element wrapper
- modal: Removing the "open" prop from the Modal.
- input,textarea: Input and TextArea now requires the input width override to be passed in as a string.
- Now requires React >= 16.8.
- fileinput:
onChange
is called with two parameters: First parameter an object with properties forchecked
,name
, andvalue
. The second is the Reactevent
object. - textarea:
onChange
is called with two parameters: First parameter an object with properties forchecked
,name
, andvalue
. The second is the Reactevent
object. - input:
onChange
is called with two parameters: First parameter an object with properties forchecked
,name
, andvalue
. The second is the Reactevent
object. - checkbox:
onChange
is called with two parameters: First parameter an object with properties forchecked
,name
, andvalue
. The second is the Reactevent
object. - radio:
onChange
is called with two parameters: First parameter an object with properties forchecked
,name
, andvalue
. The second is the Reactevent
object. - switch:
onChange
is called with two parameters: First parameter an object with properties forchecked
,name
, andvalue
. The second is the Reactevent
object. - tabbar: This replaces the need to nest a TabBar in a ScrollBar,
and instead allows
TabBar.propTypes.scrollable
to toggle if a TabBar is scrollable. - tabbar: This deprecates external use of ScrollBar.
- modal: This deprecated use of Modal.Actions. Instead, use ModalActions.
- modal: This deprecated use of Modal.Content. Instead, use ModalContent.
- modal: This deprecated use of Modal.Title. Instead, use ModalTitle.
- tab-bar: TabBar will now only accept Tab instances
- select: Select deprecated in favor of the SingleSelect, refer to the docs for the API.
- select: SelectField deprecated in favor of SingleSelectField, see the docs for the API.
- select: The new Select components do not accept a standard HTML
option
element, instead they require use of SingleSelectOption, MultiSelectOption, or a component with a matching API. - select: The Select's
onChange
no longer returns a standardEvent.target
, instead returns the selected Object with properties:label
andvalue
, or an array of those for the MultiSelects - select: The Selects all require a selected prop, instead of a value. Where selected is an object with a label and a value string, or an array of those for the MultiSelect.
- select: Since the Selects do not use a native input element, the name prop has been dropped from the Select components.
- The
icon
andrequired
props have been removed from the Checkbox and Switch. For Switch, thelabel
prop has become required. - RadioGroup has a new implementation and drops the following props: label, inline, options, and helpText.
- The
icon
andrequired
props have been removed from the Radio component and thevalue
andlabel
props have become required. - help: Removes indent prop from Help. Use className to override if necessary.
- Remove the Filled field style for SelectField and InputField.
- MenuItem value prop is more strict, requires String instead of any.
- formcontrol: Renames FormControl to Field.
- splitbutton: remove the
compact
prop from buttonstrip - toggle-group: Renames ToggleGroup to FieldSet to match intended usage.
- select,input: InputField renamed to Input
SelectField renamed to Select
- chore: trigger netlify
3.12.0 (2019-10-07)
3.11.2 (2019-10-03)
3.11.1 (2019-09-30)
- don't use dynamic re-exports (#459) (7f0a5da), closes /github.com/dhis2/app-platform/blob/master/cli/config/rollup.config.js#L77 /github.com/rollup/rollup-plugin-commonjs/issues/211#issuecomment-337897124
3.11.0 (2019-09-23)
3.10.0 (2019-09-17)
3.9.1 (2019-09-05)
3.9.0 (2019-08-22)
3.8.0 (2019-08-22)
3.7.3 (2019-08-22)
3.7.2 (2019-08-19)
- use correct disabled style & fix checkbox and radio disabled style (#379) (8755a04), closes dhis2/design-system#6
3.7.1 (2019-08-01)
3.7.0 (2019-07-19)
3.6.3 (2019-07-16)
3.6.2 (2019-07-15)
3.6.1 (2019-07-15)
3.6.0 (2019-07-10)
3.5.0 (2019-07-03)
3.4.0 (2019-06-21)
3.3.0 (2019-06-17)
3.2.1 (2019-06-15)
3.2.0 (2019-06-14)
3.1.1 (2019-06-13)
3.1.0 (2019-06-06)
3.0.0 (2019-06-06)
- release: The CircularProgress and LinearProgress have been renamed to CircularLoader and LinearLoader. The LinearLoader does not have an indeterminate option any more. Removes DOM attributes from component API: autofocus, autocomplete, readonly.
2.5.2 (2019-06-04)
2.5.1 (2019-05-31)
2.5.0 (2019-05-31)
2.4.4 (2019-05-29)
2.4.3 (2019-05-24)
2.4.2 (2019-05-24)
2.4.1 (2019-05-23)
2.4.0 (2019-05-23)
2.3.0 (2019-05-23)
2.2.3 (2019-05-22)
2.2.2 (2019-05-22)
2.2.1 (2019-05-21)
2.2.0 (2019-05-16)
2.1.2 (2019-05-15)
2.1.1 (2019-05-13)
2.1.0 (2019-05-09)
2.0.2 (2019-05-06)
2.0.1 (2019-05-06)
2.0.0 (2019-05-06)
- The component API has been revamped to be simpler and more consistent. See the documentation for a full list.
- This changes the
list
prop passed to DropdownButton and SplitButton tocomponent
, which enables any component to be used as a menu. - Event handlers align with the JS API of being called with one argument, the Event.