Skip to content

Commit

Permalink
Fix keyboard popover position (#1184)
Browse files Browse the repository at this point in the history
* Correct position of inline wrapper popover

* Adjust variant prop description

* Adjust props description

* Uncomment example

* Add prop-types.json to prettier-ignore

* Properly freeze clock for percy
  • Loading branch information
dmtrKovalenko authored Jul 15, 2019
1 parent 5b7e485 commit 6385d85
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 60 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build/
coverage/
*.mp4
.next
docs/prop-types.json
98 changes: 49 additions & 49 deletions docs/prop-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
},
"labelFunc": {
"defaultValue": null,
"description": "Dynamic formatter of text field label",
"description": "Dynamic formatter of text field value",
"name": "labelFunc",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -232,7 +232,7 @@
},
"initialFocusedDate": {
"defaultValue": null,
"description": "Date that will be initially highlighted",
"description": "Date that will be initially highlighted if null was passed",
"name": "initialFocusedDate",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -247,7 +247,7 @@
"defaultValue": {
"value": "'unknown'"
},
"description": "Message displaying in text field, if date is invalid (doesn't work in keyboard mode)",
"description": "Message displaying in text field if date is invalid (doesn't work in keyboard mode)",
"name": "invalidLabel",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -275,7 +275,7 @@
},
"onAccept": {
"defaultValue": null,
"description": "Callback fired when date isAccepted",
"description": "Callback fired when date is accepted",
"name": "onAccept",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -372,7 +372,7 @@
"defaultValue": {
"value": "'dialog'"
},
"description": "Displaying variant",
"description": "Picker container option",
"name": "variant",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -445,7 +445,7 @@
},
"required": false,
"type": {
"name": "\"year\" | \"date\" | \"month\""
"name": "\"date\" | \"year\" | \"month\""
}
},
"minDate": {
Expand Down Expand Up @@ -743,19 +743,6 @@
"name": "(date: any, value?: string | null) => void"
}
},
"value": {
"defaultValue": null,
"description": "Picker value",
"name": "value",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
},
"required": true,
"type": {
"name": "ParsableDate"
}
},
"open": {
"defaultValue": null,
"description": "Controlled picker open state",
Expand All @@ -771,7 +758,7 @@
},
"onAccept": {
"defaultValue": null,
"description": "Callback fired when date isAccepted",
"description": "Callback fired when date is accepted",
"name": "onAccept",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -799,7 +786,7 @@
"defaultValue": {
"value": "'dialog'"
},
"description": "Displaying variant",
"description": "Picker container option",
"name": "variant",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -823,6 +810,19 @@
"name": "(error: ReactNode, value: any) => void"
}
},
"value": {
"defaultValue": null,
"description": "Picker value",
"name": "value",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
},
"required": true,
"type": {
"name": "ParsableDate"
}
},
"disabled": {
"defaultValue": null,
"description": "Disable datepicker and text field",
Expand Down Expand Up @@ -853,7 +853,7 @@
},
"labelFunc": {
"defaultValue": null,
"description": "Dynamic formatter of text field label",
"description": "Dynamic formatter of text field value",
"name": "labelFunc",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -866,7 +866,7 @@
},
"initialFocusedDate": {
"defaultValue": null,
"description": "Date that will be initially highlighted",
"description": "Date that will be initially highlighted if null was passed",
"name": "initialFocusedDate",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -881,7 +881,7 @@
"defaultValue": {
"value": "'unknown'"
},
"description": "Message displaying in text field, if date is invalid (doesn't work in keyboard mode)",
"description": "Message displaying in text field if date is invalid (doesn't work in keyboard mode)",
"name": "invalidLabel",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -1045,7 +1045,7 @@
},
"refuse": {
"defaultValue": {
"value": "/[^\\dap]+/gi"
"value": "/[^\\d]+/gi"
},
"description": "Refuse values regexp",
"name": "refuse",
Expand Down Expand Up @@ -1120,7 +1120,7 @@
},
"required": false,
"type": {
"name": "\"year\" | \"date\" | \"month\""
"name": "\"date\" | \"year\" | \"month\""
}
},
"minDate": {
Expand Down Expand Up @@ -1461,7 +1461,7 @@
},
"labelFunc": {
"defaultValue": null,
"description": "Dynamic formatter of text field label",
"description": "Dynamic formatter of text field value",
"name": "labelFunc",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -1474,7 +1474,7 @@
},
"initialFocusedDate": {
"defaultValue": null,
"description": "Date that will be initially highlighted",
"description": "Date that will be initially highlighted if null was passed",
"name": "initialFocusedDate",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -1489,7 +1489,7 @@
"defaultValue": {
"value": "'unknown'"
},
"description": "Message displaying in text field, if date is invalid (doesn't work in keyboard mode)",
"description": "Message displaying in text field if date is invalid (doesn't work in keyboard mode)",
"name": "invalidLabel",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -1517,7 +1517,7 @@
},
"onAccept": {
"defaultValue": null,
"description": "Callback fired when date isAccepted",
"description": "Callback fired when date is accepted",
"name": "onAccept",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -1614,7 +1614,7 @@
"defaultValue": {
"value": "'dialog'"
},
"description": "Displaying variant",
"description": "Picker container option",
"name": "variant",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -1808,7 +1808,7 @@
},
"onAccept": {
"defaultValue": null,
"description": "Callback fired when date isAccepted",
"description": "Callback fired when date is accepted",
"name": "onAccept",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -1836,7 +1836,7 @@
"defaultValue": {
"value": "'dialog'"
},
"description": "Displaying variant",
"description": "Picker container option",
"name": "variant",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -1916,7 +1916,7 @@
},
"labelFunc": {
"defaultValue": null,
"description": "Dynamic formatter of text field label",
"description": "Dynamic formatter of text field value",
"name": "labelFunc",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -1929,7 +1929,7 @@
},
"initialFocusedDate": {
"defaultValue": null,
"description": "Date that will be initially highlighted",
"description": "Date that will be initially highlighted if null was passed",
"name": "initialFocusedDate",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -1944,7 +1944,7 @@
"defaultValue": {
"value": "'unknown'"
},
"description": "Message displaying in text field, if date is invalid (doesn't work in keyboard mode)",
"description": "Message displaying in text field if date is invalid (doesn't work in keyboard mode)",
"name": "invalidLabel",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -2095,7 +2095,7 @@
},
"refuse": {
"defaultValue": {
"value": "/[^\\dap]+/gi"
"value": "/[^\\d]+/gi"
},
"description": "Refuse values regexp",
"name": "refuse",
Expand Down Expand Up @@ -2319,7 +2319,7 @@
},
"labelFunc": {
"defaultValue": null,
"description": "Dynamic formatter of text field label",
"description": "Dynamic formatter of text field value",
"name": "labelFunc",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -2332,7 +2332,7 @@
},
"initialFocusedDate": {
"defaultValue": null,
"description": "Date that will be initially highlighted",
"description": "Date that will be initially highlighted if null was passed",
"name": "initialFocusedDate",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -2347,7 +2347,7 @@
"defaultValue": {
"value": "'unknown'"
},
"description": "Message displaying in text field, if date is invalid (doesn't work in keyboard mode)",
"description": "Message displaying in text field if date is invalid (doesn't work in keyboard mode)",
"name": "invalidLabel",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -2375,7 +2375,7 @@
},
"onAccept": {
"defaultValue": null,
"description": "Callback fired when date isAccepted",
"description": "Callback fired when date is accepted",
"name": "onAccept",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -2472,7 +2472,7 @@
"defaultValue": {
"value": "'dialog'"
},
"description": "Displaying variant",
"description": "Picker container option",
"name": "variant",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -2927,7 +2927,7 @@
},
"onAccept": {
"defaultValue": null,
"description": "Callback fired when date isAccepted",
"description": "Callback fired when date is accepted",
"name": "onAccept",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -2955,7 +2955,7 @@
"defaultValue": {
"value": "'dialog'"
},
"description": "Displaying variant",
"description": "Picker container option",
"name": "variant",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -3035,7 +3035,7 @@
},
"labelFunc": {
"defaultValue": null,
"description": "Dynamic formatter of text field label",
"description": "Dynamic formatter of text field value",
"name": "labelFunc",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -3048,7 +3048,7 @@
},
"initialFocusedDate": {
"defaultValue": null,
"description": "Date that will be initially highlighted",
"description": "Date that will be initially highlighted if null was passed",
"name": "initialFocusedDate",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand All @@ -3063,7 +3063,7 @@
"defaultValue": {
"value": "'unknown'"
},
"description": "Message displaying in text field, if date is invalid (doesn't work in keyboard mode)",
"description": "Message displaying in text field if date is invalid (doesn't work in keyboard mode)",
"name": "invalidLabel",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
Expand Down Expand Up @@ -3214,7 +3214,7 @@
},
"refuse": {
"defaultValue": {
"value": "/[^\\dap]+/gi"
"value": "/[^\\d]+/gi"
},
"description": "Refuse values regexp",
"name": "refuse",
Expand Down Expand Up @@ -3584,4 +3584,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion e2e/integration/VisualRegression.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Visual Regression', () => {
pages.forEach(page => {
context(page.name, () => {
before(() => {
const now = new Date(2019, 1, 1);
const now = new Date('2019-01-01T09:41:00.000Z');
cy.clock(now.getTime());

cy.visit(page.url);
Expand Down
Loading

0 comments on commit 6385d85

Please sign in to comment.