@skyscanner/backpack-web 34.0.0 → 34.0.1
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/bpk-component-close-button/src/BpkCloseButton.js +1 -1
- package/bpk-component-loading-button/src/BpkLoadingButton.js +16 -8
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +0 -4
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +1 -1
- package/package.json +1 -1
|
@@ -60,14 +60,22 @@ const getLoadingIcon = props => {
|
|
|
60
60
|
const BpkLoadingButton = props => {
|
|
61
61
|
const {
|
|
62
62
|
children,
|
|
63
|
+
destructive,
|
|
63
64
|
disabled,
|
|
65
|
+
featured,
|
|
64
66
|
icon,
|
|
65
67
|
iconDisabled,
|
|
66
68
|
iconLoading,
|
|
67
69
|
iconOnly,
|
|
68
70
|
iconPosition,
|
|
69
71
|
large,
|
|
72
|
+
link,
|
|
73
|
+
linkOnDark,
|
|
70
74
|
loading,
|
|
75
|
+
primaryOnDark,
|
|
76
|
+
primaryOnLight,
|
|
77
|
+
secondary,
|
|
78
|
+
secondaryOnDark,
|
|
71
79
|
...rest
|
|
72
80
|
} = props;
|
|
73
81
|
const showBtnDisabled = disabled || loading;
|
|
@@ -77,28 +85,28 @@ const BpkLoadingButton = props => {
|
|
|
77
85
|
const loadingIcon = getLoadingIcon(props);
|
|
78
86
|
const iconClassNames = getClassName('bpk-loading-button__icon');
|
|
79
87
|
let type = BUTTON_TYPES.primary;
|
|
80
|
-
if (
|
|
88
|
+
if (link) {
|
|
81
89
|
type = BUTTON_TYPES.link;
|
|
82
90
|
}
|
|
83
|
-
if (
|
|
91
|
+
if (linkOnDark) {
|
|
84
92
|
type = BUTTON_TYPES.linkOnDark;
|
|
85
93
|
}
|
|
86
|
-
if (
|
|
94
|
+
if (featured) {
|
|
87
95
|
type = BUTTON_TYPES.featured;
|
|
88
96
|
}
|
|
89
|
-
if (
|
|
97
|
+
if (destructive) {
|
|
90
98
|
type = BUTTON_TYPES.destructive;
|
|
91
99
|
}
|
|
92
|
-
if (
|
|
100
|
+
if (secondaryOnDark) {
|
|
93
101
|
type = BUTTON_TYPES.secondaryOnDark;
|
|
94
102
|
}
|
|
95
|
-
if (
|
|
103
|
+
if (secondary) {
|
|
96
104
|
type = BUTTON_TYPES.secondary;
|
|
97
105
|
}
|
|
98
|
-
if (
|
|
106
|
+
if (primaryOnLight) {
|
|
99
107
|
type = BUTTON_TYPES.primaryOnLight;
|
|
100
108
|
}
|
|
101
|
-
if (
|
|
109
|
+
if (primaryOnDark) {
|
|
102
110
|
type = BUTTON_TYPES.primaryOnDark;
|
|
103
111
|
}
|
|
104
112
|
return /*#__PURE__*/_jsx(BpkButtonV2, {
|
|
@@ -83,10 +83,6 @@ const BpkScrollableCalendarGridList = props => {
|
|
|
83
83
|
focusedDate: focusedDate,
|
|
84
84
|
preventKeyboardFocus: rest.preventKeyboardFocus,
|
|
85
85
|
"aria-hidden": index !== 1
|
|
86
|
-
// TODO: className to be removed
|
|
87
|
-
// eslint-disable-next-line @skyscanner/rules/forbid-component-props
|
|
88
|
-
,
|
|
89
|
-
className: getClassName('bpk-scrollable-calendar-grid-list__item')
|
|
90
86
|
})
|
|
91
87
|
});
|
|
92
88
|
const calculateOffsetInPixels = numberOfMonths => {
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
.bpk-scrollable-calendar-grid-list{position:relative;width:100%;height:100%;min-height:26.25rem;overflow-x:hidden;box-sizing:border-box;-ms-overflow-style:-ms-autohiding-scrollbar}
|
|
18
|
+
.bpk-scrollable-calendar-grid-list{position:relative;width:100%;height:100%;min-height:26.25rem;overflow-x:hidden;box-sizing:border-box;-ms-overflow-style:-ms-autohiding-scrollbar}
|