@skyscanner/backpack-web 34.1.1 → 34.3.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 (68) 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-button/BpkButtonDestructive.d.ts +4 -0
  5. package/bpk-component-button/BpkButtonDestructive.js +9 -1
  6. package/bpk-component-button/BpkButtonFeatured.d.ts +4 -0
  7. package/bpk-component-button/BpkButtonFeatured.js +9 -1
  8. package/bpk-component-button/BpkButtonLink.d.ts +4 -0
  9. package/bpk-component-button/BpkButtonLink.js +9 -1
  10. package/bpk-component-button/BpkButtonLinkOnDark.d.ts +4 -0
  11. package/bpk-component-button/BpkButtonLinkOnDark.js +8 -1
  12. package/bpk-component-button/BpkButtonPrimary.d.ts +4 -0
  13. package/bpk-component-button/BpkButtonPrimary.js +8 -1
  14. package/bpk-component-button/BpkButtonPrimaryOnDark.d.ts +4 -0
  15. package/bpk-component-button/BpkButtonPrimaryOnDark.js +9 -1
  16. package/bpk-component-button/BpkButtonPrimaryOnLight.d.ts +4 -0
  17. package/bpk-component-button/BpkButtonPrimaryOnLight.js +9 -1
  18. package/bpk-component-button/BpkButtonSecondary.d.ts +4 -0
  19. package/bpk-component-button/BpkButtonSecondary.js +9 -1
  20. package/bpk-component-button/BpkButtonSecondaryOnDark.d.ts +4 -0
  21. package/bpk-component-button/BpkButtonSecondaryOnDark.js +9 -1
  22. package/bpk-component-button/index.d.ts +9 -9
  23. package/bpk-component-button/index.js +10 -20
  24. package/bpk-component-button/src/BpkButton.d.ts +56 -0
  25. package/bpk-component-button/src/BpkButton.js +31 -24
  26. package/bpk-component-button/src/BpkButtonBase.d.ts +53 -0
  27. package/bpk-component-button/src/BpkButtonBase.js +70 -43
  28. package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
  29. package/bpk-component-button/src/common-types.d.ts +37 -0
  30. package/bpk-component-button/src/common-types.js +16 -15
  31. package/bpk-component-card/src/BpkCard.d.ts +1 -1
  32. package/bpk-component-card/src/BpkCard.js +4 -1
  33. package/bpk-component-card/src/BpkCard.module.css +1 -1
  34. package/bpk-component-card/src/BpkCardWrapper.js +18 -12
  35. package/bpk-component-card/src/BpkDividedCard.d.ts +1 -1
  36. package/bpk-component-card/src/BpkDividedCard.js +26 -19
  37. package/bpk-component-card/src/BpkDividedCard.module.css +1 -1
  38. package/bpk-component-card/src/CardContext.d.ts +14 -0
  39. package/{bpk-component-button/src/BpkButtonPrimary.js → bpk-component-card/src/CardContext.js} +11 -15
  40. package/bpk-component-dialog/src/BpkDialogInner.js +3 -5
  41. package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
  42. package/bpk-component-popover/src/BpkPopover.js +1 -0
  43. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  44. package/bpk-component-text/src/BpkText.d.ts +3 -0
  45. package/bpk-component-text/src/BpkText.js +4 -1
  46. package/bpk-component-text/src/BpkText.module.css +1 -1
  47. package/bpk-mixins/_typography.scss +51 -0
  48. package/bpk-stylesheets/larken.css +18 -0
  49. package/bpk-stylesheets/larken.js +19 -0
  50. package/bpk-stylesheets/larken.scss +37 -0
  51. package/package.json +2 -2
  52. package/unstable__bpk-mixins/_typography.scss +51 -0
  53. package/bpk-component-button/src/BpkButtonDestructive.js +0 -48
  54. package/bpk-component-button/src/BpkButtonDestructive.module.css +0 -18
  55. package/bpk-component-button/src/BpkButtonFeatured.js +0 -48
  56. package/bpk-component-button/src/BpkButtonFeatured.module.css +0 -18
  57. package/bpk-component-button/src/BpkButtonLink.js +0 -53
  58. package/bpk-component-button/src/BpkButtonLink.module.css +0 -18
  59. package/bpk-component-button/src/BpkButtonLinkOnDark.js +0 -53
  60. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +0 -18
  61. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +0 -48
  62. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +0 -18
  63. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +0 -48
  64. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +0 -18
  65. package/bpk-component-button/src/BpkButtonSecondary.js +0 -47
  66. package/bpk-component-button/src/BpkButtonSecondary.module.css +0 -18
  67. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +0 -48
  68. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +0 -18
@@ -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)}