@skyscanner/backpack-web 19.0.0 → 20.0.0

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.
Files changed (49) hide show
  1. package/README.md +0 -1
  2. package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +0 -8
  3. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +0 -2
  4. package/bpk-component-banner-alert/src/common-types.js +1 -9
  5. package/bpk-component-button/README.md +0 -2
  6. package/bpk-component-button/index.js +0 -2
  7. package/bpk-component-button/src/BpkButton.js +0 -8
  8. package/bpk-component-calendar/README.md +1 -1
  9. package/bpk-component-calendar/src/BpkCalendarContainer.js +3 -18
  10. package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -18
  11. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +1 -6
  12. package/bpk-component-calendar/src/Week.js +1 -20
  13. package/bpk-component-calendar/src/composeCalendar.js +1 -11
  14. package/bpk-component-datepicker/src/BpkDatepicker.js +1 -11
  15. package/bpk-component-flare/src/svgs/pointer.svg +1 -1
  16. package/bpk-component-icon/index.js +0 -4
  17. package/bpk-component-image/src/BpkBackgroundImage.js +2 -19
  18. package/bpk-component-image/src/BpkImage.js +2 -21
  19. package/bpk-component-input/index.js +2 -11
  20. package/bpk-component-link/src/BpkButtonLink.js +2 -7
  21. package/bpk-component-link/src/BpkLink.js +1 -7
  22. package/bpk-component-overlay/README.md +1 -2
  23. package/bpk-component-overlay/index.js +1 -2
  24. package/bpk-component-overlay/src/BpkOverlay.js +1 -14
  25. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -6
  26. package/bpk-component-switch/index.js +2 -5
  27. package/bpk-component-switch/src/BpkSwitch.js +2 -17
  28. package/bpk-component-switch/src/BpkSwitch.module.scss +6 -13
  29. package/bpk-component-table/README.md +0 -1
  30. package/bpk-component-table/src/BpkTable.js +3 -13
  31. package/bpk-component-table/src/BpkTable.module.scss +0 -8
  32. package/bpk-component-table/src/BpkTableHeadCell.js +4 -9
  33. package/package.json +1 -1
  34. package/bpk-component-button/BpkButtonOutline.js +0 -21
  35. package/bpk-component-button/src/BpkButtonOutline.js +0 -46
  36. package/bpk-component-button/src/BpkButtonOutline.module.css +0 -18
  37. package/bpk-component-button/src/BpkButtonOutline.module.scss +0 -23
  38. package/bpk-component-grid/README.md +0 -89
  39. package/bpk-component-grid/index.js +0 -25
  40. package/bpk-component-grid/src/BpkGridColumn.js +0 -117
  41. package/bpk-component-grid/src/BpkGridColumn.module.css +0 -18
  42. package/bpk-component-grid/src/BpkGridColumn.module.scss +0 -73
  43. package/bpk-component-grid/src/BpkGridContainer.js +0 -61
  44. package/bpk-component-grid/src/BpkGridContainer.module.css +0 -18
  45. package/bpk-component-grid/src/BpkGridContainer.module.scss +0 -33
  46. package/bpk-component-grid/src/BpkGridRow.js +0 -56
  47. package/bpk-component-grid/src/BpkGridRow.module.css +0 -18
  48. package/bpk-component-grid/src/BpkGridRow.module.scss +0 -29
  49. package/bpk-component-image/src/customPropTypes.js +0 -37
@@ -38,7 +38,6 @@ type Props = {
38
38
  blank: boolean,
39
39
  rel: ?string,
40
40
  alternate: boolean,
41
- white: boolean,
42
41
  };
43
42
 
