@dhis2-ui/checkbox 9.4.3 → 9.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/build/cjs/checkbox/features/accepts_initial_focus/index.js +3 -3
  2. package/build/cjs/checkbox/features/accepts_label/index.js +3 -3
  3. package/build/cjs/checkbox/features/can_be_blurred/index.js +4 -4
  4. package/build/cjs/checkbox/features/can_be_changed/index.js +4 -4
  5. package/build/cjs/checkbox/features/can_be_disabled/index.js +4 -4
  6. package/build/cjs/checkbox/features/can_be_focused/index.js +4 -4
  7. package/build/cjs/checkbox/features/has_indeterminate_prop/index.js +4 -4
  8. package/build/cjs/checkbox-field/features/accepts_help_text/index.js +3 -3
  9. package/build/cjs/checkbox-field/features/accepts_label/index.js +3 -3
  10. package/build/cjs/checkbox-field/features/accepts_validation_text/index.js +3 -3
  11. package/build/cjs/checkbox-field/features/can_be_required/index.js +3 -3
  12. package/build/es/checkbox/features/accepts_initial_focus/index.js +1 -1
  13. package/build/es/checkbox/features/accepts_label/index.js +1 -1
  14. package/build/es/checkbox/features/can_be_blurred/index.js +1 -1
  15. package/build/es/checkbox/features/can_be_changed/index.js +1 -1
  16. package/build/es/checkbox/features/can_be_disabled/index.js +1 -1
  17. package/build/es/checkbox/features/can_be_focused/index.js +1 -1
  18. package/build/es/checkbox/features/has_indeterminate_prop/index.js +1 -1
  19. package/build/es/checkbox-field/features/accepts_help_text/index.js +1 -1
  20. package/build/es/checkbox-field/features/accepts_label/index.js +1 -1
  21. package/build/es/checkbox-field/features/accepts_validation_text/index.js +1 -1
  22. package/build/es/checkbox-field/features/can_be_required/index.js +1 -1
  23. package/package.json +4 -4
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Checkbox with initialFocus is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Checkbox with initialFocus is rendered', () => {
6
6
  cy.visitStory('Checkbox', 'With initialFocus');
7
7
  });
8
- (0, _steps.Then)('the Checkbox is focused', () => {
8
+ (0, _cypressCucumberPreprocessor.Then)('the Checkbox is focused', () => {
9
9
  cy.focused().parent('[data-test="dhis2-uicore-checkbox"]').should('exist');
10
10
  });
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Checkbox with a label is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Checkbox with a label is rendered', () => {
6
6
  cy.visitStory('Checkbox', 'With label');
7
7
  });
8
- (0, _steps.Then)('the label is shown', () => {
8
+ (0, _cypressCucumberPreprocessor.Then)('the label is shown', () => {
9
9
  cy.get('[data-test="dhis2-uicore-checkbox"]').contains('The label').should('be.visible');
10
10
  });
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Checkbox with initialFocus and onBlur handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Checkbox with initialFocus and onBlur handler is rendered', () => {
6
6
  cy.visitStory('Checkbox', 'With initialFocus and onBlur');
7
7
  });
8
- (0, _steps.When)('the Checkbox is blurred', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the Checkbox is blurred', () => {
9
9
  cy.get('[data-test="dhis2-uicore-checkbox"] input').blur();
10
10
  });
