@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.
@@ -56,7 +56,7 @@ BpkCloseButton.propTypes = {
56
56
  onClick: PropTypes.func.isRequired,
57
57
  className: PropTypes.string,
58
58
  customIcon: PropTypes.func,
59
- onDark: PropTypes.Boolean
59
+ onDark: PropTypes.bool
60
60
  };
61
61
  BpkCloseButton.defaultProps = {
62
62
  className: null,
@@ -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 (props.link) {
88
+ if (link) {
81
89
  type = BUTTON_TYPES.link;
82
90
  }
83
- if (props.linkOnDark) {
91
+ if (linkOnDark) {
84
92
  type = BUTTON_TYPES.linkOnDark;
85
93
  }
86
- if (props.featured) {
94
+ if (featured) {
87
95
  type = BUTTON_TYPES.featured;
88
96
  }
89
- if (props.destructive) {
97
+ if (destructive) {
90
98
  type = BUTTON_TYPES.destructive;
91
99
  }
92
- if (props.secondaryOnDark) {
100
+ if (secondaryOnDark) {
93
101
  type = BUTTON_TYPES.secondaryOnDark;
94
102
  }
95
- if (props.secondary) {
103
+ if (secondary) {
96
104
  type = BUTTON_TYPES.secondary;
97
105
  }
98
- if (props.primaryOnLight) {
106
+ if (primaryOnLight) {
99
107
  type = BUTTON_TYPES.primaryOnLight;
100
108
  }
101
- if (props.primaryOnDark) {
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}.bpk-scrollable-calendar-grid-list__item{display:inline-table}
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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "34.0.0",
3
+ "version": "34.0.1",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",