@momentum-design/components 0.53.5 → 0.53.7
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.
- package/dist/browser/index.js +62 -34
- package/dist/browser/index.js.map +2 -2
- package/dist/components/button/button.styles.js +62 -34
- package/dist/custom-elements.json +209 -209
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -974,7 +974,7 @@
|
|
974
974
|
--mdc-button-primary-pressed-background-color: var(--mds-color-theme-button-primary-pressed);
|
975
975
|
--mdc-button-primary-disabled-background-color: var(--mds-color-theme-button-primary-disabled);
|
976
976
|
--mdc-button-primary-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
977
|
-
|
977
|
+
|
978
978
|
--mdc-button-secondary-color: var(--mds-color-theme-text-primary-normal);
|
979
979
|
--mdc-button-secondary-border-color: var(--mds-color-theme-outline-button-normal);
|
980
980
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
@@ -989,6 +989,11 @@
|
|
989
989
|
--mdc-button-tertiary-disabled-background-color: var(--mds-color-theme-button-secondary-disabled);
|
990
990
|
--mdc-button-tertiary-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
991
991
|
|
992
|
+
--mdc-button-active-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
993
|
+
--mdc-button-active-hover-background-color: var(--mds-color-theme-button-secondary-active-hover);
|
994
|
+
--mdc-button-active-pressed-background-color: var(--mds-color-theme-button-secondary-active-pressed);
|
995
|
+
--mdc-button-active-disabled-background-color: var(--mds-color-theme-button-secondary-active-disabled);
|
996
|
+
|
992
997
|
--mdc-button-line-height-size-40: var(--mds-font-lineheight-body-large);
|
993
998
|
--mdc-button-line-height-size-32: var(--mds-font-lineheight-body-large);
|
994
999
|
--mdc-button-line-height-size-28: var(--mds-font-lineheight-body-midsize);
|
@@ -998,17 +1003,17 @@
|
|
998
1003
|
--mdc-button-postfix-icon-size: 1rem;
|
999
1004
|
}
|
1000
1005
|
|
1001
|
-
:host([size=
|
1006
|
+
:host([size='64']) {
|
1002
1007
|
--mdc-button-prefix-icon-size: 2rem;
|
1003
1008
|
--mdc-button-postfix-icon-size: 2rem;
|
1004
1009
|
}
|
1005
1010
|
|
1006
|
-
:host([size=
|
1011
|
+
:host([size='52']) {
|
1007
1012
|
--mdc-button-prefix-icon-size: 1.75rem;
|
1008
1013
|
--mdc-button-postfix-icon-size: 1.75rem;
|
1009
1014
|
}
|
1010
1015
|
|
1011
|
-
:host([size=
|
1016
|
+
:host([size='40']) {
|
1012
1017
|
--mdc-button-prefix-icon-size: 1.25rem;
|
1013
1018
|
--mdc-button-postfix-icon-size: 1.25rem;
|
1014
1019
|
}
|
@@ -1022,101 +1027,124 @@
|
|
1022
1027
|
--mdc-icon-size: var(--mdc-button-postfix-icon-size);
|
1023
1028
|
}
|
1024
1029
|
|
1025
|
-
:host([active]){
|
1030
|
+
:host([active]) {
|
1026
1031
|
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
1027
1032
|
}
|
1028
1033
|
|
1029
|
-
:host([variant=
|
1034
|
+
:host([active][color='default']:not([variant='primary'])) {
|
1035
|
+
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
1036
|
+
background: var(--mdc-button-active-background-color);
|
1037
|
+
}
|
1038
|
+
:host([active][color='default']:not([variant='primary']):hover) {
|
1039
|
+
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
1040
|
+
background: var(--mdc-button-active-hover-background-color);
|
1041
|
+
}
|
1042
|
+
:host([active][color='default']:not([variant='primary']):active),
|
1043
|
+
:host([active][color='default']:not([variant='primary']).pressed) {
|
1044
|
+
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
1045
|
+
background: var(--mdc-button-active-pressed-background-color);
|
1046
|
+
}
|
1047
|
+
:host([active][color='default']:not([variant='primary'])[disabled]),
|
1048
|
+
:host([active][color='default']:not([variant='primary'])[soft-disabled]) {
|
1049
|
+
font-weight: var(--mds-font-apps-body-large-bold-font-weight);
|
1050
|
+
background: var(--mdc-button-active-disabled-background-color);
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
:host([variant='primary']) {
|
1030
1054
|
background: var(--mdc-button-primary-background-color);
|
1031
1055
|
color: var(--mdc-button-primary-color);
|
1032
1056
|
}
|
1033
|
-
:host([variant=
|
1057
|
+
:host([variant='primary']:hover) {
|
1034
1058
|
background: var(--mdc-button-primary-hover-background-color);
|
1035
1059
|
}
|
1036
|
-
:host([variant=
|
1060
|
+
:host([variant='primary']:active),
|
1061
|
+
:host([variant='primary'].pressed) {
|
1037
1062
|
background: var(--mdc-button-primary-pressed-background-color);
|
1038
1063
|
}
|
1039
|
-
:host([variant=
|
1064
|
+
:host([variant='primary'][disabled]),
|
1065
|
+
:host([variant='primary'][soft-disabled]) {
|
1040
1066
|
background: var(--mdc-button-primary-disabled-background-color);
|
1041
1067
|
color: var(--mdc-button-primary-disabled-color);
|
1042
1068
|
cursor: auto;
|
1043
1069
|
}
|
1044
1070
|
|
1045
|
-
:host([variant=
|
1071
|
+
:host([variant='secondary']) {
|
1046
1072
|
color: var(--mdc-button-secondary-color);
|
1047
1073
|
border-color: var(--mdc-button-secondary-border-color);
|
1048
1074
|
}
|
1049
|
-
:host([variant=
|
1075
|
+
:host([variant='secondary']:hover) {
|
1050
1076
|
background: var(--mdc-button-secondary-hover-background-color);
|
1051
1077
|
}
|
1052
|
-
:host([variant=
|
1078
|
+
:host([variant='secondary']:active),
|
1079
|
+
:host([variant='secondary'].pressed) {
|
1053
1080
|
background: var(--mdc-button-secondary-pressed-background-color);
|
1054
1081
|
}
|
1055
|
-
:host([variant=
|
1056
|
-
|
1082
|
+
:host([variant='secondary'][disabled]),
|
1083
|
+
:host([variant='secondary'][soft-disabled]) {
|
1057
1084
|
color: var(--mdc-button-primary-disabled-color);
|
1058
1085
|
border-color: var(--mdc-button-secondary-disabled-border-color);
|
1059
1086
|
background: var(--mdc-button-secondary-disabled-background-color);
|
1060
1087
|
cursor: auto;
|
1061
1088
|
}
|
1062
1089
|
|
1063
|
-
:host([variant=
|
1090
|
+
:host([variant='tertiary']) {
|
1064
1091
|
border-color: transparent;
|
1065
1092
|
color: var(--mdc-button-tertiary-color);
|
1066
1093
|
}
|
1067
|
-
:host([variant=
|
1094
|
+
:host([variant='tertiary']:hover) {
|
1068
1095
|
background: var(--mdc-button-tertiary-hover-background-color);
|
1069
1096
|
}
|
1070
|
-
:host([variant=
|
1097
|
+
:host([variant='tertiary']:active),
|
1098
|
+
:host([variant='tertiary'].pressed) {
|
1071
1099
|
background: var(--mdc-button-tertiary-pressed-background-color);
|
1072
1100
|
}
|
1073
|
-
:host([variant=
|
1074
|
-
:host([variant=
|
1101
|
+
:host([variant='tertiary'][disabled]),
|
1102
|
+
:host([variant='tertiary'][soft-disabled]) {
|
1075
1103
|
color: var(--mdc-button-tertiary-disabled-color);
|
1076
1104
|
background: var(--mdc-button-tertiary-disabled-background-color);
|
1077
1105
|
cursor: auto;
|
1078
1106
|
}
|
1079
1107
|
|
1080
|
-
:host([size=
|
1081
|
-
:host([size=
|
1082
|
-
:host([size=
|
1083
|
-
:host([size=
|
1084
|
-
:host([size=
|
1085
|
-
:host([size=
|
1108
|
+
:host([size='64'][data-btn-type='icon']),
|
1109
|
+
:host([size='52'][data-btn-type='icon']),
|
1110
|
+
:host([size='40'][data-btn-type='icon']),
|
1111
|
+
:host([size='32'][data-btn-type='icon']),
|
1112
|
+
:host([size='28'][data-btn-type='icon']),
|
1113
|
+
:host([size='24'][data-btn-type='icon']) {
|
1086
1114
|
border-radius: 6.25rem;
|
1087
1115
|
aspect-ratio: 1;
|
1088
1116
|
padding: unset;
|
1089
1117
|
}
|
1090
|
-
:host([size=
|
1118
|
+
:host([size='40']) {
|
1091
1119
|
font-size: var(--mds-font-size-body-large);
|
1092
1120
|
line-height: var(--mdc-button-line-height-size-40);
|
1093
1121
|
padding: 0 1rem;
|
1094
1122
|
gap: 0.5rem;
|
1095
1123
|
}
|
1096
|
-
:host([size=
|
1124
|
+
:host([size='32']) {
|
1097
1125
|
font-size: var(--mds-font-size-body-large);
|
1098
1126
|
line-height: var(--mdc-button-line-height-size-32);
|
1099
1127
|
padding: 0 0.75rem;
|
1100
1128
|
gap: 0.375rem;
|
1101
1129
|
}
|
1102
|
-
:host([size=
|
1130
|
+
:host([size='28']) {
|
1103
1131
|
font-size: var(--mds-font-size-body-midsize);
|
1104
1132
|
line-height: var(--mdc-button-line-height-size-28);
|
1105
1133
|
padding: 0 0.75rem;
|
1106
1134
|
gap: 0.375rem;
|
1107
1135
|
}
|
1108
|
-
:host([size=
|
1136
|
+
:host([size='24']) {
|
1109
1137
|
font-size: var(--mds-font-size-body-small);
|
1110
1138
|
line-height: var(--mdc-button-line-height-size-24);
|
1111
1139
|
padding: 0 0.625rem;
|
1112
1140
|
gap: 0.25rem;
|
1113
1141
|
}
|
1114
|
-
:host([size=
|
1142
|
+
:host([size='20']) {
|
1115
1143
|
padding: 0.0625rem;
|
1116
1144
|
aspect-ratio: 1;
|
1117
1145
|
}
|
1118
1146
|
|
1119
|
-
:host([color=
|
1147
|
+
:host([color='accent']) {
|
1120
1148
|
--mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
|
1121
1149
|
--mdc-button-primary-background-color: var(--mds-color-theme-button-accent-normal);
|
1122
1150
|
--mdc-button-primary-hover-background-color: var(--mds-color-theme-button-accent-hover);
|
@@ -1127,7 +1155,7 @@
|
|
1127
1155
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
1128
1156
|
--mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
1129
1157
|
}
|
1130
|
-
:host([color=
|
1158
|
+
:host([color='positive']) {
|
1131
1159
|
--mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
|
1132
1160
|
--mdc-button-primary-background-color: var(--mds-color-theme-button-join-normal);
|
1133
1161
|
--mdc-button-primary-hover-background-color: var(--mds-color-theme-button-join-hover);
|
@@ -1138,7 +1166,7 @@
|
|
1138
1166
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
1139
1167
|
--mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
1140
1168
|
}
|
1141
|
-
:host([color=
|
1169
|
+
:host([color='negative']) {
|
1142
1170
|
--mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
|
1143
1171
|
--mdc-button-primary-background-color: var(--mds-color-theme-button-cancel-normal);
|
1144
1172
|
--mdc-button-primary-hover-background-color: var(--mds-color-theme-button-cancel-hover);
|
@@ -1149,7 +1177,7 @@
|
|
1149
1177
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
1150
1178
|
--mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
1151
1179
|
}
|
1152
|
-
:host([color=
|
1180
|
+
:host([color='promotional']) {
|
1153
1181
|
--mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
|
1154
1182
|
--mdc-button-primary-background-color: var(--mds-color-theme-common-button-promotion-normal);
|
1155
1183
|
--mdc-button-primary-hover-background-color: var(--mds-color-theme-common-button-promotion-hover);
|