@skyscanner/backpack-web 0.0.1 → 0.0.2

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 (84) hide show
  1. package/README.md +100 -0
  2. package/bpk-component-accordion/package.json +4 -4
  3. package/bpk-component-accordion/src/BpkAccordionItem.js +1 -1
  4. package/bpk-component-aria-live/package.json +3 -3
  5. package/bpk-component-autosuggest/package.json +3 -3
  6. package/bpk-component-badge/package.json +2 -2
  7. package/bpk-component-banner-alert/package.json +4 -4
  8. package/bpk-component-barchart/examples.js +2 -2
  9. package/bpk-component-barchart/package.json +2 -2
  10. package/bpk-component-breadcrumb/package.json +3 -3
  11. package/bpk-component-calendar/package.json +4 -4
  12. package/bpk-component-card/examples.js +1 -1
  13. package/bpk-component-card/package.json +2 -2
  14. package/bpk-component-checkbox/package.json +2 -2
  15. package/bpk-component-chip/examples.js +4 -5
  16. package/bpk-component-chip/package.json +4 -4
  17. package/bpk-component-chip/src/BpkSelectableChip.js +1 -1
  18. package/bpk-component-close-button/package.json +2 -2
  19. package/bpk-component-datatable/package.json +2 -2
  20. package/bpk-component-datepicker/package.json +5 -5
  21. package/bpk-component-dialog/examples.js +2 -2
  22. package/bpk-component-dialog/package.json +5 -5
  23. package/bpk-component-drawer/examples.js +2 -2
  24. package/bpk-component-drawer/package.json +4 -4
  25. package/bpk-component-fieldset/package.json +7 -7
  26. package/bpk-component-flare/examples.js +3 -3
  27. package/bpk-component-flare/package.json +2 -2
  28. package/bpk-component-form-validation/package.json +4 -4
  29. package/bpk-component-horizontal-nav/package.json +2 -2
  30. package/bpk-component-icon/examples.js +5 -5
  31. package/bpk-component-icon/package.json +2 -2
  32. package/bpk-component-image/examples.js +4 -4
  33. package/bpk-component-image/package.json +2 -2
  34. package/bpk-component-input/package.json +3 -3
  35. package/bpk-component-loading-button/package.json +2 -2
  36. package/bpk-component-map/package.json +3 -3
  37. package/bpk-component-map/src/BpkPriceMarker.js +3 -7
  38. package/bpk-component-modal/examples.js +2 -2
  39. package/bpk-component-modal/package.json +5 -5
  40. package/bpk-component-navigation-bar/package.json +4 -4
  41. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +2 -2
  42. package/bpk-component-navigation-stack/package.json +3 -3
  43. package/bpk-component-nudger/package.json +2 -2
  44. package/bpk-component-overlay/package.json +3 -3
  45. package/bpk-component-pagination/package.json +2 -2
  46. package/bpk-component-phone-input/package.json +5 -5
  47. package/bpk-component-popover/examples.js +2 -2
  48. package/bpk-component-popover/package.json +4 -4
  49. package/bpk-component-popover/src/BpkPopover.js +2 -2
  50. package/bpk-component-rating/package.json +2 -2
  51. package/bpk-component-rating/src/BpkRating.js +14 -8
  52. package/bpk-component-scrollable-calendar/package.json +3 -3
  53. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +2 -3
  54. package/bpk-component-section-list/package.json +3 -3
  55. package/bpk-component-section-list/src/BpkSectionListSection.js +2 -4
  56. package/bpk-component-star-rating/package.json +2 -2
  57. package/bpk-component-text/examples.js +17 -17
  58. package/bpk-component-text/package.json +1 -1
  59. package/bpk-component-text/src/BpkText.js +1 -1
  60. package/bpk-component-ticket/package.json +2 -2
  61. package/bpk-component-tooltip/examples.js +2 -2
  62. package/bpk-component-tooltip/package.json +2 -2
  63. package/package.json +2 -2
  64. package/bpk-component-heading/README.md +0 -31
  65. package/bpk-component-heading/examples.js +0 -36
  66. package/bpk-component-heading/index.js +0 -23
  67. package/bpk-component-heading/package.json +0 -25
  68. package/bpk-component-heading/src/BpkHeading.js +0 -70
  69. package/bpk-component-heading/src/BpkHeading.module.css +0 -18
  70. package/bpk-component-heading/src/BpkHeading.module.scss +0 -49
  71. package/bpk-component-paragraph/README.md +0 -28
  72. package/bpk-component-paragraph/examples.js +0 -46
  73. package/bpk-component-paragraph/index.js +0 -23
  74. package/bpk-component-paragraph/package.json +0 -25
  75. package/bpk-component-paragraph/src/BpkParagraph.js +0 -55
  76. package/bpk-component-paragraph/src/BpkParagraph.module.css +0 -18
  77. package/bpk-component-paragraph/src/BpkParagraph.module.scss +0 -25
  78. package/bpk-tether/.eslintrc +0 -6
  79. package/bpk-tether/README.md +0 -52
  80. package/bpk-tether/index.js +0 -24
  81. package/bpk-tether/package.json +0 -19
  82. package/bpk-tether/src/TetherWrapper.js +0 -30
  83. package/bpk-tether/src/applyRTLTransforms.js +0 -49
  84. package/bpk-tether/src/getArrowPositionCallback.js +0 -65