11
- (0, _steps.Then)('the onBlur handler is called', () => {
11
+ (0, _cypressCucumberPreprocessor.Then)('the onBlur handler is called', () => {
12
12
  cy.window().should(win => {
13
13
  expect(win.onBlur).to.be.calledWith({
14
14
  value: 'default',
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Checkbox with onChange handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Checkbox with onChange handler is rendered', () => {
6
6
  cy.visitStory('Checkbox', 'With onChange');
7
7
  });
8
- (0, _steps.When)('the Checkbox is clicked', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the Checkbox is clicked', () => {
9
9
  cy.get('[data-test="dhis2-uicore-checkbox"]').click();
10
10
  });
11
- (0, _steps.Then)('the onChange handler is called', () => {
11
+ (0, _cypressCucumberPreprocessor.Then)('the onChange handler is called', () => {
12
12
  cy.window().should(win => {
13
13
  expect(win.onChange).to.be.calledWith({
14
14
  value: 'default',
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a disabled Checkbox with onClick handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a disabled Checkbox with onClick handler is rendered', () => {
6
6
  cy.visitStory('Checkbox', 'Disabled with onClick');
7
7
  });
8
- (0, _steps.When)('the Checkbox is clicked', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the Checkbox is clicked', () => {
9
9
  cy.get('[data-test="dhis2-uicore-checkbox"] input').click({
10
10
  force: true
11
11
  });
12
12
  });
13
- (0, _steps.Then)('the onClick handler is not called', () => {
13
+ (0, _cypressCucumberPreprocessor.Then)('the onClick handler is not called', () => {
14
14
  cy.window().should(win => {
15
15
  expect(win.onClick).not.to.be.called;
16
16
  });
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Checkbox with onFocus handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Checkbox with onFocus handler is rendered', () => {
6
6
  cy.visitStory('Checkbox', 'With onFocus');
7
7
  });
8
- (0, _steps.When)('the Checkbox is focused', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the Checkbox is focused', () => {
9
9
  cy.get('[data-test="dhis2-uicore-checkbox"] input').focus();
10
10
  });
11
- (0, _steps.Then)('the onFocus handler is called', () => {
11
+ (0, _cypressCucumberPreprocessor.Then)('the onFocus handler is called', () => {
12
12
  cy.window().should(win => {
13
13
  expect(win.onFocus).to.be.calledWith({
14
14
  value: 'default',
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('the checkbox is marked as indeterminate', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('the checkbox is marked as indeterminate', () => {
6
6
  cy.visitStory('Checkbox', 'Indeterminate prop');
7
7
  });
8
- (0, _steps.Given)('the checkbox is not marked as indeterminate', () => {
8
+ (0, _cypressCucumberPreprocessor.Given)('the checkbox is not marked as indeterminate', () => {
9
9
  cy.visitStory('Checkbox', 'No indeterminate prop');
10
10
  });
11
- (0, _steps.Then)("its input-element's indeterminate prop is {word}", bool => {
11
+ (0, _cypressCucumberPreprocessor.Then)("its input-element's indeterminate prop is {word}", bool => {
12
12
  cy.get('input').should($input => {
13
13
  if (bool === 'true') {
14
14
  expect($input[0].indeterminate).to.be.true;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a CheckboxField with help text is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a CheckboxField with help text is rendered', () => {
6
6
  cy.visitStory('CheckboxField', 'With help text');
7
7
  });
8
- (0, _steps.Then)('the help text is visible', () => {
8
+ (0, _cypressCucumberPreprocessor.Then)('the help text is visible', () => {
9
9
  cy.get('[data-test="dhis2-uiwidgets-checkboxfield-help"]').contains('Help text').should('be.visible');
10
10
  });
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a CheckboxField with a label is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a CheckboxField with a label is rendered', () => {
6
6
  cy.visitStory('CheckboxField', 'With label');
7
7
  });
8
- (0, _steps.Then)('the label is visible', () => {
8
+ (0, _cypressCucumberPreprocessor.Then)('the label is visible', () => {
9
9
  cy.get('[data-test="dhis2-uiwidgets-checkboxfield"]').contains('The label').should('be.visible');
10
10
  });
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a CheckboxField with validation text is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a CheckboxField with validation text is rendered', () => {
6
6
  cy.visitStory('CheckboxField', 'With validation text');
7
7
  });
8
- (0, _steps.Then)('the validation text is visible', () => {
8
+ (0, _cypressCucumberPreprocessor.Then)('the validation text is visible', () => {
9
9
  cy.get('[data-test="dhis2-uiwidgets-checkboxfield-validation"]').contains('Validation text').should('be.visible');
10
10
  });
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a CheckboxField with label and a required flag is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a CheckboxField with label and a required flag is rendered', () => {
6
6
  cy.visitStory('CheckboxField', 'With label and required');
7
7
  });
8
- (0, _steps.Then)('the required indicator is visible', () => {
8
+ (0, _cypressCucumberPreprocessor.Then)('the required indicator is visible', () => {
9
9
  cy.get('[data-test="dhis2-uiwidgets-checkboxfield-required"]').should('be.visible');
10
10
  });
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a Checkbox with initialFocus is rendered', () => {
3
3
  cy.visitStory('Checkbox', 'With initialFocus');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a Checkbox with a label is rendered', () => {
3
3
  cy.visitStory('Checkbox', 'With label');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a Checkbox with initialFocus and onBlur handler is rendered', () => {
3
3
  cy.visitStory('Checkbox', 'With initialFocus and onBlur');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a Checkbox with onChange handler is rendered', () => {
3
3
  cy.visitStory('Checkbox', 'With onChange');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a disabled Checkbox with onClick handler is rendered', () => {
3
3
  cy.visitStory('Checkbox', 'Disabled with onClick');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a Checkbox with onFocus handler is rendered', () => {
3
3
  cy.visitStory('Checkbox', 'With onFocus');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('the checkbox is marked as indeterminate', () => {
3
3
  cy.visitStory('Checkbox', 'Indeterminate prop');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a CheckboxField with help text is rendered', () => {
3
3
  cy.visitStory('CheckboxField', 'With help text');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a CheckboxField with a label is rendered', () => {
3
3
  cy.visitStory('CheckboxField', 'With label');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a CheckboxField with validation text is rendered', () => {
3
3
  cy.visitStory('CheckboxField', 'With validation text');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a CheckboxField with label and a required flag is rendered', () => {
3
3
  cy.visitStory('CheckboxField', 'With label and required');
4
4
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/checkbox",
3
- "version": "9.4.3",
3
+ "version": "9.4.5",
4
4
  "description": "UI Checkbox",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/field": "9.4.3",
37
- "@dhis2-ui/required": "9.4.3",
38
- "@dhis2/ui-constants": "9.4.3",
36
+ "@dhis2-ui/field": "9.4.5",
37
+ "@dhis2-ui/required": "9.4.5",
38
+ "@dhis2/ui-constants": "9.4.5",
39
39
  "classnames": "^2.3.1",
40
40
  "prop-types": "^15.7.2"
41
41
  },