@skyscanner/backpack-web 34.2.0 → 34.4.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 (87) hide show
  1. package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +1 -1
  2. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +3 -5
  3. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +3 -5
  4. package/bpk-component-breakpoint/src/BpkBreakpoint.js +13 -7
  5. package/bpk-component-button/BpkButtonDestructive.d.ts +4 -0
  6. package/bpk-component-button/BpkButtonDestructive.js +9 -1
  7. package/bpk-component-button/BpkButtonFeatured.d.ts +4 -0
  8. package/bpk-component-button/BpkButtonFeatured.js +9 -1
  9. package/bpk-component-button/BpkButtonLink.d.ts +4 -0
  10. package/bpk-component-button/BpkButtonLink.js +9 -1
  11. package/bpk-component-button/BpkButtonLinkOnDark.d.ts +4 -0
  12. package/bpk-component-button/BpkButtonLinkOnDark.js +8 -1
  13. package/bpk-component-button/BpkButtonPrimary.d.ts +4 -0
  14. package/bpk-component-button/BpkButtonPrimary.js +8 -1
  15. package/bpk-component-button/BpkButtonPrimaryOnDark.d.ts +4 -0
  16. package/bpk-component-button/BpkButtonPrimaryOnDark.js +9 -1
  17. package/bpk-component-button/BpkButtonPrimaryOnLight.d.ts +4 -0
  18. package/bpk-component-button/BpkButtonPrimaryOnLight.js +9 -1
  19. package/bpk-component-button/BpkButtonSecondary.d.ts +4 -0
  20. package/bpk-component-button/BpkButtonSecondary.js +9 -1
  21. package/bpk-component-button/BpkButtonSecondaryOnDark.d.ts +4 -0
  22. package/bpk-component-button/BpkButtonSecondaryOnDark.js +9 -1
  23. package/bpk-component-button/index.d.ts +9 -9
  24. package/bpk-component-button/index.js +10 -20
  25. package/bpk-component-button/src/BpkButton.d.ts +56 -0
  26. package/bpk-component-button/src/BpkButton.js +31 -24
  27. package/bpk-component-button/src/BpkButtonBase.d.ts +53 -0
  28. package/bpk-component-button/src/BpkButtonBase.js +70 -43
  29. package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
  30. package/bpk-component-button/src/common-types.d.ts +37 -0
  31. package/bpk-component-button/src/common-types.js +16 -15
  32. package/bpk-component-card/src/BpkCard.d.ts +1 -1
  33. package/bpk-component-card/src/BpkCard.js +4 -1
  34. package/bpk-component-card/src/BpkCard.module.css +1 -1
  35. package/bpk-component-card/src/BpkCardWrapper.js +18 -12
  36. package/bpk-component-card/src/BpkDividedCard.d.ts +1 -1
  37. package/bpk-component-card/src/BpkDividedCard.js +26 -19
  38. package/bpk-component-card/src/BpkDividedCard.module.css +1 -1
  39. package/bpk-component-card/src/CardContext.d.ts +14 -0
  40. package/{bpk-component-button/src/BpkButtonPrimary.js → bpk-component-card/src/CardContext.js} +11 -15
  41. package/bpk-component-card-button/src/BpkSaveButton.js +20 -24
  42. package/bpk-component-card-button/src/BpkSaveButton.module.css +1 -1
  43. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  44. package/bpk-component-description-list/index.d.ts +4 -0
  45. package/bpk-component-description-list/src/BpkDescriptionDetails.d.ts +8 -0
  46. package/bpk-component-description-list/src/BpkDescriptionDetails.js +14 -2
  47. package/bpk-component-description-list/src/BpkDescriptionList.d.ts +8 -0
  48. package/bpk-component-description-list/src/BpkDescriptionList.js +14 -2
  49. package/bpk-component-description-list/src/BpkDescriptionTerm.d.ts +8 -0
  50. package/bpk-component-description-list/src/BpkDescriptionTerm.js +14 -2
  51. package/bpk-component-dialog/src/BpkDialogInner.js +3 -5
  52. package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
  53. package/bpk-component-dialog/src/common-types.d.ts +1 -1
  54. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +12 -9
  55. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  56. package/bpk-component-icon/src/classNameModifierHOCFactory.js +0 -3
  57. package/bpk-component-modal/src/BpkModalInner.js +6 -15
  58. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  59. package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +1 -1
  60. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +5 -11
  61. package/bpk-component-nudger/src/BpkConfigurableNudger.js +0 -1
  62. package/bpk-component-pagination/src/BpkPaginationPage.js +6 -9
  63. package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
  64. package/bpk-component-popover/src/BpkPopover.d.ts +13 -3
  65. package/bpk-component-popover/src/BpkPopover.js +13 -3
  66. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  67. package/bpk-component-text/src/BpkText.module.css +1 -1
  68. package/bpk-stylesheets/larken.css +1 -1
  69. package/bpk-stylesheets/larken.scss +90 -0
  70. package/package.json +2 -2
  71. package/bpk-component-button/src/BpkButtonDestructive.js +0 -48
  72. package/bpk-component-button/src/BpkButtonDestructive.module.css +0 -18
  73. package/bpk-component-button/src/BpkButtonFeatured.js +0 -48
  74. package/bpk-component-button/src/BpkButtonFeatured.module.css +0 -18
  75. package/bpk-component-button/src/BpkButtonLink.js +0 -53
  76. package/bpk-component-button/src/BpkButtonLink.module.css +0 -18
  77. package/bpk-component-button/src/BpkButtonLinkOnDark.js +0 -53
  78. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +0 -18
  79. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +0 -48
  80. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +0 -18
  81. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +0 -48
  82. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +0 -18
  83. package/bpk-component-button/src/BpkButtonSecondary.js +0 -47
  84. package/bpk-component-button/src/BpkButtonSecondary.module.css +0 -18
  85. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +0 -48
  86. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +0 -18
  87. package/bpk-component-description-list/src/ComponentFactory.js +0 -54