@@ -18,7 +18,7 @@
18
18
 
19
19
  import React from 'react';
20
20
  import { cssModules } from 'bpk-react-utils';
21
- import BpkText from 'bpk-component-text';
21
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
22
22
  import {
23
23
  BpkCalendarGrid,
24
24
  BpkCalendarGridPropTypes,
@@ -38,8 +38,7 @@ const BpkScrollableCalendarGrid = (props) => {
38
38
  <BpkText
39
39
  className={getClassName('bpk-scrollable-calendar-grid__title')}
40
40
  tagName="h1"
41
- textStyle="lg"
42
- weight="bold"
41
+ textStyle={TEXT_STYLES.heading4}
43
42
  >
44
43
  {props.formatMonth(month)}
45
44
  </BpkText>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-section-list",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Backpack section list component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,8 +15,8 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
- "bpk-component-icon": "^9.2.0",
19
- "bpk-component-text": "^6.1.0",
18
+ "bpk-component-icon": "^9.2.1",
19
+ "bpk-component-text": "^6.1.1",
20
20
  "bpk-mixins": "^26.1.0",
21
21
  "bpk-react-utils": "^4.1.0",
22
22
  "prop-types": "^15.7.2"
@@ -21,7 +21,7 @@
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
23
  import { cssModules } from 'bpk-react-utils';
24
- import BpkText, { WEIGHT_STYLES } from 'bpk-component-text';
24
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
25
25
 
26
26
  import STYLES from './BpkSectionListSection.module.scss';
27
27
 
@@ -39,9 +39,7 @@ const BpkSectionListSection = (props: Props) => {
39
39
  <section {...rest}>
40
40
  {headerText && (
41
41
  <header className={getClassName('bpk-section-list-section__header')}>
42
- <BpkText weight={WEIGHT_STYLES.bold} textStyle="base">
43
- {headerText}
44
- </BpkText>
42
+ <BpkText textStyle={TEXT_STYLES.label1}>{headerText}</BpkText>
45
43
  </header>
46
44
  )}
47
45
  <ul className={getClassName('bpk-section-list-section')}>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-star-rating",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack rating star component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-icon": "^9.2.0",
17
+ "bpk-component-icon": "^9.2.1",
18
18
  "bpk-mixins": "^26.1.0",
19
19
  "bpk-react-utils": "^4.1.0",
20
20
  "prop-types": "^15.7.2"
@@ -21,10 +21,10 @@ import { withDefaultProps } from 'bpk-react-utils';
21
21
 
22
22
  import STYLE from './examples.module.scss';
23
23
 
24
- import BpkText from './index';
24
+ import BpkText, { TEXT_STYLES } from './index';
25
25
 
26
26
  const Paragraph = withDefaultProps(BpkText, {
27
- textStyle: 'body-longform',
27
+ textStyle: TEXT_STYLES.bodyLongform,
28
28
  tagName: 'p',
29
29
  className: STYLE['bpk-my-paragraph'],
30
30
  });
@@ -40,32 +40,32 @@ const DefaultExample = () => (
40
40
 
41
41
  const WithHeadingTagsExample = () => (
42
42
  <div>
43
- <BpkText textStyle="subheading" tagName="h1">
43
+ <BpkText textStyle={TEXT_STYLES.subheading} tagName="h1">
44
44
  The quick brown fox jumps over the lazy dog
45
45
  </BpkText>
46
- <BpkText textStyle="body-longform" tagName="h2">
46
+ <BpkText textStyle={TEXT_STYLES.bodyLongform} tagName="h2">
47
47
  The quick brown fox jumps over the lazy dog
48
48
  </BpkText>
49
- <BpkText textStyle="label-1" tagName="h3">
49
+ <BpkText textStyle={TEXT_STYLES.label1} tagName="h3">
50
50
  The quick brown fox jumps over the lazy dog
51
51
  </BpkText>
52
- <BpkText textStyle="body-default" tagName="h3">
52
+ <BpkText textStyle={TEXT_STYLES.bodyDefault} tagName="h3">
53
53
  The quick brown fox jumps over the lazy dog
54
54
  </BpkText>
55
- <BpkText textStyle="label-2" tagName="h4">
55
+ <BpkText textStyle={TEXT_STYLES.label2} tagName="h4">
56
56
  The quick brown fox jumps over the lazy dog
57
57
  </BpkText>
58
- <BpkText textStyle="footnote" tagName="h5">
58
+ <BpkText textStyle={TEXT_STYLES.footnote} tagName="h5">
59
59
  The quick brown fox jumps over the lazy dog
60
60
  </BpkText>
61
- <BpkText textStyle="caption" tagName="h6">
61
+ <BpkText textStyle={TEXT_STYLES.caption} tagName="h6">
62
62
  The quick brown fox jumps over the lazy dog
63
63
  </BpkText>
64
64
  </div>
65
65
  );
66
66
 
67
67
  const ParagraphExample = () => (
68
- <BpkText textStyle="body-default" tagName="p">
68
+ <BpkText textStyle={TEXT_STYLES.bodyDefault} tagName="p">
69
69
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque
70
70
  imperdiet lobortis tellus, non rhoncus erat tincidunt id. Pellentesque
71
71
  consectetur, dolor nec vulputate vehicula, ex metus mattis ante, non dictum
@@ -92,25 +92,25 @@ const WithDefaultProps = () => (
92
92
 
93
93
  const HeadingStylesExample = () => (
94
94
  <div>
95
- <BpkText textStyle="hero-4" tagName="h5">
95
+ <BpkText textStyle={TEXT_STYLES.hero4} tagName="h5">
96
96
  The quick brown fox jumps over the lazy dog
97
97
  </BpkText>
98
- <BpkText textStyle="hero-5" tagName="h6">
98
+ <BpkText textStyle={TEXT_STYLES.hero5} tagName="h6">
99
99
  The quick brown fox jumps over the lazy dog
100
100
  </BpkText>
101
- <BpkText textStyle="heading-1" tagName="h1">
101
+ <BpkText textStyle={TEXT_STYLES.heading1} tagName="h1">
102
102
  The quick brown fox jumps over the lazy dog
103
103
  </BpkText>
104
- <BpkText textStyle="heading-2" tagName="h4">
104
+ <BpkText textStyle={TEXT_STYLES.heading2} tagName="h4">
105
105
  The quick brown fox jumps over the lazy dog
106
106
  </BpkText>
107
- <BpkText textStyle="heading-3" tagName="h2">
107
+ <BpkText textStyle={TEXT_STYLES.heading3} tagName="h2">
108
108
  The quick brown fox jumps over the lazy dog
109
109
  </BpkText>
110
- <BpkText textStyle="heading-4" tagName="h6">
110
+ <BpkText textStyle={TEXT_STYLES.heading4} tagName="h6">
111
111
  The quick brown fox jumps over the lazy dog
112
112
  </BpkText>
113
- <BpkText textStyle="heading-5" tagName="h4">
113
+ <BpkText textStyle={TEXT_STYLES.heading5} tagName="h4">
114
114
  The quick brown fox jumps over the lazy dog
115
115
  </BpkText>
116
116
  </div>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-text",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Backpack text component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -140,7 +140,7 @@ BpkText.propTypes = {
140
140
  };
141
141
 
142
142
  BpkText.defaultProps = {
143
- textStyle: TEXT_STYLES.base,
143
+ textStyle: TEXT_STYLES.bodyDefault,
144
144
  tagName: 'span',
145
145
  className: null,
146
146
  bold: null,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-ticket",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Backpack ticket component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -23,6 +23,6 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "bpk-component-button": "^5.1.0",
26
- "bpk-component-icon": "^9.2.0"
26
+ "bpk-component-icon": "^9.2.1"
27
27
  }
28
28
  }
@@ -20,7 +20,7 @@
20
20
 
21
21
  import React from 'react';
22
22
  import { withDefaultProps } from 'bpk-react-utils';
23
- import BpkText from 'bpk-component-text';
23
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
24
24
  import {
25
25
  spacingSm,
26
26
  colorMonteverde,
@@ -35,7 +35,7 @@ const wrapperStyle = {
35
35
  };
36
36
 
37
37
  const Heading = withDefaultProps(BpkText, {
38
- textStyle: 'lg',
38
+ textStyle: TEXT_STYLES.bodyLongform,
39
39
  tagName: 'h4',
40
40
  });
41
41
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-tooltip",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Backpack tooltip component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@skyscanner/bpk-foundations-web": "^5.0.0",
27
- "bpk-component-text": "^6.1.0"
27
+ "bpk-component-text": "^6.1.1"
28
28
  }
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,4 +47,4 @@
47
47
  "peerDependencies": {
48
48
  "react": "^16.3.0 || ^17.0.0"
49
49
  }
50
- }
50
+ }
@@ -1,31 +0,0 @@
1
- # This component has been deprecated, please use bpk-component-text instead to apply heading styles
2
- # bpk-component-heading
3
-
4
- > Backpack heading component.
5
-
6
- ## Installation
7
-
8
- ```sh
9
- npm install bpk-component-heading --save-dev
10
- ```
11
-
12
- ## Usage
13
-
14
- ```js
15
- import React from 'react';
16
- import BpkHeading from 'bpk-component-heading';
17
-
18
- export default () => (
19
- <BpkHeading level="h1">My Heading</BpkHeading>
20
- );
21
- ```
22
-
23
- ## Props
24
-
25
- | Property | PropType | Required | Default Value |
26
- | ------------ | ---------------------------------- | -------- | ------------- |
27
- | children | - | true | - |
28
- | level | 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' | true | - |
29
- | className | string | false | null |
30
- | id | string | false | null |
31
- | bottomMargin | bool | false | true |
@@ -1,36 +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 React from 'react';
22
-
23
- import BpkHeading from './index';
24
-
25
- const Examples = () => (
26
- <div>
27
- <BpkHeading level="h1">Heading 1</BpkHeading>
28
- <BpkHeading level="h2">Heading 2</BpkHeading>
29
- <BpkHeading level="h3">Heading 3</BpkHeading>
30
- <BpkHeading level="h4">Heading 4</BpkHeading>
31
- <BpkHeading level="h5">Heading 5</BpkHeading>
32
- <BpkHeading level="h6">Heading 6</BpkHeading>
33
- </div>
34
- );
35
-
36
- export default Examples;
@@ -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
- /* @flow strict */
20
-
21
- import component from './src/BpkHeading';
22
-
23
- export default component;
@@ -1,25 +0,0 @@
1
- {
2
- "name": "bpk-component-heading",
3
- "version": "5.1.0",
4
- "description": "Backpack heading component.",
5
- "license": "Apache-2.0",
6
- "private": true,
7
- "repository": {
8
- "type": "git",
9
- "url": "git@github.com:Skyscanner/backpack.git"
10
- },
11
- "author": "Backpack Design System <backpack@skyscanner.net>",
12
- "main": "index.js",
13
- "publishConfig": {
14
- "registry": "https://registry.npmjs.org/"
15
- },
16
- "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
17
- "dependencies": {
18
- "bpk-mixins": "^26.1.0",
19
- "bpk-react-utils": "^4.1.0",
20
- "prop-types": "^15.7.2"
21
- },
22
- "peerDependencies": {
23
- "react": "^16.3.0 || ^17.0.0"
24
- }
25
- }
@@ -1,70 +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 PropTypes from 'prop-types';
22
- import React, { type Node } from 'react';
23
- import { cssModules } from 'bpk-react-utils';
24
-
25
- import STYLES from './BpkHeading.module.scss';
26
-
27
- const getClassName = cssModules(STYLES);
28
-
29
- type Props = {
30
- children: Node,
31
- level: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6',
32
- className: ?string,
33
- id: ?string,
34
- bottomMargin: boolean,
35
- };
36
-
37
- const BpkHeading = (props: Props) => {
38
- const { bottomMargin, children, className, id, level } = props;
39
- const classNames = [getClassName(`bpk-heading-${level}`)];
40
- const Level = level;
41
-
42
- if (className) {
43
- classNames.push(className);
44
- }
45
- if (!bottomMargin) {
46
- classNames.push(getClassName('bpk-heading--no-bottom-margin'));
47
- }
48
-
49
- return (
50
- <Level className={classNames.join(' ')} id={id}>
51
- {children}
52
- </Level>
53
- );
54
- };
55
-
56
- BpkHeading.propTypes = {
57
- children: PropTypes.node.isRequired,
58
- level: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6']).isRequired,
59
- className: PropTypes.string,
60
- id: PropTypes.string,
61
- bottomMargin: PropTypes.bool,
62
- };
63
-
64
- BpkHeading.defaultProps = {
65
- className: null,
66
- id: null,
67
- bottomMargin: true,
68
- };
69
-
70
- export default BpkHeading;
@@ -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-heading-h1{font-size:2.5rem;line-height:3rem;font-weight:700}@media (max-width: 32.25rem){.bpk-heading-h1{font-size:2rem;line-height:2.5rem;font-weight:700}}.bpk-heading-h2{font-size:2rem;line-height:2.5rem;font-weight:700}@media (max-width: 32.25rem){.bpk-heading-h2{font-size:1.5rem;line-height:1.75rem;font-weight:700}}.bpk-heading-h3{font-size:1.5rem;line-height:1.75rem;font-weight:700}@media (max-width: 32.25rem){.bpk-heading-h3{font-size:1.25rem;line-height:1.5rem;font-weight:700}}.bpk-heading-h4{font-size:1.25rem;line-height:1.5rem;font-weight:700}@media (max-width: 32.25rem){.bpk-heading-h4{font-size:1rem;line-height:1.25rem;font-weight:700}}.bpk-heading-h5{font-size:1rem;line-height:1.25rem;font-weight:700}.bpk-heading-h6{font-size:1rem;line-height:1.25rem;font-weight:700}.bpk-heading--no-bottom-margin{margin-bottom:0}
@@ -1,49 +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';
20
-
21
- .bpk-heading {
22
- &-h1 {
23
- @include bpk-heading-1;
24
- }
25
-
26
- &-h2 {
27
- @include bpk-heading-2;
28
- }
29
-
30
- &-h3 {
31
- @include bpk-heading-3;
32
- }
33
-
34
- &-h4 {
35
- @include bpk-heading-4;
36
- }
37
-
38
- &-h5 {
39
- @include bpk-heading-5;
40
- }
41
-
42
- &-h6 {
43
- @include bpk-heading-6;
44
- }
45
-
46
- &--no-bottom-margin {
47
- @include bpk-heading--no-bottom-margin;
48
- }
49
- }
@@ -1,28 +0,0 @@
1
- # This component has been deprecated, please use bpk-component-text instead to apply paragraph styles
2
- # bpk-component-paragraph
3
-
4
- > Backpack paragraph component.
5
-
6
- ## Installation
7
-
8
- ```sh
9
- npm install bpk-component-paragraph --save-dev
10
- ```
11
-
12
- ## Usage
13
-
14
- ```js
15
- import React from 'react';
16
- import BpkParagraph from 'bpk-component-paragraph';
17
-
18
- export default () => (
19
- <BpkParagraph>My paragraph content.</BpkParagraph>
20
- )
21
- ```
22
-
23
- ## Props
24
-
25
- | Property | PropType | Required | Default Value |
26
- | --------- | -------- | -------- | ------------- |
27
- | children | node | true | - |
28
- | className | string | false | null |
@@ -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 React from 'react';
22
-
23
- import BpkParagraph from './index';
24
-
25
- const DefaultExample = () => (
26
- <div>
27
- <BpkParagraph>
28
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
29
- ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis
30
- dis parturient montes, nascetur ridiculus mus.
31
- </BpkParagraph>
32
- <BpkParagraph>
33
- Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla
34
- consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec,
35
- vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis
36
- vitae, justo.
37
- </BpkParagraph>
38
- <BpkParagraph>
39
- Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras
40
- dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus.
41
- Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.
42
- </BpkParagraph>
43
- </div>
44
- );
45
-
46
- export default DefaultExample;
@@ -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
- /* @flow strict */
20
-
21
- import component from './src/BpkParagraph';
22
-
23
- export default component;
@@ -1,25 +0,0 @@
1
- {
2
- "name": "bpk-component-paragraph",
3
- "version": "3.1.0",
4
- "description": "Backpack paragraph component.",
5
- "license": "Apache-2.0",
6
- "private": true,
7
- "repository": {
8
- "type": "git",
9
- "url": "git@github.com:Skyscanner/backpack.git"
10
- },
11
- "author": "Backpack Design System <backpack@skyscanner.net>",
12
- "main": "index.js",
13
- "publishConfig": {
14
- "registry": "https://registry.npmjs.org/"
15
- },
16
- "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
17
- "dependencies": {
18
- "bpk-mixins": "^26.1.0",
19
- "bpk-react-utils": "^4.1.0",
20
- "prop-types": "^15.7.2"
21
- },
22
- "peerDependencies": {
23
- "react": "^16.3.0 || ^17.0.0"
24
- }
25
- }