Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Nov 19, 2024
2 parents cf1d56b + 698c552 commit 1824fb1
Show file tree
Hide file tree
Showing 125 changed files with 4,405 additions and 2,275 deletions.
8 changes: 4 additions & 4 deletions collections/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"build": "d2-app-scripts build"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13"
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18"
},
"dependencies": {
"@dhis2/prop-types": "^3.1.2",
Expand All @@ -54,8 +54,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"types": "types"
}
14 changes: 10 additions & 4 deletions collections/ui/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ import { Input } from '@dhis2/ui'
|---|---|---|---|---|
|autoComplete|string|||The [native `autocomplete` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete)|
|className|string||||
|clearable|boolean|||Makes the input field clearable|
|dataTest|string|`'dhis2-uicore-input'`|||
|dense|boolean|||Makes the input smaller|
|disabled|boolean|||Disables the input|
Expand All @@ -792,6 +793,7 @@ import { Input } from '@dhis2/ui'
|min|string|||The [native `min` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min), for use when `type` is `'number'`|
|name|string|||Name associated with the input. Passed to event handler callbacks in object|
|placeholder|string|||Placeholder text for the input|
|prefixIcon|element|||Add prefix icon|
|readOnly|boolean|||Makes the input read-only|
|role|string|||Sets a role attribute on the input|
|step|string|||The [native `step` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step), for use when `type` is `'number'`|
Expand All @@ -800,6 +802,7 @@ import { Input } from '@dhis2/ui'
|valid|custom|||Applies 'valid' appearance for validation feedback. Mutually exclusive with `error` and `warning` props|
|value|string|||Value in the input. Can be used to control the component (recommended). Passed to event handler callbacks in object|
|warning|custom|||Applies 'warning' appearance for validation feedback. Mutually exclusive with `valid` and `error` props|
|width|string|||Defines the width of the input. Can be any valid CSS measurement|
|onBlur|function|||Called with signature `({ name: string, value: string }, event)`|
|onChange|function|||Called with signature `({ name: string, value: string }, event)`|
|onFocus|function|||Called with signature `({ name: string, value: string }, event)`|
Expand All @@ -823,6 +826,7 @@ import { InputField } from '@dhis2/ui'
|---|---|---|---|---|
|autoComplete|string|||The [native `autocomplete` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete)|
|className|string||||
|clearable|boolean|||Makes the input field clearable|
|dataTest|string|`'dhis2-uiwidgets-inputfield'`|||
|dense|boolean|||Makes the input smaller|
|disabled|boolean|||Disables the input|
Expand All @@ -836,6 +840,7 @@ import { InputField } from '@dhis2/ui'
|min|string|||The [native `min` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min), for use when `type` is `'number'`|
|name|string|||Name associated with the input. Passed to event handler callbacks in object|
|placeholder|string|||Placeholder text for the input|
|prefixIcon|element|||Add prefix icon|
|readOnly|boolean|||Makes the input read-only|
|required|boolean|||Indicates this input is required|
|step|string|||The [native `step` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step), for use when `type` is `'number'`|
Expand Down Expand Up @@ -2002,13 +2007,14 @@ import { SharingDialog } from '@dhis2/ui'
|---|---|---|---|---|
|id|string||*|The id of the object to share|
|type|DIALOG_TYPES_LIST||*|The type of object to share|
|dataSharing|boolean|`false`||Whether to expose the ability to set data sharing (in addition to metadata sharing)|
|dataTest|string|`'dhis2-uicore-sharingdialog'`|||
|initialSharingSettings|{<br/> "allowPublic": "boolean",<br/> "groups": "objectOf",<br/> "name": "string",<br/> "public": "import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js'",<br/> "users": "objectOf"<br/>}|`{
|initialSharingSettings|{<br/> "allowPublic": "boolean",<br/> "groups": "objectOf",<br/> "name": "string",<br/> "public": "{<br/> \"data\": \"import {\\n ACCESS_NONE,\\n ACCESS_VIEW_ONLY,\\n ACCESS_VIEW_AND_EDIT,\\n DIALOG_TYPES_LIST,\\n} from './constants.js' │ import {\\n ACCESS_NONE,\\n ACCESS_VIEW_ONLY,\\n ACCESS_VIEW_AND_EDIT,\\n DIALOG_TYPES_LIST,\\n} from './constants.js' │ import {\\n ACCESS_NONE,\\n ACCESS_VIEW_ONLY,\\n ACCESS_VIEW_AND_EDIT,\\n DIALOG_TYPES_LIST,\\n} from './constants.js'\",<br/> \"metadata\": \"import {\\n ACCESS_NONE,\\n ACCESS_VIEW_ONLY,\\n ACCESS_VIEW_AND_EDIT,\\n DIALOG_TYPES_LIST,\\n} from './constants.js' │ import {\\n ACCESS_NONE,\\n ACCESS_VIEW_ONLY,\\n ACCESS_VIEW_AND_EDIT,\\n DIALOG_TYPES_LIST,\\n} from './constants.js' │ import {\\n ACCESS_NONE,\\n ACCESS_VIEW_ONLY,\\n ACCESS_VIEW_AND_EDIT,\\n DIALOG_TYPES_LIST,\\n} from './constants.js'\"<br/>} │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js' │ import {\n ACCESS_NONE,\n ACCESS_VIEW_ONLY,\n ACCESS_VIEW_AND_EDIT,\n DIALOG_TYPES_LIST,\n} from './constants.js'",<br/> "users": "objectOf"<br/>}|`{
name: '',
allowPublic: true,
public: ACCESS_NONE,
groups: {},
users: {},
public: { data: ACCESS_NONE, metadata: ACCESS_NONE },
groups: [],
users: [],
}`||Used to seed the component with data to show whilst loading|
|onClose|function|`() => {}`|||
|onError|function|`() => {}`|||
Expand Down
8 changes: 4 additions & 4 deletions collections/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
"peerDependencies": {
"@dhis2/app-runtime": "^3",
"@dhis2/d2-i18n": "^1",
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"devDependencies": {
"@dhis2/app-runtime": "^3.9.0",
"@dhis2/d2-i18n": "^1.1.0",
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions components/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -44,8 +44,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -46,8 +46,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
1 change: 0 additions & 1 deletion components/button/src/split-button/split-button.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { render, fireEvent, cleanup, waitFor } from '@testing-library/react'
import React from 'react'
import '@testing-library/jest-dom/extend-expect'
import { SplitButton } from './split-button.js'

describe('SplitButton', () => {
Expand Down
8 changes: 4 additions & 4 deletions components/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"peerDependencies": {
"@dhis2/d2-i18n": "^1",
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -51,8 +51,8 @@
],
"devDependencies": {
"@dhis2/d2-i18n": "^1.1.0",
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/center/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -44,8 +44,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/chip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/cover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -45,8 +45,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/file-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"peerDependencies": {
"@dhis2/d2-i18n": "^1.1.0",
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -50,8 +50,8 @@
],
"devDependencies": {
"@dhis2/d2-i18n": "^1.1.0",
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
Loading

0 comments on commit 1824fb1

Please sign in to comment.