@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
@@ -19,7 +19,7 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React from 'react';
22
- import BpkText from 'bpk-component-text';
22
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
23
23
  import { cssModules } from 'bpk-react-utils';
24
24
 
25
25
  import { BpkFlareBar, BpkContentBubble } from './index';
@@ -33,7 +33,7 @@ const contentShort = (
33
33
  <div className={getClassName('bpk-flare-stories__content')}>
34
34
  <BpkText tagName="h1" textStyle="xxl">
35
35
  Love planet. Will travel.
36
- <BpkText tagName="p" textStyle="base">
36
+ <BpkText tagName="p" textStyle={TEXT_STYLES.bodyDefault}>
37
37
  Go discover a new adventure.
38
38
  </BpkText>
39
39
  </BpkText>
@@ -43,7 +43,7 @@ const content = (
43
43
  <div className={getClassName('bpk-flare-stories__content')}>
44
44
  <BpkText tagName="h1" textStyle="xxl">
45
45
  Love planet. Will travel.
46
- <BpkText tagName="p" textStyle="base">
46
+ <BpkText tagName="p" textStyle={TEXT_STYLES.bodyDefault}>
47
47
  Lorem ipsum dolor sit amet consectetur adipiscing elit, volutpat tellus
48
48
  massa taciti platea auctor, accumsan egestas cubilia ultricies lacus
49
49
  consequat. Vulputate quisque dignissim habitant urna accumsan tempor
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-flare",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Backpack FlareBar and ContentBubble component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
19
19
  "dependencies": {
20
20
  "bpk-component-label": "^5.1.0",
21
- "bpk-component-text": "^6.1.0",
21
+ "bpk-component-text": "^6.1.1",
22
22
  "bpk-mixins": "^26.1.0",
23
23
  "bpk-react-utils": "^4.1.0",
24
24
  "prop-types": "^15.7.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-form-validation",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Backpack form-validation component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "devDependencies": {
26
26
  "@skyscanner/bpk-foundations-web": "^5.0.0",
27
27
  "bpk-component-button": "^5.1.0",
28
- "bpk-component-checkbox": "^4.1.0",
29
- "bpk-component-icon": "^9.2.0",
30
- "bpk-component-input": "^6.1.0",
28
+ "bpk-component-checkbox": "^4.1.1",
29
+ "bpk-component-icon": "^9.2.1",
30
+ "bpk-component-input": "^6.1.1",
31
31
  "bpk-component-select": "^5.1.0",
32
32
  "bpk-component-textarea": "^4.2.0"
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-horizontal-nav",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Backpack horizontal nav component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -24,7 +24,7 @@
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
  "bpk-storybook-utils": "^1.1.0"
29
29
  }
30
30
  }
@@ -26,7 +26,7 @@ import {
26
26
  } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
27
27
  import BpkButton from 'bpk-component-button';
28
28
  import { BpkList, BpkListItem } from 'bpk-component-list';
29
- import BpkText from 'bpk-component-text';
29
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
30
30
 
31
31
  import { sm, lg } from './all';
32
32
  import SearchIcon from './lg/search';
@@ -86,28 +86,28 @@ const LargeIconsExample = () => (
86
86
  );
87
87
 
88
88
  const AlignToBaseTextExample = () => (
89
- <BpkText textStyle="base">
89
+ <BpkText textStyle={TEXT_STYLES.bodyDefault}>
90
90
  Search &nbsp;
91
91
  <AlignedBaseArrow fill={colors.colorSkyGrayTint01} />
92
92
  </BpkText>
93
93
  );
94
94
 
95
95
  const AlignToLargeTextExample = () => (
96
- <BpkText textStyle="lg">
96
+ <BpkText textStyle={TEXT_STYLES.bodyLongform}>
97
97
  Search &nbsp;
98
98
  <AlignedLargeLongArrowRightIcon fill={colors.colorSkyGrayTint01} />
99
99
  </BpkText>
100
100
  );
101
101
 
102
102
  const AlignSmallTextToIconExample = () => (
103
- <BpkText textStyle="sm">
103
+ <BpkText textStyle={TEXT_STYLES.footnote}>
104
104
  <SearchIcon fill={colors.colorSkyGrayTint01} />
105
105
  <AlignedSpanSmall>&nbsp; Search</AlignedSpanSmall>
106
106
  </BpkText>
107
107
  );
108
108
 
109
109
  const AlignTextToIconExample = () => (
110
- <BpkText textStyle="base">
110
+ <BpkText textStyle={TEXT_STYLES.bodyDefault}>
111
111
  <SearchIcon fill={colors.colorSkyGrayTint01} />
112
112
  <AlignedSpan>&nbsp; Search</AlignedSpan>
113
113
  </BpkText>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-icon",
3
- "version": "9.2.0",
3
+ "version": "9.2.1",
4
4
  "description": "Backpack icon components.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "bpk-component-button": "^5.1.0",
28
28
  "bpk-component-list": "^3.1.0",
29
- "bpk-component-text": "^6.1.0"
29
+ "bpk-component-text": "^6.1.1"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^16.3.0 || ^17.0.0"
@@ -18,7 +18,7 @@
18
18
 
19
19
  import React from 'react';
20
20
  import BpkMobileScrollContainer from 'bpk-component-mobile-scroll-container';
21
- import BpkText from 'bpk-component-text';
21
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
22
22
  import { spacingSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
23
23
 
24
24
  import BpkImage, {
@@ -154,7 +154,7 @@ const BackgroundImageExample = () => (
154
154
  src={image}
155
155
  >
156
156
  <div style={{ marginLeft: spacingSm, paddingTop: spacingSm }}>
157
- <BpkText tagName="h2" textStyle="xl">
157
+ <BpkText tagName="h2" textStyle={TEXT_STYLES.subheading}>
158
158
  Lorem ipsum dolor sit amet
159
159
  </BpkText>
160
160
  </div>
@@ -174,7 +174,7 @@ const BackgroundImageLegacyPropsExample = () => (
174
174
  src={image}
175
175
  >
176
176
  <div style={{ marginLeft: spacingSm, paddingTop: spacingSm }}>
177
- <BpkText tagName="h2" textStyle="xl">
177
+ <BpkText tagName="h2" textStyle={TEXT_STYLES.subheading}>
178
178
  Lorem ipsum dolor sit amet
179
179
  </BpkText>
180
180
  </div>
@@ -193,7 +193,7 @@ const BackgroundImageWithLazyLoadingAndAnimationExample = () => (
193
193
  src={image}
194
194
  >
195
195
  <div style={{ marginLeft: spacingSm, paddingTop: spacingSm }}>
196
- <BpkText tagName="h2" textStyle="xl">
196
+ <BpkText tagName="h2" textStyle={TEXT_STYLES.subheading}>
197
197
  Lorem ipsum dolor sit amet
198
198
  </BpkText>
199
199
  </div>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-image",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Backpack image component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -26,6 +26,6 @@
26
26
  "devDependencies": {
27
27
  "@skyscanner/bpk-foundations-web": "^5.0.0",
28
28
  "bpk-component-mobile-scroll-container": "^3.1.0",
29
- "bpk-component-text": "^6.1.0"
29
+ "bpk-component-text": "^6.1.1"
30
30
  }
31
31
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-input",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Backpack input component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
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"
@@ -23,7 +23,7 @@
23
23
  "react": "^16.3.0 || ^17.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "bpk-component-banner-alert": "^6.1.0",
26
+ "bpk-component-banner-alert": "^6.1.1",
27
27
  "bpk-component-label": "^5.1.0",
28
28
  "bpk-storybook-utils": "^1.1.0"
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-loading-button",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Backpack loading button component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "bpk-component-button": "^5.1.0",
18
- "bpk-component-icon": "^9.2.0",
18
+ "bpk-component-icon": "^9.2.1",
19
19
  "bpk-component-spinner": "^5.1.0",
20
20
  "bpk-mixins": "^26.1.0",
21
21
  "bpk-react-utils": "^4.1.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-map",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "Backpack map component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -24,8 +24,8 @@
24
24
  "react": "^16.3.0 || ^17.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "bpk-component-icon": "^9.2.0",
28
- "bpk-component-text": "^6.1.0",
27
+ "bpk-component-icon": "^9.2.1",
28
+ "bpk-component-text": "^6.1.1",
29
29
  "bpk-storybook-utils": "^1.1.0",
30
30
  "prop-types": "^15.5.8"
31
31
  }
@@ -21,10 +21,7 @@
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
23
  import { cssModules } from 'bpk-react-utils';
24
- import BpkText, {
25
- WEIGHT_STYLES,
26
- TEXT_STYLES,
27
- } from 'bpk-component-text/src/BpkText';
24
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text/src/BpkText';
28
25
 
29
26
  import { LatLongPropType, type LatLong } from './common-types';
30
27
  import BpkBasicMapMarker from './BpkBasicMapMarker';
@@ -92,11 +89,10 @@ const BpkPriceMarker = (props: Props) => {
92
89
  >
93
90
  <BpkText
94
91
  className={classNames}
95
- weight={WEIGHT_STYLES.bold}
96
92
  textStyle={
97
93
  status === PRICE_MARKER_STATUSES.focused
98
- ? TEXT_STYLES.base
99
- : TEXT_STYLES.sm
94
+ ? TEXT_STYLES.label1
95
+ : TEXT_STYLES.label2
100
96
  }
101
97
  >
102
98
  {label}
@@ -25,7 +25,7 @@ import BpkButton from 'bpk-component-button';
25
25
  import { BpkNavigationBarButtonLink } from 'bpk-component-navigation-bar';
26
26
  import { withAlignment, withRtlSupport } from 'bpk-component-icon';
27
27
  import ArrowIcon from 'bpk-component-icon/sm/long-arrow-left';
28
- import BpkText from 'bpk-component-text';
28
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
29
29
  import {
30
30
  lineHeightBase,
31
31
  iconSizeSm,
@@ -43,7 +43,7 @@ const ArrowIconWithRtl = withAlignment(
43
43
  const getClassName = cssModules(STYLES);
44
44
 
45
45
  const Paragraph = withDefaultProps(BpkText, {
46
- textStyle: 'base',
46
+ textStyle: TEXT_STYLES.bodyDefault,
47
47
  tagName: 'p',
48
48
  className: getClassName('bpk-modal-paragraph'),
49
49
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-modal",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack modal component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,10 +14,10 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-close-button": "^3.1.0",
18
- "bpk-component-icon": "^9.2.0",
17
+ "bpk-component-close-button": "^3.1.1",
18
+ "bpk-component-icon": "^9.2.1",
19
19
  "bpk-component-link": "^3.1.0",
20
- "bpk-component-navigation-bar": "^3.1.0",
20
+ "bpk-component-navigation-bar": "^3.1.1",
21
21
  "bpk-mixins": "^26.1.0",
22
22
  "bpk-react-utils": "^4.1.0",
23
23
  "bpk-scrim-utils": "^5.1.0",
@@ -28,6 +28,6 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "bpk-component-button": "^5.1.0",
31
- "bpk-component-text": "^6.1.0"
31
+ "bpk-component-text": "^6.1.1"
32
32
  }
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-navigation-bar",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack nativation bar component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-close-button": "^3.1.0",
17
+ "bpk-component-close-button": "^3.1.1",
18
18
  "bpk-component-link": "^3.1.0",
19
- "bpk-component-text": "^6.1.0",
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"
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@skyscanner/bpk-foundations-web": "^5.0.0",
29
- "bpk-component-icon": "^9.2.0",
29
+ "bpk-component-icon": "^9.2.1",
30
30
  "bpk-storybook-utils": "^1.1.0"
31
31
  }
32
32
  }
@@ -21,7 +21,7 @@
21
21
  import React, { type Node, type Element } from 'react';
22
22
  import PropTypes from 'prop-types';
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 './BpkNavigationBar.module.scss';
27
27
 
@@ -73,7 +73,7 @@ const BpkNavigationBar = (props: Props) => {
73
73
  {typeof title === 'string' ? (
74
74
  <BpkText
75
75
  id={titleId}
76
- weight={WEIGHT_STYLES.bold}
76
+ textStyle={TEXT_STYLES.label1}
77
77
  className={getClassNames('bpk-navigation-bar__title')}
78
78
  >
79
79
  {title}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-navigation-stack",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack navigation stack component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "bpk-component-button": "^5.1.0",
28
- "bpk-component-icon": "^9.2.0",
29
- "bpk-component-navigation-bar": "^3.1.0",
28
+ "bpk-component-icon": "^9.2.1",
29
+ "bpk-component-navigation-bar": "^3.1.1",
30
30
  "bpk-component-rtl-toggle": "^3.1.0"
31
31
  }
32
32
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-nudger",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Backpack nudger component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
18
  "bpk-component-button": "^5.1.0",
19
- "bpk-component-icon": "^9.2.0",
19
+ "bpk-component-icon": "^9.2.1",
20
20
  "bpk-mixins": "^26.1.0",
21
21
  "bpk-react-utils": "^4.1.0",
22
22
  "lodash.clamp": "^4.0.3",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-overlay",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Backpack overlay component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -21,8 +21,8 @@
21
21
  "react": "^16.3.0 || ^17.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "bpk-component-image": "^5.1.0",
25
- "bpk-component-text": "^6.1.0"
24
+ "bpk-component-image": "^5.1.1",
25
+ "bpk-component-text": "^6.1.1"
26
26
  },
27
27
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8"
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-pagination",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack pagination component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -23,6 +23,6 @@
23
23
  "react": "^16.3.0 || ^17.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "bpk-component-icon": "^9.2.0"
26
+ "bpk-component-icon": "^9.2.1"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-phone-input",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Backpack phone input component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,10 +15,10 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
- "bpk-component-input": "^6.1.0",
18
+ "bpk-component-input": "^6.1.1",
19
19
  "bpk-component-label": "^5.1.0",
20
20
  "bpk-component-select": "^5.1.0",
21
- "bpk-component-text": "^6.1.0",
21
+ "bpk-component-text": "^6.1.1",
22
22
  "bpk-mixins": "^26.1.0",
23
23
  "bpk-react-utils": "^4.1.0",
24
24
  "prop-types": "^15.7.2"
@@ -27,7 +27,7 @@
27
27
  "react": "^16.3.0 || ^17.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "bpk-component-fieldset": "^4.1.0",
31
- "bpk-component-image": "^5.1.0"
30
+ "bpk-component-fieldset": "^4.1.1",
31
+ "bpk-component-image": "^5.1.1"
32
32
  }
33
33
  }
@@ -22,7 +22,7 @@ import PropTypes from 'prop-types';
22
22
  import React, { Component, type Node } from 'react';
23
23
  import { cssModules, withDefaultProps } from 'bpk-react-utils';
24
24
  import BpkButton from 'bpk-component-button';
25
- import BpkText from 'bpk-component-text';
25
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
26
26
  import BpkContentContainer from 'bpk-component-content-container';
27
27
  import BpkInput, { withOpenEvents } from 'bpk-component-input';
28
28
 
@@ -35,7 +35,7 @@ const getClassName = cssModules(STYLES);
35
35
  const EnhancedInput = withOpenEvents(BpkInput);
36
36
 
37
37
  const Paragraph = withDefaultProps(BpkText, {
38
- textStyle: 'base',
38
+ textStyle: TEXT_STYLES.bodyDefault,
39
39
  tagName: 'p',
40
40
  className: getClassName('bpk-popover-paragraph'),
41
41
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-popover",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Backpack popover component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -17,9 +17,9 @@
17
17
  "@skyscanner/popper.js": "^1.12.9-beta.1",
18
18
  "a11y-focus-scope": "^1.1.3",
19
19
  "a11y-focus-store": "^1.0.0",
20
- "bpk-component-close-button": "^3.1.0",
20
+ "bpk-component-close-button": "^3.1.1",
21
21
  "bpk-component-link": "^3.1.0",
22
- "bpk-component-text": "^6.1.0",
22
+ "bpk-component-text": "^6.1.1",
23
23
  "bpk-mixins": "^26.1.0",
24
24
  "bpk-react-utils": "^4.1.0",
25
25
  "prop-types": "^15.7.2"
@@ -30,6 +30,6 @@
30
30
  "devDependencies": {
31
31
  "bpk-component-button": "^5.1.0",
32
32
  "bpk-component-content-container": "^4.1.0",
33
- "bpk-component-input": "^6.1.0"
33
+ "bpk-component-input": "^6.1.1"
34
34
  }
35
35
  }
@@ -20,7 +20,7 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
- import BpkText, { WEIGHT_STYLES } from 'bpk-component-text';
23
+ import BpkText, { TEXT_STYLES } from 'bpk-component-text';
24
24
  import { BpkButtonLink } from 'bpk-component-link';
25
25
  import BpkCloseButton from 'bpk-component-close-button';
26
26
  import { TransitionInitialMount, cssModules } from 'bpk-react-utils';
@@ -111,7 +111,7 @@ const BpkPopover = (props: Props) => {
111
111
  />
112
112
  {labelAsTitle ? (
113
113
  <header className={getClassName('bpk-popover__header')}>
114
- <BpkText tagName="h2" id={labelId} weight={WEIGHT_STYLES.bold}>
114
+ <BpkText tagName="h2" id={labelId} textStyle={TEXT_STYLES.label1}>
115
115
  {label}
116
116
  </BpkText>
117
117
  &nbsp;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-rating",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack rating 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
  }
@@ -21,7 +21,7 @@ import React from 'react';
21
21
  import PropTypes from 'prop-types';
22
22
  import clamp from 'lodash.clamp';
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 './BpkRating.module.scss';
27
27
  import { RATING_SIZES, RATING_TYPES, RATING_SCALES } from './common-types';
@@ -90,11 +90,14 @@ const BpkRating = (props: Props) => {
90
90
  const textWrapperStyles = [getClassName('bpk-rating__text-wrapper')];
91
91
  const textStyles = [getClassName('bpk-rating__text')];
92
92
 
93
- let textSize = 'base';
93
+ let titleTextSize = TEXT_STYLES.bodyDefault;
94
+ let valueTextSize = TEXT_STYLES.label1;
94
95
  if (size === RATING_SIZES.lg) {
95
- textSize = 'lg';
96
+ titleTextSize = TEXT_STYLES.bodyLongform;
97
+ valueTextSize = TEXT_STYLES.heading4;
96
98
  } else if (size === RATING_SIZES.sm) {
97
- textSize = 'sm';
99
+ titleTextSize = TEXT_STYLES.footnote;
100
+ valueTextSize = TEXT_STYLES.label2;
98
101
  }
99
102
 
100
103
  const minValue = getMinValue();
@@ -131,18 +134,17 @@ const BpkRating = (props: Props) => {
131
134
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
132
135
  <div className={classNames.join(' ')} aria-label={ariaLabel} {...rest}>
133
136
  <BpkText
134
- textStyle={textSize}
137
+ textStyle={valueTextSize}
135
138
  tagName="span"
136
139
  className={scoreStyles.join(' ')}
137
140
  aria-hidden="true"
138
- weight={WEIGHT_STYLES.bold}
139
141
  >
140
142
  {adjustedValue}
141
143
  </BpkText>
142
144
  <div className={textWrapperStyles.join(' ')}>
143
145
  <BpkText
144
146
  className={textStyles.join(' ')}
145
- textStyle={textSize}
147
+ textStyle={titleTextSize}
146
148
  tagName="span"
147
149
  aria-hidden="true"
148
150
  >
@@ -152,7 +154,11 @@ const BpkRating = (props: Props) => {
152
154
  {subtitle && type !== RATING_TYPES.pill && (
153
155
  <BpkText
154
156
  className={textStyles.join(' ')}
155
- textStyle={size === RATING_SIZES.lg ? 'sm' : 'xs'}
157
+ textStyle={
158
+ size === RATING_SIZES.lg
159
+ ? TEXT_STYLES.footnote
160
+ : TEXT_STYLES.caption
161
+ }
156
162
  tagName="span"
157
163
  aria-hidden="true"
158
164
  >
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-scrollable-calendar",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Backpack scrollable calendar component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,8 +15,8 @@
15
15
  "gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
- "bpk-component-calendar": "^11.1.0",
19
- "bpk-component-text": "^6.1.0",
18
+ "bpk-component-calendar": "^11.1.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
  "date-fns": "^2.21.1",