44
43
  const BpkLink = (props: Props) => {
@@ -50,7 +49,6 @@ const BpkLink = (props: Props) => {
50
49
  href,
51
50
  onClick,
52
51
  rel: propRel,
53
- white,
54
52
  ...rest
55
53
  } = props;
56
54
 
@@ -59,7 +57,7 @@ const BpkLink = (props: Props) => {
59
57
  const target = blank ? '_blank' : null;
60
58
  const rel = blank ? propRel || 'noopener noreferrer' : propRel;
61
59
 
62
- if (white || alternate) {
60
+ if (alternate) {
63
61
  classNames.push(getClassName('bpk-link--alternate'));
64
62
  }
65
63
  if (className) {
@@ -92,8 +90,6 @@ BpkLink.propTypes = {
92
90
  blank: PropTypes.bool,
93
91
  rel: PropTypes.string,
94
92
  alternate: PropTypes.bool,
95
- // DEPRECATED
96
- white: PropTypes.bool,
97
93
  };
98
94
 
99
95
  BpkLink.defaultProps = {
@@ -102,8 +98,6 @@ BpkLink.defaultProps = {
102
98
  blank: false,
103
99
  rel: null,
104
100
  alternate: false,
105
- // DEPRECATED
106
- white: false,
107
101
  };
108
102
 
109
103
  export default BpkLink;
@@ -10,7 +10,7 @@ Check the main [Readme](https://github.com/skyscanner/backpack#usage) for a comp
10
10
 
11
11
  ```js
12
12
  import BpkText from '@skyscanner/backpack-web/bpk-component-text';
13
- import BpkOverlay, { BORDER_RADIUS_STYLES, OVERLAY_TYPES } from '@skyscanner/backpack-web/bpk-component-overlay';
13
+ import BpkOverlay, { OVERLAY_TYPES } from '@skyscanner/backpack-web/bpk-component-overlay';
14
14
 
15
15
  export default () => (
16
16
  <div>
@@ -43,7 +43,6 @@ export default () => (
43
43
  | Property | PropType | Required | Default Value |
44
44
  | --------- | -------- | -------- | ------------- |
45
45
  | children | Node | true | - |
46
- | borderRadiusStyle (deprecated) | BORDER_RADIUS_STYLES | false | BORDER_RADIUS_STYLES.none |
47
46
  | className | string | false | null |
48
47
  | foregroundContent | Node | false | null |
49
48
  | overlayType | oneOf(OVERLAY_TYPES) | false | OVERLAY_TYPES.solid |
@@ -20,10 +20,9 @@
20
20
  import BpkOverlay, {
21
21
  OVERLAY_TYPES,
22
22
  OVERLAY_LEVELS,
23
- BORDER_RADIUS_STYLES,
24
23
  type Props as BpkOverlayProps,
25
24
  } from './src/BpkOverlay';
26
25
 
27
26
  export type { BpkOverlayProps };
28
27
  export default BpkOverlay;
29
- export { OVERLAY_TYPES, OVERLAY_LEVELS, BORDER_RADIUS_STYLES };
28
+ export { OVERLAY_TYPES, OVERLAY_LEVELS };
@@ -20,7 +20,7 @@
20
20
  import PropTypes from 'prop-types';
21
21
  import type { Node } from 'react';
22
22
 
23
- import { cssModules, deprecated } from '../../bpk-react-utils';
23
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkOverlay.module.scss';
26
26
 
@@ -42,14 +42,7 @@ export const OVERLAY_LEVELS = {
42
42
  off: 'off',
43
43
  };
44
44
 
45
- // DEPRECATED
46
- export const BORDER_RADIUS_STYLES = {
47
- none: 'none',
48
- sm: 'sm',
49
- };
50
-
51
45
  export type Props = {
52
- borderRadiusStyle: ?$Keys<typeof BORDER_RADIUS_STYLES>,
53
46
  children: Node,
54
47
  overlayType: ?$Keys<typeof OVERLAY_TYPES>,
55
48
  overlayLevel: ?$Keys<typeof OVERLAY_LEVELS>,
@@ -59,7 +52,6 @@ export type Props = {
59
52
 
60
53
  const BpkOverlay = (props: Props) => {
61
54
  const {
62
- borderRadiusStyle,
63
55
  children,
64
56
  className,
65
57
  foregroundContent,
@@ -88,10 +80,6 @@ const BpkOverlay = (props: Props) => {
88
80
 
89
81
  BpkOverlay.propTypes = {
90
82
  children: PropTypes.node.isRequired,
91
- borderRadiusStyle: deprecated(
92
- PropTypes.oneOf(Object.keys(BORDER_RADIUS_STYLES)),
93
- 'This property is deprecated and radius will now be set based on the content. Please remove usage of this property.',
94
- ),
95
83
  className: PropTypes.string,
96
84
  foregroundContent: PropTypes.node,
97
85
  overlayType: PropTypes.oneOf(Object.keys(OVERLAY_TYPES)),
@@ -99,7 +87,6 @@ BpkOverlay.propTypes = {
99
87
  };
100
88
 
101
89
  BpkOverlay.defaultProps = {
102
- borderRadiusStyle: null,
103
90
  className: null,
104
91
  foregroundContent: null,
105
92
  overlayType: OVERLAY_TYPES.solid,
@@ -21,7 +21,7 @@ import { Component } from 'react';
21
21
  import { startOfDay, startOfMonth } from 'date-fns';
22
22
  import { VariableSizeList as List } from 'react-window';
23
23
 
24
- import { cssModules, deprecated } from '../../bpk-react-utils';
24
+ import { cssModules } from '../../bpk-react-utils';
25
25
  import {
26
26
  DateUtils,
27
27
  BpkCalendarGridPropTypes,
@@ -174,10 +174,6 @@ BpkScrollableCalendarGridList.propTypes = {
174
174
  className: PropTypes.string,
175
175
  minDate: PropTypes.instanceOf(Date).isRequired,
176
176
  maxDate: PropTypes.instanceOf(Date).isRequired,
177
- selectedDate: deprecated(
178
- PropTypes.instanceOf(Date),
179
- 'Use selectionConfiguration to set selectedDate',
180
- ),
181
177
  focusedDate: PropTypes.instanceOf(Date),
182
178
  ...BpkCalendarGridPropTypes,
183
179
  };
@@ -185,7 +181,6 @@ BpkScrollableCalendarGridList.propTypes = {
185
181
  BpkScrollableCalendarGridList.defaultProps = {
186
182
  className: null,
187
183
  focusedDate: null,
188
- selectedDate: null,
189
184
  };
190
185
 
191
186
  export default BpkScrollableCalendarGridList;
@@ -17,12 +17,9 @@
17
17
  */
18
18
  /* @flow strict */
19
19
 
20
- import BpkSwitch, {
21
- type Props as BpkSwitchProps,
22
- SWITCH_TYPES,
23
- } from './src/BpkSwitch';
20
+ import BpkSwitch, { type Props as BpkSwitchProps } from './src/BpkSwitch';
24
21
  import themeAttributes from './src/themeAttributes';
25
22
 
26
23
  export type { BpkSwitchProps };
27
- export { themeAttributes, SWITCH_TYPES };
24
+ export { themeAttributes };
28
25
  export default BpkSwitch;
@@ -20,32 +20,22 @@
20
20
  import PropTypes from 'prop-types';
21
21
  import type { Node } from 'react';
22
22
 
23
- import { cssModules, deprecated } from '../../bpk-react-utils';
23
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkSwitch.module.scss';
26
26
 
27
27
  const getClassName = cssModules(STYLES);
28
28
 
29
- export const SWITCH_TYPES = {
30
- primary: 'primary',
31
- event: 'event',
32
- };
33
-
34
- export type SwitchTypeValue = $Values<typeof SWITCH_TYPES>;
35
-
36
29
  export type Props = {
37
30
  label: Node,
38
- type: SwitchTypeValue,
39
31
  className: ?string,
40
32
  };
41
33
 
42
34
  const BpkSwitch = (props: Props) => {
43
- const { className, label, small, type, ...rest } = props;
44
- const resolvedType = type || SWITCH_TYPES.primary;
35
+ const { className, label, small, ...rest } = props;
45
36
 
46
37
  const switchClassNames = getClassName(
47
38
  'bpk-switch__switch',
48
- `bpk-switch__switch--${resolvedType}`,
49
39
  small && 'bpk-switch__switch--small',
50
40
  );
51
41
 
@@ -68,17 +58,12 @@ const BpkSwitch = (props: Props) => {
68
58
 
69
59
  BpkSwitch.propTypes = {
70
60
  label: PropTypes.node.isRequired,
71
- type: deprecated(
72
- PropTypes.oneOf([SWITCH_TYPES.primary, SWITCH_TYPES.event]),
73
- 'This property is deprecated and only one type supported, please remove your usage of this property',
74
- ),
75
61
  className: PropTypes.string,
76
62
  small: PropTypes.bool,
77
63
  };
78
64
 
79
65
  BpkSwitch.defaultProps = {
80
66
  className: null,
81
- type: null,
82
67
  small: false,
83
68
  };
84
69
 
@@ -34,18 +34,11 @@ $border-width: $bpk-one-pixel-rem * 2;
34
34
  opacity: 0;
35
35
 
36
36
  &:checked ~ .bpk-switch__switch {
37
- &--primary {
38
- @include bpk-themeable-property(
39
- background,
40
- --bpk-switch-checked-color,
41
- $bpk-core-accent-day
42
- );
43
- }
44
-
45
- // This is now deprecated and will be removed in the future.
46
- &--event {
47
- background: $bpk-color-abisko;
48
- }
37
+ @include bpk-themeable-property(
38
+ background,
39
+ --bpk-switch-checked-color,
40
+ $bpk-core-accent-day
41
+ );
49
42
 
50
43
  &::before {
51
44
  left: ($width - $height) + $border-width;
@@ -54,8 +47,8 @@ $border-width: $bpk-one-pixel-rem * 2;
54
47
  }
55
48
 
56
49
  &__label {
57
- margin-right: bpk-spacing-md();
58
50
  line-height: $height;
51
+ margin-inline-end: bpk-spacing-md();
59
52
  }
60
53
 
61
54
  // The 'track'.
@@ -59,5 +59,4 @@ export default () => (
59
59
  | Property | PropType | Required | Default Value |
60
60
  | ---------------------- | -------- | -------- | ------------- |
61
61
  | children | node | true | - |
62
- | alternate (deprecated) | bool | false | false |
63
62
 
@@ -21,7 +21,7 @@
21
21
  import PropTypes from 'prop-types';
22
22
  import type { Node } from 'react';
23
23
 
24
- import { cssModules, deprecated } from '../../bpk-react-utils';
24
+ import { cssModules } from '../../bpk-react-utils';
25
25
 
26
26
  import STYLES from './BpkTable.module.scss';
27
27
 
@@ -30,17 +30,12 @@ const getClassName = cssModules(STYLES);
30
30
  type Props = {
31
31
  children: Node,
32
32
  className: ?string,
33
- alternate: ?boolean,
34
33
  };
35
34
 
36
35
  const BpkTable = (props: Props) => {
37
- const { alternate, children, className, ...rest } = props;
36
+ const { children, className, ...rest } = props;
38
37
 
39
- const classNames = getClassName(
40
- 'bpk-table',
41
- className,
42
- alternate && 'bpk-table--alternate',
43
- );
38
+ const classNames = getClassName('bpk-table', className);
44
39
 
45
40
  return (
46
41
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See decisions/flowfixme.md
@@ -53,15 +48,10 @@ const BpkTable = (props: Props) => {
53
48
  BpkTable.propTypes = {
54
49
  children: PropTypes.node.isRequired,
55
50
  className: PropTypes.string,
56
- alternate: deprecated(
57
- PropTypes.bool,
58
- 'Alternate prop is deprecated, please remove your usage of this property.',
59
- ),
60
51
  };
61
52
 
62
53
  BpkTable.defaultProps = {
63
54
  className: null,
64
- alternate: null,
65
55
  };
66
56
 
67
57
  export default BpkTable;
@@ -21,19 +21,11 @@
21
21
  .bpk-table {
22
22
  @include bpk-table;
23
23
 
24
- &--alternate {
25
- @include bpk-table--alternate;
26
- }
27
-
28
24
  &__cell {
29
25
  @include bpk-table__cell;
30
26
 
31
27
  &--head {
32
28
  @include bpk-table__cell--head;
33
29
  }
34
-
35
- &--head-alternate {
36
- @include bpk-table__cell--head-alternate;
37
- }
38
30
  }
39
31
  }
@@ -21,20 +21,20 @@
21
21
  import PropTypes from 'prop-types';
22
22
  import type { Node } from 'react';
23
23
 
24
- import { cssModules, deprecated } from '../../bpk-react-utils';
24
+ import { cssModules } from '../../bpk-react-utils';
25
25
 
26
26
  import STYLES from './BpkTable.module.scss';
27
27
 
28
28
  const getClassName = cssModules(STYLES);
29
29
 
30
- type Props = { children: Node, alternate: ?boolean, className: ?string };
30
+ type Props = { children: Node, className: ?string };
31
31
 
32
32
  const BpkTableHeadCell = (props: Props) => {
33
- const { alternate, className, ...rest } = props;
33
+ const { className, ...rest } = props;
34
34
 
35
35
  const classNames = getClassName(
36
36
  'bpk-table__cell',
37
- alternate ? 'bpk-table__cell--head-alternate' : 'bpk-table__cell--head',
37
+ 'bpk-table__cell--head',
38
38
  className,
39
39
  );
40
40
 
@@ -43,15 +43,10 @@ const BpkTableHeadCell = (props: Props) => {
43
43
 
44
44
  BpkTableHeadCell.propTypes = {
45
45
  children: PropTypes.node.isRequired,
46
- alternate: deprecated(
47
- PropTypes.bool,
48
- 'Alternate prop is deprecated, please remove your usage of this property.',
49
- ),
50
46
  className: PropTypes.string,
51
47
  };
52
48
 
53
49
  BpkTableHeadCell.defaultProps = {
54
- alternate: null,
55
50
  className: null,
56
51
  };
57
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "19.0.0",
3
+ "version": "20.0.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,21 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- /* @flow strict */
20
-
21
- export { default } from './src/BpkButtonOutline';
@@ -1,46 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- /* @flow strict */
20
-
21
- import { Props, defaultProps, propTypes } from './common-types';
22
- import BpkButtonBase, { cssModules } from './BpkButtonBase';
23
- import STYLES from './BpkButtonOutline.module.scss';
24
-
25
- const getClassName = cssModules(STYLES);
26
-
27
- const BpkButtonOutline = (props: Props) => {
28
- const { className, ...rest } = props;
29
-
30
- const classNames = [getClassName('bpk-button--outline')];
31
-
32
- if (className) {
33
- classNames.push(className);
34
- }
35
- const classNamesFinal = classNames.join(' ');
36
-
37
- return (
38
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
39
- <BpkButtonBase className={classNamesFinal} {...rest} />
40
- );
41
- };
42
-
43
- BpkButtonOutline.propTypes = { ...propTypes };
44
- BpkButtonOutline.defaultProps = { ...defaultProps };
45
-
46
- export default BpkButtonOutline;
@@ -1,18 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-button--outline{background-color:rgba(0,0,0,0);background-image:none;color:#fff;box-shadow:0 0 0 2px #fff inset}.bpk-no-touch-support .bpk-button--outline:hover:not(:active):not(:disabled){background-color:rgba(0,0,0,0);box-shadow:0 0 0 2px rgba(255,255,255,0.5) inset}:global(.bpk-no-touch-support) .bpk-button--outline:hover:not(:active):not(:disabled){background-color:rgba(0,0,0,0);box-shadow:0 0 0 2px rgba(255,255,255,0.5) inset}.bpk-button--outline:active{background-color:rgba(0,0,0,0);box-shadow:0 0 0 3px #fff inset}.bpk-button--outline:disabled{background-color:#dddde5;background-image:none;color:#b2b2bf;box-shadow:none}
@@ -1,23 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- @import '~bpk-mixins/index.scss';
20
-
21
- .bpk-button--outline {
22
- @include bpk-button--outline;
23
- }
@@ -1,89 +0,0 @@
1
- # bpk-component-grid
2
-
3
- > Backpack grid components.
4
-
5
- This component is deprecated and will be removed in a future release.
6
-
7
- ## Installation
8
-
9
- Check the main [Readme](https://github.com/skyscanner/backpack#usage) for a complete installation guide.
10
-
11
- ## Usage
12
-
13
- ```js
14
- import { BpkGridContainer, BpkGridRow, BpkGridColumn } from '@skyscanner/backpack-web/bpk-component-grid';
15
-
16
- export default () => (
17
- <BpkGridContainer>
18
- <BpkGridRow>
19
- <BpkGridColumn width={8} tabletWidth={12}>
20
- Search controls
21
- </BpkGridColumn>
22
- <BpkGridColumn width={4} tabletWidth={0}>
23
- MPU
24
- </BpkGridColumn>
25
- </BpkGridRow>
26
- <BpkGridRow>
27
- <BpkGridColumn width={12}>
28
- Provider logos
29
- </BpkGridColumn>
30
- </BpkGridRow>
31
- <BpkGridRow>
32
- <BpkGridColumn width={4} mobileWidth={12}>
33
- Content panel
34
- </BpkGridColumn>
35
- <BpkGridColumn width={4} mobileWidth={12}>
36
- Content panel
37
- </BpkGridColumn>
38
- <BpkGridColumn width={4} mobileWidth={12}>
39
- Content panel
40
- </BpkGridColumn>
41
- </BpkGridRow>
42
- <BpkGridRow>
43
- <BpkGridColumn width={3} tabletWidth={6} mobileWidth={12}>
44
- Confidence statement
45
- </BpkGridColumn>
46
- <BpkGridColumn width={3} tabletWidth={6} mobileWidth={12}>
47
- Confidence statement
48
- </BpkGridColumn>
49
- <BpkGridColumn width={3} tabletWidth={6} mobileWidth={12}>
50
- Confidence statement
51
- </BpkGridColumn>
52
- <BpkGridColumn width={3} tabletWidth={6} mobileWidth={12}>
53
- Confidence statement
54
- </BpkGridColumn>
55
- </BpkGridRow>
56
- </BpkGridContainer>
57
- );
58
- ```
59
-
60
- ## Props
61
-
62
- ### BpkGridContainer
63
-
64
- | Property | PropType | Required | Default Value |
65
- | --------- | -------- | -------- | ------------- |
66
- | children | node | true | - |
67
- | debug | bool | false | false |
68
- | fullWidth | bool | false | false |
69
-
70
- ### BpkGridRow
71
-
72
- | Property | PropType | Required | Default Value |
73
- | --------- | -------- | -------- | ------------- |
74
- | children | node | true | - |
75
- | padded | bool | false | true |
76
-
77
- ### BpkGridColumn
78
-
79
- | Property | PropType | Required | Default Value |
80
- | ------------ | -------- | -------- | ------------- |
81
- | children | node | true | - |
82
- | width | number | true | - |
83
- | mobileWidth | number | false | null |
84
- | tabletWidth | number | false | null |
85
- | offset | number | false | null |
86
- | mobileOffset | number | false | null |
87
- | tabletOffset | number | false | null |
88
- | padded | bool | false | true |
89
- | debug | bool | false | false |
@@ -1,25 +0,0 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- import Container from './src/BpkGridContainer';
20
- import Row from './src/BpkGridRow';
21
- import Column from './src/BpkGridColumn';
22
-
23
- export const BpkGridContainer = Container;
24
- export const BpkGridRow = Row;
25
- export const BpkGridColumn = Column;