@@ -1,48 +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
- */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
- import { defaultProps, propTypes } from "./common-types";
19
- import STYLES from "./BpkButtonFeatured.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- const getClassName = cssModules(STYLES);
22
- const BpkButtonFeatured = props => {
23
- const {
24
- className,
25
- ...rest
26
- } = props;
27
- const classNames = [getClassName('bpk-button--featured')];
28
- if (className) {
29
- classNames.push(className);
30
- }
31
- const classNamesFinal = classNames.join(' ');
32
- return /*#__PURE__*/_jsx(BpkButtonBase
33
- // TODO: className to be removed
34
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
- , {
36
- className: classNamesFinal
37
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
38
- ,
39
- ...rest
40
- });
41
- };
42
- BpkButtonFeatured.propTypes = {
43
- ...propTypes
44
- };
45
- BpkButtonFeatured.defaultProps = {
46
- ...defaultProps
47
- };
48
- export default BpkButtonFeatured;
@@ -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
- .bpk-button--featured{color:#fff;color:var(--bpk-button-featured-text-color, rgb(255, 255, 255));background-color:#0062e3;background-color:var(--bpk-button-featured-background-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--featured:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}:global(.bpk-no-touch-support) .bpk-button--featured:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-featured-hover-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-hover-background-color, rgb(2, 77, 175))}.bpk-button--featured:active{color:#fff;color:var(--bpk-button-featured-active-text-color, rgb(255, 255, 255));background-color:#024daf;background-color:var(--bpk-button-featured-active-background-color, rgb(2, 77, 175))}.bpk-button--featured:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
@@ -1,53 +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
- */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
- import { defaultProps, propTypes } from "./common-types";
19
- import STYLES from "./BpkButtonLink.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- const getClassName = cssModules(STYLES);
22
- const BpkButtonLink = props => {
23
- const {
24
- className,
25
- large,
26
- ...rest
27
- } = props;
28
- const classNames = [getClassName('bpk-button--link')];
29
- if (large) {
30
- classNames.push(getClassName('bpk-button--link-large'));
31
- }
32
- if (className) {
33
- classNames.push(className);
34
- }
35
- const classNamesFinal = classNames.join(' ');
36
- return /*#__PURE__*/_jsx(BpkButtonBase
37
- // TODO: className to be removed
38
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
39
- , {
40
- className: classNamesFinal,
41
- large: large
42
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
43
- ,
44
- ...rest
45
- });
46
- };
47
- BpkButtonLink.propTypes = {
48
- ...propTypes
49
- };
50
- BpkButtonLink.defaultProps = {
51
- ...defaultProps
52
- };
53
- export default BpkButtonLink;
@@ -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
- .bpk-button--link{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-large{padding:.75rem 0}
@@ -1,53 +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
- */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
- import { defaultProps, propTypes } from "./common-types";
19
- import STYLES from "./BpkButtonLinkOnDark.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- const getClassName = cssModules(STYLES);
22
- const BpkButtonLinkOnDark = props => {
23
- const {
24
- className,
25
- large,
26
- ...rest
27
- } = props;
28
- const classNames = [getClassName('bpk-button--link-on-dark')];
29
- if (large) {
30
- classNames.push(getClassName('bpk-button--link-on-dark-large'));
31
- }
32
- if (className) {
33
- classNames.push(className);
34
- }
35
- const classNamesFinal = classNames.join(' ');
36
- return /*#__PURE__*/_jsx(BpkButtonBase
37
- // TODO: className to be removed
38
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
39
- , {
40
- className: classNamesFinal,
41
- large: large
42
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
43
- ,
44
- ...rest
45
- });
46
- };
47
- BpkButtonLinkOnDark.propTypes = {
48
- ...propTypes
49
- };
50
- BpkButtonLinkOnDark.defaultProps = {
51
- ...defaultProps
52
- };
53
- export default BpkButtonLinkOnDark;
@@ -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
- .bpk-button--link-on-dark{background:none;box-shadow:none;padding:0;border:0;background-color:rgba(0,0,0,0);text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, rgb(0, 98, 227));padding:.375rem 0;color:#0062e3;color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:visited{color:#0062e3;color:var(--bpk-link-visited-color, rgb(0, 98, 227))}.bpk-button--link-on-dark:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, rgb(0, 98, 227))}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:active{background:none;color:#024daf;text-decoration:none}.bpk-button--link-on-dark:disabled{background:none;color:rgba(0,0,0,.2);text-decoration:none}.bpk-button--link-on-dark-large{padding:.75rem 0}.bpk-no-touch-support .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}:global(.bpk-no-touch-support) .bpk-button--link-on-dark:hover:not(:active):not(:disabled){color:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-hover-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:active{color:rgba(255,255,255,.5);color:var(--bpk-button-link-on-dark-active-text-color, rgba(255, 255, 255, 0.5))}.bpk-button--link-on-dark:visited{color:#fff;color:var(--bpk-button-link-on-dark-text-color, rgb(255, 255, 255))}.bpk-button--link-on-dark:disabled{color:rgba(255,255,255,.2);color:var(--bpk-button-link-on-dark-disabled-color, rgba(255, 255, 255, 0.2))}
@@ -1,48 +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
- */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
- import { defaultProps, propTypes } from "./common-types";
19
- import STYLES from "./BpkButtonPrimaryOnDark.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- const getClassName = cssModules(STYLES);
22
- const BpkButtonPrimaryOnDark = props => {
23
- const {
24
- className,
25
- ...rest
26
- } = props;
27
- const classNames = [getClassName('bpk-button--primary-on-dark')];
28
- if (className) {
29
- classNames.push(className);
30
- }
31
- const classNamesFinal = classNames.join(' ');
32
- return /*#__PURE__*/_jsx(BpkButtonBase
33
- // TODO: className to be removed
34
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
- , {
36
- className: classNamesFinal
37
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
38
- ,
39
- ...rest
40
- });
41
- };
42
- BpkButtonPrimaryOnDark.propTypes = {
43
- ...propTypes
44
- };
45
- BpkButtonPrimaryOnDark.defaultProps = {
46
- ...defaultProps
47
- };
48
- export default BpkButtonPrimaryOnDark;
@@ -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
- .bpk-button--primary-on-dark{color:#161616;color:var(--bpk-button-primary-on-dark-text-color, rgb(22, 22, 22));background-color:#fff;background-color:var(--bpk-button-primary-on-dark-background-color, rgb(255, 255, 255))}.bpk-no-touch-support .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--primary-on-dark:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-primary-on-dark-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-hover-background-color, rgb(193, 199, 207))}.bpk-button--primary-on-dark:active{color:#161616;color:var(--bpk-button-primary-on-dark-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-primary-on-dark-active-background-color, rgb(193, 199, 207))}.bpk-button--primary-on-dark:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
@@ -1,48 +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
- */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
- import { defaultProps, propTypes } from "./common-types";
19
- import STYLES from "./BpkButtonPrimaryOnLight.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- const getClassName = cssModules(STYLES);
22
- const BpkButtonPrimaryOnLight = props => {
23
- const {
24
- className,
25
- ...rest
26
- } = props;
27
- const classNames = [getClassName('bpk-button--primary-on-light')];
28
- if (className) {
29
- classNames.push(className);
30
- }
31
- const classNamesFinal = classNames.join(' ');
32
- return /*#__PURE__*/_jsx(BpkButtonBase
33
- // TODO: className to be removed
34
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
- , {
36
- className: classNamesFinal
37
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
38
- ,
39
- ...rest
40
- });
41
- };
42
- BpkButtonPrimaryOnLight.propTypes = {
43
- ...propTypes
44
- };
45
- BpkButtonPrimaryOnLight.defaultProps = {
46
- ...defaultProps
47
- };
48
- export default BpkButtonPrimaryOnLight;
@@ -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
- .bpk-button--primary-on-light{color:#fff;color:var(--bpk-button-primary-on-light-text-color, rgb(255, 255, 255));background-color:#05203c;background-color:var(--bpk-button-primary-on-light-background-color, rgb(5, 32, 60))}.bpk-no-touch-support .bpk-button--primary-on-light:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}:global(.bpk-no-touch-support) .bpk-button--primary-on-light:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-primary-on-light-hover-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-hover-background-color, rgb(21, 70, 121))}.bpk-button--primary-on-light:active{color:#fff;color:var(--bpk-button-primary-on-light-active-text-color, rgb(255, 255, 255));background-color:#154679;background-color:var(--bpk-button-primary-on-light-active-background-color, rgb(21, 70, 121))}.bpk-button--primary-on-light:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
@@ -1,47 +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
- */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
- import { defaultProps, propTypes } from "./common-types";
19
- import STYLES from "./BpkButtonSecondary.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- const getClassName = cssModules(STYLES);
22
- const BpkButtonSecondary = props => {
23
- const {
24
- className,
25
- ...rest
26
- } = props;
27
- const classNames = [getClassName('bpk-button--secondary')];
28
- if (className) {
29
- classNames.push(className);
30
- }
31
- const classNamesFinal = classNames.join(' ');
32
- return /*#__PURE__*/_jsx(BpkButtonBase
33
- // TODO: className to be removed
34
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
- , {
36
- className: classNamesFinal // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
37
- ,
38
- ...rest
39
- });
40
- };
41
- BpkButtonSecondary.propTypes = {
42
- ...propTypes
43
- };
44
- BpkButtonSecondary.defaultProps = {
45
- ...defaultProps
46
- };
47
- export default BpkButtonSecondary;
@@ -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
- .bpk-button--secondary{color:#161616;color:var(--bpk-button-secondary-text-color, rgb(22, 22, 22));background-color:#e0e4e9;background-color:var(--bpk-button-secondary-background-color, rgb(224, 228, 233))}.bpk-no-touch-support .bpk-button--secondary:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}:global(.bpk-no-touch-support) .bpk-button--secondary:hover:not(:active):not(:disabled){color:#161616;color:var(--bpk-button-secondary-hover-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-hover-background-color, rgb(193, 199, 207))}.bpk-button--secondary:active{color:#161616;color:var(--bpk-button-secondary-active-text-color, rgb(22, 22, 22));background-color:#c1c7cf;background-color:var(--bpk-button-secondary-active-background-color, rgb(193, 199, 207))}.bpk-button--secondary:disabled{background-color:#e0e4e9;color:rgba(0,0,0,.2)}
@@ -1,48 +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
- */import BpkButtonBase, { cssModules } from "./BpkButtonBase";
18
- import { defaultProps, propTypes } from "./common-types";
19
- import STYLES from "./BpkButtonSecondaryOnDark.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- const getClassName = cssModules(STYLES);
22
- const BpkButtonSecondaryOnDark = props => {
23
- const {
24
- className,
25
- ...rest
26
- } = props;
27
- const classNames = [getClassName('bpk-button--secondary-on-dark')];
28
- if (className) {
29
- classNames.push(className);
30
- }
31
- const classNamesFinal = classNames.join(' ');
32
- return /*#__PURE__*/_jsx(BpkButtonBase
33
- // TODO: className to be removed
34
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
35
- , {
36
- className: classNamesFinal
37
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
38
- ,
39
- ...rest
40
- });
41
- };
42
- BpkButtonSecondaryOnDark.propTypes = {
43
- ...propTypes
44
- };
45
- BpkButtonSecondaryOnDark.defaultProps = {
46
- ...defaultProps
47
- };
48
- export default BpkButtonSecondaryOnDark;
@@ -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
- .bpk-button--secondary-on-dark{color:#fff;color:var(--bpk-button-secondary-on-dark-text-color, rgb(255, 255, 255));background-color:rgba(255,255,255,.1);background-color:var(--bpk-button-secondary-on-dark-background-color, rgba(255, 255, 255, 0.1))}.bpk-no-touch-support .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}:global(.bpk-no-touch-support) .bpk-button--secondary-on-dark:hover:not(:active):not(:disabled){color:#fff;color:var(--bpk-button-secondary-on-dark-hover-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-hover-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:active{color:#fff;color:var(--bpk-button-secondary-on-dark-active-text-color, rgb(255, 255, 255));background-color:#010913;background-color:var(--bpk-button-secondary-on-dark-active-background-color, rgb(1, 9, 19))}.bpk-button--secondary-on-dark:disabled{background-color:#0b121d;color:rgba(255,255,255,.2)}
@@ -1,54 +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 PropTypes from 'prop-types';
20
- import { cssModules } from "../../bpk-react-utils";
21
- import STYLES from "./BpkDescriptionList.module.css";
22
- import { jsx as _jsx } from "react/jsx-runtime";
23
- const getClassName = cssModules(STYLES);
24
- const buildComponent = (TagName, baseClassName) => {
25
- const Component = ({
26
- children,
27
- className,
28
- ...rest
29
- }) => {
30
- const classNames = [getClassName(baseClassName)];
31
- if (className) {
32
- classNames.push(className);
33
- }
34
- return (
35
- /*#__PURE__*/
36
- // TODO: className to be removed
37
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
38
- _jsx(TagName, {
39
- className: classNames.join(' '),
40
- ...rest,
41
- children: children
42
- })
43
- );
44
- };
45
- Component.propTypes = {
46
- children: PropTypes.node.isRequired,
47
- className: PropTypes.string
48
- };
49
- Component.defaultProps = {
50
- className: null
51
- };
52
- return Component;
53
- };
54
- export default buildComponent;