From 3c867b535969811790be55d9f71531c95c82fbbc Mon Sep 17 00:00:00 2001 From: Anders Date: Mon, 16 Jan 2023 08:52:22 +0100 Subject: [PATCH] feat(FormStatus): remove deprecated status property (#1914) --- .../src/components/autocomplete/Autocomplete.js | 2 +- .../__snapshots__/Autocomplete.test.js.snap | 3 --- .../dnb-eufemia/src/components/button/Button.js | 2 +- .../__tests__/__snapshots__/Button.test.js.snap | 6 ++---- .../src/components/checkbox/Checkbox.js | 2 +- .../__tests__/__snapshots__/Checkbox.test.js.snap | 1 - .../src/components/date-picker/DatePicker.js | 2 +- .../__snapshots__/DatePicker.test.js.snap | 3 --- .../__tests__/__snapshots__/Dialog.test.tsx.snap | 2 -- .../__tests__/__snapshots__/Drawer.test.tsx.snap | 2 -- .../src/components/dropdown/Dropdown.js | 2 +- .../__tests__/__snapshots__/Dropdown.test.js.snap | 2 -- .../src/components/form-status/FormStatus.js | 10 +--------- .../__snapshots__/FormStatus.test.js.snap | 1 - .../__snapshots__/GlobalError.test.js.snap | 1 - .../__snapshots__/GlobalStatus.test.js.snap | 3 --- .../__snapshots__/InputMasked.test.js.snap | 1 - .../dnb-eufemia/src/components/input/Input.js | 2 +- .../__tests__/__snapshots__/Input.test.js.snap | 3 --- .../__snapshots__/InputPassword.test.js.snap | 2 -- .../__tests__/__snapshots__/Modal.test.tsx.snap | 2 -- .../__snapshots__/Pagination.test.js.snap | 6 ------ .../dnb-eufemia/src/components/radio/Radio.js | 2 +- .../src/components/radio/RadioGroup.js | 2 +- .../__tests__/__snapshots__/Radio.test.js.snap | 6 +----- .../__tests__/__snapshots__/Skeleton.test.js.snap | 1 - .../src/components/slider/SliderInstance.tsx | 2 +- .../__snapshots__/StepIndicator.test.js.snap | 15 --------------- .../dnb-eufemia/src/components/switch/Switch.js | 2 +- .../__tests__/__snapshots__/Switch.test.js.snap | 3 +-- .../__tests__/__snapshots__/Tabs.test.js.snap | 4 ---- .../src/components/textarea/Textarea.js | 2 +- .../__tests__/__snapshots__/Textarea.test.js.snap | 1 - .../src/components/toggle-button/ToggleButton.js | 2 +- .../components/toggle-button/ToggleButtonGroup.js | 2 +- .../__snapshots__/ToggleButton.test.js.snap | 12 +----------- 36 files changed, 19 insertions(+), 97 deletions(-) diff --git a/packages/dnb-eufemia/src/components/autocomplete/Autocomplete.js b/packages/dnb-eufemia/src/components/autocomplete/Autocomplete.js index e279221fb2d..d8de5cc3ce5 100644 --- a/packages/dnb-eufemia/src/components/autocomplete/Autocomplete.js +++ b/packages/dnb-eufemia/src/components/autocomplete/Autocomplete.js @@ -1924,7 +1924,7 @@ class AutocompleteInstance extends React.PureComponent { label={label} text_id={id + '-status'} // used for "aria-describedby" text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/autocomplete/__tests__/__snapshots__/Autocomplete.test.js.snap b/packages/dnb-eufemia/src/components/autocomplete/__tests__/__snapshots__/Autocomplete.test.js.snap index 0516ce7f0cd..57fb587534a 100644 --- a/packages/dnb-eufemia/src/components/autocomplete/__tests__/__snapshots__/Autocomplete.test.js.snap +++ b/packages/dnb-eufemia/src/components/autocomplete/__tests__/__snapshots__/Autocomplete.test.js.snap @@ -348,7 +348,6 @@ exports[`Autocomplete markup have to match snapshot 1`] = ` size="default" skeleton="skeleton" state="error" - status="error" stretch={null} text="status" text_id="autocomplete-id-status" @@ -554,7 +553,6 @@ exports[`Autocomplete markup have to match snapshot 1`] = ` size="default" skeleton="skeleton" state="error" - status="error" stretch={null} text="error" text_id="autocomplete-id-status" @@ -809,7 +807,6 @@ exports[`Autocomplete markup have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="autocomplete-id-submit-button-status" diff --git a/packages/dnb-eufemia/src/components/button/Button.js b/packages/dnb-eufemia/src/components/button/Button.js index 646640523c3..8e8f61a1d55 100644 --- a/packages/dnb-eufemia/src/components/button/Button.js +++ b/packages/dnb-eufemia/src/components/button/Button.js @@ -257,7 +257,7 @@ export default class Button extends React.PureComponent { global_status_id={global_status_id} label={text} text={status} - status={status_state} + state={status_state} text_id={this._id + '-status'} // used for "aria-describedby" no_animation={status_no_animation} skeleton={skeleton} diff --git a/packages/dnb-eufemia/src/components/button/__tests__/__snapshots__/Button.test.js.snap b/packages/dnb-eufemia/src/components/button/__tests__/__snapshots__/Button.test.js.snap index d30fec9fa6e..e8655fb8d86 100644 --- a/packages/dnb-eufemia/src/components/button/__tests__/__snapshots__/Button.test.js.snap +++ b/packages/dnb-eufemia/src/components/button/__tests__/__snapshots__/Button.test.js.snap @@ -334,8 +334,7 @@ exports[`Button component have to match default button snapshot 1`] = ` show={null} size="default" skeleton="skeleton" - state="error" - status="status_state" + state="status_state" stretch={null} text={null} text_id="button-status" @@ -871,8 +870,7 @@ exports[`Button component have to match href="..." snapshot 1`] = ` show={null} size="default" skeleton="skeleton" - state="error" - status="status_state" + state="status_state" stretch={null} text={null} text_id="button-status" diff --git a/packages/dnb-eufemia/src/components/checkbox/Checkbox.js b/packages/dnb-eufemia/src/components/checkbox/Checkbox.js index c49105f782d..652badc0a95 100644 --- a/packages/dnb-eufemia/src/components/checkbox/Checkbox.js +++ b/packages/dnb-eufemia/src/components/checkbox/Checkbox.js @@ -269,7 +269,7 @@ export default class Checkbox extends React.PureComponent { text_id={id + '-status'} // used for "aria-describedby" width_selector={id + ', ' + id + '-label'} text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.js.snap b/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.js.snap index 36694d2c254..2a236867cab 100644 --- a/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +++ b/packages/dnb-eufemia/src/components/checkbox/__tests__/__snapshots__/Checkbox.test.js.snap @@ -122,7 +122,6 @@ exports[`Checkbox component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="checkbox-status" diff --git a/packages/dnb-eufemia/src/components/date-picker/DatePicker.js b/packages/dnb-eufemia/src/components/date-picker/DatePicker.js index d032d056d1d..da7e08c79ef 100644 --- a/packages/dnb-eufemia/src/components/date-picker/DatePicker.js +++ b/packages/dnb-eufemia/src/components/date-picker/DatePicker.js @@ -647,7 +647,7 @@ export default class DatePicker extends React.PureComponent { text_id={id + '-status'} // used for "aria-describedby" width_selector={id + '-shell'} text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap b/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap index 85444447f8c..b2bf6befe6a 100644 --- a/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap +++ b/packages/dnb-eufemia/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap @@ -235,7 +235,6 @@ exports[`DatePicker component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text="status" text_id="date-picker-id-status" @@ -524,7 +523,6 @@ exports[`DatePicker component have to match snapshot 1`] = ` size="default" skeleton={false} state="error" - status="error" stretch={null} text="error" text_id="date-picker-id__input-status" @@ -1678,7 +1676,6 @@ exports[`DatePicker component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text="error" text_id="date-picker-id-status" diff --git a/packages/dnb-eufemia/src/components/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap b/packages/dnb-eufemia/src/components/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap index e57c6ae6d6a..7ec2cea19ac 100644 --- a/packages/dnb-eufemia/src/components/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap @@ -419,7 +419,6 @@ exports[`Dialog component snapshot should match component snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="dialog_id-status" @@ -1292,7 +1291,6 @@ exports[`Dialog component snapshot should match component snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" diff --git a/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap b/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap index 46f3bba6f7c..77298b2ee18 100644 --- a/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap @@ -417,7 +417,6 @@ exports[`Drawer component snapshot should match component snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="drawer_id-status" @@ -1306,7 +1305,6 @@ exports[`Drawer component snapshot should match component snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" diff --git a/packages/dnb-eufemia/src/components/dropdown/Dropdown.js b/packages/dnb-eufemia/src/components/dropdown/Dropdown.js index 4b710aa0c53..c74f898c2f3 100644 --- a/packages/dnb-eufemia/src/components/dropdown/Dropdown.js +++ b/packages/dnb-eufemia/src/components/dropdown/Dropdown.js @@ -590,7 +590,7 @@ class DropdownInstance extends React.PureComponent { label={label} text_id={id + '-status'} // used for "aria-describedby" text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/dropdown/__tests__/__snapshots__/Dropdown.test.js.snap b/packages/dnb-eufemia/src/components/dropdown/__tests__/__snapshots__/Dropdown.test.js.snap index f18531ea223..861adcdc098 100644 --- a/packages/dnb-eufemia/src/components/dropdown/__tests__/__snapshots__/Dropdown.test.js.snap +++ b/packages/dnb-eufemia/src/components/dropdown/__tests__/__snapshots__/Dropdown.test.js.snap @@ -383,7 +383,6 @@ exports[`Dropdown markup have to match snapshot 1`] = ` size="default" skeleton="skeleton" state="error" - status="error" stretch={null} text="status" text_id="dropdown-id-status" @@ -685,7 +684,6 @@ exports[`Dropdown markup have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="dropdown-id-status" diff --git a/packages/dnb-eufemia/src/components/form-status/FormStatus.js b/packages/dnb-eufemia/src/components/form-status/FormStatus.js index 3c1a7dc3b7d..088cffd31e0 100644 --- a/packages/dnb-eufemia/src/components/form-status/FormStatus.js +++ b/packages/dnb-eufemia/src/components/form-status/FormStatus.js @@ -56,12 +56,6 @@ export default class FormStatus extends React.PureComponent { ]), variant: PropTypes.oneOf(['flat', 'outlined']), size: PropTypes.oneOf(['default', 'large']), - // status is Deprecated - status: PropTypes.oneOfType([ - PropTypes.bool, - PropTypes.string, - PropTypes.oneOf(['error', 'warn', 'info']), - ]), global_status_id: PropTypes.string, attributes: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), text_id: PropTypes.string, @@ -94,7 +88,6 @@ export default class FormStatus extends React.PureComponent { size: 'default', variant: null, state: 'error', - status: null, // Deprecated global_status_id: null, attributes: null, text_id: null, @@ -356,7 +349,6 @@ export default class FormStatus extends React.PureComponent { const { show, // eslint-disable-line title, - status: rawStatus, state: rawState, size, variant, @@ -379,7 +371,7 @@ export default class FormStatus extends React.PureComponent { ...rest } = props - const state = FormStatus.correctStatus(rawStatus || rawState) + const state = FormStatus.correctStatus(rawState) const iconToRender = FormStatus.getIcon({ state, icon, diff --git a/packages/dnb-eufemia/src/components/form-status/__tests__/__snapshots__/FormStatus.test.js.snap b/packages/dnb-eufemia/src/components/form-status/__tests__/__snapshots__/FormStatus.test.js.snap index ca15f33ff2a..90ffb169240 100644 --- a/packages/dnb-eufemia/src/components/form-status/__tests__/__snapshots__/FormStatus.test.js.snap +++ b/packages/dnb-eufemia/src/components/form-status/__tests__/__snapshots__/FormStatus.test.js.snap @@ -21,7 +21,6 @@ exports[`FormStatus component have to match snapshot 1`] = ` "size": "'default'", "skeleton": "skeleton", "state": true, - "status": true, "stretch": "stretch", "text": "text", "text_id": "text_id", diff --git a/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap b/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap index e7844f83c02..cbc9d5cdfcb 100644 --- a/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap +++ b/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap @@ -1006,7 +1006,6 @@ exports[`GlobalError snapshot have to match component snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" diff --git a/packages/dnb-eufemia/src/components/global-status/__tests__/__snapshots__/GlobalStatus.test.js.snap b/packages/dnb-eufemia/src/components/global-status/__tests__/__snapshots__/GlobalStatus.test.js.snap index 2f3a7268ecb..4f58649af6b 100644 --- a/packages/dnb-eufemia/src/components/global-status/__tests__/__snapshots__/GlobalStatus.test.js.snap +++ b/packages/dnb-eufemia/src/components/global-status/__tests__/__snapshots__/GlobalStatus.test.js.snap @@ -1124,7 +1124,6 @@ exports[`GlobalStatus snapshot have to match component snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1481,7 +1480,6 @@ exports[`GlobalStatus snapshot have to match linked components snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1628,7 +1626,6 @@ exports[`GlobalStatus snapshot have to match linked components snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text="error-message" text_id="switch-status" diff --git a/packages/dnb-eufemia/src/components/input-masked/__tests__/__snapshots__/InputMasked.test.js.snap b/packages/dnb-eufemia/src/components/input-masked/__tests__/__snapshots__/InputMasked.test.js.snap index 7fefc26bd17..bc07224171d 100644 --- a/packages/dnb-eufemia/src/components/input-masked/__tests__/__snapshots__/InputMasked.test.js.snap +++ b/packages/dnb-eufemia/src/components/input-masked/__tests__/__snapshots__/InputMasked.test.js.snap @@ -160,7 +160,6 @@ exports[`InputMasked component have to match type="text" snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="input-masked-status" diff --git a/packages/dnb-eufemia/src/components/input/Input.js b/packages/dnb-eufemia/src/components/input/Input.js index 482b9da1880..75abaa4a7e9 100644 --- a/packages/dnb-eufemia/src/components/input/Input.js +++ b/packages/dnb-eufemia/src/components/input/Input.js @@ -515,7 +515,7 @@ export default class Input extends React.PureComponent { global_status_id={global_status_id} label={label} text={status} - status={status_state} + state={status_state} text_id={id + '-status'} // used for "aria-describedby" no_animation={status_no_animation} skeleton={skeleton} diff --git a/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/Input.test.js.snap b/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/Input.test.js.snap index b8687ef11e4..e9a4d390e33 100644 --- a/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/Input.test.js.snap +++ b/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/Input.test.js.snap @@ -176,7 +176,6 @@ exports[`Input component have to match type="search" snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="input-status" @@ -490,7 +489,6 @@ exports[`Input component have to match type="search" snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="input-submit-button-status" @@ -685,7 +683,6 @@ exports[`Input component have to match type="text" snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="input-status" diff --git a/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/InputPassword.test.js.snap b/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/InputPassword.test.js.snap index 8489f00e608..521317738d2 100644 --- a/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/InputPassword.test.js.snap +++ b/packages/dnb-eufemia/src/components/input/__tests__/__snapshots__/InputPassword.test.js.snap @@ -190,7 +190,6 @@ exports[`InputPassword component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="input-status" @@ -427,7 +426,6 @@ exports[`InputPassword component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="input-submit-button-status" diff --git a/packages/dnb-eufemia/src/components/modal/__tests__/__snapshots__/Modal.test.tsx.snap b/packages/dnb-eufemia/src/components/modal/__tests__/__snapshots__/Modal.test.tsx.snap index 9a99129fb07..51fd958cd73 100644 --- a/packages/dnb-eufemia/src/components/modal/__tests__/__snapshots__/Modal.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/modal/__tests__/__snapshots__/Modal.test.tsx.snap @@ -408,7 +408,6 @@ exports[`Modal component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="modal_id-status" @@ -1284,7 +1283,6 @@ exports[`Modal component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" diff --git a/packages/dnb-eufemia/src/components/pagination/__tests__/__snapshots__/Pagination.test.js.snap b/packages/dnb-eufemia/src/components/pagination/__tests__/__snapshots__/Pagination.test.js.snap index ce557632d1f..53f4c45ab33 100644 --- a/packages/dnb-eufemia/src/components/pagination/__tests__/__snapshots__/Pagination.test.js.snap +++ b/packages/dnb-eufemia/src/components/pagination/__tests__/__snapshots__/Pagination.test.js.snap @@ -908,7 +908,6 @@ exports[`Pagination bar have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1070,7 +1069,6 @@ exports[`Pagination bar have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1198,7 +1196,6 @@ exports[`Pagination bar have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1323,7 +1320,6 @@ exports[`Pagination bar have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1447,7 +1443,6 @@ exports[`Pagination bar have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1571,7 +1566,6 @@ exports[`Pagination bar have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" diff --git a/packages/dnb-eufemia/src/components/radio/Radio.js b/packages/dnb-eufemia/src/components/radio/Radio.js index 365451f52ee..617521c43b1 100644 --- a/packages/dnb-eufemia/src/components/radio/Radio.js +++ b/packages/dnb-eufemia/src/components/radio/Radio.js @@ -404,7 +404,7 @@ export default class Radio extends React.PureComponent { text_id={id + '-status'} // used for "aria-describedby" width_selector={id + ', ' + id + '-label'} text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/radio/RadioGroup.js b/packages/dnb-eufemia/src/components/radio/RadioGroup.js index b3395dfa7ab..a1883769936 100644 --- a/packages/dnb-eufemia/src/components/radio/RadioGroup.js +++ b/packages/dnb-eufemia/src/components/radio/RadioGroup.js @@ -289,7 +289,7 @@ export default class RadioGroup extends React.PureComponent { global_status_id={global_status_id} label={label} text={status} - status={status_state} + state={status_state} text_id={id + '-status'} // used for "aria-describedby" width_selector={id + ', ' + id + '-label'} no_animation={status_no_animation} diff --git a/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.js.snap b/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.js.snap index 96112072625..8328581a038 100644 --- a/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.js.snap +++ b/packages/dnb-eufemia/src/components/radio/__tests__/__snapshots__/Radio.test.js.snap @@ -84,8 +84,7 @@ exports[`Radio component have to match snapshot 1`] = ` show={null} size="default" skeleton="skeleton" - state="error" - status="status_state" + state="status_state" stretch={null} text={null} text_id="radio-status" @@ -387,7 +386,6 @@ exports[`Radio group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="radio-1-status" @@ -516,7 +514,6 @@ exports[`Radio group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="radio-2-status" @@ -601,7 +598,6 @@ exports[`Radio group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="group-status" diff --git a/packages/dnb-eufemia/src/components/skeleton/__tests__/__snapshots__/Skeleton.test.js.snap b/packages/dnb-eufemia/src/components/skeleton/__tests__/__snapshots__/Skeleton.test.js.snap index fe7126ae630..77ec34ad456 100644 --- a/packages/dnb-eufemia/src/components/skeleton/__tests__/__snapshots__/Skeleton.test.js.snap +++ b/packages/dnb-eufemia/src/components/skeleton/__tests__/__snapshots__/Skeleton.test.js.snap @@ -173,7 +173,6 @@ exports[`Skeleton component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="input-status" diff --git a/packages/dnb-eufemia/src/components/slider/SliderInstance.tsx b/packages/dnb-eufemia/src/components/slider/SliderInstance.tsx index 0642665b89b..bb0b7adb0a3 100644 --- a/packages/dnb-eufemia/src/components/slider/SliderInstance.tsx +++ b/packages/dnb-eufemia/src/components/slider/SliderInstance.tsx @@ -103,7 +103,7 @@ export function SliderInstance() { label={label} text_id={id + '-status'} // used for "aria-describedby" text={status} - status={statusState} + state={statusState} no_animation={statusNoAnimation} skeleton={skeleton} {...statusProps} diff --git a/packages/dnb-eufemia/src/components/step-indicator/__tests__/__snapshots__/StepIndicator.test.js.snap b/packages/dnb-eufemia/src/components/step-indicator/__tests__/__snapshots__/StepIndicator.test.js.snap index e0d86afda20..d2a4cd21cf8 100644 --- a/packages/dnb-eufemia/src/components/step-indicator/__tests__/__snapshots__/StepIndicator.test.js.snap +++ b/packages/dnb-eufemia/src/components/step-indicator/__tests__/__snapshots__/StepIndicator.test.js.snap @@ -787,7 +787,6 @@ exports[`StepIndicator in loose mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1210,7 +1209,6 @@ exports[`StepIndicator in loose mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1632,7 +1630,6 @@ exports[`StepIndicator in loose mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -2054,7 +2051,6 @@ exports[`StepIndicator in loose mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -2582,7 +2578,6 @@ exports[`StepIndicator in loose mode have to match snapshot on small screen 1`] size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="unique-id-loose-snapshot-status" @@ -3486,7 +3481,6 @@ exports[`StepIndicator in static mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -3903,7 +3897,6 @@ exports[`StepIndicator in static mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -4319,7 +4312,6 @@ exports[`StepIndicator in static mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -4735,7 +4727,6 @@ exports[`StepIndicator in static mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -5263,7 +5254,6 @@ exports[`StepIndicator in static mode have to match snapshot on small screen 1`] size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="unique-id-static-snapshot-status" @@ -6175,7 +6165,6 @@ exports[`StepIndicator in strict mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -6598,7 +6587,6 @@ exports[`StepIndicator in strict mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -7014,7 +7002,6 @@ exports[`StepIndicator in strict mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -7430,7 +7417,6 @@ exports[`StepIndicator in strict mode have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -7958,7 +7944,6 @@ exports[`StepIndicator in strict mode have to match snapshot on small screen 1`] size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="unique-id-strict-snapshot-status" diff --git a/packages/dnb-eufemia/src/components/switch/Switch.js b/packages/dnb-eufemia/src/components/switch/Switch.js index e1c8bb09c82..2a94af2aca8 100644 --- a/packages/dnb-eufemia/src/components/switch/Switch.js +++ b/packages/dnb-eufemia/src/components/switch/Switch.js @@ -305,7 +305,7 @@ export default class Switch extends React.PureComponent { text_id={id + '-status'} // used for "aria-describedby" width_selector={id + ', ' + id + '-label'} text={status} - status={status_state} + state={status_state} skeleton={skeleton} no_animation={status_no_animation} {...status_props} diff --git a/packages/dnb-eufemia/src/components/switch/__tests__/__snapshots__/Switch.test.js.snap b/packages/dnb-eufemia/src/components/switch/__tests__/__snapshots__/Switch.test.js.snap index dc0b3ddb0cb..98d692e09b3 100644 --- a/packages/dnb-eufemia/src/components/switch/__tests__/__snapshots__/Switch.test.js.snap +++ b/packages/dnb-eufemia/src/components/switch/__tests__/__snapshots__/Switch.test.js.snap @@ -83,8 +83,7 @@ exports[`Switch component have to match snapshot 1`] = ` show={null} size="default" skeleton="skeleton" - state="error" - status="status_state" + state="status_state" stretch={null} text={null} text_id="id-status" diff --git a/packages/dnb-eufemia/src/components/tabs/__tests__/__snapshots__/Tabs.test.js.snap b/packages/dnb-eufemia/src/components/tabs/__tests__/__snapshots__/Tabs.test.js.snap index e61bd04a2f8..6ded720462a 100644 --- a/packages/dnb-eufemia/src/components/tabs/__tests__/__snapshots__/Tabs.test.js.snap +++ b/packages/dnb-eufemia/src/components/tabs/__tests__/__snapshots__/Tabs.test.js.snap @@ -215,7 +215,6 @@ exports[`A single Tab component has to work with "Tabs.Content" from outside 1`] size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -497,7 +496,6 @@ exports[`A single Tab component has to work with "Tabs.Content" from outside 1`] size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -875,7 +873,6 @@ exports[`Tabs component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" @@ -1157,7 +1154,6 @@ exports[`Tabs component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="null-status" diff --git a/packages/dnb-eufemia/src/components/textarea/Textarea.js b/packages/dnb-eufemia/src/components/textarea/Textarea.js index 555ebc53585..f845ce74167 100644 --- a/packages/dnb-eufemia/src/components/textarea/Textarea.js +++ b/packages/dnb-eufemia/src/components/textarea/Textarea.js @@ -506,7 +506,7 @@ export default class Textarea extends React.PureComponent { label={label} text_id={id + '-status'} // used for "aria-describedby" text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/textarea/__tests__/__snapshots__/Textarea.test.js.snap b/packages/dnb-eufemia/src/components/textarea/__tests__/__snapshots__/Textarea.test.js.snap index d32ecb57026..b16aaedb4d0 100644 --- a/packages/dnb-eufemia/src/components/textarea/__tests__/__snapshots__/Textarea.test.js.snap +++ b/packages/dnb-eufemia/src/components/textarea/__tests__/__snapshots__/Textarea.test.js.snap @@ -110,7 +110,6 @@ exports[`Textarea component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="textarea-status" diff --git a/packages/dnb-eufemia/src/components/toggle-button/ToggleButton.js b/packages/dnb-eufemia/src/components/toggle-button/ToggleButton.js index 07f6c6fffc5..1f5e4bb7a72 100644 --- a/packages/dnb-eufemia/src/components/toggle-button/ToggleButton.js +++ b/packages/dnb-eufemia/src/components/toggle-button/ToggleButton.js @@ -467,7 +467,7 @@ export default class ToggleButton extends React.PureComponent { label={label} text_id={id + '-status'} // used for "aria-describedby" text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/toggle-button/ToggleButtonGroup.js b/packages/dnb-eufemia/src/components/toggle-button/ToggleButtonGroup.js index e9e1d7a19d6..308eb45b0fe 100644 --- a/packages/dnb-eufemia/src/components/toggle-button/ToggleButtonGroup.js +++ b/packages/dnb-eufemia/src/components/toggle-button/ToggleButtonGroup.js @@ -340,7 +340,7 @@ export default class ToggleButtonGroup extends React.PureComponent { label={label} text_id={id + '-status'} // used for "aria-describedby" text={status} - status={status_state} + state={status_state} no_animation={status_no_animation} skeleton={skeleton} {...status_props} diff --git a/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.js.snap b/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.js.snap index 3c15f1857e1..d74e24a26cb 100644 --- a/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.js.snap +++ b/packages/dnb-eufemia/src/components/toggle-button/__tests__/__snapshots__/ToggleButton.test.js.snap @@ -76,8 +76,7 @@ exports[`ToggleButton component have to match snapshot 1`] = ` show={null} size="default" skeleton="skeleton" - state="error" - status="status_state" + state="status_state" stretch={null} text={null} text_id="toggle-button-status" @@ -366,7 +365,6 @@ exports[`ToggleButton component have to match snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="toggle-button-checkbox-status" @@ -425,7 +423,6 @@ exports[`ToggleButton component have to match snapshot 1`] = ` size="default" skeleton="skeleton" state="error" - status="error" stretch={null} text={null} text_id="toggle-button-status" @@ -624,7 +621,6 @@ exports[`ToggleButton group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="group-status" @@ -687,7 +683,6 @@ exports[`ToggleButton group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="toggle-button-1-status" @@ -932,7 +927,6 @@ exports[`ToggleButton group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="toggle-button-1-radio-status" @@ -1008,7 +1002,6 @@ exports[`ToggleButton group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="toggle-button-1-status" @@ -1074,7 +1067,6 @@ exports[`ToggleButton group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="toggle-button-2-status" @@ -1319,7 +1311,6 @@ exports[`ToggleButton group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="toggle-button-2-radio-status" @@ -1395,7 +1386,6 @@ exports[`ToggleButton group component have to match group snapshot 1`] = ` size="default" skeleton={null} state="error" - status="error" stretch={null} text={null} text_id="toggle-button-2-status"