From 77cd94953cf8c14b21373c53d055a8f8ed68110d Mon Sep 17 00:00:00 2001 From: Joseph John Aas Cooper Date: Tue, 21 Nov 2023 15:24:14 +0100 Subject: [PATCH 1/6] feat(menu-item): add suffix prop --- components/menu/src/menu-item/menu-item.js | 5 +++++ components/menu/src/menu-item/menu-item.styles.js | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/components/menu/src/menu-item/menu-item.js b/components/menu/src/menu-item/menu-item.js index e322ef7df0..a3d21ea83e 100644 --- a/components/menu/src/menu-item/menu-item.js +++ b/components/menu/src/menu-item/menu-item.js @@ -39,6 +39,7 @@ const MenuItem = ({ label, showSubMenu, toggleSubMenu, + suffix, }) => { const menuItemRef = useRef() @@ -73,6 +74,8 @@ const MenuItem = ({ {label} + {suffix && {suffix}} + {(chevron || children) && ( @@ -118,6 +121,8 @@ MenuItem.propTypes = { label: PropTypes.node, /** When true, nested menu items are shown in a Popper */ showSubMenu: PropTypes.bool, + /** A supporting element shown at the end of the menu item */ + suffix: PropTypes.node, /** For using menu item as a link */ target: PropTypes.string, /** On click, this function is called (without args) */ diff --git a/components/menu/src/menu-item/menu-item.styles.js b/components/menu/src/menu-item/menu-item.styles.js index 7e5e5d3e77..13de49d4aa 100644 --- a/components/menu/src/menu-item/menu-item.styles.js +++ b/components/menu/src/menu-item/menu-item.styles.js @@ -96,6 +96,12 @@ export default css` height: 24px; } + .suffix { + display: flex; + align-items: center; + margin-left: ${spacers.dp8}; + } + .chevron { display: flex; align-items: center; From 907f7467f76935be2e6cba085716c4eed9472088 Mon Sep 17 00:00:00 2001 From: Joseph John Aas Cooper Date: Tue, 21 Nov 2023 15:25:55 +0100 Subject: [PATCH 2/6] docs(menu-item): add suffix examples --- .../menu/src/menu-item/menu-item.stories.js | 14 +++++++++++++- docs/docs/components/menu.md | 17 ++++++++++++++++- docs/src/css/custom.css | 3 +++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/components/menu/src/menu-item/menu-item.stories.js b/components/menu/src/menu-item/menu-item.stories.js index 597c898663..c9ed8b5f93 100644 --- a/components/menu/src/menu-item/menu-item.stories.js +++ b/components/menu/src/menu-item/menu-item.stories.js @@ -1,4 +1,9 @@ -import { IconApps24 } from '@dhis2/ui-icons' +import { colors } from '@dhis2/ui-constants' +import { + IconApps24, + IconVisualizationColumn24, + IconLaunch16, +} from '@dhis2/ui-icons' import React, { useState } from 'react' import { Menu } from '../index.js' import { MenuItem } from './menu-item.js' @@ -85,6 +90,13 @@ Icon.parameters = { }, } +export const Suffix = Template.bind({}) +Suffix.args = { + label: 'Open in Data Visualizer', + icon: , + suffix: , +} + export const OnClick = (args) => ( + + } label="Filter data" /> + } label="Change time period" /> + } label="Open in Data Visualizer app" suffix= {}/> + + + +- A menu item can show a suffix. +- Use a suffix to show extra information about the context or intent of a menu item. +- Common use cases include showing a menu item's keyboard shortcut and showing an indicator that a menu item will open a new tab. +- Don't include interactive components, like buttons, in a menu item suffix. + ### Icon diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index 9d7ec24c6d..a764d94f73 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -248,3 +248,6 @@ footer { flex-direction: column; gap: 8px; } +.demo-fullwidth { + width: 100%; +} From 02bc9fe8de02677f94140aa200da850aa3a4ce9e Mon Sep 17 00:00:00 2001 From: Joseph John Aas Cooper Date: Tue, 21 Nov 2023 15:26:28 +0100 Subject: [PATCH 3/6] test(menu-item): test suffix prop --- .../menu/src/menu-item/features/accepts_suffix.feature | 5 +++++ .../src/menu-item/features/accepts_suffix/index.js | 10 ++++++++++ components/menu/src/menu-item/menu-item.stories.e2e.js | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 components/menu/src/menu-item/features/accepts_suffix.feature create mode 100644 components/menu/src/menu-item/features/accepts_suffix/index.js diff --git a/components/menu/src/menu-item/features/accepts_suffix.feature b/components/menu/src/menu-item/features/accepts_suffix.feature new file mode 100644 index 0000000000..dbc30cc762 --- /dev/null +++ b/components/menu/src/menu-item/features/accepts_suffix.feature @@ -0,0 +1,5 @@ +Feature: The MenuItem accepts a suffix prop + + Scenario: MenuItem renders supplied suffix + Given a MenuItem supplied with a suffix is rendered + Then the suffix will be visible diff --git a/components/menu/src/menu-item/features/accepts_suffix/index.js b/components/menu/src/menu-item/features/accepts_suffix/index.js new file mode 100644 index 0000000000..e61d19f251 --- /dev/null +++ b/components/menu/src/menu-item/features/accepts_suffix/index.js @@ -0,0 +1,10 @@ +import { Given, Then } from 'cypress-cucumber-preprocessor/steps' + +Given('a MenuItem supplied with a suffix is rendered', () => { + cy.visitStory('MenuItem', 'With Suffix') + cy.get('[data-test="dhis2-uicore-menuitem"]').should('be.visible') +}) + +Then('the suffix will be visible', () => { + cy.contains('Suffix').should('be.visible') +}) diff --git a/components/menu/src/menu-item/menu-item.stories.e2e.js b/components/menu/src/menu-item/menu-item.stories.e2e.js index 3168e41875..3178e6d6b4 100644 --- a/components/menu/src/menu-item/menu-item.stories.e2e.js +++ b/components/menu/src/menu-item/menu-item.stories.e2e.js @@ -25,3 +25,5 @@ export const WithTarget = () => ( export const WithIcon = () => ( Icon} label="Menu item" /> ) + +export const WithSuffix = () => From 6c0bee8b2aaeeff66033a40744899cad591810a7 Mon Sep 17 00:00:00 2001 From: Joseph John Aas Cooper Date: Thu, 23 Nov 2023 10:52:50 +0100 Subject: [PATCH 4/6] docs(menu-item): add suffix and chevron story --- components/menu/src/menu-item/menu-item.stories.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/menu/src/menu-item/menu-item.stories.js b/components/menu/src/menu-item/menu-item.stories.js index c9ed8b5f93..ff4607aa06 100644 --- a/components/menu/src/menu-item/menu-item.stories.js +++ b/components/menu/src/menu-item/menu-item.stories.js @@ -1,3 +1,4 @@ +import { Tag } from '@dhis2/ui' import { colors } from '@dhis2/ui-constants' import { IconApps24, @@ -97,6 +98,13 @@ Suffix.args = { suffix: , } +export const SuffixAndChevron = Template.bind({}) +SuffixAndChevron.args = { + label: 'Security notifications', + chevron: true, + suffix: 3, +} + export const OnClick = (args) => ( Date: Thu, 7 Dec 2023 09:21:36 +0000 Subject: [PATCH 5/6] chore(release): cut 8.16.0 [skip release] # [8.16.0](https://github.com/dhis2/ui/compare/v8.15.1...v8.16.0) (2023-12-07) ### Features * **menu-item:** add suffix prop ([77cd949](https://github.com/dhis2/ui/commit/77cd94953cf8c14b21373c53d055a8f8ed68110d)) --- CHANGELOG.md | 7 ++ collections/forms/package.json | 20 ++-- collections/ui/API.md | 1 + collections/ui/package.json | 98 +++++++++---------- components/alert/package.json | 8 +- components/box/package.json | 4 +- components/button/package.json | 12 +-- components/calendar/package.json | 16 +-- components/card/package.json | 4 +- components/center/package.json | 4 +- components/checkbox/package.json | 8 +- components/chip/package.json | 4 +- components/cover/package.json | 4 +- components/css/package.json | 4 +- components/divider/package.json | 4 +- components/field/package.json | 10 +- components/file-input/package.json | 16 +-- components/header-bar/package.json | 30 +++--- components/help/package.json | 4 +- components/input/package.json | 16 +-- components/intersection-detector/package.json | 4 +- components/label/package.json | 6 +- components/layer/package.json | 6 +- components/legend/package.json | 6 +- components/loader/package.json | 4 +- components/logo/package.json | 4 +- components/menu/API.md | 1 + components/menu/package.json | 16 +-- components/modal/package.json | 14 +-- components/node/package.json | 6 +- components/notice-box/package.json | 6 +- .../organisation-unit-tree/package.json | 10 +- components/pagination/package.json | 10 +- components/popover/package.json | 8 +- components/popper/package.json | 4 +- components/portal/package.json | 2 +- components/radio/package.json | 4 +- components/required/package.json | 4 +- components/segmented-control/package.json | 4 +- components/select/package.json | 28 +++--- components/selector-bar/package.json | 22 ++--- components/sharing-dialog/package.json | 34 +++---- components/status-icon/package.json | 8 +- components/switch/package.json | 8 +- components/tab/package.json | 6 +- components/table/package.json | 6 +- components/tag/package.json | 4 +- components/text-area/package.json | 14 +-- components/tooltip/package.json | 8 +- components/transfer/package.json | 14 +-- components/user-avatar/package.json | 4 +- constants/package.json | 2 +- docs/package.json | 2 +- icons/package.json | 2 +- package.json | 2 +- storybook/package.json | 6 +- 56 files changed, 286 insertions(+), 277 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4815319f7..bd406ec8c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [8.16.0](https://github.com/dhis2/ui/compare/v8.15.1...v8.16.0) (2023-12-07) + + +### Features + +* **menu-item:** add suffix prop ([77cd949](https://github.com/dhis2/ui/commit/77cd94953cf8c14b21373c53d055a8f8ed68110d)) + ## [8.15.1](https://github.com/dhis2/ui/compare/v8.15.0...v8.15.1) (2023-11-28) diff --git a/collections/forms/package.json b/collections/forms/package.json index d942581ada..76e174697c 100644 --- a/collections/forms/package.json +++ b/collections/forms/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2/ui-forms", - "version": "8.15.1", + "version": "8.16.0", "main": "./build/cjs/index.js", "module": "./build/es/index.js", "sideEffects": [ @@ -34,15 +34,15 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/checkbox": "8.15.1", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/file-input": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/radio": "8.15.1", - "@dhis2-ui/select": "8.15.1", - "@dhis2-ui/switch": "8.15.1", - "@dhis2-ui/text-area": "8.15.1", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/checkbox": "8.16.0", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/file-input": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/radio": "8.16.0", + "@dhis2-ui/select": "8.16.0", + "@dhis2-ui/switch": "8.16.0", + "@dhis2-ui/text-area": "8.16.0", "classnames": "^2.3.1", "final-form": "^4.20.2", "prop-types": "^15.7.2", diff --git a/collections/ui/API.md b/collections/ui/API.md index d90e626f8c..bba3b0d9ef 100644 --- a/collections/ui/API.md +++ b/collections/ui/API.md @@ -1122,6 +1122,7 @@ import { MenuItem } from '@dhis2/ui' |icon|node|||An icon for the left side of the menu item| |label|node|||Text in the menu item| |showSubMenu|boolean|||When true, nested menu items are shown in a Popper| +|suffix|node|||A supporting element shown at the end of the menu item| |target|string|||For using menu item as a link| |toggleSubMenu|function|||On click, this function is called (without args)| |value|string|||Value associated with item. Passed as an argument to onClick handler.| diff --git a/collections/ui/package.json b/collections/ui/package.json index de9846a887..21cc749f20 100644 --- a/collections/ui/package.json +++ b/collections/ui/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2/ui", - "version": "8.15.1", + "version": "8.16.0", "main": "./build/cjs/index.js", "module": "./build/es/index.js", "exports": { @@ -20,54 +20,54 @@ "build": "d2-app-scripts build" }, "dependencies": { - "@dhis2-ui/alert": "8.15.1", - "@dhis2-ui/box": "8.15.1", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/calendar": "8.15.1", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/center": "8.15.1", - "@dhis2-ui/checkbox": "8.15.1", - "@dhis2-ui/chip": "8.15.1", - "@dhis2-ui/cover": "8.15.1", - "@dhis2-ui/css": "8.15.1", - "@dhis2-ui/divider": "8.15.1", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/file-input": "8.15.1", - "@dhis2-ui/header-bar": "8.15.1", - "@dhis2-ui/help": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/intersection-detector": "8.15.1", - "@dhis2-ui/label": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/legend": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/logo": "8.15.1", - "@dhis2-ui/menu": "8.15.1", - "@dhis2-ui/modal": "8.15.1", - "@dhis2-ui/node": "8.15.1", - "@dhis2-ui/notice-box": "8.15.1", - "@dhis2-ui/organisation-unit-tree": "8.15.1", - "@dhis2-ui/pagination": "8.15.1", - "@dhis2-ui/popover": "8.15.1", - "@dhis2-ui/popper": "8.15.1", - "@dhis2-ui/portal": "8.15.1", - "@dhis2-ui/radio": "8.15.1", - "@dhis2-ui/required": "8.15.1", - "@dhis2-ui/segmented-control": "8.15.1", - "@dhis2-ui/select": "8.15.1", - "@dhis2-ui/selector-bar": "8.15.1", - "@dhis2-ui/sharing-dialog": "8.15.1", - "@dhis2-ui/switch": "8.15.1", - "@dhis2-ui/tab": "8.15.1", - "@dhis2-ui/table": "8.15.1", - "@dhis2-ui/tag": "8.15.1", - "@dhis2-ui/text-area": "8.15.1", - "@dhis2-ui/tooltip": "8.15.1", - "@dhis2-ui/transfer": "8.15.1", - "@dhis2-ui/user-avatar": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-forms": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/alert": "8.16.0", + "@dhis2-ui/box": "8.16.0", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/calendar": "8.16.0", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/center": "8.16.0", + "@dhis2-ui/checkbox": "8.16.0", + "@dhis2-ui/chip": "8.16.0", + "@dhis2-ui/cover": "8.16.0", + "@dhis2-ui/css": "8.16.0", + "@dhis2-ui/divider": "8.16.0", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/file-input": "8.16.0", + "@dhis2-ui/header-bar": "8.16.0", + "@dhis2-ui/help": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/intersection-detector": "8.16.0", + "@dhis2-ui/label": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/legend": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/logo": "8.16.0", + "@dhis2-ui/menu": "8.16.0", + "@dhis2-ui/modal": "8.16.0", + "@dhis2-ui/node": "8.16.0", + "@dhis2-ui/notice-box": "8.16.0", + "@dhis2-ui/organisation-unit-tree": "8.16.0", + "@dhis2-ui/pagination": "8.16.0", + "@dhis2-ui/popover": "8.16.0", + "@dhis2-ui/popper": "8.16.0", + "@dhis2-ui/portal": "8.16.0", + "@dhis2-ui/radio": "8.16.0", + "@dhis2-ui/required": "8.16.0", + "@dhis2-ui/segmented-control": "8.16.0", + "@dhis2-ui/select": "8.16.0", + "@dhis2-ui/selector-bar": "8.16.0", + "@dhis2-ui/sharing-dialog": "8.16.0", + "@dhis2-ui/switch": "8.16.0", + "@dhis2-ui/tab": "8.16.0", + "@dhis2-ui/table": "8.16.0", + "@dhis2-ui/tag": "8.16.0", + "@dhis2-ui/text-area": "8.16.0", + "@dhis2-ui/tooltip": "8.16.0", + "@dhis2-ui/transfer": "8.16.0", + "@dhis2-ui/user-avatar": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-forms": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "prop-types": "^15.7.2" }, "peerDependencies": { diff --git a/components/alert/package.json b/components/alert/package.json index 9de80637e4..0d18dd9a35 100644 --- a/components/alert/package.json +++ b/components/alert/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/alert", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Alert", "repository": { "type": "git", @@ -32,9 +32,9 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/portal": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/portal": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/box/package.json b/components/box/package.json index df6550a4b9..8fd4be9f45 100644 --- a/components/box/package.json +++ b/components/box/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/box", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Box", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/button/package.json b/components/button/package.json index 0138d2c4d6..0f128252bf 100644 --- a/components/button/package.json +++ b/components/button/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/button", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Button", "repository": { "type": "git", @@ -32,11 +32,11 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/popper": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/popper": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/calendar/package.json b/components/calendar/package.json index 1c18a59fbf..9423b6db45 100644 --- a/components/calendar/package.json +++ b/components/calendar/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/calendar", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Calendar", "repository": { "type": "git", @@ -32,15 +32,15 @@ "styled-jsx": "^4" }, "dependencies": { - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/popper": "8.15.1", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/popper": "8.16.0", "@dhis2/multi-calendar-dates": "1.0.2", "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/card/package.json b/components/card/package.json index b96b23dfd4..3ce143a96c 100644 --- a/components/card/package.json +++ b/components/card/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/card", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Card", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/center/package.json b/components/center/package.json index a6018545bc..684389c878 100644 --- a/components/center/package.json +++ b/components/center/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/center", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Center", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/checkbox/package.json b/components/checkbox/package.json index f85ed36def..4a8c98265c 100644 --- a/components/checkbox/package.json +++ b/components/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/checkbox", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Checkbox", "repository": { "type": "git", @@ -32,9 +32,9 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/required": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/required": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/chip/package.json b/components/chip/package.json index 17ada97cb1..ab95606c2e 100644 --- a/components/chip/package.json +++ b/components/chip/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/chip", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Chip", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/cover/package.json b/components/cover/package.json index b9dd740790..1b037fcf07 100644 --- a/components/cover/package.json +++ b/components/cover/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/cover", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Cover", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/css/package.json b/components/css/package.json index b19a53cb75..dfc5189267 100644 --- a/components/css/package.json +++ b/components/css/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/css", - "version": "8.15.1", + "version": "8.16.0", "description": "UI CSS", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/divider/package.json b/components/divider/package.json index 813b769fe4..33f3c59086 100644 --- a/components/divider/package.json +++ b/components/divider/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/divider", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Divider", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/field/package.json b/components/field/package.json index e454f7a5f8..6c7f160797 100644 --- a/components/field/package.json +++ b/components/field/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/field", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Field", "repository": { "type": "git", @@ -32,10 +32,10 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/box": "8.15.1", - "@dhis2-ui/help": "8.15.1", - "@dhis2-ui/label": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/box": "8.16.0", + "@dhis2-ui/help": "8.16.0", + "@dhis2-ui/label": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/file-input/package.json b/components/file-input/package.json index d786f71f0c..05905a803d 100644 --- a/components/file-input/package.json +++ b/components/file-input/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/file-input", - "version": "8.15.1", + "version": "8.16.0", "description": "UI FileInput", "repository": { "type": "git", @@ -33,13 +33,13 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/label": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/status-icon": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/label": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/status-icon": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/header-bar/package.json b/components/header-bar/package.json index 452e9b91a2..b336ccfd0d 100644 --- a/components/header-bar/package.json +++ b/components/header-bar/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/header-bar", - "version": "8.15.1", + "version": "8.16.0", "description": "UI HeaderBar", "repository": { "type": "git", @@ -33,21 +33,21 @@ "styled-jsx": "^4" }, "dependencies": { - "@dhis2-ui/box": "8.15.1", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/center": "8.15.1", - "@dhis2-ui/divider": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/logo": "8.15.1", - "@dhis2-ui/menu": "8.15.1", - "@dhis2-ui/modal": "8.15.1", - "@dhis2-ui/user-avatar": "8.15.1", + "@dhis2-ui/box": "8.16.0", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/center": "8.16.0", + "@dhis2-ui/divider": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/logo": "8.16.0", + "@dhis2-ui/menu": "8.16.0", + "@dhis2-ui/modal": "8.16.0", + "@dhis2-ui/user-avatar": "8.16.0", "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "moment": "^2.29.1", "prop-types": "^15.7.2" diff --git a/components/help/package.json b/components/help/package.json index da3a14d33b..46689a1a7b 100644 --- a/components/help/package.json +++ b/components/help/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/help", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Help", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/input/package.json b/components/input/package.json index c0297a5398..958945285d 100644 --- a/components/input/package.json +++ b/components/input/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/input", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Input", "repository": { "type": "git", @@ -32,13 +32,13 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/box": "8.15.1", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/status-icon": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/box": "8.16.0", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/status-icon": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/intersection-detector/package.json b/components/intersection-detector/package.json index 7a51b615bb..ba52766027 100644 --- a/components/intersection-detector/package.json +++ b/components/intersection-detector/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/intersection-detector", - "version": "8.15.1", + "version": "8.16.0", "description": "UI IntersectionDetector", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/label/package.json b/components/label/package.json index a8f67483d3..d88611acd7 100644 --- a/components/label/package.json +++ b/components/label/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/label", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Label", "repository": { "type": "git", @@ -32,8 +32,8 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/required": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/required": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/layer/package.json b/components/layer/package.json index 16a3d246b6..b060d44ac5 100644 --- a/components/layer/package.json +++ b/components/layer/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/layer", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Layer", "repository": { "type": "git", @@ -32,8 +32,8 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/portal": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/portal": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/legend/package.json b/components/legend/package.json index 3efe24781c..60da22db9b 100644 --- a/components/legend/package.json +++ b/components/legend/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/legend", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Legend", "repository": { "type": "git", @@ -32,8 +32,8 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/required": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/required": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/loader/package.json b/components/loader/package.json index b6c42c3887..47c9d20696 100644 --- a/components/loader/package.json +++ b/components/loader/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/loader", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Loaders", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/logo/package.json b/components/logo/package.json index 17a72340fb..8e4d76284e 100644 --- a/components/logo/package.json +++ b/components/logo/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/logo", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Logo", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/menu/API.md b/components/menu/API.md index 97fcf668ea..0c94d19033 100644 --- a/components/menu/API.md +++ b/components/menu/API.md @@ -90,6 +90,7 @@ import { MenuItem } from '@dhis2-ui/menu' |icon|node|||An icon for the left side of the menu item| |label|node|||Text in the menu item| |showSubMenu|boolean|||When true, nested menu items are shown in a Popper| +|suffix|node|||A supporting element shown at the end of the menu item| |target|string|||For using menu item as a link| |toggleSubMenu|function|||On click, this function is called (without args)| |value|string|||Value associated with item. Passed as an argument to onClick handler.| diff --git a/components/menu/package.json b/components/menu/package.json index f9c0be3504..2711a7f4da 100644 --- a/components/menu/package.json +++ b/components/menu/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/menu", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Menu", "repository": { "type": "git", @@ -32,13 +32,13 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/divider": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/popper": "8.15.1", - "@dhis2-ui/portal": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/divider": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/popper": "8.16.0", + "@dhis2-ui/portal": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/modal/package.json b/components/modal/package.json index 9f6ab4007d..0d90d893af 100644 --- a/components/modal/package.json +++ b/components/modal/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/modal", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Modal", "repository": { "type": "git", @@ -32,12 +32,12 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/center": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/portal": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/center": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/portal": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/node/package.json b/components/node/package.json index ffb1055686..f3692a3be3 100644 --- a/components/node/package.json +++ b/components/node/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/node", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Node", "repository": { "type": "git", @@ -32,8 +32,8 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/loader": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/loader": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/notice-box/package.json b/components/notice-box/package.json index 2287428a6d..30259ee460 100644 --- a/components/notice-box/package.json +++ b/components/notice-box/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/notice-box", - "version": "8.15.1", + "version": "8.16.0", "description": "UI NoticeBox", "repository": { "type": "git", @@ -32,8 +32,8 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/organisation-unit-tree/package.json b/components/organisation-unit-tree/package.json index ee41ca8df6..3a049d0791 100644 --- a/components/organisation-unit-tree/package.json +++ b/components/organisation-unit-tree/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/organisation-unit-tree", - "version": "8.15.1", + "version": "8.16.0", "description": "UI OrganisationUnitTree", "repository": { "type": "git", @@ -34,10 +34,10 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/checkbox": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/node": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/checkbox": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/node": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/pagination/package.json b/components/pagination/package.json index c60f4ab7c2..8f877830ec 100644 --- a/components/pagination/package.json +++ b/components/pagination/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/pagination", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Pagination", "repository": { "type": "git", @@ -33,10 +33,10 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/select": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/select": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/popover/package.json b/components/popover/package.json index 7ad623aea0..52910d7fb8 100644 --- a/components/popover/package.json +++ b/components/popover/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/popover", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Popover", "repository": { "type": "git", @@ -32,9 +32,9 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/popper": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/popper": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/popper/package.json b/components/popper/package.json index a039e2db43..4ad1c5292b 100644 --- a/components/popper/package.json +++ b/components/popper/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/popper", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Popper", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "@popperjs/core": "^2.10.1", "classnames": "^2.3.1", "prop-types": "^15.7.2", diff --git a/components/portal/package.json b/components/portal/package.json index 1c03751690..b34997bf1e 100644 --- a/components/portal/package.json +++ b/components/portal/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/portal", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Portal", "repository": { "type": "git", diff --git a/components/radio/package.json b/components/radio/package.json index 48f7248342..9495b9e803 100644 --- a/components/radio/package.json +++ b/components/radio/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/radio", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Radio", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/required/package.json b/components/required/package.json index 3d9e20ed85..d201f8bf07 100644 --- a/components/required/package.json +++ b/components/required/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/required", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Required", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/segmented-control/package.json b/components/segmented-control/package.json index 247f8e9846..1ded521199 100644 --- a/components/segmented-control/package.json +++ b/components/segmented-control/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/segmented-control", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Segmented Control", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/select/package.json b/components/select/package.json index 42959e64d8..695d962419 100644 --- a/components/select/package.json +++ b/components/select/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/select", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Select", "repository": { "type": "git", @@ -33,19 +33,19 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/box": "8.15.1", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/checkbox": "8.15.1", - "@dhis2-ui/chip": "8.15.1", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/popper": "8.15.1", - "@dhis2-ui/status-icon": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/box": "8.16.0", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/checkbox": "8.16.0", + "@dhis2-ui/chip": "8.16.0", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/popper": "8.16.0", + "@dhis2-ui/status-icon": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/selector-bar/package.json b/components/selector-bar/package.json index e63d87a00f..402c67bf7e 100644 --- a/components/selector-bar/package.json +++ b/components/selector-bar/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/selector-bar", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Select", "repository": { "type": "git", @@ -32,21 +32,21 @@ "styled-jsx": "^4" }, "dependencies": { - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/popper": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/popper": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "@testing-library/react": "^12.1.2", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, "devDependencies": { - "@dhis2-ui/css": "8.15.1", - "@dhis2-ui/menu": "8.15.1", - "@dhis2-ui/organisation-unit-tree": "8.15.1", - "@dhis2-ui/select": "8.15.1", + "@dhis2-ui/css": "8.16.0", + "@dhis2-ui/menu": "8.16.0", + "@dhis2-ui/organisation-unit-tree": "8.16.0", + "@dhis2-ui/select": "8.16.0", "@dhis2/d2-i18n": "^1.1.0", "@testing-library/jest-dom": "^5.16.1", "react": "16.13", diff --git a/components/sharing-dialog/package.json b/components/sharing-dialog/package.json index 78cedb2ef6..5f6101a78c 100644 --- a/components/sharing-dialog/package.json +++ b/components/sharing-dialog/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/sharing-dialog", - "version": "8.15.1", + "version": "8.16.0", "description": "UI SharingDialog", "repository": { "type": "git", @@ -34,22 +34,22 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/box": "8.15.1", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/card": "8.15.1", - "@dhis2-ui/divider": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/layer": "8.15.1", - "@dhis2-ui/menu": "8.15.1", - "@dhis2-ui/modal": "8.15.1", - "@dhis2-ui/notice-box": "8.15.1", - "@dhis2-ui/popper": "8.15.1", - "@dhis2-ui/select": "8.15.1", - "@dhis2-ui/tab": "8.15.1", - "@dhis2-ui/tooltip": "8.15.1", - "@dhis2-ui/user-avatar": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/box": "8.16.0", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/card": "8.16.0", + "@dhis2-ui/divider": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/layer": "8.16.0", + "@dhis2-ui/menu": "8.16.0", + "@dhis2-ui/modal": "8.16.0", + "@dhis2-ui/notice-box": "8.16.0", + "@dhis2-ui/popper": "8.16.0", + "@dhis2-ui/select": "8.16.0", + "@dhis2-ui/tab": "8.16.0", + "@dhis2-ui/tooltip": "8.16.0", + "@dhis2-ui/user-avatar": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "@react-hook/size": "^2.1.2", "classnames": "^2.3.1", "prop-types": "^15.7.2" diff --git a/components/status-icon/package.json b/components/status-icon/package.json index 1e1f96ecf1..e58229cdd6 100644 --- a/components/status-icon/package.json +++ b/components/status-icon/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/status-icon", - "version": "8.15.1", + "version": "8.16.0", "description": "UI StatusIcon", "repository": { "type": "git", @@ -32,9 +32,9 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/loader": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/loader": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/switch/package.json b/components/switch/package.json index 2cae81c52e..17bf48a1c9 100644 --- a/components/switch/package.json +++ b/components/switch/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/switch", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Switch", "repository": { "type": "git", @@ -32,9 +32,9 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/required": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/required": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/tab/package.json b/components/tab/package.json index d92c383224..b51fc5a572 100644 --- a/components/tab/package.json +++ b/components/tab/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/tab", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Tabs", "repository": { "type": "git", @@ -32,8 +32,8 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/table/package.json b/components/table/package.json index 0cd3ac332a..b269218529 100644 --- a/components/table/package.json +++ b/components/table/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/table", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Table", "repository": { "type": "git", @@ -33,8 +33,8 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/tag/package.json b/components/tag/package.json index b087f3aa99..17445783f6 100644 --- a/components/tag/package.json +++ b/components/tag/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/tag", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Tag", "repository": { "type": "git", @@ -32,7 +32,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/text-area/package.json b/components/text-area/package.json index af44679656..bd7dbe8a8d 100644 --- a/components/text-area/package.json +++ b/components/text-area/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/text-area", - "version": "8.15.1", + "version": "8.16.0", "description": "UI TextArea", "repository": { "type": "git", @@ -32,12 +32,12 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/box": "8.15.1", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2-ui/status-icon": "8.15.1", - "@dhis2/ui-constants": "8.15.1", - "@dhis2/ui-icons": "8.15.1", + "@dhis2-ui/box": "8.16.0", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2-ui/status-icon": "8.16.0", + "@dhis2/ui-constants": "8.16.0", + "@dhis2/ui-icons": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/tooltip/package.json b/components/tooltip/package.json index be7c474751..c7b2c4420a 100644 --- a/components/tooltip/package.json +++ b/components/tooltip/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/tooltip", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Tooltip", "repository": { "type": "git", @@ -32,9 +32,9 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/popper": "8.15.1", - "@dhis2-ui/portal": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/popper": "8.16.0", + "@dhis2-ui/portal": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/transfer/package.json b/components/transfer/package.json index f086c170b2..6bf13966dc 100644 --- a/components/transfer/package.json +++ b/components/transfer/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/transfer", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Transfer", "repository": { "type": "git", @@ -32,12 +32,12 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2-ui/button": "8.15.1", - "@dhis2-ui/field": "8.15.1", - "@dhis2-ui/input": "8.15.1", - "@dhis2-ui/intersection-detector": "8.15.1", - "@dhis2-ui/loader": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/button": "8.16.0", + "@dhis2-ui/field": "8.16.0", + "@dhis2-ui/input": "8.16.0", + "@dhis2-ui/intersection-detector": "8.16.0", + "@dhis2-ui/loader": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/components/user-avatar/package.json b/components/user-avatar/package.json index 0b6eecf990..eb18911f71 100644 --- a/components/user-avatar/package.json +++ b/components/user-avatar/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2-ui/user-avatar", - "version": "8.15.1", + "version": "8.16.0", "description": "UI User Avatar", "repository": { "type": "git", @@ -33,7 +33,7 @@ }, "dependencies": { "@dhis2/prop-types": "^3.1.2", - "@dhis2/ui-constants": "8.15.1", + "@dhis2/ui-constants": "8.16.0", "classnames": "^2.3.1", "prop-types": "^15.7.2" }, diff --git a/constants/package.json b/constants/package.json index 51b3692e99..6a890fe367 100644 --- a/constants/package.json +++ b/constants/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2/ui-constants", - "version": "8.15.1", + "version": "8.16.0", "description": "Constants used in the UI libs", "main": "./build/cjs/index.js", "module": "./build/es/index.js", diff --git a/docs/package.json b/docs/package.json index 3de172672e..d08295b6ed 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "ui-docusaurus", - "version": "8.15.1", + "version": "8.16.0", "private": true, "description": "UI Docusaurus", "repository": { diff --git a/icons/package.json b/icons/package.json index 1b16c76ce9..8f13f416c2 100644 --- a/icons/package.json +++ b/icons/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2/ui-icons", - "version": "8.15.1", + "version": "8.16.0", "description": "Icons used in the UI libs", "main": "./build/cjs/react/index.js", "module": "./build/es/react/index.js", diff --git a/package.json b/package.json index 0a1806d7c5..50dddab5d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2/ui-root", - "version": "8.15.1", + "version": "8.16.0", "repository": { "type": "git", "url": "https://github.com/dhis2/ui.git" diff --git a/storybook/package.json b/storybook/package.json index 49c07a2b53..c6474cdaf3 100644 --- a/storybook/package.json +++ b/storybook/package.json @@ -1,6 +1,6 @@ { "name": "ui-storybook", - "version": "8.15.1", + "version": "8.16.0", "description": "UI Storybook", "repository": { "type": "git", @@ -23,8 +23,8 @@ "@babel/plugin-proposal-class-properties": "^7.13.0", "@babel/plugin-proposal-private-methods": "^7.13.0", "@babel/plugin-proposal-private-property-in-object": "^7.14.0", - "@dhis2-ui/css": "8.15.1", - "@dhis2/ui-constants": "8.15.1", + "@dhis2-ui/css": "8.16.0", + "@dhis2/ui-constants": "8.16.0", "@fontsource/roboto": "^4.5.0", "@storybook/addon-a11y": "^6.3.7", "@storybook/addon-console": "^1.2.3", From a687b8c1a3f38e996b47eb2064b4300d4be65b3f Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Fri, 8 Dec 2023 16:31:41 +0100 Subject: [PATCH 6/6] chore: merge changelog --- CHANGELOG.md | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a997206aaf..bd406ec8c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,23 +1,9 @@ -# [9.0.0-alpha.1](https://github.com/dhis2/ui/compare/v8.16.0-alpha.2...v9.0.0-alpha.1) (2023-12-06) +# [8.16.0](https://github.com/dhis2/ui/compare/v8.15.1...v8.16.0) (2023-12-07) -### Bug Fixes - -* **constants:** remove buttonVariantProptype from constants ([#1436](https://github.com/dhis2/ui/issues/1436)) ([d4dc535](https://github.com/dhis2/ui/commit/d4dc5350ac4254feb7a4e0c1aa4a55113845e247)) - - -### BREAKING CHANGES - -* **constants:** `buttonVariantPropType` has been removed from constants. -This is mostly intended for internal use, but was part of the public API. - -# [8.16.0-alpha.2](https://github.com/dhis2/ui/compare/v8.16.0-alpha.1...v8.16.0-alpha.2) (2023-11-29) - - -### Bug Fixes +### Features -* **prop-type:** fix deprecation of buttonVariantPropType ([#1433](https://github.com/dhis2/ui/issues/1433)) ([81644a8](https://github.com/dhis2/ui/commit/81644a8e54cf7a4f29ff33536029df6e2bad9437)) -* **types:** minor type fixes ([#1434](https://github.com/dhis2/ui/issues/1434)) [skip release] ([5e1068d](https://github.com/dhis2/ui/commit/5e1068d5ce6be0e52bee1d98ace752b1bf08f683)) +* **menu-item:** add suffix prop ([77cd949](https://github.com/dhis2/ui/commit/77cd94953cf8c14b21373c53d055a8f8ed68110d)) ## [8.15.1](https://github.com/dhis2/ui/compare/v8.15.0...v8.15.1) (2023-11-28)