Skip to content

Commit

Permalink
[Button] Add missing classes in ButtonClasses type (#33040)
Browse files Browse the repository at this point in the history
* test: add missing color classNames test for outlined, text and contained variants

* test(Button): add TypeScript test for missing classes

* fix(Button): add missing classes

* yarn docs:api
  • Loading branch information
ZeeshanTamboli authored Jun 9, 2022
1 parent d05dfcf commit b2433d4
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/pages/material-ui/api/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,26 @@
"textInherit",
"textPrimary",
"textSecondary",
"textSuccess",
"textError",
"textInfo",
"textWarning",
"outlined",
"outlinedInherit",
"outlinedPrimary",
"outlinedSecondary",
"outlinedSuccess",
"outlinedError",
"outlinedInfo",
"outlinedWarning",
"contained",
"containedInherit",
"containedPrimary",
"containedSecondary",
"containedSuccess",
"containedInfo",
"containedError",
"containedWarning",
"disableElevation",
"focusVisible",
"disabled",
Expand Down
12 changes: 12 additions & 0 deletions docs/pages/material-ui/api/loading-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,26 @@
"textInherit",
"textPrimary",
"textSecondary",
"textSuccess",
"textError",
"textInfo",
"textWarning",
"outlined",
"outlinedInherit",
"outlinedPrimary",
"outlinedSecondary",
"outlinedSuccess",
"outlinedError",
"outlinedInfo",
"outlinedWarning",
"contained",
"containedInherit",
"containedPrimary",
"containedSecondary",
"containedSuccess",
"containedInfo",
"containedError",
"containedWarning",
"disableElevation",
"focusVisible",
"disabled",
Expand Down
60 changes: 60 additions & 0 deletions docs/translations/api-docs/button/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"secondary\"</code>"
},
"textSuccess": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"success\"</code>"
},
"textError": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"error\"</code>"
},
"textInfo": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"info\"</code>"
},
"textWarning": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"warning\"</code>"
},
"outlined": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
Expand All @@ -59,6 +79,26 @@
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"secondary\"</code>"
},
"outlinedSuccess": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"success\"</code>"
},
"outlinedError": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"error\"</code>"
},
"outlinedInfo": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"info\"</code>"
},
"outlinedWarning": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"warning\"</code>"
},
"contained": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
Expand All @@ -79,6 +119,26 @@
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"secondary\"</code>"
},
"containedSuccess": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"success\"</code>"
},
"containedInfo": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"info\"</code>"
},
"containedError": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"error\"</code>"
},
"containedWarning": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"warning\"</code>"
},
"disableElevation": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
Expand Down
60 changes: 60 additions & 0 deletions docs/translations/api-docs/loading-button/loading-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"secondary\"</code>"
},
"textSuccess": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"success\"</code>"
},
"textError": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"error\"</code>"
},
"textInfo": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"info\"</code>"
},
"textWarning": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"text\"</code> and <code>color=\"warning\"</code>"
},
"outlined": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
Expand All @@ -52,6 +72,26 @@
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"secondary\"</code>"
},
"outlinedSuccess": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"success\"</code>"
},
"outlinedError": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"error\"</code>"
},
"outlinedInfo": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"info\"</code>"
},
"outlinedWarning": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"outlined\"</code> and <code>color=\"warning\"</code>"
},
"contained": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
Expand All @@ -72,6 +112,26 @@
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"secondary\"</code>"
},
"containedSuccess": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"success\"</code>"
},
"containedInfo": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"info\"</code>"
},
"containedError": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"error\"</code>"
},
"containedWarning": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>variant=\"contained\"</code> and <code>color=\"warning\"</code>"
},
"disableElevation": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
Expand Down
Loading

0 comments on commit b2433d4

Please sign in to comment.